| | |
| | | :addTypeIdMultiple="true" |
| | | :product-table-list="productTableList" |
| | | :detail-enter="!showFooter" |
| | | @selProductClick="selProductClick" |
| | | @inputContent="inputContent" |
| | | @addProductClick="addProductClick('操作')" |
| | | @getSelectArray="getSelectArray" |
| | |
| | | productId: item.productId, |
| | | auxiliaryUnit:item.auxiliaryUnit, |
| | | auxiliaryAmount:item.auxiliaryAmount, |
| | | totalNetWeight:item.totalNetWeight, |
| | | totalGrossWeight:item.totalGrossWeight, |
| | | }); |
| | | }); |
| | | params.details = arr; |
| | |
| | | productId: item.productId, |
| | | auxiliaryUnit:item.auxiliaryUnit, |
| | | auxiliaryAmount:item.auxiliaryAmount, |
| | | totalNetWeight:item.totalNetWeight, |
| | | totalGrossWeight:item.totalGrossWeight, |
| | | }); |
| | | } else { |
| | | arr.push({ |
| | |
| | | productId: item.productId, |
| | | auxiliaryUnit:item.auxiliaryUnit, |
| | | auxiliaryAmount:item.auxiliaryAmount, |
| | | totalNetWeight:item.totalNetWeight, |
| | | totalGrossWeight:item.totalGrossWeight, |
| | | }); |
| | | } |
| | | }); |
| | |
| | | productId: item.productId, |
| | | auxiliaryUnit:item.auxiliaryUnit, |
| | | auxiliaryAmount:item.auxiliaryAmount, |
| | | totalNetWeight:item.totalNetWeight, |
| | | totalGrossWeight:item.totalGrossWeight, |
| | | }); |
| | | // if(item.fromLocationId.value){ |
| | | // arr.push({ |
| | |
| | | moreUnit:res.product.moreUnit, |
| | | moreUnitList:res.product.moreUnitList, |
| | | auxiliaryUnit:res.auxiliaryUnit, |
| | | auxiliaryAmount:res.amount&&adjunctAmount?Number(adjunctAmount)*Number(res.amount):0, |
| | | // auxiliaryAmount:res.amount&&adjunctAmount?Number(adjunctAmount)*Number(res.amount):0, |
| | | auxiliaryAmount:res.auxiliaryAmount, |
| | | auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0, |
| | | inputFloatAuxiliaryAmount:isValue, |
| | | grossWeight:res.product.grossWeight, |
| | | totalGrossWeight:res.totalGrossWeight, |
| | | netWeight:res.product.netWeight, |
| | | totalNetWeight:res.totalNetWeight, |
| | | grossWeight:res.product.grossWeight==0?null:res.product.grossWeight, |
| | | totalGrossWeight:res.totalGrossWeight==0?null:Number(res.totalGrossWeight), |
| | | netWeight:res.product.netWeight==0?null:res.product.netWeight, |
| | | totalNetWeight:res.totalNetWeight==0?null:Number(res.totalNetWeight), |
| | | }; |
| | | }else{ |
| | | return { |
| | |
| | | productName: res.name, |
| | | productId: res.id, |
| | | auxiliaryUnit:adjunctUnit, |
| | | auxiliaryAmount:adjunctAmount?Number(adjunctAmount)*1:0, |
| | | auxiliaryAmount:adjunctAmount?(1/Number(adjunctAmount)).toFixed(2):0, |
| | | auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0, |
| | | inputFloatAuxiliaryAmount:isValue, |
| | | grossWeight:res.grossWeight, |
| | | totalGrossWeight:res.grossWeight?Number(res.grossWeight)*1:'', |
| | | netWeight:res.netWeight, |
| | | totalNetWeight:res.netWeight?Number(res.netWeight)*1:'', |
| | | grossWeight:res.grossWeight==0?null:res.grossWeight, |
| | | totalGrossWeight:res.grossWeight?Number(res.grossWeight)*1:null, |
| | | netWeight:res.netWeight==0?null:res.netWeight, |
| | | totalNetWeight:res.netWeight?Number(res.netWeight)*1:null, |
| | | }; |
| | | } |
| | | }); |
| | |
| | | this.countId = row.countId; |
| | | this.tableData.map((item) => { |
| | | if (item.id == row.id) { |
| | | debugger |
| | | item[prop] = val; |
| | | let auxiliaryAmountObject=this.getAuxiligyAmount(item.moreUnit,item.moreUnitList) |
| | | if(prop=='amount'){ |
| | | item.totalGrossWeight=item[prop]&&item.grossWeight?Number(item.grossWeight)*Number(item[prop]):'' |
| | | item.totalNetWeight=item[prop]&&item.netWeight?Number(item.netWeight)*Number(item[prop]):'' |
| | | item.auxiliaryAmount=item[prop]&&auxiliaryAmountObject.auxiliaryAmount?Number(auxiliaryAmountObject.auxiliaryAmount)*Number(item[prop]):'' |
| | | item.totalGrossWeight=item[prop]&&item.grossWeight?Number(item.grossWeight)*Number(item[prop]):null |
| | | item.totalNetWeight=item[prop]&&item.netWeight?Number(item.netWeight)*Number(item[prop]):null |
| | | item.auxiliaryAmount=item[prop]&&auxiliaryAmountObject.auxiliaryAmount?(Number(item[prop])/Number(auxiliaryAmountObject.auxiliaryAmount)).toFixed(2):'' |
| | | } |
| | | } |
| | | }); |
| | |
| | | // } |
| | | // } |
| | | }, |
| | | selProductClick(value, prop,row,scope){ |
| | | this.getSelectArray([value],scope.$index) |
| | | }, |
| | | // 新增方式修改 |
| | | getSelectArray(val, index) { |
| | | if (this.tableData.length == 1 && this.tableData[0].number&&this.tableData[0].number.length == 0) { |