From 38a8b888a9ec2812ad3553c8a71eaff018750927 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期五, 06 六月 2025 16:21:23 +0800
Subject: [PATCH] qx

---
 src/views/doctor/check/index.vue |   56 +++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 47 insertions(+), 9 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index c0e33a4..db9f5f4 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -289,15 +289,12 @@
                         :disabled="row.project.proName === 'BMI'"></el-input>
                     </template>
                   </el-table-column>
-               <el-table-column prop="exceptionDesc" label="寮傚父" width="55px" align="center">
-  <template slot-scope="scope">
-    <el-checkbox
-      v-model="scope.row.exceptionDesc"
-      @change="changDesc(scope.row)"
-      :disabled="scope.row.project.sfcyyc === 1 || scope.row.project.proName === 'BMI'"
-    ></el-checkbox>
-  </template>
-</el-table-column>
+                  <el-table-column prop="exceptionDesc" label="寮傚父" width="55px" align="center">
+                    <template slot-scope="scope">
+                      <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)"
+                        :disabled="scope.row.project.sfcyyc === 1 || scope.row.project.proName === 'BMI'"></el-checkbox>
+                    </template>
+                  </el-table-column>
                   <el-table-column label="瑙勫垯" width="70">
                     <template slot-scope="scope">
                       <el-button class="blue-button" @click="handleguize(scope.row)">...</el-button>
@@ -1004,6 +1001,7 @@
 
     // 瀹炴椂鏇存柊 BMI
     vale(value, row) {
+      console.log(3333)
       if (row.project.proName === '韬珮' || row.project.proName === '浣撻噸') {
         const heightRow = this.proParentList.sons.find(
           item => item.project.proName === '韬珮'
@@ -1022,6 +1020,45 @@
           bmiRow.proResult = bmi || ''; // 瀹炴椂鏇存柊BMI鍊�
           this.getBMIStatus(bmiRow); // 妫�鏌MI鐘舵�佸苟鏇存柊寮傚父澶嶉�夋
         }
+      }
+
+      // 鐜版湁鐨勮鍒欐鏌ラ�昏緫淇濇寔涓嶅彉
+      this.focusrow = row;
+      this.proResult = row;
+      const pattern3 = new RegExp("[0-9]+");
+      if (row.proResult) { }
+      if (pattern3.test(row.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 (row.project.sfcyyc == 1) {
+              return;
+            } else {
+              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;
+              }
+            }
+            if (this.autorule.length !== 0 && (this.autorule[0] || this.autorule[0].nr)) {
+              this.focusrow.proAdvice = this.autorule[0].nr;
+            }
+            this.autorule.forEach((item) => {
+              this.focusrow.conclusion += this.focusrow.conclusion ? item.bz : item.bz;
+            });
+          }
+        });
       }
     },
 
@@ -1155,6 +1192,7 @@
     },
 
     handleFocus(row) {
+      console.log(11111)
       this.autorule = [];
       if (!row.resultType || row.resultType == 2) {
         return;

--
Gitblit v1.8.0