From 0f742b653e71d083db47d9dd56cd935fe537257e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 30 Oct 2024 16:31:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor(admin):=20=E4=BC=98=E5=8C=96=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将代码搜索条件从精确匹配改为模糊匹配,提高搜索灵活性 - 保留其他搜索条件不变,仅针对代码字段进行修改 --- app/admin/lists/warehouse_order/WarehouseOrderLists.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/lists/warehouse_order/WarehouseOrderLists.php b/app/admin/lists/warehouse_order/WarehouseOrderLists.php index bd18fcc38..a22251bad 100644 --- a/app/admin/lists/warehouse_order/WarehouseOrderLists.php +++ b/app/admin/lists/warehouse_order/WarehouseOrderLists.php @@ -30,7 +30,8 @@ class WarehouseOrderLists extends BaseAdminDataLists implements ListsSearchInter public function setSearch(): array { return [ - '=' => ['financial_pm', 'supplier_id', 'warehouse_id', 'store_id','code'], + '=' => ['financial_pm', 'supplier_id', 'warehouse_id', 'store_id'], + '%like'=>['code'], 'between_time' => 'create_time' ]; }