From 1ccf4525cf579e31fc01fdd977f500a59895ee77 Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Tue, 8 Jul 2025 16:37:28 +0800 Subject: [PATCH] 2025/7/8 --- src/views/modules/part/bomManagement.vue | 6 +- src/views/modules/part/recipeManagement.vue | 142 +++++++++++++++++++- 2 files changed, 142 insertions(+), 6 deletions(-) diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue index 0e68d70..9cfe8ac 100644 --- a/src/views/modules/part/bomManagement.vue +++ b/src/views/modules/part/bomManagement.vue @@ -3295,7 +3295,8 @@ export default { printUnitName: row.printUnitName, officialFlag: row.officialFlag, alternativeNo: row.alternativeNo, - ifsPartNo: row.ifsPartNo + ifsPartNo: row.ifsPartNo, + productGroupId4: row.productGroupId4 } this.subDetailTable = 'bom_sub_detail' // 查bom明细 @@ -4340,7 +4341,8 @@ export default { engRevision: data.rows.modalData.engRevision, typeFlag: data.rows.modalData.typeFlag, netWeight: data.rows.modalData.netWeight, - officialFlag: data.rows.modalData.officialFlag + officialFlag: data.rows.modalData.officialFlag, + productGroupId4: data.rows.modalData.productGroupId4, } this.detailDataList = data.rows.detailDataList this.detailData = data.rows.detailData diff --git a/src/views/modules/part/recipeManagement.vue b/src/views/modules/part/recipeManagement.vue index 1e0a45a..5a3901f 100644 --- a/src/views/modules/part/recipeManagement.vue +++ b/src/views/modules/part/recipeManagement.vue @@ -382,6 +382,16 @@ + + 计划人 + + + + + + + + 查询 @@ -891,6 +901,60 @@ + + + + + + + + + + + + 查询 + + + + + + + + + + + + 关闭 + + + @@ -987,6 +1051,18 @@ export default { this.partData.partNo = this.partData.partNo.toUpperCase() } }, + 'componentPartProductGroupId4Data.productGroupId4': { + deep: true, + handler: function (newV, oldV) { + this.componentPartData.productGroupId4 = this.componentPartProductGroupId4Data.productGroupId4 + } + }, + 'componentPartProductGroupId4SaveData.productGroupId4': { + deep: true, + handler: function (newV, oldV) { + this.modalData.productGroupId4 = this.componentPartProductGroupId4SaveData.productGroupId4 + } + } }, // 对象 @@ -1017,6 +1093,9 @@ export default { pageIndex5: 1, pageSize5: 20, totalPage5: 0, + pageIndex6: 1, + pageSize6: 20, + totalPage6: 0, selectedDataNum: 0, // 条件查询 searchData: { @@ -1072,6 +1151,13 @@ export default { page: 1, limit: 20 }, + componentPartProductGroupId4Data: { + productGroupId4: '', + productGroupName4: '', + site: this.$store.state.user.site, + page: 1, + limit: 20 + }, detailData: { site: this.$store.state.user.site, partNo: '', @@ -1155,6 +1241,7 @@ export default { ifsPartNo: '', partDesc: '', status: '', + productGroupId4: '', page: 1, limit: 10 }, @@ -1245,6 +1332,7 @@ export default { // ======== 数据列表 ======== dataList: [], productGroupId4SaveList: [], + productGroupId4List: [], partList: [], componentPartList: [], copyPartList: [], @@ -2873,6 +2961,7 @@ export default { copyAlternativeModelFlag: false, headerSaveFlag: false, manufStructCostDistribModal: false, + productGroupId4ModelFlag: false, productGroupId4SaveModelFlag: false, filterVisible: false, isFilterSearch: false, @@ -3171,7 +3260,8 @@ export default { printUnitName: row.printUnitName, officialFlag: row.officialFlag, alternativeNo: row.alternativeNo, - ifsPartNo: row.ifsPartNo + ifsPartNo: row.ifsPartNo, + productGroupId4: row.productGroupId4 } this.subDetailTable = 'recipe_sub_detail' // 查recipe明细 @@ -3570,6 +3660,7 @@ export default { typeFlag: this.modalData.typeFlag, netWeight: this.modalData.netWeight, officialFlag: this.modalData.officialFlag, + productGroupId4: this.modalData.productGroupId4, alternativeNo: this.detailData.alternativeNo, alternativeDescription: this.detailData.alternativeDescription, minLotQty: this.detailData.minLotQty, @@ -3578,7 +3669,7 @@ export default { status: this.detailData.status, createBy: this.$store.state.user.name, updateBy: this.$store.state.user.name, - informationList: this.subDetailList + informationList: this.subDetailList, } if (this.modalData.flag === '1') { this.saveAllLoading = true @@ -4184,7 +4275,8 @@ export default { engRevision: data.rows.modalData.engRevision, typeFlag: data.rows.modalData.typeFlag, netWeight: data.rows.modalData.netWeight, - officialFlag: data.rows.modalData.officialFlag + officialFlag: data.rows.modalData.officialFlag, + productGroupId4: data.rows.modalData.productGroupId4, } this.detailDataList = data.rows.detailDataList this.detailData = data.rows.detailData @@ -4712,7 +4804,49 @@ export default { getProductGroupId4SaveRowData(row){ this.modalData.productGroupId4 = row.productGroupId4 this.productGroupId4SaveModelFlag = false - } + }, + + + queryProductGroupId4(){ + this.componentPartProductGroupId4Data.productGroupId4 = this.componentPartData.productGroupId4 + this.componentPartProductGroupId4Data.limit = this.pageSize6 + this.componentPartProductGroupId4Data.page = this.pageIndex6 + this.componentPartProductGroupId4Data.site = this.$store.state.user.site + queryProductGroupId4(this.componentPartProductGroupId4Data).then(({data}) => { + if (data && data.code === 0) { + this.productGroupId4List = data.rows.list + this.pageIndex6 = data.rows.currPage + this.pageSize6 = data.rows.pageSize + this.totalPage6 = data.rows.totalCount + this.productGroupId4ModelFlag = true + } else { + this.productGroupId4List = [] + } + }) + }, + + getProductGroupId4RowData(row) { + this.componentPartData.productGroupId4 = row.productGroupId4 + queryPartListAll(this.componentPartData).then(({data}) => { + if (data && data.code === 0) { + this.componentPartList = data.page.list + } else { + this.componentPartList = [] + } + }) + this.productGroupId4ModelFlag = false + }, + + sizeChangeHandle6(val){ + this.pageSize6 = val + this.pageIndex6 = 1 + this.queryProductGroupId4() + }, + + currentChangeHandle6(val) { + this.pageIndex6 = val + this.queryProductGroupId4() + }, } }