update 稽查流程完善
This commit is contained in:
+5
-16
@@ -59,7 +59,7 @@ import { getFileInfo } from '@/api/api'
|
||||
import { previewPdf } from '@/utils/previewPdf'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { getFileByInspectId, getInspectProcessProjectId } from '@api/workCenter'
|
||||
import { getFileByInspectId } from '@api/workCenter'
|
||||
import moment from 'moment/moment'
|
||||
|
||||
const Base64 = require('js-base64').Base64
|
||||
@@ -178,14 +178,8 @@ export default {
|
||||
if (!param.createTime) {
|
||||
param.createTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
}
|
||||
this.confirmLoading = true
|
||||
getInspectProcessProjectId().then(res => {
|
||||
param.id = res + ''
|
||||
this.$emit('ok', param, this.index)
|
||||
this.form.resetFields()
|
||||
}).finally(() => {
|
||||
this.confirmLoading = false
|
||||
})
|
||||
this.$emit('ok', param, this.index)
|
||||
this.form.resetFields()
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -196,13 +190,8 @@ export default {
|
||||
if (!param.createTime) {
|
||||
param.createTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
}
|
||||
getInspectProcessProjectId().then(res => {
|
||||
param.id = res + ''
|
||||
this.$emit('ok', param, this.index)
|
||||
this.close()
|
||||
}).finally(() => {
|
||||
this.confirmLoading = false
|
||||
})
|
||||
this.$emit('ok', param, this.index)
|
||||
this.close()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user