From c70e37453d06f8eb6eddeddb3085548541cd34b5 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 26 十二月 2024 14:33:10 +0800 Subject: [PATCH] 修改人员 --- src/components/view/a7-Ensure-results-validity.vue | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/src/components/view/a7-Ensure-results-validity.vue b/src/components/view/a7-Ensure-results-validity.vue index 7297006..2c6ba99 100644 --- a/src/components/view/a7-Ensure-results-validity.vue +++ b/src/components/view/a7-Ensure-results-validity.vue @@ -100,6 +100,15 @@ <el-button :loading="ratifyLoading" type="primary" @click="handleRatify(1)">鎵� 鍑�</el-button> </span> </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> + </span> + <span slot="footer" class="dialog-footer"> + <el-button @click="downloadDialog = false">鍙� 娑�</el-button> + </span> + </el-dialog> </div> </template> @@ -333,6 +342,13 @@ } }, { + name: '瀵煎嚭', + type: 'text', + clickFun: (row) => { + this.downLoadPost(row); + }, + }, + { name: '鍒犻櫎', type: 'text', color: '#f56c6c', @@ -361,6 +377,8 @@ examineInfo: {}, ratifyInfo: {}, upLoading: false, + downloadDialog: false, + download: {}, }; }, mounted() { @@ -573,6 +591,11 @@ this.evaluateDialog = false this.getYearDetailPlanList() }, + // 鎵撳紑瀵煎嚭寮规 + downLoadPost (row) { + this.downloadDialog = true + this.download = row + }, // 鎵撳紑骞村害鏄庣粏鏂板銆佷慨鏀瑰脊妗� showDialog (type, row) { this.formDia = true @@ -584,6 +607,32 @@ this.formDia = false this.getYearDetailPlanList() }, + // 鎺у埗鍗曞鍑� + controlDown() { + this.$axios.get(this.$api.qualityMonitor.exportQualityMonitorRatify + '?qualityMonitorDetailsId=' + this.download.qualityMonitorDetailsId, { responseType: "blob" }).then(res => { + this.outLoading = false + this.$message.success('瀵煎嚭鎴愬姛') + const blob = new Blob([res], { type: 'application/msword' }); + const url = URL.createObjectURL(blob); + const link = document.createElement('a'); + link.href = url; + link.download = '璐ㄩ噺鐩戞帶瀹炴柦璁″垝.docx'; + link.click(); + }) + }, + // 澶勭悊鍗曞鍑� + processingDown() { + this.$axios.get(this.$api.qualityMonitor.exportQualityMonitorEvaluate + '?qualityMonitorDetailsId=' + this.download.qualityMonitorDetailsId, { responseType: "blob" }).then(res => { + this.outLoading = false + this.$message.success('瀵煎嚭鎴愬姛') + const blob = new Blob([res], { type: 'application/msword' }); + const url = URL.createObjectURL(blob); + const link = document.createElement('a'); + link.href = url; + link.download = '璐ㄩ噺鐩戞帶璇勪环.docx'; + link.click(); + }) + }, delYearPlanDetail (row) { this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ暟鎹�, 鏄惁缁х画?', '鎻愮ず', { confirmButtonText: '纭畾', -- Gitblit v1.9.3