From 1bff9afb2dfda9824c3956c4a491a1b2261ad306 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期日, 27 四月 2025 14:37:54 +0800
Subject: [PATCH] 1

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

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index bc4a6e6..f54f23d 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -36,7 +36,8 @@
           </template>
         </el-table-column>
         <el-table-column label="鍑虹敓鏃ユ湡" align="center" prop="cusBrithday" width="100px" />
-        <el-table-column label="鐢佃瘽" align="center" prop="cusPhone" width="100px" />
+        <el-table-column label="濂楅鍚嶇О" align="center" prop="pacName" width="100px" />
+        <!-- <el-table-column label="鐢佃瘽" align="center" prop="cusPhone" width="100px" /> -->
         <el-table-column label="浣撴绫诲瀷" align="center" prop="tjType" width="80px" />
         <el-table-column label="鐧昏鏃堕棿" align="center" prop="tjTime" width="160px">
         </el-table-column>
@@ -274,22 +275,25 @@
         <el-col v-show="baogaoqian">
           <template>
             <el-tabs v-model="radio" type="border-card" @tab-click="handleTabClick" style="margin-left: 10px">
-              <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index">
+              <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index"
+                :lazy="false">
                 <el-table class="bgc" v-loading="loading" :data="proParentList.sons" border height="460px"
                   style="width: 96%; margin: 10px 10px" :row-class-name="tableRowClassName">
                   <el-table-column prop="project.proName" label="妫�娴嬮」鐩�" width="150">
                   </el-table-column>
                   <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="150">
-              
+
                     <template slot-scope="{ row, $index }">
-                      <el-input  type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`"
-                        @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
+                      <el-input type="textarea" autosize size="mini" v-model="row.proResult"
+                        :ref="`input-item${index}-row${$index}`"
+                        @keydown.enter.native="keyInputConfirm($event, index, $index)" @focus="handleFocus(row)"
                         @blur="handleInputConfirm(row)" @input="vale"></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)"></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">
@@ -414,7 +418,8 @@
         <el-col :span="18" v-show="baogaohou">
           <template>
             <el-tabs v-model="radio" type="border-card" @tab-click="handleTabClick" style="margin-left: 10px">
-              <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index">
+              <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index"
+                :lazy="false">
                 <el-table class="bgc" v-loading="loading" :data="proParentList.sons" border height="460px"
                   style="width: 96%; margin: 10px 10px" :row-class-name="tableRowClassName">
                   <el-table-column prop="project.proName" label="妫�娴嬮」鐩�" width="100">
@@ -422,10 +427,11 @@
                   <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="150">
                     <!-- slot-scope="scope" -->
                     <template slot-scope="{ row, $index }">
-                      <el-input  type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`"
-                      @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
-                        @blur="handleInputConfirm(row)" ></el-input>
-                        <!-- @input="vale" -->
+                      <el-input type="textarea" autosize size="mini" v-model="row.proResult"
+                        :ref="`input-item${index}-row${$index}`"
+                        @keydown.enter.native="keyInputConfirm($event, index, $index)" @focus="handleFocus(row)"
+                        @blur="handleInputConfirm(row)"></el-input>
+                      <!-- @input="vale" -->
                       <!-- <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off"   :ref="`input-${scope.$index}-${scope.row.proResult}`"
                         placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @keyup="
                           keyInputConfirm($event,scope.$index,'proResult')
@@ -445,7 +451,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"
+                        @change="changDesc(scope.row)"></el-checkbox>
                     </template>
                   </el-table-column>
                   <el-table-column prop="isReturn" label="澶嶈瘖" width="55px" align="center">
@@ -984,23 +991,23 @@
   methods: {
     handleFocus(row) {
       this.autorule = [];
-      if (!row.resultType || row.resultType == 2 ) {
+      if (!row.resultType || row.resultType == 2) {
         return;
       } else {
         this.curindex = row;
-      selectZT({
-        proId: row.proId,
-      }).then((res) => {
-        if (res.data.length > 0) {
-          this.$refs.bbb.title = "閫夋嫨妫�娴嬬粨鏋�";
-        // this.$refs.bbb.proId = row.proId;
-        this.$refs.bbb.open = true;
-        this.$refs.bbb.getList(this.curindex);
-        } else {
-          this.$refs.bbb.open = false;
-        }
-      });
-        
+        selectZT({
+          proId: row.proId,
+        }).then((res) => {
+          if (res.data.length > 0) {
+            this.$refs.bbb.title = "閫夋嫨妫�娴嬬粨鏋�";
+            // this.$refs.bbb.proId = row.proId;
+            this.$refs.bbb.open = true;
+            this.$refs.bbb.getList(this.curindex);
+          } else {
+            this.$refs.bbb.open = false;
+          }
+        });
+
       }
     },
     handleChangesZt(params) {
@@ -1203,7 +1210,9 @@
       });
     },
     handleClose() {
-      this.$tab.refreshPage();
+      // 鍙埛鏂拌〃鏍兼暟鎹�
+      this.getList();
+      this.drawer = false;
     },
     handleClose1() {
       this.jianqians = false;
@@ -1284,16 +1293,15 @@
       this.inputDoms = inputDoms
       // console.log(this.inputDoms)
     },
-    keyInputConfirm(event, currentRowIndex) {
+    keyInputConfirm(event, index, currentRowIndex) {
       // 闃绘榛樿鍥炶溅琛屼负锛屾瘮濡傛彁浜よ〃鍗�
       event.preventDefault();
-     event.stopPropagation()
+      event.stopPropagation()
       const nextRowIndex = currentRowIndex + 1; // 璁$畻涓嬩竴琛岀储寮�
-
       // 濡傛灉涓嬩竴琛屽瓨鍦紝鍒欒仛鐒﹁琛岀殑杈撳叆妗�
       if (nextRowIndex < this.proParentList.sons.length) {
         this.$nextTick(() => {
-          const nextInputRef = `input-${nextRowIndex}`;
+          const nextInputRef = `input-item${index}-row${nextRowIndex}`;
           const nextInput = this.$refs[nextInputRef];
           if (nextInput) {
             // 澶勭悊 ref 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級
@@ -1333,20 +1341,24 @@
             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){
-                if( this.autorule[0]||this.autorule[0].nr){
-                this.focusrow.proAdvice = this.autorule[0].nr;
+              if (this.autorule.length != 0) {
+                if (this.autorule[0] || this.autorule[0].nr) {
+                  this.focusrow.proAdvice = this.autorule[0].nr;
+                }
               }
-              }
-             
+
               this.autorule.forEach((item) => {
                 if (this.focusrow.conclusion) {
                   this.focusrow.conclusion += item.bz;
@@ -1369,21 +1381,25 @@
             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){
-                if( this.autorule[0]||this.autorule[0].nr){
-                this.focusrow.proAdvice = this.autorule[0].nr;
+              if (this.autorule.length != 0) {
+                if (this.autorule[0] || this.autorule[0].nr) {
+                  this.focusrow.proAdvice = this.autorule[0].nr;
+                }
               }
-              }
-              
-             
+
+
               this.autorule.forEach((item) => {
                 if (this.focusrow.conclusion) {
                   this.focusrow.conclusion += item.bz;
@@ -1813,7 +1829,11 @@
       // }
       this.tjNumber = row.tjNumber;
       let num = 0;
-      getParentList(this.tjNumber).then((response) => {
+      let data = {
+        type: this.tjStatus,
+        tjNumber: this.tjNumber
+      }
+      getParentList(data).then((response) => {
         if (response.data) {
           this.loading = false;
           this.Parent = response.data;
@@ -2317,7 +2337,10 @@
 
     // 鐐瑰嚮纭
     determine() {
-      // 浣撴鍙�
+      // 娓呯┖鏁扮粍
+      this.tjOrderDetail = [];
+
+      // 鍘熸湁浠g爜
       let tjNumber = this.tableAll.tjNumber;
       this.userList.forEach((item) => {
         if (this.doctorName == item.nickName) {

--
Gitblit v1.8.0