From ce32975819dcc9be490324138ca2fca5f621505b Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 10 Mar 2026 12:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=86=E6=98=AF=E6=88=91=E8=BE=93=E5=85=A5?= =?UTF-8?q?=20IFS=E8=B4=A6=E5=8F=B7=E5=92=8C=E5=AF=86=E7=A0=81=20=20a=20a?= =?UTF-8?q?=20=E4=BE=9D=E6=97=A7=E5=8F=AF=E4=BB=A5=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=B5=8B=E8=AF=95=E7=94=B3=E8=AF=B7=E5=95=8A?= =?UTF-8?q?=E3=80=82=20=20IFS=E4=B8=AD=E6=A0=B9=E6=9C=AC=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=20a=20=E8=BF=99=E4=B8=AA=E8=B4=A6=E5=8F=B7=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=201=E3=80=81=E6=B5=8B=E8=AF=95=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=89=A9=E6=96=99=E6=88=90=E6=9C=AC=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E9=9C=80=E8=A6=81=E6=A0=A1=E9=AA=8CIFS?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/part/partInformation.js | 2 ++ src/views/modules/test/testSoBom/testTable.vue | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/part/partInformation.js b/src/api/part/partInformation.js index 40fbb4e..3732f1e 100644 --- a/src/api/part/partInformation.js +++ b/src/api/part/partInformation.js @@ -231,6 +231,8 @@ export const getPartRevisionEngChgLevel = data => createAPI(`/plm/partInformatio export const queryPartUnitCostList = data => createAPI(`/plm/partInformation/queryPartUnitCostList`,'post',data) +export const onlyQueryPartUnitCostList = data => createAPI(`/plm/partInformation/onlyQueryPartUnitCostList`,'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/test/testSoBom/testTable.vue b/src/views/modules/test/testSoBom/testTable.vue index cda76ad..65e0fb0 100644 --- a/src/views/modules/test/testSoBom/testTable.vue +++ b/src/views/modules/test/testSoBom/testTable.vue @@ -11,7 +11,7 @@ import {searchPart, searchPartList} from '@/api/part/partInformation.js'; import numberInput from "../../common/numberInput.vue"; import {searchAllUmInformationList} from "../../../../api/part/umInformation"; import {Decimal} from "decimal.js"; -import {queryPart, queryPartUnitCostList} from "../../../../api/part/partInformation"; +import {queryPart, onlyQueryPartUnitCostList} from "../../../../api/part/partInformation"; export default { name: "testTable", components:{ @@ -440,7 +440,7 @@ export default { userName: this.$store.state.user.name } this.queryLoading = true - queryPartUnitCostList(params).then(({data}) => { + onlyQueryPartUnitCostList(params).then(({data}) => { if (data && data.code === 0) { this.testSoBom.componentPartNo = row.partNo; this.testSoBom.partDesc = row.partDesc; @@ -682,12 +682,12 @@ export default { const totalAmount = this.dataList.reduce((sum, item) => { return sum + (Number(item.totalCost) || 0) }, 0) - + const params = { testNo: this.testNo, materialTotalAmount: totalAmount } - + updateMaterialTotalAmount(params).then(({data}) => { if (data && data.code === 0) { // 更新成功,通知父组件刷新主信息