From 8d62bfc3c765cbc3e3d7670063ac32f0bb1502e0 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 30 Oct 2024 16:23:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E4=B8=BA=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=92=8C=E4=BA=A7=E5=93=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81=E6=90=9C=E7=B4=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 WarehouseOrderLists 和 WarehouseProductLists 类中添加 'code' 字段的搜索支持 - 通过在 setSearch 方法中加入 'code' 字段,实现了对订单号和产品编号的搜索功能 --- app/admin/lists/warehouse_order/WarehouseOrderLists.php | 2 +- app/admin/lists/warehouse_product/WarehouseProductLists.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/lists/warehouse_order/WarehouseOrderLists.php b/app/admin/lists/warehouse_order/WarehouseOrderLists.php index 01d3774df..bd18fcc38 100644 --- a/app/admin/lists/warehouse_order/WarehouseOrderLists.php +++ b/app/admin/lists/warehouse_order/WarehouseOrderLists.php @@ -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' ]; } diff --git a/app/admin/lists/warehouse_product/WarehouseProductLists.php b/app/admin/lists/warehouse_product/WarehouseProductLists.php index a9c4a4731..c8bf6bef4 100644 --- a/app/admin/lists/warehouse_product/WarehouseProductLists.php +++ b/app/admin/lists/warehouse_product/WarehouseProductLists.php @@ -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' ]; }