Browse Source

修改入库添加时选择校验

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

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

@ -521,6 +521,19 @@
} else {//
formData.targetLibrary = null
}
if(formData.planType==1 && formData.materialType !=6){
if (!formData.ifDirect){
this.$message.error('请选择是否属于直达物资!')
return
}else {
if(formData.ifDirect==1){
if (!formData.ifInspection){
this.$message.error('请选择是否需要送检!')
return
}
}
}
}
console.log('格式化后的数据', formData)
this.form.validateFields((err, values) => {
if (!err) {

Loading…
Cancel
Save