Browse Source

2026-03-19

1、获取物料成本时,同时抓取Estimated Material Cost成本字段,反刷到PLM
2、取消勾选框,添加数字录入框,需要传输到OA
  展示到项目名称后面
master
fengyuan_yang 4 weeks ago
parent
commit
baa73f3be3
  1. 2
      src/api/part/partInformation.js
  2. 20
      src/views/modules/part/partInformation.vue
  3. 20
      src/views/modules/project/projectInfo/com_project_info_part.vue
  4. 4
      src/views/modules/quote/index.vue

2
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)

20
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 = {

20
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 = {

4
src/views/modules/quote/index.vue

@ -1793,8 +1793,8 @@ export default {
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label=" " prop="purchase" :show-message="false">
<el-checkbox v-model="saveQuote.annualSales" :disabled="detailFlag" true-label="Y" false-label="N">项目年销售额10M</el-checkbox>
<el-form-item label="项目年销售额CNY(K)" prop="annualSales" :show-message="false">
<el-input-number v-model="saveQuote.annualSales" :disabled="detailFlag" :precision="6" :min="0" :controls="false" style="width:100%" placeholder="请输入年销售额"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="24">

Loading…
Cancel
Save