From baa73f3be342d5bb142db473b348be4af55f0b07 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 19 Mar 2026 14:08:16 +0800 Subject: [PATCH] =?UTF-8?q?2026-03-19=201=E3=80=81=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=89=A9=E6=96=99=E6=88=90=E6=9C=AC=E6=97=B6=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=8A=93=E5=8F=96Estimated=20Material=20Cost=E6=88=90?= =?UTF-8?q?=E6=9C=AC=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=8F=8D=E5=88=B7=E5=88=B0?= =?UTF-8?q?PLM=202=E3=80=81=E5=8F=96=E6=B6=88=E5=8B=BE=E9=80=89=E6=A1=86?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=95=B0=E5=AD=97=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E6=A1=86=EF=BC=8C=E9=9C=80=E8=A6=81=E4=BC=A0=E8=BE=93=E5=88=B0?= =?UTF-8?q?OA=20=20=20=E5=B1=95=E7=A4=BA=E5=88=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=90=8E=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/part/partInformation.js | 2 ++ src/views/modules/part/partInformation.vue | 20 ++++++++++++++++++- .../projectInfo/com_project_info_part.vue | 20 ++++++++++++++++++- src/views/modules/quote/index.vue | 4 ++-- 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/api/part/partInformation.js b/src/api/part/partInformation.js index 3732f1e..1df7c34 100644 --- a/src/api/part/partInformation.js +++ b/src/api/part/partInformation.js @@ -233,6 +233,8 @@ export const queryPartUnitCostList = data => createAPI(`/plm/partInformation/que export const onlyQueryPartUnitCostList = data => createAPI(`/plm/partInformation/onlyQueryPartUnitCostList`,'post',data) +export const getInventoryPartCost = data => createAPI(`/plm/partInformation/getInventoryPartCost`,'post',data) + export const getItemListByCodeNo = data => createAPI(`/plm/partInformation/getItemListByCodeNo`,'post',data) export const getItemExclusionAlreadyExists = data => createAPI(`/plm/partInformation/getItemExclusionAlreadyExists`,'post',data) diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index 1dad589..db6e44d 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -1499,6 +1499,7 @@ getNextPartNo, // 获取下一个物料编码 getPartRevisionEngChgLevel, // 获取下一个物料revision queryPartUnitCostList, // 查询物料的 unitCost 列表 + getInventoryPartCost, // 查询物料的 estimatedMaterialCost getItemListByCodeNo, // 查询模板中的属性 getItemExclusionAlreadyExists, // 查属性模板,不包括已存在的 getPartCharacteristicList, // 获取维护的物料属性 @@ -3625,7 +3626,10 @@ // 刷新页签的table数据 refreshInventoryPartTable () { if (this.inventoryPartTable === 'Costs') { - this.queryPartUnitCostList() + if (this.modalData.flag === '2') { + this.queryPartUnitCostList() + this.queryInventoryPartCost() + } } if (this.inventoryPartTable === 'Revisions') { this.queryPartRevisionList() @@ -3690,6 +3694,20 @@ }) }, + // 查询物料的 estimatedMaterialCost(仅编辑模式) + queryInventoryPartCost () { + let tempData = { + site: this.modalData.site, + partNo: this.modalData.partNo, + userName: this.$store.state.user.name, + } + getInventoryPartCost(tempData).then(({data}) => { + if (data && data.code === 0 && data.rows && data.rows.estimatedMaterialCost != null) { + this.modalData.estimatedMaterialCost = data.rows.estimatedMaterialCost + } + }) + }, + // 新增revision模态框 savePartRevisionModal () { this.revisionData = { diff --git a/src/views/modules/project/projectInfo/com_project_info_part.vue b/src/views/modules/project/projectInfo/com_project_info_part.vue index 81baca3..6b09477 100644 --- a/src/views/modules/project/projectInfo/com_project_info_part.vue +++ b/src/views/modules/project/projectInfo/com_project_info_part.vue @@ -1028,6 +1028,7 @@ import { deleteProjectPart, // 删除项目物料 addProjectPart2, // 新增项目物料 queryPartUnitCostList, // 查询物料的 unitCost 列表 + getInventoryPartCost, // 查询物料的 estimatedMaterialCost getItemListByCodeNo, // 查询模板中的属性 getItemExclusionAlreadyExists, // 查属性模板,不包括已存在的 getPartCharacteristicList, // 获取维护的物料属性 @@ -3112,7 +3113,10 @@ import CodeGeneration from "../../code/generation.vue"; // 刷新页签的table数据 refreshInventoryPartTable () { if (this.inventoryPartTable === 'Costs') { - this.queryPartUnitCostList() + if (this.modalData.flag === '2') { + this.queryPartUnitCostList() + this.queryInventoryPartCost() + } } if (this.inventoryPartTable === 'Revisions') { this.queryPartRevisionList() @@ -3151,6 +3155,20 @@ import CodeGeneration from "../../code/generation.vue"; }) }, + // 查询物料的 estimatedMaterialCost(仅编辑模式) + queryInventoryPartCost () { + let tempData = { + site: this.modalData.site, + partNo: this.modalData.partNo, + userName: this.$store.state.user.name, + } + getInventoryPartCost(tempData).then(({data}) => { + if (data && data.code === 0 && data.rows && data.rows.estimatedMaterialCost != null) { + this.modalData.estimatedMaterialCost = data.rows.estimatedMaterialCost + } + }) + }, + // 新增revision模态框 savePartRevisionModal () { this.revisionData = { diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue index fe4bfb9..db315c6 100644 --- a/src/views/modules/quote/index.vue +++ b/src/views/modules/quote/index.vue @@ -1793,8 +1793,8 @@ export default { - - 项目年销售额≥10M + +