From 8cef8ec64d4301b5d46299e42d98c59426b61673 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期三, 25 十二月 2024 08:48:03 +0800
Subject: [PATCH] 1

---
 src/views/doctor/check/index.vue |   68 ++++++++++++++++++++++------------
 1 files changed, 44 insertions(+), 24 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 4808d0a..87c3a37 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -544,7 +544,6 @@
                         placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
                         @blur="handleInputConfirm(scope.row)"
                         @input="vale"
-                        @focus="handleInConfirm(scope.row)"
                       ></el-input>
                     </template>
                   </el-table-column>
@@ -834,7 +833,6 @@
                         placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
                         @blur="handleInputConfirm(scope.row)"
                         @input="vale"
-                        @focus="handleInConfirm(scope.row)"
                       ></el-input>
                     </template>
                   </el-table-column>
@@ -1611,9 +1609,9 @@
           };
           getParentId(data).then((response) => {
             this.proParentList = response.data;
-            this.proParentList.remark = this.remakes+ this.proParentList.remark;
+            this.proParentList.remark =
+              this.remakes + this.proParentList.remark;
           });
-          
         } else {
           this.proParentList.remark = this.remakes;
         }
@@ -1723,8 +1721,12 @@
         });
       }
     },
-
-    vale(datas) {
+    vale(value) {
+      // 浣犲彲浠ュ湪杩欓噷澶勭悊杈撳叆浜嬩欢
+      console.log("杈撳叆鍐呭:", value);
+    },
+    handleInputConfirm(datas) {
+      this.focusrow = datas;
       this.proResult = datas;
       var pattern3 = new RegExp("[0-9]+");
       if (pattern3.test(this.proResult)) {
@@ -1732,19 +1734,32 @@
           proId: this.focusrow.proId,
           cusId: this.tableAll.cusId,
           keyNum: 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 = this.autorule;
+            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.autorule.forEach((item) => {
               if (this.focusrow.conclusion) {
-                this.focusrow.conclusion += item.bingzhong;
+                this.focusrow.conclusion += item.bz;
               } else {
-                this.focusrow.conclusion = item.bingzhong;
+                this.focusrow.conclusion += item.bz;
               }
             });
+            // this.rows.push(this.focusrow);
+            // console.log(this.rows,5522);
           }
         });
       } else {
@@ -1752,27 +1767,39 @@
           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 = this.autorule;
+            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.autorule.forEach((item) => {
               if (this.focusrow.conclusion) {
-                this.focusrow.conclusion += item.bingzhong;
+                this.focusrow.conclusion += item.bz;
               } else {
-                this.focusrow.conclusion = item.bingzhong;
+                this.focusrow.conclusion += item.bz;
               }
             });
+            // this.rows.push(this.focusrow);
           }
         });
       }
 
-      // this.$refs.aaa.open = true;
-      // this.$refs.aaa.getList();
+      this.rows.push(datas);
+      console.log(this.rows, 5522);
     },
-    // 瑙勫垯
+
     handleguize(row) {
       this.row = row;
       this.$refs.aaa.open = true;
@@ -1789,8 +1816,8 @@
       this.loading = true;
       this.queryParams.type = this.tjStatus;
       getProList(this.queryParams).then((response) => {
-        console.log(response,1212);
-        
+        console.log(response, 1212);
+
         if (response.code == 200) {
           this.loading = false;
           if (response.data) {
@@ -2735,13 +2762,7 @@
           this.getbzlist();
         });
     },
-    handleInConfirm(row) {
-      this.focusrow = row;
-    },
 
-    handleInputConfirm(row) {
-      this.rows.push(row);
-    },
     // 鐐瑰嚮纭
     determine() {
       // 浣撴鍙�
@@ -2822,7 +2843,6 @@
 }
 
 .el-button--medium {
-  padding: 4px 14px;
   font-size: 14px;
 }
 

--
Gitblit v1.8.0