feat(admin): 为仓库订单和产品列表添加代码搜索功能
- 在 WarehouseOrderLists 和 WarehouseProductLists 类中添加 'code' 字段的搜索支持 - 通过在 setSearch 方法中加入 'code' 字段,实现了对订单号和产品编号的搜索功能
This commit is contained in:
parent
a2c561711c
commit
8d62bfc3c7
@ -30,7 +30,7 @@ class WarehouseOrderLists extends BaseAdminDataLists implements ListsSearchInter
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['financial_pm', 'supplier_id', 'warehouse_id', 'store_id'],
|
||||
'=' => ['financial_pm', 'supplier_id', 'warehouse_id', 'store_id','code'],
|
||||
'between_time' => 'create_time'
|
||||
];
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class WarehouseProductLists extends BaseAdminDataLists implements ListsSearchInt
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['warehouse_id', 'financial_pm', 'store_id','oid','supplier_id','is_pay'],
|
||||
'=' => ['warehouse_id', 'financial_pm', 'store_id','oid','supplier_id','is_pay','code'],
|
||||
'between_time' => 'create_time'
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user