|
@@ -1166,7 +1166,7 @@
|
|
|
const form = this.buildForm(row);
|
|
const form = this.buildForm(row);
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.taskReportRef.open('repoort', currentRow, form);
|
|
|
|
|
|
|
+ this.$refs.taskReportRef.open('report', currentRow, form);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -1228,7 +1228,9 @@
|
|
|
productName: row.productName,
|
|
productName: row.productName,
|
|
|
specification: row.specification,
|
|
specification: row.specification,
|
|
|
newWeightUnit: row.newWeightUnit,
|
|
newWeightUnit: row.newWeightUnit,
|
|
|
- measuringUnit: row.measuringUnit
|
|
|
|
|
|
|
+ measuringUnit: row.measuringUnit,
|
|
|
|
|
+ reportQuantityReported: row.reportQuantity || 0,
|
|
|
|
|
+ lossQuantityReported: row.lossQuantity || 0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -1238,7 +1240,10 @@
|
|
|
row.reportQuantity ? row.reportQuantity : 0,
|
|
row.reportQuantity ? row.reportQuantity : 0,
|
|
|
row.lossQuantity ? row.lossQuantity : 0
|
|
row.lossQuantity ? row.lossQuantity : 0
|
|
|
);
|
|
);
|
|
|
- const remainingQuantity = this.sub(row.formingNum, actualQuantity);
|
|
|
|
|
|
|
+ const remainingQuantity = Math.max(
|
|
|
|
|
+ this.sub(row.quantity || 0, actualQuantity),
|
|
|
|
|
+ 0
|
|
|
|
|
+ );
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
realStartTime: row.realStartTime,
|
|
realStartTime: row.realStartTime,
|
|
@@ -1247,9 +1252,7 @@
|
|
|
qualifiedWeight: row.qualifiedWeight,
|
|
qualifiedWeight: row.qualifiedWeight,
|
|
|
unqualifiedQuantity: row.unqualifiedQuantity,
|
|
unqualifiedQuantity: row.unqualifiedQuantity,
|
|
|
unqualifiedWeight: row.unqualifiedWeight,
|
|
unqualifiedWeight: row.unqualifiedWeight,
|
|
|
- reportQuantity: row.reportQuantity
|
|
|
|
|
- ? remainingQuantity
|
|
|
|
|
- : row.formingNum,
|
|
|
|
|
|
|
+ reportQuantity: remainingQuantity,
|
|
|
lossQuantity: 0,
|
|
lossQuantity: 0,
|
|
|
remark: row.assigneeRemark
|
|
remark: row.assigneeRemark
|
|
|
};
|
|
};
|