Browse Source

修改数据回显数据

dev
caoyizhong 2 years ago
parent
commit
69886cdb44
  1. 2
      src/components/jeecg/HDelivery.vue
  2. 38
      src/views/activiti/form/ProcessSmaterialsScrapForm.vue

2
src/components/jeecg/HDelivery.vue

@ -150,7 +150,7 @@
let data={}
data.id=res.result.id;
dataList.push(data)
this.$emit('mounted', dataList)
this.$emit('PlanIds', dataList)
}
if (res.code === 510) {
this.$message.warning(res.message)

38
src/views/activiti/form/ProcessSmaterialsScrapForm.vue

@ -38,7 +38,7 @@
</a-col>
<a-col :span="8">
<a-form-item label="关联出库流程" :labelCol="labelCol" :wrapperCol="wrapperCol">
<h-delivery v-decorator="['processOutflowId']" code="demo" field="name" orgFields="name" @mounted="getPlanList" @callType="getcallType" destFields="name"/>
<h-delivery v-decorator="['processOutflowId']" code="demo" field="name" orgFields="name" @mounted="getPlanList" @callType="getcallType" @PlanIds="getPlanIds" destFields="name"/>
</a-form-item>
</a-col>
<a-col :span="8">
@ -432,8 +432,42 @@
}
})
},
getPlanIds(val){
let ids=[]
if (!!val){
for (let i = 0; i < val.length; i++) {
ids.push(val[i].id);
}
}
this.processUdgetPlanIds=ids.join(",");
this.processSmaterialsScrapListTable.dataSource.forEach(item =>{
let par = { id : item.materialGroup,}
let param = {id : item.equipment,}
getAction(this.url.queryByIdDescription,par).then( res=>{
// console.log(res);
if(res.success){
this.processSmaterialsScrapListTable.columns[0].options= [{
title : res.result.materialClassify,
value : item.materialGroup,
disabled : true }];
}
})
getAction(this.url.queryByIdMerchandiseNews,param).then( res=>{
console.log(res);
if(res.success){
this.processSmaterialsScrapListTable.columns[1].options= [{
title : res.result.materialsNumber,
value : item.equipment,
disabled : true }];
}
})
})
},
async getPlanList (val){
// console.log("getPlanList",val)
console.log("getPlanList",val)
let ids=[]
if (!!val){
for (let i = 0; i < val.length; i++) {

Loading…
Cancel
Save