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