三级筛选
This commit is contained in:
parent
e3bab20f7b
commit
e9e5ad25a0
|
|
@ -65,7 +65,7 @@ class Auditorder extends Backend
|
|||
$list = $this->model
|
||||
->scope('tab',Order::TAB_AUDIT)
|
||||
->alias('order')
|
||||
->with(['auditadmin'])
|
||||
->with(['auditadmin','workerman'])
|
||||
->where($where)
|
||||
->order($sort, $order)
|
||||
->paginate($limit);
|
||||
|
|
|
|||
|
|
@ -262,4 +262,9 @@ class Order extends Model
|
|||
return $query;
|
||||
}
|
||||
|
||||
|
||||
public function workerman(){
|
||||
return $this->belongsTo(Worker::class,'worker_id',);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,6 +84,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
{field: 'cost', title: __('Cost'), operate:false},
|
||||
{field: 'material_cost', title: __('材料成本'), operate:false},
|
||||
{field: 'performance', title: __('Performance'), operate:false},
|
||||
|
||||
{field: 'workerman.images', title: __('师傅收款码'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
||||
{field: 'trans_images', title: __('转账凭证'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
||||
|
||||
// {field: 'cancel_reason_id', title: __('Cancel_reason_id')},
|
||||
//{field: 'cancel_detail', title: __('Cancel_detail'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||
// {field: 'audit_admin_id', title: __('Audit_admin_id')},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user