From 89a56c452466a8bcde5cd59b150a850bfb34b623 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 11 Mar 2026 15:19:02 +0800 Subject: [PATCH] =?UTF-8?q?2026-03-11=20=E9=85=8D=E6=96=B9BOM=E7=9A=84?= =?UTF-8?q?=E5=AD=90=E4=BB=B6=E5=A2=9E=E5=88=A0=E6=93=8D=E4=BD=9C=E6=94=BE?= =?UTF-8?q?=E5=9C=A8IFS=E4=B8=AD=E6=89=A7=E8=A1=8C=EF=BC=8C=E7=84=B6?= =?UTF-8?q?=E5=90=8E=E5=8F=8D=E5=90=91=E5=90=8C=E6=AD=A5=E5=88=B0PLM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/recipeManagement.vue | 197 ++++++++++---------- 1 file changed, 103 insertions(+), 94 deletions(-) diff --git a/src/views/modules/part/recipeManagement.vue b/src/views/modules/part/recipeManagement.vue index a9ae093..62d26b4 100644 --- a/src/views/modules/part/recipeManagement.vue +++ b/src/views/modules/part/recipeManagement.vue @@ -501,7 +501,7 @@ - + @@ -3419,67 +3419,71 @@ export default { // 子明细新增模态框 saveComponentModal () { - if (this.detailData.alternativeNo === '' || this.detailData.alternativeNo == null) { - this.$message.warning('请先选择替代!') - return - } - this.componentData = { - flag: '1', - site: this.$store.state.user.site, - partNo: this.modalData.partNo, - engChgLevel: this.modalData.engChgLevel, - bomType: this.modalData.bomType, - alternativeNo: this.detailData.alternativeNo, - componentPart: '', - componentPartDesc: '', - printUnit: '', - printUnitName: '', - qtyPerAssembly: undefined, - componentScrap: 0, - issueType: 'Reserve And Backflush', - shrinkageFactor: 0, - lineItemNo: '', - operationId: '', - operationNo: '', - issueToLoc: '', - issueToLocName: '', - noteText: '', - createBy: this.$store.state.user.name, - lineSequence: '', - consumptionItem: 'Consumed', - productFlag: 'component', - weightShare: undefined, - partsByWeight: undefined, - qtyUom: undefined, - issuePlannedScrapDb: 'TRUE', - issueOverreportedQtyDb: 'FALSE', - fixedQtyFlag: 'Not fixed', - promisePlanned: 'Promised', - phantomConsume: 'Not Phantom Consume', - operCostDistribution: '0', - genOhCostDistribution: '0', - qtyKg: undefined, - byProdAsSupplyInMrpDb: 'FALSE', - leadtimeOffset: '0', - stdPlannedItem: '1', - chargedItem: 'Item not charged', - excludeFromCalculationsDb: 'FALSE', - excludeFromAsBuiltDb: 'FALSE', - lotBatchOriginDb: 'FALSE' - } - - // 获取子料的序号 - getComponentLineSequence(this.componentData).then(({data}) => { - if (data && data.code === 0) { - this.componentData.lineSequence = data.lineSequence - } else { - this.$alert(data.msg, '错误', { - confirmButtonText: '确定' - }) - } + this.$alert("配方子件的【新增】【删除】操作需到IFS系统中,然后通过【数据同步-反向】同步到PLM系统!", "提示", { + confirmButtonText: "确定", + type: "warning" }) - this.componentDisableFlag = false - this.componentSaveModal = true + // if (this.detailData.alternativeNo === '' || this.detailData.alternativeNo == null) { + // this.$message.warning('请先选择替代!') + // return + // } + // this.componentData = { + // flag: '1', + // site: this.$store.state.user.site, + // partNo: this.modalData.partNo, + // engChgLevel: this.modalData.engChgLevel, + // bomType: this.modalData.bomType, + // alternativeNo: this.detailData.alternativeNo, + // componentPart: '', + // componentPartDesc: '', + // printUnit: '', + // printUnitName: '', + // qtyPerAssembly: undefined, + // componentScrap: 0, + // issueType: 'Reserve And Backflush', + // shrinkageFactor: 0, + // lineItemNo: '', + // operationId: '', + // operationNo: '', + // issueToLoc: '', + // issueToLocName: '', + // noteText: '', + // createBy: this.$store.state.user.name, + // lineSequence: '', + // consumptionItem: 'Consumed', + // productFlag: 'component', + // weightShare: undefined, + // partsByWeight: undefined, + // qtyUom: undefined, + // issuePlannedScrapDb: 'TRUE', + // issueOverreportedQtyDb: 'FALSE', + // fixedQtyFlag: 'Not fixed', + // promisePlanned: 'Promised', + // phantomConsume: 'Not Phantom Consume', + // operCostDistribution: '0', + // genOhCostDistribution: '0', + // qtyKg: undefined, + // byProdAsSupplyInMrpDb: 'FALSE', + // leadtimeOffset: '0', + // stdPlannedItem: '1', + // chargedItem: 'Item not charged', + // excludeFromCalculationsDb: 'FALSE', + // excludeFromAsBuiltDb: 'FALSE', + // lotBatchOriginDb: 'FALSE' + // } + // + // // 获取子料的序号 + // getComponentLineSequence(this.componentData).then(({data}) => { + // if (data && data.code === 0) { + // this.componentData.lineSequence = data.lineSequence + // } else { + // this.$alert(data.msg, '错误', { + // confirmButtonText: '确定' + // }) + // } + // }) + // this.componentDisableFlag = false + // this.componentSaveModal = true }, // 副产品新增模态框 @@ -4047,39 +4051,44 @@ export default { // 删除子物料 deleteComponentPart () { - if (this.checkedDetail.length === 0) { - this.$message.warning('请选择要删除子物料!') - return - } else { - this.$confirm("请是否确认删除该子明细记录?", "提示", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning" - }).then(() => { - let tempData = { - informationList: this.checkedDetail, - productFlag: 'component', - updateBy: this.$store.state.user.name, - } - deleteRecipeComponent(tempData).then(({data}) => { - if (data && data.code === 0) { - this.subDetailList = data.rows.subDetailList - this.byProductList = data.rows.byProductList - this.manufStructCostDistribList = data.rows.manufStructCostDistribList - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => {} - }) - } else { - this.$alert(data.msg, '错误', { - confirmButtonText: '确定' - }) - } - }) - }) - } + this.$alert("配方子件的【新增】【删除】操作需到IFS系统中,然后通过【数据同步-反向】同步到PLM系统!", "提示", { + confirmButtonText: "确定", + type: "warning" + }) + + // if (this.checkedDetail.length === 0) { + // this.$message.warning('请选择要删除子物料!') + // return + // } else { + // this.$confirm("请是否确认删除该子明细记录?", "提示", { + // confirmButtonText: "确定", + // cancelButtonText: "取消", + // type: "warning" + // }).then(() => { + // let tempData = { + // informationList: this.checkedDetail, + // productFlag: 'component', + // updateBy: this.$store.state.user.name, + // } + // deleteRecipeComponent(tempData).then(({data}) => { + // if (data && data.code === 0) { + // this.subDetailList = data.rows.subDetailList + // this.byProductList = data.rows.byProductList + // this.manufStructCostDistribList = data.rows.manufStructCostDistribList + // this.$message({ + // message: '操作成功', + // type: 'success', + // duration: 1500, + // onClose: () => {} + // }) + // } else { + // this.$alert(data.msg, '错误', { + // confirmButtonText: '确定' + // }) + // } + // }) + // }) + // } }, // 删除子物料