From 6ef9e5189ac1888b8c4c504d5c5d3f431807ff56 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期六, 15 三月 2025 11:57:40 +0800
Subject: [PATCH] 修改电路试验单位
---
src/components/view/a7-Ensure-results-validity.vue | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 51 insertions(+), 2 deletions(-)
diff --git a/src/components/view/a7-Ensure-results-validity.vue b/src/components/view/a7-Ensure-results-validity.vue
index 7297006..6df1472 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>
@@ -216,7 +225,7 @@
minWidth: '160'
}, {
label: '鍒涘缓浜�',
- prop: 'createUser',
+ prop: 'createUserName',
minWidth: '100'
}, {
dataType: 'action',
@@ -307,7 +316,7 @@
minWidth: '150px'
}, {
dataType: 'action',
- width: '180',
+ width: '220',
label: '鎿嶄綔',
fixed: 'right',
operation: [
@@ -331,6 +340,13 @@
clickFun: (row) => {
this.evaluate(row)
}
+ },
+ {
+ name: '瀵煎嚭',
+ type: 'text',
+ clickFun: (row) => {
+ this.downLoadPost(row);
+ },
},
{
name: '鍒犻櫎',
@@ -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