Browse Source

修改页面出库流程显示逻辑

dev
long 2 years ago
parent
commit
178a342345
  1. 26
      src/views/activiti/form/ProcessMaterialWarehousingForm.vue
  2. 12
      src/views/activiti/form/ProcessMaterialsDelivery.vue
  3. 1
      src/views/user/Login.vue

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

@ -52,7 +52,7 @@
placeholder="物资类型" disabled />
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="8" v-show="this.isTargetLibrary">
<a-form-item label="入库目标库" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-item v-decorator="['targetLibrary',validatorRules.targetLibrary]" />
<!-- <a-radio v-for="item in puwwOptions" :key="item.id" :label="item.invisibleCode" :value="item.id"></a-radio>-->
@ -166,6 +166,7 @@ import JSelectItem from '@/components/jeecgbiz/JSelectItem'
selectedMainId:'',
processUdgetPlanId:'',
processUdgetPlanIds:'',
isTargetLibrary: false,
refKeys: ['processMaterialWarehousingList', ],
tableKeys:['processMaterialWarehousingList', ],
activeKey: 'processMaterialWarehousingList',
@ -310,7 +311,7 @@ import JSelectItem from '@/components/jeecgbiz/JSelectItem'
validatorRules: {
// 'blur'
processUdgetPlanId: {rules: [{ required: true, message: '关联预算流程不能为空!' }]},
targetLibrary: {rules:[{ required: true, message: '入库目标库不能为空!' }]},
targetLibrary: {rules:[{ required: this.isTargetLibrary, message: '入库目标库不能为空!' }]},
warehousingBatch: {rules:[ { required: true, message: '入库总批次不能为空!'}]}
},
}
@ -470,6 +471,12 @@ import JSelectItem from '@/components/jeecgbiz/JSelectItem'
}
}
formData.describes=this.describes;
if (formData.materialType==1){
if (!formData.targetLibrary){
this.$message.error("请选择入库目标库");
return;
}
}
console.log('格式化后的数据', formData)
this.form.validateFields((err, values) => {
if (!err) {
@ -516,6 +523,12 @@ import JSelectItem from '@/components/jeecgbiz/JSelectItem'
throw this.throwNotFunction('classifyIntoFormData')
}
let formData = this.classifyIntoFormData(allValues)
if (formData.materialType==1){
if (!formData.targetLibrary){
this.$message.error("请选择入库目标库");
return;
}
}
formData.fileId = getStringArry(formData.fileId)
for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) {
if (i==0){
@ -662,7 +675,14 @@ import JSelectItem from '@/components/jeecgbiz/JSelectItem'
this.$message.error(msg)
},
async getPlanList (val) {
console.log(val,"传值")
if (val.length>0){
if (val[0].materialType==1){
this.isTargetLibrary=true;
}else {
this.isTargetLibrary=false;
}
}
let ids=[]
if (!!val){
for (let i = 0; i < val.length; i++) {

12
src/views/activiti/form/ProcessMaterialsDelivery.vue

@ -84,6 +84,18 @@
required: false
}
},
created() {
let userInfo = sessionStorage.getItem('USER_INFORMATION')
let user= JSON.parse(userInfo)
//
if (user.orgType==2){
this.noDisabled=false
}
//
if (user.orgType==3){
this.onlineDisabled=false
}
},
methods: {
afterSub(formData) {
this.$emit('afterSubmit', formData)

1
src/views/user/Login.vue

@ -223,7 +223,6 @@
captcha: that.inputCodeContent,
checkKey: that.currdatetime
}
console.log("登录参数",loginParams)
that.Login(loginParams).then((res) => {
this.$refs.loginSelect.show(res.result)
}).catch((err) => {

Loading…
Cancel
Save