|
|
|
@ -130,7 +130,24 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
dataSource: [], |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
|
title: '器材编号', |
|
|
|
|
title: '物料组', |
|
|
|
|
key: 'materialGroup', |
|
|
|
|
// type: FormTypes.slot, // <-------------改为 slot 格式 |
|
|
|
|
// slotName: 'actions', // <-------------slot 的名称,对应 v-slot 冒号后面和等号前面的内容 |
|
|
|
|
type: FormTypes.sel_search, |
|
|
|
|
dictCode: '', |
|
|
|
|
width: '200px', |
|
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
options: [], |
|
|
|
|
props:{title: 'show title'} |
|
|
|
|
// scopedSlots: { customRender: 'edit' },//引入的插槽 |
|
|
|
|
// customRender:function (t,r,index) { |
|
|
|
|
// console.log(t,r); |
|
|
|
|
// |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '物资编号', |
|
|
|
|
key: 'equipment', |
|
|
|
|
type: FormTypes.sel_search, |
|
|
|
|
dictCode:"", |
|
|
|
@ -141,7 +158,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
{ |
|
|
|
|
title: 'WBS', |
|
|
|
|
key: 'wbs', |
|
|
|
|
type: FormTypes.sel_search, |
|
|
|
|
type: FormTypes.input, |
|
|
|
|
dictCode:"", |
|
|
|
|
width:"200px", |
|
|
|
|
placeholder: '请输入${title}', |
|
|
|
@ -150,7 +167,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
{ |
|
|
|
|
title: '物料名称及规格型号', |
|
|
|
|
key: 'materialName', |
|
|
|
|
type: FormTypes.sel_search, |
|
|
|
|
type: FormTypes.input, |
|
|
|
|
dictCode:"", |
|
|
|
|
width:"200px", |
|
|
|
|
placeholder: '请输入${title}', |
|
|
|
@ -159,7 +176,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
{ |
|
|
|
|
title: '单位', |
|
|
|
|
key: 'materialUnit', |
|
|
|
|
type: FormTypes.select, |
|
|
|
|
type: FormTypes.input, |
|
|
|
|
dictCode:"", |
|
|
|
|
width:"200px", |
|
|
|
|
placeholder: '请输入${title}', |
|
|
|
@ -184,7 +201,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
{ |
|
|
|
|
title: '供货商', |
|
|
|
|
key: 'supplier', |
|
|
|
|
type: FormTypes.sel_search, |
|
|
|
|
type: FormTypes.input, |
|
|
|
|
dictCode:"", |
|
|
|
|
width:"200px", |
|
|
|
|
placeholder: '请输入${title}', |
|
|
|
@ -237,6 +254,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
add: "/hy/processMaterialsDelivery/add", |
|
|
|
|
edit: "/hy/processMaterialsDelivery/edit", |
|
|
|
|
queryById: "/hy/processMaterialsDelivery/queryById", |
|
|
|
|
descriptionRake: "/suppliesstronger/processSuppliesStronger/descriptionName", //查询物料组 |
|
|
|
|
processMaterialsDeliveryList: { |
|
|
|
|
list: '/hy/processMaterialsDelivery/queryProcessMaterialsDeliveryListByMainId' |
|
|
|
|
}, |
|
|
|
@ -310,8 +328,29 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
|
|
|
|
|
console.log(userInfo) |
|
|
|
|
// userInfo.company=company; |
|
|
|
|
this.popupCallback(company,userInfo); |
|
|
|
|
this.fetchData(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
fetchData(){ //查询物料组 |
|
|
|
|
//查询大品类数据 |
|
|
|
|
let par = { |
|
|
|
|
delFlag: 0, |
|
|
|
|
} |
|
|
|
|
getAction(this.url.descriptionRake,par).then((res)=>{ |
|
|
|
|
if(res.success){ |
|
|
|
|
if(this.processMaterialsDeliveryListTable.columns[0].options.length > 0){ |
|
|
|
|
this.processMaterialsDeliveryListTable.columns[0].options = []; |
|
|
|
|
} |
|
|
|
|
res.result.forEach( item => { |
|
|
|
|
this.processMaterialsDeliveryListTable.columns[0].options.push({ |
|
|
|
|
title : item.descriptionName, |
|
|
|
|
value : item.descriptionId, |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/*回显数据*/ |
|
|
|
|
init(){ |
|
|
|
|
this.btndisabled = true; |
|
|
|
|