|
@@ -11,7 +11,6 @@
|
|
|
|
|
|
<a-form-item v-show="false" >
|
|
|
<a-input v-decorator="['id']" type="hidden"/>
|
|
|
- <a-input v-decorator="['category']" type="hidden"/>
|
|
|
</a-form-item>
|
|
|
|
|
|
<row-list :col="1">
|
|
@@ -31,6 +30,80 @@
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="维修专业"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol2"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol2"
|
|
|
+ >
|
|
|
+ <a-tree-select
|
|
|
+ tree-checkable
|
|
|
+ :show-checked-strategy="SHOW_PARENT"
|
|
|
+ v-decorator="['repairProfessor', { rules: [{required: true, message: '检修专业不能为空'}]}]"
|
|
|
+ placeholder="请选择">
|
|
|
+ <a-tree-select-node
|
|
|
+ v-for="(label,value) in professorMap"
|
|
|
+ :key="value"
|
|
|
+ :title="label"
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
+ </a-tree-select-node>
|
|
|
+ </a-tree-select>
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="车间具体位置"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol2"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol2"
|
|
|
+ >
|
|
|
+ <a-input
|
|
|
+ placeholder="比如:甲七车间北侧"
|
|
|
+ v-decorator="['sbCph']" />
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="工单类别"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol2"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol2"
|
|
|
+ >
|
|
|
+ <a-select @change="changePlanFlag" v-decorator="['category', {initialValue: 2, rules: [{required: true, message: '工单类别不能为空'}]}]" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="(label,value) in categoryMap"
|
|
|
+ :key="value"
|
|
|
+ :label="label"
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="维修部门"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol2"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol2"
|
|
|
+ >
|
|
|
+ <a-select v-decorator="['repairDeptId', {rules: [{required: true, message: '维修部门不能为空'}]}]" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="(label,value) in repairDeptMap"
|
|
|
+ :key="value"
|
|
|
+ :label="label"
|
|
|
+ :value="value">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="委托内容描述"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol2"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol2"
|
|
|
+ >
|
|
|
+ <a-textarea
|
|
|
+ :rows="4"
|
|
|
+ v-decorator="['content', {rules: [{required: true, message: '委托内容描述不能为空'}]}]"/>
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
<row-item>
|
|
|
<a-form-item
|
|
|
label="备注"
|
|
@@ -69,6 +142,9 @@ export default {
|
|
|
needStopMap: {},
|
|
|
descripitionMap: {},
|
|
|
statusMap: {},
|
|
|
+ repairDeptMap: {},
|
|
|
+ professorMap: {},
|
|
|
+ categoryMap: {},
|
|
|
model: null,
|
|
|
userList: []
|
|
|
}
|
|
@@ -83,6 +159,9 @@ export default {
|
|
|
this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_LEVEL)
|
|
|
this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
|
|
|
this.needStopMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
|
|
|
+ this.repairDeptMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_DEPT_CATEGORY)
|
|
|
+ this.professorMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_PROFESSOR)
|
|
|
+ this.categoryMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_CATEGORY)
|
|
|
},
|
|
|
methods: {
|
|
|
base (record) {
|
|
@@ -95,7 +174,11 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
setFieldsValue(Object.assign(pick(record, [
|
|
|
'id',
|
|
|
- 'category'
|
|
|
+ 'category',
|
|
|
+ 'sbCph',
|
|
|
+ 'repairProfessor',
|
|
|
+ 'repairDeptId',
|
|
|
+ 'content'
|
|
|
])))
|
|
|
})
|
|
|
},
|