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) { // 更新成功,通知父组件刷新主信息