From e13b130ad7fe8a203c1b67aeb8d4baabf6e0d395 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 09 一月 2025 15:44:57 +0800
Subject: [PATCH] 2

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

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 9c2d49f..7cbcd70 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -304,12 +304,18 @@
                 type="text"
                 :disabled="scope.row.type === 1"
                 @click="qijian(scope.row)"
-                >寮冩</el-button
+                >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button
               >
+              <!-- <el-button
+                size="mini"
+                type="text"
+                @click="qijian(scope.row)"
+                >鎭㈠</el-button
+              > -->
               <el-button
                 size="mini"
                 type="text"
-                :disabled="scope.row.type === 0"
+                :disabled="scope.row.type === 0 || scope.row.type === 2"
                 @click="queryResultone(scope.row)"
                 >缁撴灉鏌ヨ</el-button
               >
@@ -396,6 +402,7 @@
   qijian,
   resultList,
   typeOne,
+  huifu,
 } from "@/api/doctor/examination";
 import { getCompany, queryCompany } from "@/api/team/tuanti";
 import { getNewDateList } from "@/api/hosp/order";
@@ -503,14 +510,14 @@
         // console.log(this.xianshi, 999);
       });
       getNewDateList().then((res) => {
-        console.log(res,222);
-        
+        // console.log(res,222);
+
         // this.createTimeList = [
         //   moment(res.data).format("YYYY-MM-DD 00:00:00"),
         //   moment(res.data).format("YYYY-MM-DD 23:59:00"),
         // ];
         // console.log(this.createTimeList,8855);
-        
+
         this.getList();
       });
     },
@@ -552,7 +559,7 @@
     // 閫夋鏁版嵁
     searchSelect(val) {
       this.CheckBox = val;
-      console.log(this.CheckBox, 9999);
+      // console.log(this.CheckBox, 9999);
     },
     getList() {
       this.loading = true;
@@ -569,7 +576,7 @@
       // 鑾峰彇鍗曚綅淇℃伅闆嗗悎
       getCompany(this.queryParam).then((response) => {
         this.CompanyList = response.data;
-        console.log(this.CompanyList, 555);
+        // console.log(this.CompanyList, 555);
 
         this.loading = false;
       });
@@ -732,17 +739,13 @@
       this.currentRow = val;
       let tjNumber = val.tjNumber;
       this.selectedTjNumber = val.tjNumber;
-      console.log(this.currentRow, 4455);
 
       typeOne(tjNumber).then((res) => {
         this.type = res.data;
-        console.log(res, 3322);
       });
 
       cSWebGetPro(tjNumber).then((res) => {
         this.xiangmuList = res.data;
-        console.log(this.xiangmuList, 999);
-
         this.xiangmuList.forEach((item) => {
           // console.log(item);
           // if (item.type == 0) {
@@ -780,23 +783,35 @@
     qijian(row) {
       const tjNUm = this.selectedTjNumber;
       const proId = row.proId;
-
-      qijian(tjNUm, proId).then((res) => {
-        if (res.code == 200) {
-          cSWebGetPro(tjNUm).then((res) => {
-            if (res.code === 200) {
-              // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
-              this.xiangmuList = res.data;
-            }
-          });
-        }
-      });
+      if (row.type == "2") {
+        huifu(tjNUm, proId).then((res) => {
+          if (res.code == 200) {
+            cSWebGetPro(tjNUm).then((res) => {
+              if (res.code === 200) {
+                // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+                this.xiangmuList = res.data;
+              }
+            });
+          }
+        });
+      } else {
+        qijian(tjNUm, proId).then((res) => {
+          if (res.code == 200) {
+            cSWebGetPro(tjNUm).then((res) => {
+              if (res.code === 200) {
+                // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+                this.xiangmuList = res.data;
+              }
+            });
+          }
+        });
+      }
     },
-    chaxun() {},
+
     handleRowClick(row, column, event) {
-      console.log(row, 2323);
+      // console.log(row, 2323);
       this.name = row.proName;
-      console.log(this.name, 99999);
+      // console.log(this.name, 99999);
     },
     queryResultone(row) {
       // 鎵撳紑鎶藉眽

--
Gitblit v1.8.0