|
|
@@ -289,11 +289,7 @@
|
|
|
label-width="110px"
|
|
|
style="margin-bottom: 0"
|
|
|
>
|
|
|
- <el-input
|
|
|
- type="text"
|
|
|
- :disabled="formData.executeMethodTitle == '无执行方式'"
|
|
|
- v-model="executeMethodTitleComputed"
|
|
|
- />
|
|
|
+ <el-input type="text" v-model="executeMethodTitleComputed" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -303,7 +299,6 @@
|
|
|
v-model="row.paramType"
|
|
|
placeholder="请选择参数类型"
|
|
|
size="mini"
|
|
|
- required
|
|
|
>
|
|
|
<el-option label="数值" :value="1" />
|
|
|
<el-option label="选择" :value="2" />
|
|
|
@@ -689,6 +684,10 @@
|
|
|
prop: 'modelType',
|
|
|
label: '型号'
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'specification',
|
|
|
+ label: '规格'
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'measuringUnit',
|
|
|
label: '计量单位'
|
|
|
@@ -925,7 +924,8 @@
|
|
|
deletedIds: [],
|
|
|
produceTaskId: data.produceTaskConfigs[0]?.produceTaskId,
|
|
|
produceTaskName: data.produceTaskConfigs[0]?.produceTaskName,
|
|
|
- updatePOs: []
|
|
|
+ updatePOs: [],
|
|
|
+ isTemplate: 1
|
|
|
};
|
|
|
|
|
|
if (data.isExecuteMethod) {
|
|
|
@@ -1116,6 +1116,13 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 判断参数类型是否选择
|
|
|
+ for (const detail of this.formData.details) {
|
|
|
+ if (!detail.paramType) {
|
|
|
+ return this.$message.warning('请选择规则明细中的参数类型!');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
try {
|
|
|
this.btnLoading = true;
|
|
|
|
|
|
@@ -1200,7 +1207,8 @@
|
|
|
produceTaskName:
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskName,
|
|
|
categoryLevelId: categoryId,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -1234,7 +1242,8 @@
|
|
|
productCode: product.code,
|
|
|
productId: product.id || product.productId,
|
|
|
productName: product.name || product.productName,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -1268,7 +1277,8 @@
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskId,
|
|
|
produceTaskName:
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskName,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
} else {
|
|
|
// 新增
|
|
|
@@ -1282,7 +1292,8 @@
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskId,
|
|
|
produceTaskName:
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskName,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
@@ -1308,7 +1319,8 @@
|
|
|
produceTaskName:
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskName,
|
|
|
categoryLevelId: categoryId,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
@@ -1326,7 +1338,8 @@
|
|
|
productCode: product.code,
|
|
|
productId: product.id || product.productId,
|
|
|
productName: product.name || product.productName,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
@@ -1339,7 +1352,8 @@
|
|
|
produceTaskId: body.produceTaskConfigBatchSavePo.produceTaskId,
|
|
|
produceTaskName:
|
|
|
body.produceTaskConfigBatchSavePo.produceTaskName,
|
|
|
- reportWorkType: this.formData.reportWorkType
|
|
|
+ reportWorkType: this.formData.reportWorkType,
|
|
|
+ isTemplate: 1
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
@@ -1520,15 +1534,6 @@
|
|
|
},
|
|
|
// 选择工序
|
|
|
openProduceTaskDialog() {
|
|
|
- if (this.formData.produceTaskConfigs) {
|
|
|
- // 其中包含 isUsing 为 true 则不能修改
|
|
|
- const some = this.formData.produceTaskConfigs.some((i) => i.isUsing);
|
|
|
- if (some) {
|
|
|
- return this.$message.warning(
|
|
|
- '当前规则关联的工序有执行中的记录,不能更改!'
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
this.$refs.processModalRef.open();
|
|
|
},
|
|
|
// 工序
|
|
|
@@ -1597,16 +1602,6 @@
|
|
|
}
|
|
|
},
|
|
|
clearProductTask() {
|
|
|
- // 如果有执行中的记录 则不能清空
|
|
|
- if (
|
|
|
- this.formData.produceTaskConfigs &&
|
|
|
- this.formData.produceTaskConfigs[0] &&
|
|
|
- this.formData.produceTaskConfigs[0].isUsing
|
|
|
- ) {
|
|
|
- return this.$message.warning(
|
|
|
- '当前规则关联的工序有执行中的记录,不能更改!'
|
|
|
- );
|
|
|
- }
|
|
|
this.formData.produceTaskConfigBatchSavePo.produceTaskId = '';
|
|
|
this.formData.produceTaskConfigBatchSavePo.produceTaskName = '';
|
|
|
this.formData.relateProductMethod = 0;
|