Browse Source

类型限制

dev
0.0 2 years ago
parent
commit
8ac746aed2
  1. 22
      src/views/burst/form/purchase/ProcessIndustrialDeliveryForm.vue
  2. 8
      src/views/burst/form/purchase/ProcessIndustrialRestoreForm.vue
  3. 8
      src/views/burst/form/purchase/ProcessIndustrialScrapsForm.vue
  4. 5
      src/views/burst/form/purchase/ProcessIndustrialStorageForm.vue

22
src/views/burst/form/purchase/ProcessIndustrialDeliveryForm.vue

@ -19,21 +19,26 @@
<j-select-depart v-decorator="['departId']" multi disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-item label="流程发起时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-date placeholder="请选择流程发起时间" v-decorator="['createTime']" :trigger-change="true" :show-time="true"
date-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" disabled/>
</a-form-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type">
<!-- <a-input v-model="model.type" placeholder="请输入物资类型"></a-input>-->
<!-- <a-input v-model="model.type" placeholder="请输入物资类型" ></a-input>-->
<j-dict-select-tag type="list" v-decorator="['type']"
<j-dict-select-tag type="list" v-decorator="['type',validatorRules.materialType]"
dictCode="explosive_type" :trigger-change="true"
placeholder="请选择物资类型" @change="elect" />
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="批次" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="batch">
<a-input v-decorator="['batch']" placeholder="请输入批次" ></a-input>
</a-form-model-item>
</a-col>
<!-- <a-col :xs="24" :sm="8">-->
<!-- <a-form-model-item label="批次" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="batch">-->
<!-- <a-input v-decorator="['batch',validatorRules.materialType]" placeholder="请输入批次" ></a-input>-->
<!-- </a-form-model-item>-->
<!-- </a-col>-->
<a-col :xs="24" :sm="8">
<a-form-model-item label="文件" :labelCol="labelCol3" :wrapperCol="wrapperCol3" prop="fileId">
@ -146,6 +151,9 @@ import pick from 'lodash.pick'
departId:null,
},
validatorRules: {
materialType: { rules:[
{ required: true, message: '请选择物资类型!'},
]},
},
//
addDefaultRowNum: 1,

8
src/views/burst/form/purchase/ProcessIndustrialRestoreForm.vue

@ -23,7 +23,7 @@
<a-col :span="8" >
<a-form-model-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type">
<j-dict-select-tag type="list" v-decorator="['type']"
<j-dict-select-tag type="list" v-decorator="['type',validatorRules.materialType]"
dictCode="explosive_type" :trigger-change="true"
placeholder="请选择物资类型" @change="elect" />
</a-form-model-item>
@ -146,9 +146,9 @@ import { httpAction } from '@api/manage'
departId: [
{ required: true, message: '请输入发起部门!'},
],
type: [
{ required: true, message: '请输入类型!'},
],
materialType: { rules:[
{ required: true, message: '请输入物资类型!'},
]},
},
refKeys: ['processIndustrialRestoreMaterial', ],
tableKeys:['processIndustrialRestoreMaterial', ],

8
src/views/burst/form/purchase/ProcessIndustrialScrapsForm.vue

@ -24,7 +24,7 @@
<a-form-model-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type">
<!-- <a-input v-model="model.type" placeholder="请输入物资类型"></a-input>-->
<!-- <a-input v-model="model.type" placeholder="请输入物资类型" ></a-input>-->
<j-dict-select-tag type="list" v-decorator="['type']"
<j-dict-select-tag type="list" v-decorator="['type',validatorRules.materialType]"
dictCode="explosive_type" :trigger-change="true"
placeholder="请选择物资类型" @change="elect" />
</a-form-model-item>
@ -143,9 +143,9 @@ export default {
departId: [
{ required: true, message: '请输入流程发起部门!' }
],
type: [
{ required: true, message: '请输入类型!' }
]
materialType: { rules:[
{ required: true, message: '请输入物资类型!'},
]},
},
//
addDefaultRowNum: 1,

5
src/views/burst/form/purchase/ProcessIndustrialStorageForm.vue

@ -39,7 +39,7 @@
<a-form-model-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type">
<!-- <a-input v-model="model.type" placeholder="请输入物资类型"></a-input>-->
<!-- <a-input v-model="model.type" placeholder="请输入物资类型" ></a-input>-->
<j-dict-select-tag type="list" v-decorator="['type']"
<j-dict-select-tag type="list" v-decorator="['type',validatorRules.materialType]"
dictCode="explosive_type" :trigger-change="true" disabled
placeholder="请选择物资类型" @change="elect" />
</a-form-model-item>
@ -147,6 +147,9 @@ export default {
departId: null
},
validatorRules: {
materialType: { rules:[
{ required: true, message: '请输入物资类型!'},
]},
money: [
{ required: true, message: '请输入金额!' }
],

Loading…
Cancel
Save