This commit is contained in:
xman 2025-03-10 14:09:57 +08:00
parent 34728ca220
commit bcfa38d16e
3 changed files with 7 additions and 3 deletions

View File

@ -118,7 +118,7 @@ class Order extends Backend
}
[$where, $sort, $order, $offset, $limit] = $this->buildparams();
$list = $this->model
->field(['id','order_no','user_id','customer','tel','status','area_id','address',
->field(['id','order_no','admin_id','customer','tel','status','area_id','address',
'source','source_shop','source_uid','source','item_title','item_id','work_tel_id',
'detail','remark','images','create_time','update_time'])
->where($where)

View File

@ -26,6 +26,7 @@
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('order/edit')}"
data-operate-del="{:$auth->check('order/del')}"
data-operate-dispatch="{:$auth->check('orders/dispatch/add')}"
width="100%">
</table>
</div>

View File

@ -128,7 +128,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
name:"dispatch",
text:"派单",
title:"派单",
classname:"btn-view btn-dialog",
extend: 'data-toggle="tooltip" data-container="body"',
classname: 'btn btn-xs btn-warning btn-dialog',
//classname:"btn-view btn-dialog",
icon:'fa fa-add',
url: function(row){
return 'orders/dispatch/add?order_id='+row.id;
@ -158,8 +160,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
},
{
name: 'del',
text:"取消订单",
title:"取消订单",
icon: 'fa fa-trash',
title: __('Del'),
extend: 'data-toggle="tooltip" data-container="body"',
classname: 'btn btn-xs btn-danger btn-delone',
dropdown:"更多",