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