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=''