|
@@ -97,6 +97,8 @@ import { queryUser } from '@/api/upms/user'
|
|
|
import { fetchErrorTypeTree } from '@/api/repair/errortype'
|
|
|
import SparePartUsedSelectModal from '@/views/sqarepartmanage/sparepartused/modules/SparePartUsedSelectModal'
|
|
|
import { uploadUrl } from '@/api/upms/file'
|
|
|
+import Vue from 'vue'
|
|
|
+import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|
|
|
|
|
export default {
|
|
|
name: 'BaseRepairApplicationForm',
|
|
@@ -111,9 +113,13 @@ export default {
|
|
|
treeData: [],
|
|
|
descripitionMap: {},
|
|
|
sourceMap: {},
|
|
|
+ outTypeMap: {},
|
|
|
levelMap: {},
|
|
|
needStopMap: {},
|
|
|
statusMap: {},
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + Vue.ls.get(ACCESS_TOKEN)
|
|
|
+ },
|
|
|
uploadUrl: uploadUrl,
|
|
|
defaultRepairFileList: [],
|
|
|
repairFileList: [], // 维修图片,
|
|
@@ -132,6 +138,7 @@ export default {
|
|
|
this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
|
|
|
this.needStopMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.YES_NO)
|
|
|
this.descripitionMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIRE_ACTION)
|
|
|
+ this.outTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_OUT_TYPE)
|
|
|
},
|
|
|
methods: {
|
|
|
base (record) {
|
|
@@ -143,7 +150,7 @@ export default {
|
|
|
this.modalTitle = '添加'
|
|
|
return
|
|
|
}
|
|
|
- this.modalTitle = '编辑'
|
|
|
+ this.modalTitle = '委外完成'
|
|
|
const { form: { setFieldsValue } } = this
|
|
|
// 日期处理
|
|
|
this.$nextTick(() => {
|
|
@@ -160,7 +167,7 @@ export default {
|
|
|
this.userList = res.data
|
|
|
})
|
|
|
},
|
|
|
- handleApplicationFileChange (info) {
|
|
|
+ handleRepairFileChange (info) {
|
|
|
this.defaultRepairFileList = info.fileList
|
|
|
this.repairFileList = this.setFileList(info, 12)
|
|
|
},
|
|
@@ -186,6 +193,7 @@ export default {
|
|
|
}
|
|
|
// 日期处理
|
|
|
values.repairFileList = this.repairFileList
|
|
|
+ console.log(values)
|
|
|
finish(values).then(() => {
|
|
|
this.handleCancel(values)
|
|
|
}).catch(() => {
|