|
|
@@ -478,6 +478,48 @@
|
|
|
width="160"
|
|
|
show-overflow-tooltip
|
|
|
/>
|
|
|
+ <el-table-column
|
|
|
+ label="存储地点"
|
|
|
+ align="center"
|
|
|
+ prop="locationName"
|
|
|
+ width="150"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="合格类型"
|
|
|
+ align="center"
|
|
|
+ prop="QCType"
|
|
|
+ width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="退扣数量"
|
|
|
+ align="center"
|
|
|
+ prop="returnDeductQty"
|
|
|
+ width="160"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.returnDeductQty"
|
|
|
+ :disabled="isFormDisabled"
|
|
|
+ @change="(val) => calculateNowDeliveredQty(scope.row)"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="退补数量"
|
|
|
+ align="center"
|
|
|
+ prop="returnSupplyQty"
|
|
|
+ width="160"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.returnSupplyQty"
|
|
|
+ :disabled="isFormDisabled"
|
|
|
+ @change="(val) => calculateNowDeliveredQty(scope.row)"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="本次申请数量"
|
|
|
align="center"
|
|
|
@@ -1504,6 +1546,12 @@ export default {
|
|
|
// 这里可以写“本次出入数量”变化后的校验或计算逻辑
|
|
|
console.log("deliverChange", val);
|
|
|
},
|
|
|
+ // 计算本次申请数量 = 退补数量 + 退扣数量
|
|
|
+ calculateNowDeliveredQty(row) {
|
|
|
+ const returnSupplyQty = Number(row.returnSupplyQty) || 0;
|
|
|
+ const returnDeductQty = Number(row.returnDeductQty) || 0;
|
|
|
+ row.nowDeliveredQty = returnSupplyQty + returnDeductQty;
|
|
|
+ },
|
|
|
// 附件上传
|
|
|
handleUpload() {
|
|
|
this.$refs.attachmentUpload.isUploadShow = -1;
|