From d194f4cd74da499f741100e5e3da5bcc3a0dc387 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期六, 07 十二月 2024 18:07:44 +0800
Subject: [PATCH] danwei

---
 src/views/doctor/examination/index.vue |   60 +++++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 35 insertions(+), 25 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 5137909..b7d7ee1 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -159,8 +159,9 @@
                 size="mini"
                 type="text"
                 v-show="
-                  scope.row.confirmStatus == '299' ||
-                  scope.row.confirmStatus == 288
+                  (xianshi == 'Y' || xianshi == 'y') &&
+                  (scope.row.confirmStatus == '299' ||
+                    scope.row.confirmStatus == 288)
                 "
                 @click="tongguo(scope.row)"
                 >閫氳繃</el-button
@@ -169,8 +170,9 @@
                 size="mini"
                 type="text"
                 v-show="
-                  scope.row.confirmStatus == '301' ||
-                  scope.row.confirmStatus == 288
+                  (xianshi == 'Y' || xianshi == 'y') &&
+                  (scope.row.confirmStatus == '301' ||
+                    scope.row.confirmStatus == 288)
                 "
                 @click="bohui(scope.row)"
                 >椹冲洖</el-button
@@ -264,23 +266,24 @@
     </div>
     <div class="pag">
       <div class="pag1">
-      <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
+        <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
                 :page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total">
             </el-pagination> -->
-      <pagination
-        v-show="total > 0"
-        :total="total"
-         :pager-count="5"
-        :page.sync="queryParams.page"
-        :limit.sync="queryParams.pageSize"
-        @pagination="getList"
-      />
-    </div>
+        <pagination
+          v-show="total > 0"
+          :total="total"
+          :pager-count="5"
+          :page.sync="queryParams.page"
+          :limit.sync="queryParams.pageSize"
+          @pagination="getList"
+        />
+      </div>
     </div>
   </div>
 </template>
 
 <script>
+import { getConfigKey } from "@/api/system/config";
 import {
   getCsList,
   confirmOrder,
@@ -313,6 +316,7 @@
       checkStatus: "0",
       exaList: [],
       // 琛ㄥ崟鍙傛暟
+      xianshi: '',
       form: {},
       clearTimeSet: null,
       tjNumbers: "",
@@ -357,6 +361,7 @@
   },
   created() {
     this.getdate();
+
     // this.getNowTime();
   },
   mounted() {
@@ -366,6 +371,9 @@
   },
   methods: {
     getdate() {
+      getConfigKey("tj_confirm").then((res) => {
+        this.xianshi = res.msg;
+      });
       getNewDateList().then((res) => {
         this.createTimeList = [
           moment(res.data).format("YYYY-MM-DD 00:00:00"),
@@ -562,21 +570,23 @@
       this.$modal.loading("姝e湪鍚屾锛岃绋嶅��...");
       this.setTime();
       let tjNumber = row.tjNumber;
-      dataSynchronization(tjNumber).then((res, error) => {
-        if (res.code == 200) {
-          // this.$forceUpdate();
+      dataSynchronization(tjNumber)
+        .then((res, error) => {
+          if (res.code == 200) {
+            // this.$forceUpdate();
+            this.handleCurrentChange(row);
+            clearInterval(this.clearTimeSet);
+            this.clearTimeSet = null;
+            this.$modal.closeLoading();
+            this.$modal.msgSuccess("鍚屾鎴愬姛锛�");
+          }
+        })
+        .catch((error) => {
           this.handleCurrentChange(row);
           clearInterval(this.clearTimeSet);
           this.clearTimeSet = null;
           this.$modal.closeLoading();
-          this.$modal.msgSuccess("鍚屾鎴愬姛锛�");
-        } 
-      }).catch(error => {
-        this.handleCurrentChange(row);
-          clearInterval(this.clearTimeSet);
-          this.clearTimeSet = null;
-          this.$modal.closeLoading();
-      });
+        });
     },
     // 椹冲洖鎸夐挳
     bohui(row) {

--
Gitblit v1.8.0