From 4b77082d40e658e0da25684d2eedc8d73fff406c Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 20 Dec 2024 09:33:07 +0800 Subject: [PATCH] =?UTF-8?q?2024-12-20=20=E6=8E=A5=E5=8F=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/bomManagement.vue | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index d5f0f83..3f41d9f 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -3688,7 +3688,8 @@ export default { }).then(() => { let tempData = { informationList: this.checkedByProduct, - productFlag: 'byProduct' + productFlag: 'byProduct', + updateBy: this.$store.state.user.name, } deleteBomComponent(tempData).then(({data}) => { if (data && data.code === 0) { @@ -3707,32 +3708,17 @@ export default { }) } }) - }).catch(() => { }) } }, - // 子物料 - // componentPartClickRow (row) { - // this.$refs.componentPartTable.toggleRowSelection(row) - // }, componentClickRow (row) { this.$refs.componentTable.toggleRowSelection(row) }, byProductClickRow (row) { this.$refs.byProductTable.toggleRowSelection(row) }, - // /** - // * 多选子物料 - // * @param val - // */ - // selectionComponentPart (val) { - // this.componentPartSelections = val - // }, - // getRowKeys(row) { - // // 唯一值,一般都为id - // return row.partNo - // }, + // 新增子明细方法 componentDataSave (isClose) { if (this.componentData.lineSequence === '' || this.componentData.lineSequence == null) { @@ -4154,6 +4140,7 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { + this.detailData.updateBy = this.$store.state.user.name bomDetailDelete(this.detailData).then(({data}) => { if (data && data.code === 0) { this.detailData = data.rows.detailData @@ -4171,7 +4158,6 @@ export default { }) } }) - }).catch(() => { }) }, @@ -4182,6 +4168,7 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { + this.detailData.updateBy = this.$store.state.user.name updateAlternativeStatus(this.detailData).then(({data}) => { if (data && data.code === 0) { this.detailDataList = data.rows.detailDataList @@ -4248,6 +4235,7 @@ export default { // 临时Bom转为正式Bom toBecomeOfficialBom () { + this.detailData.updateBy = this.$store.state.user.name this.toBecomeOfficialLoading = true toBecomeOfficialBom(this.detailData).then(({data}) => { if (data && data.code === 0) {