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 |  132 ++++++++++++++++++++++++-------------------
 1 files changed, 73 insertions(+), 59 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 655e49e..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;
@@ -1095,7 +1107,7 @@
         // 灏嗗綋鍓嶈娣诲姞鍒� rows 涓�
         this.rows.push(row);
         console.log(this.rows, row);
-        
+
       }
     },
 
@@ -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;
@@ -1343,7 +1356,7 @@
     },
 
     handleClose() {
-      this.$tab.refreshPage();
+      this.drawer = false;  // 鍙叧闂娊灞夛紝涓嶅埛鏂伴〉闈㈡垨閲嶇疆鏁版嵁
     },
 
     handleClose1() {
@@ -1355,8 +1368,8 @@
     },
 
     changDesc(item) {
-      console.log(item);
-      
+
+
       item.conclusion = item.exceptionDesc ? "寮傚父" : "姝e父";
     },
 
@@ -1839,47 +1852,48 @@
     },
 
     determine() {
-  let tjNumber = this.tableAll.tjNumber;
-  this.userList.forEach((item) => {
-    if (this.doctorName == item.nickName) this.doctorName = item.userId;
-  });
-  this.proParentList.sons.forEach((item) => {
-    if (this.rows) {
-      this.rows.forEach((item1) => {
-        if (item1 === item) item = item1;
+      this.tjOrderDetail = [];
+      let tjNumber = this.tableAll.tjNumber;
+      this.userList.forEach((item) => {
+        if (this.doctorName == item.nickName) this.doctorName = item.userId;
       });
-    }
-    this.tjOrderDetail.push({
-      proAdvice: item.proAdvice,
-      proName: item.project.proName,
-      proId: item.project.proId,
-      orderDetailId: item.orderDetailId,
-      flowingWaterId: item.flowingWaterId,
-      proResult: item.proResult,
-      tjStatus: 1,
-      isReturn: item.isReturn === true ? 1 : 0,
-      exceptionDesc: item.exceptionDesc === true ? 1 : 0,
-      conclusion: item.conclusion,
-      rulesList: item.rulesList,
-    });
-  });
+      this.proParentList.sons.forEach((item) => {
+        if (this.rows) {
+          this.rows.forEach((item1) => {
+            if (item1 === item) item = item1;
+          });
+        }
+        this.tjOrderDetail.push({
+          proAdvice: item.proAdvice,
+          proName: item.project.proName,
+          proId: item.project.proId,
+          orderDetailId: item.orderDetailId,
+          flowingWaterId: item.flowingWaterId,
+          proResult: item.proResult,
+          tjStatus: 1,
+          isReturn: item.isReturn === true ? 1 : 0,
+          exceptionDesc: item.exceptionDesc === true ? 1 : 0,
+          conclusion: item.conclusion,
+          rulesList: item.rulesList,
+        });
+      });
 
-  let data = [{
-    tjNumber,
-    proId: this.proId,
-    remark: this.proParentList.remark,
-    proName: this.proName,
-    summaryList: this.vaids1,
-    doctorName: this.doctorName,
-    tjOrderDetailList: this.tjOrderDetail,
-  }];
-  getaddRemark(data).then((res) => {
-    this.$modal.msgSuccess("鎻愪氦鎴愬姛");
-    this.rows = []; // 鎻愪氦鎴愬姛鍚庢竻绌� this.rows
-    this.drawer = false;
-  });
-  this.handleClose();
-},
+      let data = [{
+        tjNumber,
+        proId: this.proId,
+        remark: this.proParentList.remark,
+        proName: this.proName,
+        summaryList: this.vaids1,
+        doctorName: this.doctorName,
+        tjOrderDetailList: this.tjOrderDetail,
+      }];
+      getaddRemark(data).then((res) => {
+        this.$modal.msgSuccess("鎻愪氦鎴愬姛");
+        this.rows = []; // 鎻愪氦鎴愬姛鍚庢竻绌� this.rows
+        this.drawer = false;
+      });
+      this.handleClose();
+    },
   },
 };
 </script>

--
Gitblit v1.8.0