From 37e09a8edf9afb70342b68352329ce959f8ebda6 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期三, 23 四月 2025 11:11:10 +0800
Subject: [PATCH] qx

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

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index ce79bbc..af5ab3f 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -291,7 +291,8 @@
                   </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)"></el-checkbox>
+                      <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)"
+                        :disabled="scope.row.project.sfcyyc === 1"></el-checkbox>
                     </template>
                   </el-table-column>
                   <el-table-column label="瑙勫垯" width="70">
@@ -443,7 +444,8 @@
 
                   <el-table-column prop="exceptionDesc" label="寮傚父" width="55px" align="center">
                     <template slot-scope="scope">
-                      <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox>
+                      <el-checkbox v-model="scope.row.exceptionDesc"
+                        :disabled="scope.row.project.sfcyyc === 1"></el-checkbox>
                     </template>
                   </el-table-column>
                   <el-table-column prop="isReturn" label="澶嶈瘖" width="55px" align="center">
@@ -999,6 +1001,7 @@
 
     // 杈撳叆纭鏃舵洿鏂� BMI
     handleInputConfirm(row, params) {
+      console.log(row, params, 55555)
       // 濡傛灉鏈� params 涓斾负绌猴紝鍙栨秷寮傚父鐘舵�佸苟娓呯┖鐩稿叧瀛楁
       if (params && params.length === 0) {
         row.exceptionDesc = false;
@@ -1045,14 +1048,19 @@
             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)
-                );
+              if (row.project.sfcyyc == 1) {
+                return
               } else {
-                this.focusrow.exceptionDesc = false;
+                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;
               }
@@ -1074,13 +1082,17 @@
             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)
-                );
+              if (row.project.sfcyyc == 1) {
+                return
               } else {
-                this.focusrow.exceptionDesc = false;
+                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;
@@ -1138,6 +1150,7 @@
         }
         this.proParentList.sons.forEach((item) => {
           this.doctorName = item.doctorName;
+
           if (this.doctorName == null) {
             this.userList.forEach((element) => {
               const userName = this.$store.state.user.name;
@@ -1149,7 +1162,7 @@
           if (item.isReturn == 1) item.isReturn = true;
           if (item.isReturn == 0) item.isReturn = false;
           if (item.exceptionDesc == "1") item.exceptionDesc = true;
-          if (item.exceptionDesc == "0") item.exceptionDesc = false;
+          if (item.exceptionDesc == "0" || item.project.sfcyyc == 1) item.exceptionDesc = false;
         });
         if (this.proParentList.xiaoJie && this.proParentList.xiaoJie.length != 0) {
           this.Parent.forEach((item3) => {
@@ -1165,7 +1178,7 @@
 
     handleFocus(row) {
       this.autorule = [];
-      if (!row.resultType || row.resultType == 2) {
+      if (!row.resultType || row.resultType == 2 ) {
         return;
       } else {
         this.curindex = row;
@@ -1355,7 +1368,7 @@
     },
 
     changDesc(item) {
-      console.log(item);
+
 
       item.conclusion = item.exceptionDesc ? "寮傚父" : "姝e父";
     },

--
Gitblit v1.8.0