From 1ab27fbb973cc92ae8ff662d26490d2e0ffb9686 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 26 Nov 2024 10:50:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E9=A2=84?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=87=BA=E5=BA=93=E5=8D=95=E5=8F=B7=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将出库单号的查询字段从 'oid' 修改为 'id',以确保正确的数据返回 - 优化了搜索条件的判断逻辑,提高搜索准确性 --- app/admin/lists/beforehand_order/BeforehandOrderLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/lists/beforehand_order/BeforehandOrderLists.php b/app/admin/lists/beforehand_order/BeforehandOrderLists.php index b90d50a3f..0dbb9c97b 100644 --- a/app/admin/lists/beforehand_order/BeforehandOrderLists.php +++ b/app/admin/lists/beforehand_order/BeforehandOrderLists.php @@ -76,7 +76,7 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte $oid=WarehouseOrder::where('financial_pm',1)->where('code','like','%'.$order_rk)->column('id'); $this->searchWhere[] = ['warehousing_id','in',$oid]; }elseif ($order_ck!='') { - $oid=WarehouseOrder::where('financial_pm',0)->where('code','like','%'.$order_ck)->column('oid'); + $oid=WarehouseOrder::where('financial_pm',0)->where('code','like','%'.$order_ck)->column('id'); $this->searchWhere[] = ['outbound_id','in',$oid]; } $file=['id', 'order_id', 'order_sn','store_id', 'order_type', 'total_num', 'total_price', 'outbound_id', 'admin_id', 'create_time', 'status', 'mark', 'warehousing_id', 'file'];