From cb1f69717eed3b6a61b6c61a8934bac752782b2d Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期三, 05 三月 2025 17:00:38 +0800
Subject: [PATCH] 1

---
 src/views/doctor/checkAll/index.vue |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 5e74f07..b05ef0b 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -74,10 +74,13 @@
         </el-table-column>
         <el-table-column label="鎿嶄綔" align="center" width="120px" fixed="right">
           <template slot-scope="scope">
+            <el-button fixed="right" title="璇︽儏" type="text" size="mini" @click.stop="handleClick(scope.row)"
+            icon="el-icon-document-copy"></el-button>
+            <el-button fixed="right" title="鍚屾" type="text" size="mini" @click.stop="tongbu(scope.row)"
+            icon="el-icon-upload2"></el-button>
             <el-button fixed="right" title="澶勬柟" type="text" size="mini" @click.stop="rowClick(scope.row)"
               icon="el-icon-edit-outline"></el-button>
-            <el-button fixed="right" title="璇︽儏" type="text" size="mini" @click.stop="handleClick(scope.row)"
-              icon="el-icon-document-copy"></el-button>
+ 
             <!-- <el-button type="text" size="mini" @click="generate(scope.row)" v-if="scope.row.tjStatus=='1'">鐢熸垚</el-button> -->
             <el-button type="text" size="mini" @click.stop="viewReport(scope.row)" v-if="scope.row.tjStatus == '1'"
               title="棰勮" icon="el-icon-view"></el-button>
@@ -755,7 +758,7 @@
 import { getCompany, queryCompany } from "@/api/team/tuanti";
 import { reportHistory, yichang, shanchu } from "@/api/doctor/check";
 import { getPdf, revoke } from "@/api/hosp/order";
-import { cSWebGetPro } from "@/api/doctor/examination";
+import { cSWebGetPro,dataSynchronization } from "@/api/doctor/examination";
 import ViewPdf from "@/components/ViewPdf";
 import Historicalreport from "@/components/Historicalreport";
 import { getDicts } from "@/api/system/dict/data";
@@ -923,6 +926,7 @@
       status1: 0, // 0灞曠ず寮傚父1灞曠ず椤圭洰鎯呭喌
       viewportHeight: 0,
       expends: [],
+      clearTimeSet: null,
     };
   },
 
@@ -940,6 +944,31 @@
     });
   },
   methods: {
+    setTime() {
+      //璁剧疆瀹氭椂鍣�
+      this.clearTimeSet = setInterval(() => {
+        this.$modal.closeLoading();
+      }, 300000);
+    },
+    tongbu(row) {
+      this.$modal.loading("姝e湪鍚屾锛岃绋嶅��...");
+      this.setTime();
+      let tjNumber = row.tjNumber;
+      dataSynchronization(tjNumber)
+        .then((res, error) => {
+          if (res.code == 200) {
+          
+            this.clearTimeSet = null;
+            this.$modal.closeLoading();
+            this.$modal.msgSuccess("鍚屾鎴愬姛锛�");
+          }
+        })
+        .catch((error) => {
+        
+          this.clearTimeSet = null;
+          this.$modal.closeLoading();
+        });
+    },
     shanchu(row) {
       console.log(row)
       shanchu({

--
Gitblit v1.8.0