|
@@ -1753,7 +1753,6 @@
|
|
|
);
|
|
);
|
|
|
this.tableData.taskParam[this.currentIndex].beatParam =
|
|
this.tableData.taskParam[this.currentIndex].beatParam =
|
|
|
this.beatParam;
|
|
this.beatParam;
|
|
|
- // 保存标准工时
|
|
|
|
|
|
|
|
|
|
// 保存材料定额
|
|
// 保存材料定额
|
|
|
this.tableData.taskParam[this.currentIndex].baseCount =
|
|
this.tableData.taskParam[this.currentIndex].baseCount =
|
|
@@ -1761,6 +1760,20 @@
|
|
|
this.tableData.taskParam[this.currentIndex].baseCountUnit =
|
|
this.tableData.taskParam[this.currentIndex].baseCountUnit =
|
|
|
this.form.baseCountUnit;
|
|
this.form.baseCountUnit;
|
|
|
|
|
|
|
|
|
|
+ const isCount = this.tableData.taskParam[
|
|
|
|
|
+ this.currentIndex
|
|
|
|
|
+ ].materialQuota.every((item) => {
|
|
|
|
|
+ if (!item.count) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ return true;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if (!isCount) {
|
|
|
|
|
+ this.$message.warning('材料定额数量不能为空');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.tableData.taskParam[this.currentIndex].baseCount2 =
|
|
this.tableData.taskParam[this.currentIndex].baseCount2 =
|
|
|
this.baseCount2;
|
|
this.baseCount2;
|
|
|
this.tableData.taskParam[this.currentIndex].baseCountUnit2 =
|
|
this.tableData.taskParam[this.currentIndex].baseCountUnit2 =
|