From 227a1d5cff4538bea8398e9f40cf07910a2fec78 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期二, 25 三月 2025 17:31:36 +0800
Subject: [PATCH] 11

---
 src/views/doctor/pacsCheck/index.vue    |   36 ++++++++++-------
 src/views/doctor/inspectCheck/index.vue |   33 +++++-----------
 2 files changed, 32 insertions(+), 37 deletions(-)

diff --git a/src/views/doctor/inspectCheck/index.vue b/src/views/doctor/inspectCheck/index.vue
index 26785fd..398854f 100644
--- a/src/views/doctor/inspectCheck/index.vue
+++ b/src/views/doctor/inspectCheck/index.vue
@@ -68,7 +68,6 @@
             align="center"
             label="閫夋嫨"
             width="40"
-            :selectable="isSelectable"
           >
           </el-table-column>
           <el-table-column
@@ -431,9 +430,9 @@
       }
       console.log("Query Params:", this.queryParams);
     },
-    isSelectable(row) {
-      return !!row.mzh;
-    },
+    // isSelectable(row) {
+    //   return !!row.mzh;
+    // },
     tableRowClassName({ row }) {
       return !row.mzh ? "row-disabled" : "";
     },
@@ -462,7 +461,6 @@
     fetchRightTableData() {
       const code = queryParams.tjNum;
       // if (!code) return;
-
       getJyTjList(code).then((response) => {
         this.checkList = response.data;
         this.loading = false;
@@ -471,7 +469,7 @@
 
     handleSelectionChangeSecond(selectedRows) {
       this.selectedSecondTable = selectedRows;
-       if (selectedRows.length > 1) {
+      if (selectedRows.length > 1) {
         let del_row = selectedRows.shift();
         this.$refs.tab1.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
       }
@@ -502,19 +500,10 @@
             this.loading = false;
             this.exaLists = res.data;
             // const code = this.exaLists[0].mzh;
-            if (
-              this.exaLists &&
-              this.exaLists.length > 0 &&
-              this.exaLists[0].mzh
-            ) {
-              const code = this.queryParams.tjNum;
-
-              getJyTjList(code).then((response) => {
-                this.checkList = response.data;
-              });
-            } else {
-              this.$message.error("鏌ヨ澶辫触锛岃绋嶅悗閲嶈瘯");
-            }
+            const code = this.queryParams.tjNum;
+            getJyTjList(code).then((response) => {
+              this.checkList = response.data;
+            });
           }
         })
         .catch((error) => {
@@ -556,9 +545,9 @@
       this.setTime();
       const requestData = {
         lis: this.selectedFirstTable.map((item) => ({
-          ...item, 
-          tjNum: this.queryParams.tjNum, 
-        })), 
+          ...item,
+          tjNum: this.queryParams.tjNum,
+        })),
         jcxmid: this.selectedFirstTable.jcxmid,
         shys: this.selectedFirstTable.shys,
         tj: this.selectedSecondTable[0], // 鍙充晶琛ㄦ牸閫変腑鏁版嵁
diff --git a/src/views/doctor/pacsCheck/index.vue b/src/views/doctor/pacsCheck/index.vue
index 6c05a19..255134d 100644
--- a/src/views/doctor/pacsCheck/index.vue
+++ b/src/views/doctor/pacsCheck/index.vue
@@ -17,7 +17,7 @@
           style="width: 170px"
         />
       </el-form-item>
-     <!--  <el-form-item label="濮撳悕" prop="name">
+      <!--  <el-form-item label="濮撳悕" prop="name">
         <el-input
           v-model="queryParams.name"
           placeholder="璇疯緭鍏ュ鍚�"
@@ -99,9 +99,8 @@
         align="center"
         label="閫夋嫨"
         width="40"
-      
       >
-      <!--   :selectable="isSelectable" -->
+        <!--   :selectable="isSelectable" -->
       </el-table-column>
 
       <el-table-column label="濮撳悕" align="center" prop="name" width="80px" />
@@ -254,7 +253,6 @@
   
   <script>
 import { getLeftList, getRightList, asyncPacs } from "@/api/doctor/pacsCheck";
-import moment from "moment";
 
 export default {
   dicts: ["dict_tj_status"],
@@ -330,21 +328,19 @@
     });
   },
   methods: {
-   
-    handleDateChange(val){
+    handleDateChange(val) {
       if (val && val.length === 2) {
         this.queryParams.start = val[0]; // 璁剧疆寮�濮嬫椂闂�
-        this.queryParams.end = val[1];   // 璁剧疆缁撴潫鏃堕棿
+        this.queryParams.end = val[1]; // 璁剧疆缁撴潫鏃堕棿
       } else {
         this.queryParams.start = null;
         this.queryParams.end = null;
       }
-      console.log('Query Params:', this.queryParams);
-
+      console.log("Query Params:", this.queryParams);
     },
-    isSelectable(row) {
-      return !!row.mzh;
-    },
+    // isSelectable(row) {
+    //   return !!row.mzh;
+    // },
     tableRowClassName({ row }) {
       return !row.mzh ? "row-disabled" : "";
     },
@@ -368,7 +364,17 @@
 
         this.selectedFirstTable = selectedRow;
         console.log("褰撳墠閫変腑鐨勮鏁版嵁:", this.selectedFirstTable);
-        this.fetchRightTableData(selectedRow);
+        const code = this.queryParams.tjNum;
+        if (!code) {
+          this.$message.warning("浣撴鍙蜂笉鑳戒负绌�!");
+          return; // 鐩存帴杩斿洖锛岄伩鍏嶇户缁墽琛岃姹�
+        }
+        this.loading = true;
+        getRightList(code).then((response) => {
+          this.checkList = response.data;
+          this.loading = false;
+        });
+        // this.fetchRightTableData(selectedRow);
       } else {
         this.selectedFirstTable = null;
         this.checkList = [];
@@ -414,7 +420,7 @@
           if (res.code == 200) {
             this.loading = false;
             this.exaLists = res.data;
-            this.code = this.exaLists.mzh;
+            // this.code = this.exaLists.mzh;
           }
         })
         .catch((error) => {
@@ -483,7 +489,7 @@
           this.clearTimeSet = null;
           this.$modal.closeLoading();
           // this.$modal.error("鎿嶄綔澶辫触锛岃绋嶅悗閲嶈瘯");
-        })
+        });
     },
   },
 };

--
Gitblit v1.8.0