From 1ea1ad2c56e95e71e1756cfca73e7183f9795ac9 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 16 四月 2025 15:23:39 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev_test --- src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue | 24 ++++++++++++++++++++++-- src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue | 6 +++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue index 431f997..f494f21 100644 --- a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue +++ b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue @@ -40,6 +40,7 @@ </div> </div> <div style="line-height: 30px;"> + <el-button size="small" type="primary" @click="exportSignatureTemplate">瀵煎嚭绛惧悕妯℃澘</el-button> <el-button size="small" type="primary" @click="showDialog('add')">鏂板</el-button> </div> </div> @@ -102,9 +103,11 @@ </el-dialog> <el-dialog :visible.sync="downloadDialog" title="瀵煎嚭" width="600px"> <span> - <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" + <el-button plain type="primary" :disabled="download.detailsRatifyStatus !== 3" @click="controlDown">瀹炴柦璁″垝瀵煎嚭</el-button> - <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" + <el-button plain type="primary" :disabled="!download.finishReportUrl" + @click="finishReportExport">瀹屾垚鎶ュ憡瀵煎嚭</el-button> + <el-button plain type="primary" :disabled="download.evaluateStatus !== 3" @click="processingDown">璇勪环瀵煎嚭</el-button> </span> <span slot="footer" class="dialog-footer"> @@ -881,6 +884,15 @@ this.$download.saveAs(blob, '璐ㄩ噺鐩戞帶瀹炴柦璁″垝.docx') }) }, + // 瀹屾垚鎶ュ憡瀵煎嚭 + finishReportExport() { + let url = this.download.finishReportUrl; + const link = document.createElement('a'); + link.href = this.javaApi +'/word/' + url; + link.target = '_blank'; + document.body.appendChild(link); + link.click(); + }, // 澶勭悊鍗曞鍑� processingDown() { exportQualityMonitorEvaluate({ qualityMonitorDetailsId: this.download.qualityMonitorDetailsId }).then(res => { @@ -911,6 +923,14 @@ selectUserCondition().then((res) => { this.responsibleOptions = res.data; }) + }, + exportSignatureTemplate() { + let url = '璐ㄩ噺鐩戞帶璁板綍绛惧悕妯℃澘.doc'; + const link = document.createElement('a'); + link.href = this.javaApi +'/word/' + url; + link.target = '_blank'; + document.body.appendChild(link); + link.click(); } }, // 鐢ㄤ簬涓婁紶鏂囦欢鐨勪俊鎭� diff --git a/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue b/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue index 3233343..2bcb6aa 100644 --- a/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue +++ b/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue @@ -76,9 +76,9 @@ </el-dialog> <el-dialog :visible.sync="downloadDialog" title="瀵煎嚭" width="600px"> <span> - <el-button plain type="primary" @click="controlDown">璁板綍鍗曞鍑�</el-button> - <el-button plain type="primary" @click="processingDown">澶勭悊鍗曞鍑�</el-button> - <el-button plain type="primary" @click="supervisoryDown">绾犳鍗曞鍑�</el-button> + <el-button plain type="primary" :disabled="download.recordStatus !== 3" @click="controlDown">璁板綍鍗曞鍑�</el-button> + <el-button plain type="primary" :disabled="download.accordingStatus !== 3" @click="processingDown">澶勭悊鍗曞鍑�</el-button> + <el-button plain type="primary" :disabled="download.correctStatus !== 3" @click="supervisoryDown">绾犳鍗曞鍑�</el-button> </span> <span slot="footer" class="dialog-footer"> <el-button @click="downloadDialog = false">鍙� 娑�</el-button> -- Gitblit v1.9.3