| | |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import {mapGetters} from "@/utils/store-compat"; |
| | | import draftSave from '@/mixins/draftSave' |
| | | export default { |
| | | name: "equipment-check", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | mixins: [draftSave], |
| | | data() { |
| | | // 这里存放数据 |
| | | return { |
| | |
| | | this.currentStep = 2 |
| | | } |
| | | this.reviewUserId = this.form.reviewUserId |
| | | if (this.currentStep === 0) { |
| | | this.draftRestore('equipmentCheck', 'form', this.form.planDetailsId, 'dialogVisible') |
| | | this.recordContrastDetailsList = this.form.recordContrastDetailsList || [] |
| | | } |
| | | } |
| | | }).catch(error => { |
| | | console.error(error) |
| | |
| | | addExamineRecordContrast(this.form).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('新增成功') |
| | | this.draftClear('equipmentCheck') |
| | | this.resetForm() |
| | | } |
| | | this.submitFormLoading = false |
| | |
| | | reviewExamineRecordContrast(params).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('审核成功') |
| | | this.draftClear('equipmentCheck') |
| | | this.resetForm() |
| | | } |
| | | this.submitFormLoading = false |
| | |
| | | }) |
| | | }, |
| | | resetForm() { |
| | | this.draftStop('equipmentCheck') |
| | | this.dialogVisible = false |
| | | this.$emit('closeDialog') |
| | | }, |