From 416b4ef820586a62b136d77fa0ccc185f173b5b9 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期五, 03 一月 2025 21:33:20 +0800
Subject: [PATCH] 1

---
 src/views/doctor/check/index.vue |  173 ++++++++++++++++++++++++++++++---------------------------
 1 files changed, 90 insertions(+), 83 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 110cefd..bedd44d 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -74,11 +74,11 @@
             <el-table-column label="鎿嶄綔" align="center" width="150px">
               <template slot-scope="scope">
                 <el-button type="primary" size="mini" @click="hadleedit(scope.row)" v-if="scope.row.hzReplyLogsList.length == 0 &&
-      scope.row.hzDoctorId == info.userId
-      ">淇敼</el-button>
+                  scope.row.hzDoctorId == info.userId
+                ">淇敼</el-button>
                 <el-button type="primary" size="mini" v-if="scope.row.hzReplyLogsList.length == 0 &&
-      scope.row.hzDoctorId == info.userId
-      " @click="handledele(scope.row)">鍒犻櫎</el-button>
+                  scope.row.hzDoctorId == info.userId
+                " @click="handledele(scope.row)">鍒犻櫎</el-button>
               </template>
             </el-table-column>
           </el-table>
@@ -212,8 +212,8 @@
           " cellspacing="4">
           <caption style="background-color: #f8f8f9; font-size: 18px">
             濉啓{{
-      tableAll.cusName
-    }}鐨勪綋妫�璧勬枡
+              tableAll.cusName
+            }}鐨勪綋妫�璧勬枡
           </caption>
           <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
             <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right">
@@ -233,12 +233,12 @@
             </td>
             <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
               {{
-      tableAll.cusSex == 0
-        ? "鐢�"
-        : tableAll.cusSex == 1
-          ? "濂�"
-          : "鏈煡"
-    }}
+                tableAll.cusSex == 0
+                  ? "鐢�"
+                  : tableAll.cusSex == 1
+                    ? "濂�"
+                    : "鏈煡"
+              }}
             </td>
           </tr>
           <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -448,7 +448,8 @@
                   <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="150">
                     <template slot-scope="scope">
                       <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off"
-                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�"  @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)" @input="vale"></el-input>
+                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)"
+                        @input="vale"></el-input>
                     </template>
                   </el-table-column>
                   <el-table-column label="瑙勫垯" width="70">
@@ -922,7 +923,7 @@
         return
       } else {
         this.curindex = row
-        this.$refs.bbb.open = true;
+       
         this.$refs.bbb.title = "閫夋嫨妫�娴嬬粨鏋�";
         this.$refs.bbb.proId = row.proId;
         this.$refs.bbb.getList();
@@ -930,7 +931,7 @@
 
     },
     handleChangesZt(params) {
-      this.curindex.proResult = params[0].ruleStr
+      this.curindex.proResult = params.map(item => item.ruleStr).join(',');
     },
     tableRowClassName({ row }) {
       if (row.exceptionDesc) {
@@ -1139,75 +1140,79 @@
       console.log("杈撳叆鍐呭:", value);
     },
     handleInputConfirm(datas) {
-      this.focusrow = datas;
-      this.proResult = datas;
-      var pattern3 = new RegExp("[0-9]+");
-      if (pattern3.test(this.proResult)) {
-        let data = {
-          proId: this.focusrow.proId,
-          cusId: this.tableAll.cusId,
-          tjNum: this.tableAll.tjNumber,
-          keyNum: this.proResult.proResult,
-        };
-        AutoGetRule(data).then((res) => {
-          this.focusrow.conclusion = "";
-          if (res.data) {
-            this.autorule = res.data;
-            this.focusrow.rulesList = res.data;
-            if (res.data.length > 0) {
-              const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"];
-              this.focusrow.exceptionDesc = !conditions.some((condition) =>
-                this.autorule[0].bz.includes(condition)
-              );
-            } else {
-              this.focusrow.exceptionDesc = false;
-            }
-            this.focusrow.proAdvice = this.autorule[0].nr;
-            this.autorule.forEach((item) => {
-              if (this.focusrow.conclusion) {
-                this.focusrow.conclusion += item.bz;
+        if (datas.proResult){
+          this.focusrow = datas;
+        this.proResult = datas;
+        var pattern3 = new RegExp("[0-9]+");
+        if (pattern3.test(this.proResult)) {
+          let data = {
+            proId: this.focusrow.proId,
+            cusId: this.tableAll.cusId,
+            tjNum: this.tableAll.tjNumber,
+            keyNum: this.proResult.proResult,
+          };
+          AutoGetRule(data).then((res) => {
+            this.focusrow.conclusion = "";
+            if (res.data) {
+              this.autorule = res.data;
+              this.focusrow.rulesList = res.data;
+              if (res.data.length > 0) {
+                const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"];
+                this.focusrow.exceptionDesc = !conditions.some((condition) =>
+                  this.autorule[0].bz.includes(condition)
+                );
               } else {
-                this.focusrow.conclusion += item.bz;
+                this.focusrow.exceptionDesc = false;
               }
-            });
-          }
-        });
-      } 
-      else {
-        let data = {
-          proId: this.focusrow.proId,
-          cusId: this.tableAll.cusId,
-          keyWord: this.proResult,
-          tjNum: this.tableAll.tjNumber,
-          keyNum: this.proResult.proResult,
-        };
-        AutoGetRule(data).then((res) => {
-          this.focusrow.conclusion = "";
-          if (res.data) {
-            this.autorule = res.data;
-            this.focusrow.rulesList = res.data;
-            if (res.data.length > 0) {
-              const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"];
-              this.focusrow.exceptionDesc = !conditions.some((condition) =>
-                this.autorule[0].bz.includes(condition)
-              );
-            } else {
-              this.focusrow.exceptionDesc = false;
+              this.focusrow.proAdvice = this.autorule[0].nr;
+              this.autorule.forEach((item) => {
+                if (this.focusrow.conclusion) {
+                  this.focusrow.conclusion += item.bz;
+                } else {
+                  this.focusrow.conclusion += item.bz;
+                }
+              });
             }
-            this.focusrow.proAdvice = this.autorule[0].nr;
-            this.autorule.forEach((item) => {
-              if (this.focusrow.conclusion) {
-                this.focusrow.conclusion += item.bz;
+          });
+        }
+        else {
+          let data = {
+            proId: this.focusrow.proId,
+            cusId: this.tableAll.cusId,
+            keyWord: this.proResult,
+            tjNum: this.tableAll.tjNumber,
+            keyNum: this.proResult.proResult,
+          };
+          AutoGetRule(data).then((res) => {
+            this.focusrow.conclusion = "";
+            if (res.data) {
+              this.autorule = res.data;
+              this.focusrow.rulesList = res.data;
+              if (res.data.length > 0) {
+                const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"];
+                this.focusrow.exceptionDesc = !conditions.some((condition) =>
+                  this.autorule[0].bz.includes(condition)
+                );
               } else {
-                this.focusrow.conclusion += item.bz;
+                this.focusrow.exceptionDesc = false;
               }
-            });
-            // this.rows.push(this.focusrow);
-          }
-        });
-      }
+              this.focusrow.proAdvice = this.autorule[0].nr;
+              this.autorule.forEach((item) => {
+                if (this.focusrow.conclusion) {
+                  this.focusrow.conclusion += item.bz;
+                } else {
+                  this.focusrow.conclusion += item.bz;
+                }
+              });
+              // this.rows.push(this.focusrow);
+            }
+          });
+        }
+        this.rows.push(datas);
+      
+        }
+ 
 
-      this.rows.push(datas);
     },
 
     handleguize(row) {
@@ -2167,8 +2172,6 @@
 
       let data = [
         {
-          proAdvice: item.proAdvice,
-
           tjNumber,
           proId: this.proId,
           remark: this.proParentList.remark, // 澶囨敞
@@ -2188,9 +2191,10 @@
 };
 </script>
 <style lang="scss" scoped>
-.a{
+.a {
   position: relative;
 }
+
 .el-table .cell {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
@@ -2293,6 +2297,7 @@
   background-color: #66cc66;
   border-color: #66cc66;
 }
+
 .dialog-footers1 {
   position: fixed;
   bottom: 0;
@@ -2301,9 +2306,11 @@
   display: flex;
   justify-content: center;
   align-items: center;
-  z-index: 1000; /* 纭繚鎸夐挳灞傜骇鍦ㄥ叾浠栧唴瀹逛笂鏂� */
+  z-index: 1000;
+  /* 纭繚鎸夐挳灞傜骇鍦ㄥ叾浠栧唴瀹逛笂鏂� */
   width: 300px;
-  background-color: white; /* 鍙牴鎹渶瑕佽皟鏁磋儗鏅鑹� */
+  background-color: white;
+  /* 鍙牴鎹渶瑕佽皟鏁磋儗鏅鑹� */
 }
 
 /* 纭繚鎸夐挳涔嬮棿鏈夊悎閫傜殑闂磋窛 */

--
Gitblit v1.8.0