|
|
|
@ -696,7 +696,9 @@ export default { |
|
|
|
.flat() |
|
|
|
.flat() |
|
|
|
.join(''), |
|
|
|
.join(''), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
if (this.updateRow.id) { |
|
|
|
|
|
|
|
promodel.id = this.updateRow.id; |
|
|
|
|
|
|
|
} |
|
|
|
// 2. 处理工序表格数据(清理临时字段) |
|
|
|
// 2. 处理工序表格数据(清理临时字段) |
|
|
|
const tableData = this.ruleForm.tableData.map(item => { |
|
|
|
const tableData = this.ruleForm.tableData.map(item => { |
|
|
|
const { _tempId, ...rest } = item; // 移除临时ID |
|
|
|
const { _tempId, ...rest } = item; // 移除临时ID |
|
|
|
@ -711,7 +713,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 修改 |
|
|
|
// 修改 |
|
|
|
if (!this.moldAddMore) { |
|
|
|
if (!this.moldAddMore) { |
|
|
|
update(query) |
|
|
|
update() |
|
|
|
.then(res => { |
|
|
|
.then(res => { |
|
|
|
this.formLoading = false; |
|
|
|
this.formLoading = false; |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
|