Browse Source

2025/8/1

master
Aoi_Tori 5 months ago
parent
commit
da06b871a7
  1. 35
      src/views/modules/proofing/requestForProofing.vue

35
src/views/modules/proofing/requestForProofing.vue

@ -886,6 +886,7 @@ import CustomerInfo from "../quotation/sellForQuotation/customerInfo.vue";
import FilterSearch from "../../common/filterSearch.vue";
import {testInformationSearchAny} from "../../../api/test/testInformation";
import PriceCheckProperties from "../quotation/priceCheckProperties.vue";
import {partInformationSearch, queryPartUnitCostList} from "../../../api/part/partInformation";
export default {
components: {
@ -3637,7 +3638,39 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).then(async () => {
if (!this.modalData.proofingAmount||this.modalData.proofingAmount===0){
if (row.finalPartNo){
let params = {
configurationId: '*',
userName: this.$store.state.user.name,
partNo: row.finalPartNo,
site: this.$store.state.user.site
}
const {data} = await queryPartUnitCostList(params);
if (data && data.code === 0) {
let unitPrice = +data.rows[0].inventoryValue
row.proofingAmount = unitPrice * this.modalData.proofingNumber
} else {
this.$message.error('查询单价失败')
return
}
} else {
let params = {
site: this.$store.state.user.site,
plmPartNo: row.testPartNo,
limit: 5,
page: 1,
}
const {data} = await partInformationSearch(params);
if (data && data.code === 0){
row.proofingAmount = data.page.list[0].estimatedMaterialCost * this.modalData.proofingNumber
} else {
this.$message.error('查询单价失败')
return
}
}
}
let params = JSON.parse(JSON.stringify(row))
params.proofingResultStatus = status;
params.proofingStatus = '下达';

Loading…
Cancel
Save