From 4c71426795d126d0491f2e4105090273909e6d51 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 19 四月 2024 15:16:38 +0800 Subject: [PATCH] 辅助数量限制值修改 --- src/views/overview/OverviewListView.vue | 62 +++++++++++++++--------------- 1 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index d8d2f0a..a7a79f4 100644 --- a/src/views/overview/OverviewListView.vue +++ b/src/views/overview/OverviewListView.vue @@ -358,31 +358,31 @@ // bottom浜у搧淇℃伅鏁版嵁澶勭悊 bottomProductData(arr) { const list = arr.details.map((item) => { - let adjunctUnit='' - let adjunctAmount='' - if(item.product.moreUnit&&item.product.moreUnitList){ - let moreUnitList=item.product.moreUnitList - if(moreUnitList.length>0){ - let isValue=false - for(let j in moreUnitList){ - if(moreUnitList[j].floating){ - isValue=true; - adjunctUnit=moreUnitList[j].unit - adjunctAmount=moreUnitList[j].amount - break; - } - } - if(!isValue){ - for(let j in moreUnitList){ - if(moreUnitList[j].unit){ - adjunctUnit=moreUnitList[j].unit - adjunctAmount=moreUnitList[j].amount - break; - } - } - } - } - } + // let adjunctUnit='' + // let adjunctAmount='' + // if(item.product.moreUnit&&item.product.moreUnitList){ + // let moreUnitList=item.product.moreUnitList + // if(moreUnitList.length>0){ + // let isValue=false + // for(let j in moreUnitList){ + // if(moreUnitList[j].floating){ + // isValue=true; + // adjunctUnit=moreUnitList[j].unit + // adjunctAmount=moreUnitList[j].amount + // break; + // } + // } + // if(!isValue){ + // for(let j in moreUnitList){ + // if(moreUnitList[j].unit){ + // adjunctUnit=moreUnitList[j].unit + // adjunctAmount=moreUnitList[j].amount + // break; + // } + // } + // } + // } + // } return { ...item, productName: item.product.name, @@ -391,12 +391,12 @@ specs:item.product.specs, location: arr.location.name, toLocation: arr.toLocation.name, - adjunctUnit:adjunctUnit, - adjunctAmount:adjunctAmount&&item.amount?adjunctAmount:'', - grossWeight:item.product.grossWeight, - totalGrossWeight:item.totalGrossWeight, - netWeight:item.product.netWeight, - totalNetWeight:item.totalNetWeight, + adjunctUnit:item.auxiliaryUnit, + adjunctAmount:item.auxiliaryAmount, + grossWeight:item.product.grossWeight==0?'':item.product.grossWeight, + totalGrossWeight:item.totalGrossWeight==0?'':item.totalGrossWeight, + netWeight:item.product.netWeight==0?'':item.product.netWeight, + totalNetWeight:item.totalNetWeight==0?'':item.totalNetWeight, } }) this.productTableList.tableInfomation = list -- Gitblit v1.8.0