Browse Source

修改入库添加时选择的改变

dev
long 2 years ago
parent
commit
e27e473927
  1. 22
      src/views/activiti/form/ProcessMaterialWarehousingForm.vue

22
src/views/activiti/form/ProcessMaterialWarehousingForm.vue

@ -71,14 +71,14 @@
style="width: 100%"/>
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="8" v-show="isIfDirect">
<a-form-item label="是否属于直达物资" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag type="list" v-decorator="['ifDirect',validatorRules.ifDirect]"
:trigger-change="true" dictCode="if_status"
placeholder="请选择是否属于直达物资"/>
placeholder="请选择是否属于直达物资" @change="selectChang"/>
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="8" v-show="isIfInspection">
<a-form-item label="是否需要送检" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag type="list" v-decorator="['ifInspection',validatorRules.ifInspection]"
:trigger-change="true" dictCode="if_status"
@ -197,6 +197,8 @@
processUdgetPlanIds: '',
isTargetLibrary: false,
isGetOneAndLast:false,
isIfDirect:false,
isIfInspection: false,
refKeys: ['processMaterialWarehousingList'],
tableKeys: ['processMaterialWarehousingList'],
activeKey: 'processMaterialWarehousingList',
@ -728,8 +730,14 @@
validateError(msg) {
this.$message.error(msg)
},
selectChang(val){
if (val==1){
this.isIfInspection=true;
}else {
this.isIfInspection=false;
}
},
async getPlanList(val) {
console.log(val, '787878---------------')
if (val.length > 0) {
if (val[0].materialType == 1) {
this.isTargetLibrary = true
@ -753,6 +761,12 @@
// }
// })
let res = val[0]
if (res.planType==1){
this.isIfDirect=true
//isIfInspection
}else {
this.isIfDirect=false
}
let param = {}
param.planType = res.planType
this.data = param

Loading…
Cancel
Save