From 7db11f1ecbe7df37eb1a8adfdfadc8b654d46522 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期三, 09 四月 2025 17:30:31 +0800 Subject: [PATCH] 2 --- src/views/doctor/check/index.vue | 38 +++++++++++++++++++++++++------------- 1 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 91ab6df..10465d0 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -274,7 +274,7 @@ <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"> @@ -282,8 +282,8 @@ <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> @@ -414,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"> @@ -422,8 +422,8 @@ <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)" + <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}`" @@ -808,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"], @@ -983,14 +984,23 @@ methods: { handleFocus(row) { this.autorule = []; - if (!row.resultType || row.resultType == 2 || !row.proResult ) { + if (!row.resultType || row.resultType == 2 ) { return; - } else { + } 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) { @@ -1274,16 +1284,15 @@ 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 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級 @@ -2307,7 +2316,10 @@ // 鐐瑰嚮纭 determine() { - // 浣撴鍙� + // 娓呯┖鏁扮粍 + this.tjOrderDetail = []; + + // 鍘熸湁浠g爜 let tjNumber = this.tableAll.tjNumber; this.userList.forEach((item) => { if (this.doctorName == item.nickName) { -- Gitblit v1.8.0