diff --git a/src/api/part/quicklyCreateBom.js b/src/api/part/quicklyCreateBom.js index ff0d111..be551d0 100644 --- a/src/api/part/quicklyCreateBom.js +++ b/src/api/part/quicklyCreateBom.js @@ -6,6 +6,7 @@ export const nodeDelete = data => createAPI(`/part/quicklyBom/nodeDelete`,'post' export const nodeEdit = data => createAPI(`/part/quicklyBom/nodeEdit`,'post',data) export const getBomInformationByPartNo = data => createAPI(`/part/quicklyBom/getBomInformationByPartNo`,'post',data) export const savePartInfo = data => createAPI(`/part/quicklyBom/savePartInfo`,'post',data) +export const updatePartNoOfNode = data => createAPI(`/part/quicklyBom/updatePartNoOfNode`,'post',data) export const saveBomHeader = data => createAPI(`/part/quicklyBom/saveBomHeader`,'post',data) export const getRoutingInformationByPartNo = data => createAPI(`/part/quicklyBom/getRoutingInformationByPartNo`,'post',data) export const saveRoutingHeader = data => createAPI(`/part/quicklyBom/saveRoutingHeader`,'post',data) diff --git a/src/views/modules/auth/authQuote.vue b/src/views/modules/auth/authQuote.vue index 3733a56..1cb3974 100644 --- a/src/views/modules/auth/authQuote.vue +++ b/src/views/modules/auth/authQuote.vue @@ -129,10 +129,10 @@ + width="90vw"> - + @@ -141,7 +141,7 @@ - + @@ -149,10 +149,10 @@ - + - + @@ -1269,7 +1269,7 @@ div.table-el-date /deep/ input.el-input__inner{ .right-aligned-input /deep/ .el-input__inner{ text-align: right; - width: 200px; /* 如果需要,可以在这里设置宽度 */ + width: 12.5vw; /* 如果需要,可以在这里设置宽度 */ padding-right: 5px !important; } diff --git a/src/views/modules/part/bom_create.vue b/src/views/modules/part/bom_create.vue index 524e7b7..b1cf1e2 100644 --- a/src/views/modules/part/bom_create.vue +++ b/src/views/modules/part/bom_create.vue @@ -624,6 +624,12 @@ export default { ChooseList }, name: 'bomCreate', + props: { + batchUpdateFlag: { + type: Boolean, + required: true + } + }, data() { return { // 初始页签 @@ -1111,6 +1117,24 @@ export default { fixed: '', columnWidth: 300 }, + { + userId: this.$store.state.user.name, + functionId: 601002, + serialNumber: '601002Table2ComponentPartDesc', + tableId: '601002Table2', + tableName: 'BOM子物料表', + columnProp: 'formula', + headerAlign: 'center', + align: 'left', + columnLabel: '计算公式', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 300 + }, { userId: this.$store.state.user.name, functionId: 601002, @@ -1418,8 +1442,8 @@ export default { }, methods: { // 初始化组件的参数 - init (tempData) { - getBomInformationByPartNo(tempData).then(({data}) => { + async init (tempData) { + await getBomInformationByPartNo(tempData).then(({data}) => { if (data && data.code === 0) { if (data.rows.partNo != null && data.rows.partNo.length > 0) { this.updateModal(data.rows) @@ -1435,6 +1459,9 @@ export default { }) } }) + if (this.batchUpdateFlag){ + this.$emit('handleBatchUpdatePart') + } }, // 初始化组件的参数 diff --git a/src/views/modules/part/part_create.vue b/src/views/modules/part/part_create.vue index eca20b8..fc95820 100644 --- a/src/views/modules/part/part_create.vue +++ b/src/views/modules/part/part_create.vue @@ -1,7 +1,7 @@