diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index 331925f..8bc5b48 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -24,8 +24,8 @@ 查询 - 新增 - 删除 + 新增 + 删除 @@ -174,7 +175,8 @@ - + + 新增 删除 编辑 @@ -217,7 +219,8 @@ - + + 新增 删除 @@ -248,6 +251,7 @@ - + + 新增 删除 @@ -293,6 +298,7 @@ - 保存 + 保存 关闭 @@ -2948,6 +2955,30 @@ export default { }) }, + // 详情 + async detailsModal (row) { + this.modalData = { + ...row, + flag: '3', + updateBy: this.$store.state.user.name, + } + this.subDetailTable = 'bom_sub_detail' + // 查bom明细 + queryBomDetail(this.modalData).then(({data}) => { + if (data && data.code === 0) { + this.detailDataList = data.rows.detailList + this.subDetailList = data.rows.componentList + this.detailData = data.rows.detailData + this.modalDisableFlag = true + this.modalFlag = true + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, + // 替代新增模态框 saveBomDetail () { if (this.modalData.partNo === '' || this.modalData.partNo == null) { diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 092ebd7..48a0f96 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -112,9 +112,10 @@ fixed="right" header-align="center" align="center" - width="100" + width="120" label="操作">