| | |
| | | </el-row> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="resetForm">取 消</el-button> |
| | | <el-button v-if="currentStep === 0" :loading="submitFormLoading" type="primary" @click="submitCheck">确 |
| | | <el-button v-if="currentStep === 0 && checkChargerUserId == userId" :loading="submitFormLoading" type="primary" @click="submitCheck">确 |
| | | 定</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="submitFormLoading" @click="examine(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="submitFormLoading" type="primary" @click="examine(1)">通 |
| | | <el-button v-if="currentStep === 1 && userId == reviewUserId" :loading="submitFormLoading" @click="examine(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == reviewUserId" :loading="submitFormLoading" type="primary" @click="examine(1)">通 |
| | | 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | deviceScopeSearch, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { selectUserCondition } from "@/api/performance/class"; |
| | | import {mapGetters} from "vuex"; |
| | | export default { |
| | | name: "check-record", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | |
| | | equipOptions: [], |
| | | submitFormLoading: false, |
| | | userList: [], |
| | | reviewUserId: '', |
| | | checkChargerUserId: '', |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | | openDialog(row) { |
| | | this.dialogVisible = true |
| | | this.form.planDetailsId = row.planDetailsId |
| | | this.checkChargerUserId = row.checkChargerUserId |
| | | this.getEquipOptions() |
| | | this.getUserList() |
| | | this.searchInfo() |
| | |
| | | if (this.form.reviewStatus === 1) { |
| | | this.currentStep = 2 |
| | | } |
| | | this.reviewUserId = this.form.reviewUserId |
| | | } |
| | | }).catch(error => { |
| | | console.error(error) |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="resetForm">取 消</el-button> |
| | | <el-button v-if="currentStep === 0" :loading="submitFormLoading" type="primary" @click="submitCheck">确 |
| | | <el-button v-if="currentStep === 0 && userId == checkChargerUserId" :loading="submitFormLoading" type="primary" @click="submitCheck">确 |
| | | 定</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="submitFormLoading" @click="examine(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="submitFormLoading" type="primary" @click="examine(1)">通 |
| | | <el-button v-if="currentStep === 1 && userId == reviewUserId" :loading="submitFormLoading" @click="examine(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == reviewUserId" :loading="submitFormLoading" type="primary" @click="examine(1)">通 |
| | | 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | addExamineRecordContrast, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import {mapGetters} from "vuex"; |
| | | export default { |
| | | name: "equipment-check", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | |
| | | equipOptions: [], |
| | | recordContrastDetailsList: [], |
| | | userList: [], |
| | | checkChargerUserId: '', |
| | | reviewUserId: '' |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | | openDialog(row) { |
| | | this.dialogVisible = true |
| | | this.form.planDetailsId = row.planDetailsId |
| | | this.checkChargerUserId = row.checkChargerUserId |
| | | this.getEquipOptions() |
| | | this.getUserList() |
| | | this.searchInfo() |
| | |
| | | if (this.form.reviewStatus === 1) { |
| | | this.currentStep = 2 |
| | | } |
| | | this.reviewUserId = this.form.reviewUserId |
| | | } |
| | | }).catch(error => { |
| | | console.error(error) |