diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index e8ee565..7c2b226 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -1694,75 +1694,79 @@ 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 - } + // 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() - } + // 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() }, /** * bom删除 diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 9912fa1..ae42780 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -2,12 +2,18 @@