From cafcefa1f4e77dd545915f10758e95b8f64330d8 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 29 三月 2025 17:07:40 +0800 Subject: [PATCH] 质量监控计划-流程修改 --- src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 108 insertions(+), 2 deletions(-) diff --git a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue index d503422..25b9c4d 100644 --- a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue +++ b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue @@ -47,7 +47,7 @@ @closeDia="closeDia"></detail-form-dialog> <!--瀹炴柦娴佺▼寮规--> <carry-out-dialog v-if="carryOutDia" ref="carryOutDia" :qualityMonitorId="qualityMonitorId" - @closeDia="closeCarryOutDia"></carry-out-dialog> + @closeCarryOutDia="closeCarryOutDia"></carry-out-dialog> <!--璇勪环娴佺▼寮规--> <evaluate-dialog v-if="evaluateDialog" ref="evaluateDialog" @closeEvaDia="closeEvaDia"></evaluate-dialog> <el-dialog :visible.sync="examineDialog" title="瀹℃牳" width="30%" @close="closeExamineDia"> @@ -156,6 +156,7 @@ <el-button :loading="uploading1" type="primary" @click="submitUpload1()">涓� 浼�</el-button> </span> </el-dialog> + <view-record v-if="ViewRecord" ref="ViewRecord"></view-record> </div> </template> @@ -174,14 +175,16 @@ } from "@/api/cnas/process/ensureResults/qualityMonitor"; import { selectUserCondition } from "@/api/performance/class"; import { mapGetters } from "vuex"; +import ViewRecord from "./components/ViewRecord.vue"; export default { name: 'EnsureResultsValidity', // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� - components: { limsTable, filePreview, EvaluateDialog, CarryOutDialog, DetailFormDialog }, + components: {ViewRecord, limsTable, filePreview, EvaluateDialog, CarryOutDialog, DetailFormDialog }, data() { // 杩欓噷瀛樻斁鏁版嵁 return { + ViewRecord: false, examineUserId: '', responsibleOptions: [], yearForm: { @@ -375,6 +378,95 @@ label: '鐩戞帶鏂瑰紡', prop: 'monitorWay', width: '150px' + },{ + dataType: 'tag', + label: '瀹炴柦鐘舵��', + prop: 'detailsRatifyStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呮壒鍑�'; + } else if (params === 2) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'success'; + } else { + return null; + } + } + },{ + dataType: 'tag', + label: '鎶ュ憡鐘舵��', + prop: 'reportStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呰瘎浠�'; + } else if (params === 2) { + return '涓嶆壒鍑�'; + } else if (params === 3) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'danger'; + } else if (params === 3) { + return 'success'; + } else { + return null; + } + } + },{ + dataType: 'tag', + label: '璇勪环鐘舵��', + prop: 'evaluateStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呰瘎浠�'; + } else if (params === 2) { + return '寰呮壒鍑�'; + } else if (params === 3) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'info'; + } else if (params === 3) { + return 'success'; + } else { + return null; + } + } }, { dataType: 'action', label: '鎿嶄綔', @@ -406,6 +498,13 @@ type: 'text', clickFun: (row) => { this.evaluate(row) + } + }, + { + name: '闄勪欢涓婁紶', + type: 'text', + clickFun: (row) => { + this.viewTestRecord(row) } }, { @@ -742,6 +841,13 @@ this.evaluateDialog = false this.getYearDetailPlanList() }, + // 闄勪欢涓婁紶 + viewTestRecord (row) { + this.ViewRecord = true + this.$nextTick(() => { + this.$refs.ViewRecord.openDia(row) + }) + }, // 鎵撳紑瀵煎嚭寮规 downLoadPost(row) { this.downloadDialog = true -- Gitblit v1.9.3