From 3e9ce6c5b91dc75b4fa7ce389afbb3f01bfccc3b Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sun, 13 Oct 2024 18:59:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在BeforehandOrderLists类中,增加了warehousing和outbound字段的处理逻辑。当商品没有入库时,相关字段将保持空值。如果商品已入库或已出库,将显示相应的状态和ID。这提升了数据列表的完整性和可读性。 --- app/admin/lists/beforehand_order/BeforehandOrderLists.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/admin/lists/beforehand_order/BeforehandOrderLists.php b/app/admin/lists/beforehand_order/BeforehandOrderLists.php index c8c213e8d..4f8693612 100644 --- a/app/admin/lists/beforehand_order/BeforehandOrderLists.php +++ b/app/admin/lists/beforehand_order/BeforehandOrderLists.php @@ -74,6 +74,14 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte $item->msg='商品没有入库'; } } + $item['warehousing']=''; + $item['outbound_id']=''; + if($item['warehousing_id']>0){ + $item->warehousing='已入库|'.$item['warehousing_id']; + } + if($item['outbound_id']>0){ + $item->outbound='已出库|'.$item['outbound_id']; + } }) ->toArray(); }