From 61fe734ad303e79bf0ab57a2707e3b3f37a92f81 Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Wed, 17 Apr 2024 10:46:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/inventory/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/inventory/index.vue b/pages/inventory/index.vue index b97623a..e18c3d0 100644 --- a/pages/inventory/index.vue +++ b/pages/inventory/index.vue @@ -253,9 +253,9 @@ if(!res.rows || res.rows.length == 0){ this.$u.toast("当前托盘内商品不存在"); }else if(res.code == '200'){ - res.rows.forEach(item=>{ - item.invQty=item.quantity - }) + // res.rows.forEach(item=>{ + // item.invQty=item.quantity + // }) this.dataList=res.rows setTimeout(()=>{ this.dataForm.containerCode='' @@ -312,6 +312,12 @@ if(res.msg){ this.$u.toast(res.msg); } + res.rows.forEach(item=>{ + if(item.invQty && item.invQty!=0 && ){ + item.invQty=item.quantity + } + + }) this.dataList=res.rows setTimeout(()=>{ this.dataForm.containerCode=''