| | |
| | | { label: "产品型号", prop: "model" }, |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "辅助数量", prop: "unit" }, |
| | | { label: "辅助单位", prop: "amount" } |
| | | { label: "辅助数量", prop: "adjunctAmount" }, |
| | | { label: "辅助单位", prop: "adjunctUnit" } |
| | | ], |
| | | allotProductColumn: [ |
| | | { label: "产品编号", prop: "id", default: true }, |
| | |
| | | { label: "调出位置", prop: "location" }, |
| | | { label: "调入位置", prop: "toLocation" }, |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "辅助数量", prop: "unit" }, |
| | | { label: "辅助单位", prop: "amount" } |
| | | { label: "辅助数量", prop: "adjunctAmount" }, |
| | | { label: "辅助单位", prop: "adjunctUnit" } |
| | | ] |
| | | } |
| | | }, |
| | |
| | | // 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){ |
| | | for(let j in moreUnitList){ |
| | | if(moreUnitList[j].floating){ |
| | | adjunctUnit=moreUnitList[j].unit |
| | | adjunctAmount=moreUnitList[j].amount |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return { |
| | | ...item, |
| | | productName: item.product.name, |
| | | unit: item.product.unit, |
| | | location: arr.location.name, |
| | | toLocation: arr.toLocation.name |
| | | toLocation: arr.toLocation.name, |
| | | adjunctUnit:adjunctUnit, |
| | | adjunctAmount:adjunctAmount |
| | | } |
| | | }) |
| | | this.productTableList.tableInfomation = list |