|
|
@ -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 { |
|
|
|
|
|
|
|
|
// 临时Bom转为正式Bom |
|
|
// 临时Bom转为正式Bom |
|
|
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) { |
|
|
|