|
|
|
@ -3328,77 +3328,11 @@ export default { |
|
|
|
|
|
|
|
// 新增编辑模态框关闭 |
|
|
|
closeModal () { |
|
|
|
// let tempArr = [] |
|
|
|
// tempArr.push(this.modalData) |
|
|
|
// if (this.modalData.flag === '1') { |
|
|
|
// this.$confirm(`是否不保存且删除该条BOM记录?`, '提示', { |
|
|
|
// confirmButtonText: '确定', |
|
|
|
// cancelButtonText: '取消', |
|
|
|
// type: 'warning' |
|
|
|
// }).then(() => { |
|
|
|
// let tempData = { |
|
|
|
// informationList: tempArr |
|
|
|
// } |
|
|
|
// bomManagementDelete(tempData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.getDataList() |
|
|
|
// this.modalFlag = false |
|
|
|
// this.$message({ |
|
|
|
// message: '操作成功', |
|
|
|
// type: 'success', |
|
|
|
// duration: 1500, |
|
|
|
// onClose: () => {} |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }).catch(() => { |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.modalFlag = false |
|
|
|
// } |
|
|
|
//this.getDataList() |
|
|
|
this.modalFlag = false |
|
|
|
}, |
|
|
|
|
|
|
|
// 新增编辑模态框关闭 |
|
|
|
closeModalX (done) { |
|
|
|
// let tempArr = [] |
|
|
|
// tempArr.push(this.modalData) |
|
|
|
// if (this.modalData.flag === '1') { |
|
|
|
// this.$confirm(`是否不保存且删除该条BOM记录?`, '提示', { |
|
|
|
// confirmButtonText: '确定', |
|
|
|
// cancelButtonText: '取消', |
|
|
|
// type: 'warning' |
|
|
|
// }).then(() => { |
|
|
|
// let tempData = { |
|
|
|
// informationList: tempArr |
|
|
|
// } |
|
|
|
// bomManagementDelete(tempData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.getDataList() |
|
|
|
// done() |
|
|
|
// this.$message({ |
|
|
|
// message: '操作成功', |
|
|
|
// type: 'success', |
|
|
|
// duration: 1500, |
|
|
|
// onClose: () => {} |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }).catch(() => { |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// done() |
|
|
|
// } |
|
|
|
//this.getDataList() |
|
|
|
done() |
|
|
|
}, |
|
|
|
|
|
|
|
@ -3432,7 +3366,6 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -3477,17 +3410,6 @@ export default { |
|
|
|
this.modalData.partDesc = row.partDesc |
|
|
|
this.modalData.printUnit = row.printUnit |
|
|
|
this.modalData.printUnitName = row.printUnitName |
|
|
|
// // 获取物料的bom版本号 |
|
|
|
// getBomEngChgLevel(this.modalData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.modalData.engChgLevel = data.engChgLevel |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// this.partModelFlag = false |
|
|
|
// }) |
|
|
|
this.partModelFlag = false |
|
|
|
}, |
|
|
|
|
|
|
|
|