From 333626d05a8ce4cf553e2a1e3fed1259d0814fb1 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 21 四月 2025 18:11:03 +0800
Subject: [PATCH] 1

---
 src/views/doctor/check/index.vue |   65 ++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 28 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 779119e..b97caf5 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -274,21 +274,16 @@
         <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="scope">
-                      <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off"
-                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @keyup.enter.native="
-                          keyInputConfirm($event,scope.$index,'proResult')
-                          " @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)"
-                        @input="vale"></el-input> -->
+              
                     <template slot-scope="{ row, $index }">
-                      <el-input v-model="row.name" :ref="`input-${$index}`"
-                        @keyup.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>
@@ -419,7 +414,7 @@
         <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">
@@ -427,10 +422,10 @@
                   <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="150">
                     <!-- slot-scope="scope" -->
                     <template slot-scope="{ row, $index }">
-                      <el-input v-model="row.name" :ref="`input-${$index}`"
-                        @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
-                        @blur="handleInputConfirm(row)" @input="vale"></el-input>
-
+                      <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')
@@ -813,6 +808,7 @@
 import { getlistUser } from "@/api/system/user";
 import { getChildList } from "@/api/system/dept";
 import { resultList } from "@/api/doctor/examination";
+import { selectZT } from "@/api/system/package";
 import { get } from "sortablejs";
 export default {
   dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
@@ -919,7 +915,6 @@
       radio: "",
       nums: "",
       proParentList: [],
-      inputDoms: [],
       tjNumber: "",
       // 鍏ㄩ儴灏忕粨
       DeptadviceAll: [],
@@ -989,15 +984,23 @@
   methods: {
     handleFocus(row) {
       this.autorule = [];
-
-      if (!row.resultType || row.resultType == 2) {
+      if (!row.resultType || row.resultType == 2 ) {
         return;
       } else {
         this.curindex = row;
-        this.$refs.bbb.title = "閫夋嫨妫�娴嬬粨鏋�";
+      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) {
@@ -1067,7 +1070,6 @@
       const proId = row.proId;
       resultList(tjNum, proId).then((res) => {
         this.jieguoList = res.data;
-        console.log(this.jieguoList, 998877);
 
         this.jyjc = this.jieguoList[0].jyjc;
         const ycbz = this.jieguoList[0].ycbz;
@@ -1201,7 +1203,9 @@
       });
     },
     handleClose() {
-      this.$tab.refreshPage();
+      // 鍙埛鏂拌〃鏍兼暟鎹�
+      this.getList();
+      this.drawer = false;
     },
     handleClose1() {
       this.jianqians = false;
@@ -1217,7 +1221,6 @@
     },
 
     changDesc(item) {
-      console.log(item)
       if (item.exceptionDesc == true) {
         item.conclusion = "寮傚父"
       } else {
@@ -1283,28 +1286,27 @@
       this.inputDoms = inputDoms
       // console.log(this.inputDoms)
     },
-    keyInputConfirm(event, currentRowIndex) {
+    keyInputConfirm(event,index, currentRowIndex) {
       // 闃绘榛樿鍥炶溅琛屼负锛屾瘮濡傛彁浜よ〃鍗�
       event.preventDefault();
+     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 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級
             const target = Array.isArray(nextInput) ? nextInput[0] : nextInput;
             target.focus(); // 鑱氱劍杈撳叆妗�
-            target.select(); // 鍙�夛細閫変腑鏂囨湰
+            // target.select(); // 鍙�夛細閫変腑鏂囨湰
           }
         });
       }
 
     },
     handleInputConfirm(datas, params) {
-
       if (params && params.length === 0) {
         // 濡傛灉娌℃湁閫変腑浠讳綍椤圭洰锛屽彇娑堝紓甯稿閫夋鐨勯�変腑鐘舵��
         this.curindex.exceptionDesc = false;
@@ -1812,7 +1814,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;
@@ -2316,7 +2322,10 @@
 
     // 鐐瑰嚮纭
     determine() {
-      // 浣撴鍙�
+      // 娓呯┖鏁扮粍
+      this.tjOrderDetail = [];
+      
+      // 鍘熸湁浠g爜
       let tjNumber = this.tableAll.tjNumber;
       this.userList.forEach((item) => {
         if (this.doctorName == item.nickName) {

--
Gitblit v1.8.0