| | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeCarryOutDia">取 消</el-button> |
| | | <el-button v-if="currentStep === 0" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | <el-button v-if="currentStep === 1 && userId == ratifyUserId" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == ratifyUserId" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | getQualityMonitorRatify |
| | | } from "@/api/cnas/process/ensureResults/qualityMonitor"; |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: 'carryOutDialog', |
| | |
| | | personList: [], |
| | | editLoad: false, |
| | | isCarryOut: false, // 是否为实施 |
| | | ratifyUserId: '' |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | |
| | | // 有detailsRatifyId则说明提交过实施信息 |
| | | if (res.data.ratifyUserId) { |
| | | // 是否结束0:未结束, 1:已结束 |
| | | if (res.data.isFinish == 0) { |
| | | if (res.data.isFinish != 1) { |
| | | this.currentStep = 1 |
| | | } else if (res.data.isFinish == 1) { |
| | | this.currentStep = 2 |
| | |
| | | this.currentStep = 0 |
| | | } |
| | | this.form = res.data |
| | | this.ratifyUserId = res.data.ratifyUserId |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | }) |
| | |
| | | if (params === 0) { |
| | | return '未开始'; |
| | | } else if (params === 1) { |
| | | return '待批准'; |
| | | return '待评价'; |
| | | } else if (params === 2) { |
| | | return '不批准'; |
| | | } else if (params === 3) { |
| | | return '已批准'; |
| | | } else { |
| | | return null; |
| | |
| | | } else if (params === 1) { |
| | | return 'warning'; |
| | | } else if (params === 2) { |
| | | return 'danger'; |
| | | } else if (params === 3) { |
| | | return 'success'; |
| | | } else { |
| | | return null; |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeProcessingDia">取 消</el-button> |
| | | <el-button v-if="currentStep === 0" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | <el-button v-if="currentStep === 0 && userId == supervisedUserId" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == approverUserId" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == approverUserId" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | getSuperviseDetailAccording |
| | | } from "@/api/cnas/process/ensureResults/qualitySupervise"; |
| | | import {selectUserCondition} from "@/api/business/inspectionTask"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: 'processingSheet', |
| | |
| | | editLoad: false, |
| | | personList: [], |
| | | supervisedUserList: [], |
| | | supervisedUserId: '', |
| | | approverUserId: '' |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | | openDia (row) { |
| | | this.formDia = true |
| | | this.form.superviseDetailsId = row.superviseDetailsId |
| | | this.supervisedUserId = row.supervisedUserId |
| | | this.searchInfo(row) |
| | | this.form.approveId = row.approveId |
| | | this.getAuthorizedPerson() // 获取人员列表 |
| | |
| | | getSuperviseDetailAccording({superviseDetailsId: this.form.superviseDetailsId}).then(res => { |
| | | this.form.supervisedUserId = res.data.supervisedUserId |
| | | this.form.supervisedUserName = res.data.supervisedUserName |
| | | if (!res.data.approverUserId) { |
| | | this.currentStep = 0 |
| | | } else { |
| | | if (res.data.isFinish === 0) { |
| | | if (res.data.approverUserId) { |
| | | // 是否结束0:未结束, 1:已结束 |
| | | if (res.data.isFinish != 1) { |
| | | this.currentStep = 1 |
| | | } else { |
| | | } else if (res.data.isFinish == 1) { |
| | | this.currentStep = 2 |
| | | } |
| | | } else { |
| | | this.currentStep = 0 |
| | | } |
| | | this.form = res.data |
| | | this.form.superviseDetailsId = row.superviseDetailsId |
| | | this.approverUserId = res.data.approverUserId |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | }) |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeRecordsDia">取 消</el-button> |
| | | <el-button v-if="currentStep === 0" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | <el-button v-if="currentStep === 0 && userId == supervisedUserId" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == ratifyUserId" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == ratifyUserId" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | getSuperviseDetailRecord |
| | | } from "@/api/cnas/process/ensureResults/qualitySupervise"; |
| | | import {selectUserCondition} from "@/api/business/inspectionTask"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: 'recordsDialog', |
| | |
| | | editLoad: false, |
| | | personList: [], |
| | | recordUserList: [], |
| | | supervisedUserId: '', |
| | | ratifyUserId: '', |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | | openDia(row) { |
| | | this.formDia = true |
| | | this.supervisedUserId = row.supervisedUserId |
| | | this.searchInfo(row) |
| | | this.getAuthorizedPerson() |
| | | }, |
| | |
| | | // 有superviseDetailsRecordId说明提交过记录 |
| | | if (res.data.ratifyUserId) { |
| | | // 是否结束0:未结束, 1:已结束 |
| | | if (res.data.isFinish === 0) { |
| | | if (res.data.isFinish != 1) { |
| | | this.currentStep = 1 |
| | | } else if (res.data.isFinish === 1) { |
| | | } else if (res.data.isFinish == 1) { |
| | | this.currentStep = 2 |
| | | } |
| | | } else { |
| | |
| | | } |
| | | this.form = res.data |
| | | this.form.superviseDetailsId = row.superviseDetailsId |
| | | this.ratifyUserId = res.data.ratifyUserId |
| | | this.getRecordUser() |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeRectifyDia">取 消</el-button> |
| | | <el-button v-if="currentStep === 0" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | <el-button v-if="currentStep === 0 && userId == supervisedUserId" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == approverUserId" :loading="editLoad" @click="handleEdit(0)">不通过</el-button> |
| | | <el-button v-if="currentStep === 1 && userId == approverUserId" :loading="editLoad" type="primary" @click="handleEdit(1)">通 |
| | | 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | } from "@/api/cnas/process/ensureResults/qualitySupervise"; |
| | | import {selectUserCondition} from "@/api/business/inspectionTask"; |
| | | import {getThisYearTrainingDetailed} from "@/api/cnas/systemManagement/correctiveAction"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: 'rectifyDialog', |
| | |
| | | editLoad: false, |
| | | personList: [], |
| | | yearTrainingDetailed: [], |
| | | supervisedUserId: '', |
| | | approverUserId: '' |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | |
| | | this.searchInfo(row) |
| | | this.form.superviseDetailsId = row.superviseDetailsId |
| | | this.form.approveId = row.approveId |
| | | this.supervisedUserId = row.supervisedUserId |
| | | this.getAuthorizedPerson() // 获取人员列表 |
| | | this.getYearTrainingDetailed() // 获取培训计划 |
| | | }, |
| | |
| | | searchInfo (row) { |
| | | this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId |
| | | getSuperviseDetailCorrect({superviseDetailsId: row.superviseDetailsId}).then(res => { |
| | | if (!res.data.approverUserId) { |
| | | this.currentStep = 0 |
| | | } else { |
| | | if (res.data.isFinish === 0) { |
| | | if (res.data.approverUserId) { |
| | | // 是否结束0:未结束, 1:已结束 |
| | | if (res.data.isFinish != 1) { |
| | | this.currentStep = 1 |
| | | } else { |
| | | } else if (res.data.isFinish == 1) { |
| | | this.currentStep = 2 |
| | | } |
| | | } else { |
| | | this.currentStep = 0 |
| | | } |
| | | this.form = res.data |
| | | this.approverUserId = res.data.approverUserId |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | | }) |
| | |
| | | if (params === 0) { |
| | | return '未开始'; |
| | | } else if (params === 1) { |
| | | return '待批准'; |
| | | return '待评价'; |
| | | } else if (params === 2) { |
| | | return '不批准'; |
| | | } else if (params === 3) { |
| | | return '已批准'; |
| | | } else { |
| | | return null; |
| | |
| | | } else if (params === 1) { |
| | | return 'warning'; |
| | | } else if (params === 2) { |
| | | return 'danger'; |
| | | } else if (params === 3) { |
| | | return 'success'; |
| | | } else { |
| | | return null; |
| | |
| | | if (params === 0) { |
| | | return '未开始'; |
| | | } else if (params === 1) { |
| | | return '待批准'; |
| | | return '待评价'; |
| | | } else if (params === 2) { |
| | | return '不批准'; |
| | | } else if (params === 3) { |
| | | return '已批准'; |
| | | } else { |
| | | return null; |
| | |
| | | } else if (params === 1) { |
| | | return 'warning'; |
| | | } else if (params === 2) { |
| | | return 'danger'; |
| | | } else if (params === 3) { |
| | | return 'success'; |
| | | } else { |
| | | return null; |
| | |
| | | if (params === 0) { |
| | | return '未开始'; |
| | | } else if (params === 1) { |
| | | return '待批准'; |
| | | return '待评价'; |
| | | } else if (params === 2) { |
| | | return '不批准'; |
| | | } else if (params === 3) { |
| | | return '已批准'; |
| | | } else { |
| | | return null; |
| | |
| | | } else if (params === 1) { |
| | | return 'warning'; |
| | | } else if (params === 2) { |
| | | return 'danger'; |
| | | } else if (params === 3) { |
| | | return 'success'; |
| | | } else { |
| | | return null; |