|
@@ -83,13 +83,13 @@
|
|
|
v-decorator="['actualUser', { initialValue: userInfo.realName, rules: [{ required: true, message: '报修人不能为空' }] }]" />
|
|
v-decorator="['actualUser', { initialValue: userInfo.realName, rules: [{ required: true, message: '报修人不能为空' }] }]" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</row-item>
|
|
</row-item>
|
|
|
- <!-- <row-item>
|
|
|
|
|
|
|
+ <row-item>
|
|
|
<a-form-item
|
|
<a-form-item
|
|
|
- label="紧急等级"
|
|
|
|
|
|
|
+ label="紧急程度"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
>
|
|
|
- <a-select v-decorator="['level', {initialValue: 1, rules: [{required: true, message: '紧急等级不能为空'}]}]" placeholder="请选择">
|
|
|
|
|
|
|
+ <a-select v-decorator="['level', {initialValue: 1, rules: [{required: true, message: '紧急程度不能为空'}]}]" placeholder="请选择">
|
|
|
<a-select-option
|
|
<a-select-option
|
|
|
v-for="(label,value) in levelMap"
|
|
v-for="(label,value) in levelMap"
|
|
|
:key="value"
|
|
:key="value"
|
|
@@ -101,22 +101,25 @@
|
|
|
</row-item>
|
|
</row-item>
|
|
|
<row-item>
|
|
<row-item>
|
|
|
<a-form-item
|
|
<a-form-item
|
|
|
- label="异常类别"
|
|
|
|
|
|
|
+ label="故障类型"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
>
|
|
|
- <a-tree-select
|
|
|
|
|
|
|
+ <a-select
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
|
|
- :treeData="treeData"
|
|
|
|
|
- :treeNodeFilterProp="'title'"
|
|
|
|
|
- :showSearch="true"
|
|
|
|
|
v-decorator="['repairErrorTypeId']"
|
|
v-decorator="['repairErrorTypeId']"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
|
|
+ allowClear
|
|
|
>
|
|
>
|
|
|
- </a-tree-select>
|
|
|
|
|
|
|
+ <a-select-option
|
|
|
|
|
+ v-for="(label,value) in faultTypeMap"
|
|
|
|
|
+ :key="value"
|
|
|
|
|
+ :label="label"
|
|
|
|
|
+ :value="value">{{ label }}
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
- </row-item>-->
|
|
|
|
|
|
|
+ </row-item>
|
|
|
<row-item>
|
|
<row-item>
|
|
|
<a-form-item label="报修图片" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
<a-form-item label="报修图片" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
|
<a-upload :action="uploadUrl" :multiple="true" list-type="picture"
|
|
<a-upload :action="uploadUrl" :multiple="true" list-type="picture"
|
|
@@ -182,7 +185,6 @@ import { queryUser } from '@/api/upms/user'
|
|
|
import { uploadUrl } from '@/api/upms/file'
|
|
import { uploadUrl } from '@/api/upms/file'
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|
|
-import { fetchErrorTypeTree } from '@/api/repair/errortype'
|
|
|
|
|
import { getSbPositionTree } from '@/api/sb/position'
|
|
import { getSbPositionTree } from '@/api/sb/position'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -197,10 +199,10 @@ export default {
|
|
|
sourceMap: {},
|
|
sourceMap: {},
|
|
|
levelMap: {},
|
|
levelMap: {},
|
|
|
questionMap: {},
|
|
questionMap: {},
|
|
|
- treeData: [],
|
|
|
|
|
needStop: null,
|
|
needStop: null,
|
|
|
sbPositionData: [],
|
|
sbPositionData: [],
|
|
|
needStopMap: {},
|
|
needStopMap: {},
|
|
|
|
|
+ faultTypeMap: {},
|
|
|
category: 0,
|
|
category: 0,
|
|
|
categoryMap: {},
|
|
categoryMap: {},
|
|
|
statusMap: {},
|
|
statusMap: {},
|
|
@@ -229,6 +231,7 @@ export default {
|
|
|
this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_LEVEL)
|
|
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.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
|
|
|
this.questionMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_QUESTION)
|
|
this.questionMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_QUESTION)
|
|
|
|
|
+ this.faultTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_ERROR_TYPE)
|
|
|
this.needStopMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
|
|
this.needStopMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
|
|
|
this.categoryMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_CATEGORY)
|
|
this.categoryMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_CATEGORY)
|
|
|
this.getUsers()
|
|
this.getUsers()
|
|
@@ -236,9 +239,6 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
base(record) {
|
|
base(record) {
|
|
|
this.visible = true
|
|
this.visible = true
|
|
|
- fetchErrorTypeTree().then((res) => {
|
|
|
|
|
- this.treeData = res.data
|
|
|
|
|
- })
|
|
|
|
|
getSbPositionTree().then(res => {
|
|
getSbPositionTree().then(res => {
|
|
|
this.sbPositionData = res.data
|
|
this.sbPositionData = res.data
|
|
|
})
|
|
})
|
|
@@ -307,6 +307,7 @@ export default {
|
|
|
'category',
|
|
'category',
|
|
|
'partName',
|
|
'partName',
|
|
|
'remark',
|
|
'remark',
|
|
|
|
|
+ 'repairErrorTypeId',
|
|
|
])
|
|
])
|
|
|
)
|
|
)
|
|
|
)
|
|
)
|