From 460041d86cd3240f7cd591da17cbc4a33be66aa3 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期四, 24 四月 2025 15:39:16 +0800
Subject: [PATCH] 报告结果导出调整

---
 src/views/CNAS/process/reportResults/index.vue |   45 +++++++++++----------------------------------
 1 files changed, 11 insertions(+), 34 deletions(-)

diff --git a/src/views/CNAS/process/reportResults/index.vue b/src/views/CNAS/process/reportResults/index.vue
index 81566bd..88b1c7c 100644
--- a/src/views/CNAS/process/reportResults/index.vue
+++ b/src/views/CNAS/process/reportResults/index.vue
@@ -19,8 +19,7 @@
     </div>
     <div class="table">
       <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 270px)'"
-        :page="page" @pagination="pagination" :isSelection="true"
-        :handleSelectionChange="handleSelectionChange"></lims-table>
+        :page="page" @pagination="pagination"></lims-table>
     </div>
     <el-dialog :title="title" :visible.sync="addDialogVisible" width="400px" top="6vh">
       <el-row>
@@ -83,12 +82,8 @@
         <el-col :span="24" style="margin-bottom: 16px;">
           <div class="search_thing">
             <div class="search_label">绛炬敹浜猴細</div>
-            <div class="search_input">
-              <el-select v-model="addInfo.signatory" placeholder="璇烽�夋嫨" size="small" style="width: 100%;" multiple>
-                <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value">
-                </el-option>
-              </el-select>
-            </div>
+            <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable
+                                                v-model="addInfo.signatory"></el-input></div>
           </div>
         </el-col>
         <el-col :span="24" style="margin-bottom: 16px;">
@@ -132,11 +127,8 @@
       personList: [],
       title: '鏂板',
       addDialogVisible: false,
-      addInfo: {
-        signatory: []
-      },
+      addInfo: {},
       addLoading: false,
-      mutilSelect: [],
       queryParams: {
         insReportCode: ''
       },
@@ -152,7 +144,7 @@
         { label: "鍙戦�佹柟寮�", prop: "method" },
         { label: "鍙戦�佹棩鏈�", prop: "sendTime" },
         { label: "鍙戦�佷汉", prop: "sendUserName" },
-        { label: "绛炬敹浜�", prop: "signatoryName" },
+        { label: "绛炬敹浜�", prop: "signatory" },
         { label: "澶囨敞", prop: "remark" },
         {
           dataType: "action",
@@ -191,21 +183,16 @@
   },
   methods: {
     handleDown() {
-      if (this.mutilSelect.length == 0) {
-        this.$message.warning('璇烽�夋嫨瑕佸鍑虹殑鏁版嵁')
-        return
-      }
       this.outLoading = true
-      exportProcessReport({ ids: this.mutilSelect.map(m => m.id) }).then(res => {
+      exportProcessReport(this.queryParams).then(res => {
         this.outLoading = false
-        this.$download.saveAs(res.data, "鎶ュ憡缁撴灉");
+        const blob = new Blob([res], { type: 'application/msword' });
+        this.$download.saveAs(blob, '鎶ュ憡缁撴灉' + '.docx');
       })
     },
     openAdd() {
       this.title = '鏂板'
-      this.addInfo = {
-        signatory: []
-      }
+      this.addInfo = {}
       this.addDialogVisible = true;
     },
     getList() {
@@ -238,9 +225,6 @@
       this.page.current = 1;
       this.getList();
     },
-    handleSelectionChange(val) {
-      this.mutilSelect = val
-    },
     getAuthorizedPerson() {
       selectUserCondition().then(res => {
         let data = []
@@ -258,13 +242,10 @@
       delete this.addInfo.createTime
       delete this.addInfo.createUser
       delete this.addInfo.updateTime
-      delete this.addInfo.signatoryUrl
       delete this.addInfo.updateUserer
       delete this.addInfo.sendUserName
-      let addInfo = this.HaveJson(this.addInfo)
-      addInfo.signatory = addInfo.signatory.join(',')
       if (this.title == '鏂板') {
-        addProcessReport(addInfo).then(res => {
+        addProcessReport(this.addInfo).then(res => {
           this.addLoading = false
           this.addDialogVisible = false
           this.$message({
@@ -274,7 +255,7 @@
           this.refreshTable()
         }).catch(err => { })
       } else {
-        doProcessReport(addInfo).then(res => {
+        doProcessReport(this.addInfo).then(res => {
           this.addLoading = false
           this.addDialogVisible = false
           this.$message({
@@ -289,11 +270,7 @@
       this.title = '淇敼'
       this.addInfo = row
       console.log(this.addInfo)
-      this.addInfo.signatory = this.addInfo.signatory ? this.addInfo.signatory.split(',').map(m => Number(m)) : []
       this.addDialogVisible = true;
-    },
-    handleChangeTask(list) {
-      this.mutilSelect = list
     },
     handleDelete(row) {
       this.$confirm("鏄惁鍒犻櫎璇ユ潯鏁版嵁?", "鎻愮ず", {

--
Gitblit v1.9.3