Browse Source

2024-12-20

接口更新
master
fengyuan_yang 1 year ago
parent
commit
4b77082d40
  1. 24
      src/views/modules/part/bomManagement.vue

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

@ -3688,7 +3688,8 @@ export default {
}).then(() => { }).then(() => {
let tempData = { let tempData = {
informationList: this.checkedByProduct, informationList: this.checkedByProduct,
productFlag: 'byProduct'
productFlag: 'byProduct',
updateBy: this.$store.state.user.name,
} }
deleteBomComponent(tempData).then(({data}) => { deleteBomComponent(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -3707,32 +3708,17 @@ export default {
}) })
} }
}) })
}).catch(() => {
}) })
} }
}, },
//
// componentPartClickRow (row) {
// this.$refs.componentPartTable.toggleRowSelection(row)
// },
componentClickRow (row) { componentClickRow (row) {
this.$refs.componentTable.toggleRowSelection(row) this.$refs.componentTable.toggleRowSelection(row)
}, },
byProductClickRow (row) { byProductClickRow (row) {
this.$refs.byProductTable.toggleRowSelection(row) this.$refs.byProductTable.toggleRowSelection(row)
}, },
// /**
// *
// * @param val
// */
// selectionComponentPart (val) {
// this.componentPartSelections = val
// },
// getRowKeys(row) {
// // id
// return row.partNo
// },
// //
componentDataSave (isClose) { componentDataSave (isClose) {
if (this.componentData.lineSequence === '' || this.componentData.lineSequence == null) { if (this.componentData.lineSequence === '' || this.componentData.lineSequence == null) {
@ -4154,6 +4140,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.detailData.updateBy = this.$store.state.user.name
bomDetailDelete(this.detailData).then(({data}) => { bomDetailDelete(this.detailData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.detailData = data.rows.detailData this.detailData = data.rows.detailData
@ -4171,7 +4158,6 @@ export default {
}) })
} }
}) })
}).catch(() => {
}) })
}, },
@ -4182,6 +4168,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.detailData.updateBy = this.$store.state.user.name
updateAlternativeStatus(this.detailData).then(({data}) => { updateAlternativeStatus(this.detailData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.detailDataList = data.rows.detailDataList this.detailDataList = data.rows.detailDataList
@ -4248,6 +4235,7 @@ export default {
// BomBom // BomBom
toBecomeOfficialBom () { toBecomeOfficialBom () {
this.detailData.updateBy = this.$store.state.user.name
this.toBecomeOfficialLoading = true this.toBecomeOfficialLoading = true
toBecomeOfficialBom(this.detailData).then(({data}) => { toBecomeOfficialBom(this.detailData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

Loading…
Cancel
Save