调整
This commit is contained in:
parent
76aa236cbd
commit
57caec1805
|
|
@ -410,7 +410,7 @@ class Order extends Backend
|
||||||
public function addAbnormal($ids = null){
|
public function addAbnormal($ids = null){
|
||||||
if (false === $this->request->isPost()) {
|
if (false === $this->request->isPost()) {
|
||||||
|
|
||||||
$abnormals = model('abnormal')->order('sort','desc')->select();
|
$abnormals = model('abnormal')->where('type',2)->order('sort','desc')->select();
|
||||||
$abnormals_data = [];
|
$abnormals_data = [];
|
||||||
foreach ($abnormals as $abnormal){
|
foreach ($abnormals as $abnormal){
|
||||||
$abnormals_data [] = $abnormal->toArray();
|
$abnormals_data [] = $abnormal->toArray();
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
<div class="form-area">
|
<div class="form-area">
|
||||||
<div>
|
<div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">录入订单</h5>
|
|
||||||
<form id="add-form" class="row" role="form" data-toggle="validator" method="POST" action="">
|
<form id="add-form" class="row" role="form" data-toggle="validator" method="POST" action="">
|
||||||
<div class="form-group col-xs-6">
|
<div class="form-group col-xs-6">
|
||||||
<label class="control-label col-xs-12 col-sm-3">{:__('Customer')}:</label>
|
<label class="control-label col-xs-12 col-sm-3">{:__('Customer')}:</label>
|
||||||
|
|
@ -56,8 +55,8 @@
|
||||||
<label class="control-label col-xs-12 col-sm-3">派单方式:</label>
|
<label class="control-label col-xs-12 col-sm-3">派单方式:</label>
|
||||||
<div class="col-xs-12 col-sm-8">
|
<div class="col-xs-12 col-sm-8">
|
||||||
<select data-live-search="true" name="row[dispatch_type]" class="form-control selectpicker show-tick">
|
<select data-live-search="true" name="row[dispatch_type]" class="form-control selectpicker show-tick">
|
||||||
<option selected value="1">手动派单</option>
|
<option value="1">手动派单</option>
|
||||||
<option value="2">自动派单</option>
|
<option selected value="2">自动派单</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -249,6 +248,18 @@
|
||||||
.suggestion-item:hover {
|
.suggestion-item:hover {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
}
|
}
|
||||||
|
.control-label{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.col-xs-12{
|
||||||
|
margin: 5px 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.msg-box{
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 30px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,19 +67,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||||
pk: 'id',
|
pk: 'id',
|
||||||
sortName: 'id',
|
sortName: 'id',
|
||||||
fixedColumns: true,
|
|
||||||
fixedRightNumber: 1,
|
fixedRightNumber: 1,
|
||||||
|
fixedNumber: 3,
|
||||||
|
fixedColumns: true,
|
||||||
columns: [
|
columns: [
|
||||||
[
|
[
|
||||||
{checkbox: true},
|
{checkbox: true},
|
||||||
{field: 'id', title: __('Id')},
|
{field: 'id', title: __('Id')},
|
||||||
{field: 'user.nickname', title: '录单员'},
|
|
||||||
{field: 'order_no', title: __('Order_no'), operate: 'LIKE'},
|
|
||||||
{field: 'customer', title: __('Customer'), operate: 'LIKE'},
|
|
||||||
{field: 'tel', title: __('Tel'), operate: 'LIKE'},
|
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
title: __('Status'),
|
title: __('Status'),
|
||||||
|
fixed:true,
|
||||||
searchList: {
|
searchList: {
|
||||||
"0": __('Status 0'),
|
"0": __('Status 0'),
|
||||||
"10": __('Status 10'),
|
"10": __('Status 10'),
|
||||||
|
|
@ -95,6 +94,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
},
|
},
|
||||||
formatter: Table.api.formatter.status
|
formatter: Table.api.formatter.status
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'dispatch_type',
|
||||||
|
title: '派单方式',
|
||||||
|
searchList: {
|
||||||
|
"1": '手动派单',
|
||||||
|
"2": '自动派单',
|
||||||
|
},
|
||||||
|
formatter: Table.api.formatter.label
|
||||||
|
},
|
||||||
|
{field: 'item_title', title: __('Item_title'), operate: 'LIKE'},
|
||||||
|
|
||||||
|
|
||||||
|
{field: 'user.nickname', title: '录单员'},
|
||||||
|
{field: 'order_no', title: __('Order_no'), operate: 'LIKE'},
|
||||||
|
{field: 'customer', title: __('Customer'), operate: 'LIKE'},
|
||||||
|
{field: 'tel', title: __('Tel'), operate: 'LIKE'},
|
||||||
{field: 'area.merge_name', title: __('Area_id')},
|
{field: 'area.merge_name', title: __('Area_id')},
|
||||||
{
|
{
|
||||||
field: 'address',
|
field: 'address',
|
||||||
|
|
@ -105,15 +120,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
formatter: Table.api.formatter.content
|
formatter: Table.api.formatter.content
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
field: 'dispatch_type',
|
|
||||||
title: '派单方式',
|
|
||||||
searchList: {
|
|
||||||
"1": '手动派单',
|
|
||||||
"2": '自动派单',
|
|
||||||
},
|
|
||||||
formatter: Table.api.formatter.label
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'receive_type',
|
field: 'receive_type',
|
||||||
title: '收款方式',
|
title: '收款方式',
|
||||||
|
|
@ -124,10 +130,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
formatter: Table.api.formatter.label
|
formatter: Table.api.formatter.label
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
field: 'total',
|
||||||
|
title: '总收款',
|
||||||
|
formatter: Table.api.formatter.Text
|
||||||
|
},
|
||||||
|
|
||||||
// {field: 'worker_id', title: __('Worker_id')},
|
// {field: 'worker_id', title: __('Worker_id')},
|
||||||
{field: 'source_shop', title: __('Source')},
|
{field: 'source_shop', title: __('Source')},
|
||||||
// {field: 'source_uid', title: __('Source_uid'), operate: 'LIKE'},
|
// {field: 'source_uid', title: __('Source_uid'), operate: 'LIKE'},
|
||||||
{field: 'item_title', title: __('Item_title'), operate: 'LIKE'},
|
|
||||||
{
|
{
|
||||||
field: 'detail',
|
field: 'detail',
|
||||||
title: __('Detail'),
|
title: __('Detail'),
|
||||||
|
|
@ -179,7 +190,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
icon: 'fa fa-pencil',
|
icon: 'fa fa-pencil',
|
||||||
title: __('Edit'),
|
title: __('Edit'),
|
||||||
extend: 'data-toggle="tooltip" data-container="body"',
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
classname: 'btn btn-xs button-edit btn-editone',
|
classname: 'btn btn-xs btn-info btn-editone',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -189,9 +200,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
text: "复制",
|
text: "复制",
|
||||||
url: 'order/copy',
|
url: 'order/copy',
|
||||||
extend: 'data-toggle="tooltip" data-container="body"',
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
classname: 'btn btn-xs button-copy btn-dialog',
|
classname: 'btn btn-dialog',
|
||||||
callback: function ($data) {
|
callback: function ($data) {
|
||||||
console.log($data);
|
// console.log($data);
|
||||||
},
|
},
|
||||||
dropdown: "更多"
|
dropdown: "更多"
|
||||||
},
|
},
|
||||||
|
|
@ -200,8 +211,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
text: "派单",
|
text: "派单",
|
||||||
title: "派单",
|
title: "派单",
|
||||||
extend: 'data-toggle="tooltip" data-container="body"',
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
classname: 'btn btn-xs button-dispatch btn-dialog',
|
classname: 'btn btn-xs btn-info btn-dialog',
|
||||||
//classname:"btn-view btn-dialog",
|
|
||||||
icon: 'fa fa-add',
|
icon: 'fa fa-add',
|
||||||
url: function (row) {
|
url: function (row) {
|
||||||
return 'orders/dispatch/add?order_id=' + row.id;
|
return 'orders/dispatch/add?order_id=' + row.id;
|
||||||
|
|
@ -217,9 +227,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
{
|
{
|
||||||
name: "reminder",
|
name: "reminder",
|
||||||
text: "催单",
|
text: "催单",
|
||||||
title: "派单",
|
title: "催单",
|
||||||
extend: 'data-toggle="tooltip" data-container="body"',
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
classname: 'btn btn-xs button-remind btn-magic btn-ajax',
|
classname: 'btn btn-ajax',
|
||||||
icon: 'fa fa-bolt',
|
icon: 'fa fa-bolt',
|
||||||
url: 'order/reminder',
|
url: 'order/reminder',
|
||||||
dropdown: "更多",
|
dropdown: "更多",
|
||||||
|
|
@ -250,7 +260,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
text: "复制信息",
|
text: "复制信息",
|
||||||
title: "复制信息",
|
title: "复制信息",
|
||||||
extend: 'data-toggle="tooltip" data-container="body"',
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
classname: 'btn btn-xs button-error btn-click',
|
classname: 'btn btn-xs btn-info btn-click',
|
||||||
icon: 'fa fa-text',
|
icon: 'fa fa-text',
|
||||||
click: function (data, item) {
|
click: function (data, item) {
|
||||||
const text = assembleOrderMessage(item);
|
const text = assembleOrderMessage(item);
|
||||||
|
|
@ -260,7 +270,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
name: 'delete',
|
name: 'delete',
|
||||||
text: '取消',
|
text: '取消',
|
||||||
title: '取消',
|
title: '取消',
|
||||||
classname: 'btn btn-xs button-cancel btn-dialog',
|
classname: 'btn btn-dialog',
|
||||||
icon: 'fa fa-trash',
|
icon: 'fa fa-trash',
|
||||||
url: 'order/delete',
|
url: 'order/delete',
|
||||||
dropdown: "更多",
|
dropdown: "更多",
|
||||||
|
|
@ -271,11 +281,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name:"error",
|
||||||
|
text:"订单报错",
|
||||||
|
title:"订单报错",
|
||||||
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
|
classname: 'btn btn-dialog',
|
||||||
|
icon: 'fa fa-bolt',
|
||||||
|
url: 'order/addAbnormal',
|
||||||
|
refresh:true,
|
||||||
|
dropdown: "更多",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'invoice',
|
name: 'invoice',
|
||||||
text: '申请开票',
|
text: '申请开票',
|
||||||
title: '申请开票',
|
title: '申请开票',
|
||||||
classname: 'btn btn-xs button-cancel btn-dialog',
|
classname: 'btn btn-dialog',
|
||||||
icon: 'fa fa-send',
|
icon: 'fa fa-send',
|
||||||
url: 'order/invoice/',
|
url: 'order/invoice/',
|
||||||
dropdown: "更多",
|
dropdown: "更多",
|
||||||
|
|
|
||||||
|
|
@ -193,12 +193,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer','cascader'], f
|
||||||
// {checkbox: true},
|
// {checkbox: true},
|
||||||
{field: 'id', title: __('Id')},
|
{field: 'id', title: __('Id')},
|
||||||
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
||||||
{field: 'tel', title: __('Tel'), operate: 'LIKE'},
|
{field: 'tel', title: '电话', operate: 'LIKE'},
|
||||||
// {field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"0":__('Status 0')}, formatter: Table.api.formatter.status},
|
// {field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"0":__('Status 0')}, formatter: Table.api.formatter.status},
|
||||||
//{field: 'area_id', title: __('Area_id')},
|
//{field: 'area_id', title: __('Area_id')},
|
||||||
//{field: 'lng', title: __('Lng'), operate:'BETWEEN'},
|
//{field: 'lng', title: __('Lng'), operate:'BETWEEN'},
|
||||||
//{field: 'lat', title: __('Lat'), operate:'BETWEEN'},
|
//{field: 'lat', title: __('Lat'), operate:'BETWEEN'},
|
||||||
{field: 'area.short_merge_name', title: __('Area.short_merge_name'), operate: 'LIKE'},
|
{field: 'area.short_merge_name', title: '区域', operate: 'LIKE'},
|
||||||
// {field: 'deposit_amount', title: __('Deposit_amount'), operate:'BETWEEN'},
|
// {field: 'deposit_amount', title: __('Deposit_amount'), operate:'BETWEEN'},
|
||||||
{field: 'id', title: '操作',formatter:function (id) {
|
{field: 'id', title: '操作',formatter:function (id) {
|
||||||
return `<p class="btn btn-primary tab_chose" data-id="${id}">选择</p>`;
|
return `<p class="btn btn-primary tab_chose" data-id="${id}">选择</p>`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user