|
@@ -38,7 +38,7 @@
|
|
|
<a-input v-decorator="['parentSbNo']" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
-<!-- <row-item>
|
|
|
+ <!-- <row-item>
|
|
|
<a-form-item
|
|
|
label="设备部位"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
@@ -89,14 +89,18 @@
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-select @change="changePlanFlag" v-decorator="['repairType', {rules: [{required: true, message: '工作类型不能为空'}]}]" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
+ <a-tree-select
|
|
|
+ tree-checkable
|
|
|
+ :show-checked-strategy="SHOW_PARENT"
|
|
|
+ v-decorator="['repairType', {rules: [{required: true, message: '工作类型不能为空'}]}]"
|
|
|
+ placeholder="请选择">
|
|
|
+ <a-tree-select-node
|
|
|
v-for="(label,value) in repairTypeMap"
|
|
|
:key="value"
|
|
|
- :label="label"
|
|
|
+ :title="label"
|
|
|
:value="parseInt(value)">{{ label }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ </a-tree-select-node>
|
|
|
+ </a-tree-select>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -105,7 +109,8 @@
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-input placeholder='比如:甲七车间北侧'
|
|
|
+ <a-input
|
|
|
+ placeholder="比如:甲七车间北侧"
|
|
|
v-decorator="['sbCph']" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
@@ -308,11 +313,13 @@ import { uploadUrl } from '@/api/upms/file'
|
|
|
import Vue from 'vue'
|
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|
|
import { fetchErrorTypeTree } from '@/api/repair/errortype'
|
|
|
-
|
|
|
+import { TreeSelect } from 'ant-design-vue'
|
|
|
+const SHOW_PARENT = TreeSelect.SHOW_PARENT
|
|
|
export default {
|
|
|
name: 'BaseRepairApplicationForm',
|
|
|
data () {
|
|
|
return {
|
|
|
+ SHOW_PARENT,
|
|
|
confirmLoading: false,
|
|
|
modalTitle: null,
|
|
|
professorMap: {},
|
|
@@ -463,6 +470,7 @@ export default {
|
|
|
values.limitDate = BaseTool.Date.formatter(values.limitDate, BaseTool.Date.PICKER_NORM_DATE_PATTERN)
|
|
|
// 上传文件
|
|
|
values.repairFileList = this.repairFileList
|
|
|
+ values.repairType = values.repairType.join(',')
|
|
|
values.applicationFileList = this.applicationFileList
|
|
|
values.checkFileList = this.checkFileList
|
|
|
if (values.partId === undefined) {
|