|
|
|
@ -1293,6 +1293,7 @@ import { |
|
|
|
customerPartNo: '', |
|
|
|
spec: '', |
|
|
|
partTypeDb: '', |
|
|
|
oldPartType: '', |
|
|
|
partType: '', |
|
|
|
familyId: '', |
|
|
|
familyName: '', |
|
|
|
@ -2029,6 +2030,7 @@ import { |
|
|
|
customerPartNo: data.rows.customerPartNo, |
|
|
|
spec: data.rows.spec, |
|
|
|
partTypeDb: data.rows.partTypeDb, |
|
|
|
oldPartType: data.rows.partType, |
|
|
|
partType: data.rows.partType, |
|
|
|
familyId: data.rows.familyId, |
|
|
|
familyName: data.rows.familyName, |
|
|
|
@ -2285,6 +2287,28 @@ import { |
|
|
|
this.$message.warning('存在物料属性,属性模板不能为空值!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.modalData.flag === '2' && this.modalData.oldPartType === 'Manufactured' && this.modalData.partType === 'Manufactured Recipe') { |
|
|
|
this.$confirm("该操作会删除物料BOM,请确认!", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
this.saveData2() |
|
|
|
}) |
|
|
|
} else if (this.modalData.flag === '2' && this.modalData.oldPartType === 'Manufactured Recipe' && this.modalData.partType === 'Manufactured') { |
|
|
|
this.$confirm("该操作会删除物料配方,请确认!", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
this.saveData2() |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.saveData2() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
saveData2 () { |
|
|
|
this.modalData.partItemList = this.partItemList |
|
|
|
if (this.modalData.flag === '1' || this.modalData.flag === '3') { |
|
|
|
partInformationSave2(this.modalData).then(({data}) => { |
|
|
|
|