|
|
|
@ -904,6 +904,7 @@ import { |
|
|
|
queryManufStructCostDistribtionTable, // 刷新项目成本分配 |
|
|
|
queryMultiLevelStructureTable, // 刷新多级别结构 |
|
|
|
queryPartListBom, // 查出可创建BOM的物料 |
|
|
|
queryPartListAll, // 查询包含Purchase(Raw)的物料 |
|
|
|
} from '@/api/part/bomManagement.js' |
|
|
|
import ChooseList from '@/views/modules/common/Chooselist' |
|
|
|
|
|
|
|
@ -1410,6 +1411,7 @@ export default { |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partDesc', |
|
|
|
@ -1420,6 +1422,7 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 300 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'familyName', |
|
|
|
@ -1430,26 +1433,29 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'printUnit', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '计量单位', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'spec', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '规格型号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partType', |
|
|
|
@ -1460,6 +1466,7 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 150 |
|
|
|
} |
|
|
|
], |
|
|
|
componentPartColumnList: [ |
|
|
|
@ -1472,6 +1479,7 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partDesc', |
|
|
|
@ -1482,6 +1490,7 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 300 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'familyName', |
|
|
|
@ -1492,26 +1501,29 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'printUnit', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '计量单位', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'spec', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '规格型号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partType', |
|
|
|
@ -1522,6 +1534,7 @@ export default { |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 150 |
|
|
|
} |
|
|
|
], |
|
|
|
columnSubDetailList: [ |
|
|
|
@ -3433,7 +3446,7 @@ export default { |
|
|
|
this.componentPartData.page = this.pageIndex3 |
|
|
|
this.componentPartData.status = 'Y' |
|
|
|
// 查询所有物料 |
|
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
|
queryPartListAll(this.componentPartData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.componentPartList = data.page.list |
|
|
|
this.pageIndex3 = data.page.currPage |
|
|
|
@ -3514,9 +3527,9 @@ export default { |
|
|
|
this.componentPartData.limit = this.pageSize3 |
|
|
|
this.componentPartData.page = this.pageIndex3 |
|
|
|
this.componentPartData.partNo = this.componentData.componentPart |
|
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
|
queryPartListAll(this.componentPartData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length === 1) { |
|
|
|
if (data.page.list.length === 1) { |
|
|
|
this.componentData.componentPartDesc = data.page.list[0].partDesc |
|
|
|
this.componentData.printUnit = data.page.list[0].printUnit |
|
|
|
this.componentData.printUnitName = data.page.list[0].printUnitName |
|
|
|
@ -3543,7 +3556,7 @@ export default { |
|
|
|
if (data.page.list.length === 1) { |
|
|
|
this.copyBomData.partDesc = data.page.list[0].partDesc |
|
|
|
} else { |
|
|
|
this.$message.warning('该物料不存在!') |
|
|
|
this.$message.warning('该物料编码不存在或制造类型不合规!') |
|
|
|
this.copyBomData.partDesc = '' |
|
|
|
} |
|
|
|
} |
|
|
|
@ -3559,7 +3572,7 @@ export default { |
|
|
|
if (data.page.list.length === 1) { |
|
|
|
this.copyAlternativeData.partDesc = data.page.list[0].partDesc |
|
|
|
} else { |
|
|
|
this.$message.warning('该物料不存在!') |
|
|
|
this.$message.warning('该物料编码不存在或制造类型不合规!') |
|
|
|
this.copyAlternativeData.partDesc = '' |
|
|
|
} |
|
|
|
} |
|
|
|
|