|
@@ -526,9 +526,9 @@ export default {
|
|
|
const allQty = data.reduce((prev, curr) => prev + curr.qty, 0);
|
|
|
const allTotal = data.reduce((prev, curr) => prev + curr.subtotal, 0);
|
|
|
|
|
|
- // if (allTotal != this.form.planScore) {
|
|
|
- // return this.$message.info('拆解总任务分值需等于目标总值');
|
|
|
- // }
|
|
|
+ if (allTotal != this.form.planScore) {
|
|
|
+ return this.$message.info('拆解总任务分值需等于目标总值');
|
|
|
+ }
|
|
|
const obj = {
|
|
|
planId: this.form.planId,
|
|
|
qty: allQty,
|