From d33a1299a9e5f23641ef2d549b7bab26c91819cb Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 23 一月 2024 18:01:49 +0800 Subject: [PATCH] su --- src/views/doctor/imaging/index.vue | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 54 insertions(+), 3 deletions(-) diff --git a/src/views/doctor/imaging/index.vue b/src/views/doctor/imaging/index.vue index b425420..a3ce4f6 100644 --- a/src/views/doctor/imaging/index.vue +++ b/src/views/doctor/imaging/index.vue @@ -22,6 +22,8 @@ v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" + @blur="submitForm" + @keyup.enter.native="submitForm" ></el-input> </el-form-item> <el-form-item> @@ -738,7 +740,7 @@ import Public from "@/components/public"; import { getInfo } from "@/api/login"; import { - huaYangetProList, + yingXiangGetProList, getPhotoList, getaddRemark, getParentList, @@ -877,6 +879,12 @@ listUser(this.addDateRange(this.queryParams, this.dateRange)).then( (response) => { this.userList = response.rows; + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); } ); getInfo().then((response) => { @@ -964,7 +972,7 @@ getList() { this.loading = true; this.queryParams.type = this.tjStatus; - huaYangetProList(this.queryParams).then((response) => { + yingXiangGetProList(this.queryParams).then((response) => { if (response.code == 200) { this.loading = false; if (response.data) { @@ -985,7 +993,7 @@ radioChange(val) { this.loading = true; this.queryParams.type = val; - huaYangetProList(this.queryParams).then((response) => { + yingXiangGetProList(this.queryParams).then((response) => { if (response.code == 200) { this.loading = false; if (response.data) { @@ -1286,6 +1294,9 @@ if (this.tableAll.cusSex === 1) { this.tableAll.cusSex = "濂�"; } + if (this.tableAll.cusSex === 2) { + this.tableAll.cusSex = "鏈煡"; + } this.tjNumber = row.tjNumber; let num = 0; getParentList(this.tjNumber).then((response) => { @@ -1355,6 +1366,14 @@ this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } if (item.isReturn == 1) { item.isReturn = true; @@ -1426,6 +1445,14 @@ this.userList.forEach((item) => { if (this.doctorName == item.nickName) { this.doctorName = item.userId; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } } }); this.proParentList.sons.forEach((item) => { @@ -1490,6 +1517,14 @@ } this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } if (item.isReturn == 1) { item.isReturn = true; } @@ -1544,6 +1579,14 @@ } this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } if (item.isReturn == 1) { item.isReturn = true; } @@ -1585,6 +1628,14 @@ this.userList.forEach((item) => { if (this.doctorName == item.nickName) { this.doctorName = item.userId; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } } }); this.proParentList.sons.forEach((item) => { -- Gitblit v1.8.0