| | |
| | | @clearupProduct="clearupProduct" |
| | | > |
| | | <template v-if="showFooter" slot="tableButton"> |
| | | <!-- fixed="right" --> |
| | | <el-table-column |
| | | label="操作" |
| | | width="60" |
| | | fixed="right" |
| | | align="center" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | { |
| | | label: "从", |
| | | prop: "fromLocationId", |
| | | min:120, |
| | | sonLocation: true, |
| | | isRequird: true, |
| | | }, |
| | |
| | | label: "从", |
| | | prop: "fromLocationId", |
| | | sonLocation: true, |
| | | min:120, |
| | | isRequird: true, |
| | | }, |
| | | { |
| | |
| | | { |
| | | label: "从", |
| | | prop: "fromLocationId", |
| | | min:120, |
| | | sonLocation: true, |
| | | isRequird: true, |
| | | }, |
| | |
| | | { |
| | | label: "从", |
| | | prop: "fromLocationId", |
| | | min:120, |
| | | sonLocation: true, |
| | | isRequird: true, |
| | | }, |
| | |
| | | auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0, |
| | | inputFloatAuxiliaryAmount:isValue, |
| | | grossWeight:res.grossWeight==0?null:res.grossWeight, |
| | | totalGrossWeight:res.grossWeight?Number(res.grossWeight)*1:null, |
| | | totalGrossWeight:res.grossWeight==0?null:Number(res.grossWeight)*1, |
| | | netWeight:res.netWeight==0?null:res.netWeight, |
| | | totalNetWeight:res.netWeight?Number(res.netWeight)*1:null, |
| | | totalNetWeight:res.netWeight==0?null:Number(res.netWeight)*1, |
| | | }; |
| | | } |
| | | }); |
| | |
| | | if(prop=='amount'){ |
| | | 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):'' |
| | | item.auxiliaryAmount=item[prop]&&auxiliaryAmountObject.auxiliaryAmount?(Number(item[prop])/Number(auxiliaryAmountObject.auxiliaryAmount)).toFixed(2):null |
| | | } |
| | | } |
| | | }); |
| | |
| | | }, |
| | | // 新增方式修改 |
| | | getSelectArray(val, index) { |
| | | debugger |
| | | if (this.tableData.length == 1 && this.tableData[0].number&&this.tableData[0].number.length == 0) { |
| | | this.tableData = []; |
| | | } |
| | |
| | | if (this.workType == "内部调拨"||this.workType==3) { |
| | | this.tableColumn = [ |
| | | { label: "产品", prop: "name", productName: true, isRequird: true }, |
| | | { label: "从", prop: "number", select: true }, |
| | | { label: "从", prop: "number", select: true,min:120,}, |
| | | { label: "至", prop: "amount", select: true }, |
| | | { label: "完成", prop: "total", inputFloat: true }, |
| | | { label: "计量单位", prop: "total", select: true }, |
| | |
| | | } else { |
| | | this.tableColumn = [ |
| | | { label: "产品", prop: "name", productName: true, isRequird: true }, |
| | | { label: "从", prop: "number", select: true }, |
| | | { label: "从", prop: "number", select: true , min:120,}, |
| | | { label: "完成", prop: "total", inputFloat: true }, |
| | | { label: "计量单位", prop: "total", select: true }, |
| | | ]; |
| | |
| | | baseOperationType: |
| | | this.editConfig.infomation.baseOperationType || undefined, |
| | | // 1是嘉联 |
| | | cutAfterWidth:name=='jialian'?52.6: |
| | | cutAfterWidth:name=='jialian'?53.9: |
| | | (this.editConfig.infomation.baseOperationType == 2 |
| | | ? 50.8 |
| | | : 53.3), |