Browse Source

2025-05-08

优化
master
fengyuan_yang 8 months ago
parent
commit
8483b84ce8
  1. 78
      src/views/modules/part/bomManagement.vue

78
src/views/modules/part/bomManagement.vue

@ -3328,77 +3328,11 @@ export default {
// //
closeModal () { 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 this.modalFlag = false
}, },
// //
closeModalX (done) { 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() done()
}, },
@ -3432,7 +3366,6 @@ export default {
}) })
} }
}) })
}).catch(() => {
}) })
}, },
@ -3477,17 +3410,6 @@ export default {
this.modalData.partDesc = row.partDesc this.modalData.partDesc = row.partDesc
this.modalData.printUnit = row.printUnit this.modalData.printUnit = row.printUnit
this.modalData.printUnitName = row.printUnitName 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 this.partModelFlag = false
}, },

Loading…
Cancel
Save