update 稽查流程完善

This commit is contained in:
danshihao
2024-01-07 13:31:07 +08:00
parent 9dd5474d8d
commit 7d81eea198
3 changed files with 37 additions and 22 deletions
@@ -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()
}
})
}