From 5f5425c1be29b82205f19b7779cda67cfcc3a6e5 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期三, 19 六月 2024 17:53:26 +0800 Subject: [PATCH] qxtj --- src/views/doctor/test/index.vue | 67 ++++++++++++++++++++++++++++++--- 1 files changed, 61 insertions(+), 6 deletions(-) diff --git a/src/views/doctor/test/index.vue b/src/views/doctor/test/index.vue index ff61e4d..0bb8aec 100644 --- a/src/views/doctor/test/index.vue +++ b/src/views/doctor/test/index.vue @@ -6,10 +6,10 @@ @keyup.enter.native="handleQuery"></el-input> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNumber"> - <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @blur="submitForm" @keyup.enter.native="submitForm"></el-input> + <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" @keyup.enter.native="submitForm" @blur="hb"></el-input> </el-form-item> <el-form-item> - <el-button size="mini" type="primary" @click="submitForm">鎼滅储</el-button> + <el-button size="mini" type="primary" @click="submitForm" style="margin-right:15px;">鎼滅储</el-button> <el-button size="mini" @click="resetQuery">閲嶇疆</el-button> </el-form-item> </el-form> @@ -52,7 +52,7 @@ <div class="pag"> <div class="pag1"> - <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.pageSize" + <pagination v-show="total >= 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.pageSize" @pagination="getList" /> </div> </div> @@ -543,6 +543,7 @@ queryParams: { page: 1, pageSize: 10, + pageNum:1, tjNumber: "", type: "", name: null, @@ -585,6 +586,14 @@ listUser(this.addDateRange(this.queryParams, this.dateRange)).then( (response) => { this.userList = response.rows; + if (this.doctorName == null) { + this.userList.forEach((element) => { + const userName = this.$store.state.user.name; + if (userName == element.userName) { + this.doctorName = element.nickName; + } + }); + } } ); getInfo().then((response) => { @@ -708,6 +717,11 @@ }); }, + hb(){ + if (this.queryParams.tjNumber != "") { + this.submitForm(); + } + }, // 鎼滅储 submitForm() { @@ -820,7 +834,6 @@ }, submitFormapply() { - console.log(this.form) let data = {} this.userList.forEach(item1 => { if (this.form.hzDoctorId == item1.userId) { @@ -934,7 +947,6 @@ // if(newRows[0].hzReplyLogsList){ // this.hzReplyLogsList = newRows[0].hzReplyLogsList // } - // console.log(this.hzReplyLogsList) // this.allList = newRows } else { this.allList = [] @@ -959,6 +971,9 @@ } if (this.tableAll.cusSex === 1) { this.tableAll.cusSex = "濂�"; + } + if (this.tableAll.cusSex === 2) { + this.tableAll.cusSex = "鏈煡"; } this.tjNumber = row.tjNumber; let num = 0; @@ -1030,6 +1045,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; @@ -1048,7 +1071,7 @@ if (this.proParentList.xiaoJie.length != 0) { this.Parent.forEach((item3) => { if (item3.proId === this.nums) { - this.proParentList.remark = item.remark; + this.proParentList.remark = item3.remark; } }); } else { @@ -1136,6 +1159,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) => { @@ -1200,6 +1231,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; } @@ -1254,6 +1293,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; } @@ -1295,6 +1342,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