|
|
@ -1028,6 +1028,7 @@ import { |
|
|
deleteProjectPart, // 删除项目物料 |
|
|
deleteProjectPart, // 删除项目物料 |
|
|
addProjectPart2, // 新增项目物料 |
|
|
addProjectPart2, // 新增项目物料 |
|
|
queryPartUnitCostList, // 查询物料的 unitCost 列表 |
|
|
queryPartUnitCostList, // 查询物料的 unitCost 列表 |
|
|
|
|
|
getInventoryPartCost, // 查询物料的 estimatedMaterialCost |
|
|
getItemListByCodeNo, // 查询模板中的属性 |
|
|
getItemListByCodeNo, // 查询模板中的属性 |
|
|
getItemExclusionAlreadyExists, // 查属性模板,不包括已存在的 |
|
|
getItemExclusionAlreadyExists, // 查属性模板,不包括已存在的 |
|
|
getPartCharacteristicList, // 获取维护的物料属性 |
|
|
getPartCharacteristicList, // 获取维护的物料属性 |
|
|
@ -3112,7 +3113,10 @@ import CodeGeneration from "../../code/generation.vue"; |
|
|
// 刷新页签的table数据 |
|
|
// 刷新页签的table数据 |
|
|
refreshInventoryPartTable () { |
|
|
refreshInventoryPartTable () { |
|
|
if (this.inventoryPartTable === 'Costs') { |
|
|
if (this.inventoryPartTable === 'Costs') { |
|
|
|
|
|
if (this.modalData.flag === '2') { |
|
|
this.queryPartUnitCostList() |
|
|
this.queryPartUnitCostList() |
|
|
|
|
|
this.queryInventoryPartCost() |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if (this.inventoryPartTable === 'Revisions') { |
|
|
if (this.inventoryPartTable === 'Revisions') { |
|
|
this.queryPartRevisionList() |
|
|
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模态框 |
|
|
// 新增revision模态框 |
|
|
savePartRevisionModal () { |
|
|
savePartRevisionModal () { |
|
|
this.revisionData = { |
|
|
this.revisionData = { |
|
|
|