| | |
| | | <el-step title="实施"></el-step> |
| | | <el-step title="批准"></el-step> |
| | | </el-steps> |
| | | <div style="height: 620px;overflow-y: auto"> |
| | | <div style="height: 520px;overflow-y: auto"> |
| | | <table border="1" cellspacing="10" class="tables"> |
| | | <tr> |
| | | <td class="td-title"> |
| | |
| | | |
| | | <script> |
| | | |
| | | import { |
| | | addQualityMonitorRatify, addQualityMonitorRatifyOpinion, |
| | | getQualityMonitorRatify |
| | | } from "@/api/cnas/process/ensureResultsValidity/qualityMonitor"; |
| | | import {selectUserCondition} from "@/api/business/inspectionTask"; |
| | | |
| | | export default { |
| | | name: 'carryOutDialog', |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | |
| | | }, |
| | | // 查询监控计划详情实施信息 |
| | | searchInfo (row) { |
| | | this.$axios.get(this.$api.qualityMonitor.getQualityMonitorRatify + '?qualityMonitorDetailsId=' + row.qualityMonitorDetailsId).then(res => { |
| | | if (res.code === 201) return |
| | | getQualityMonitorRatify({qualityMonitorDetailsId: row.qualityMonitorDetailsId}).then(res => { |
| | | // 有detailsRatifyId则说明提交过实施信息 |
| | | if (res.data.detailsRatifyId) { |
| | | // 是否结束0:未结束, 1:已结束 |
| | |
| | | }, |
| | | // 提交实施 |
| | | addInfo () { |
| | | this.$axios.post(this.$api.qualityMonitor.addQualityMonitorRatify, this.form, { |
| | | headers: { |
| | | "Content-Type": "application/json" |
| | | }, |
| | | noQs: true |
| | | }).then(res => { |
| | | addQualityMonitorRatify(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | |
| | | }, |
| | | // 提交批准 |
| | | editInfo () { |
| | | this.$axios.post(this.$api.qualityMonitor.addQualityMonitorRatifyOpinion, this.form, { |
| | | headers: { |
| | | "Content-Type": "application/json" |
| | | }, |
| | | noQs: true |
| | | }).then(res => { |
| | | addQualityMonitorRatifyOpinion(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | |
| | | this.$emit('closeCarryOutDia') |
| | | }, |
| | | getAuthorizedPerson() { |
| | | this.$axios.get(this.$api.user.getUserMenu).then(res => { |
| | | let data = [] |
| | | res.data.forEach(a => { |
| | | selectUserCondition({ type: 1 }).then((res) => { |
| | | let data = []; |
| | | res.data.forEach((a) => { |
| | | data.push({ |
| | | label: a.name, |
| | | value: a.id |
| | | }) |
| | | }) |
| | | this.personList = data |
| | | }) |
| | | value: a.id, |
| | | }); |
| | | }); |
| | | this.personList = data; |
| | | }); |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | >>>.el-dialog { |
| | | margin: 20px auto 50px !important; |
| | | } |
| | | .tables { |
| | | table-layout: fixed; |
| | | width: 100%; |