From c26281ff05585d8f3f337b290831803fe766748b Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 02 一月 2024 18:31:44 +0800 Subject: [PATCH] su --- src/views/doctor/check/index.vue | 64 ++++++++++++++++++++++++++++---- 1 files changed, 56 insertions(+), 8 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 3057cf7..7aca135 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -480,7 +480,7 @@ > </div> <div style="margin: 10px 10px"> - <el-button type="primary" size="mini" @click="jianqian()" + <el-button type="primary" size="mini" @click="jianqian" >妫�鍓嶉棶璇�</el-button > </div> @@ -702,6 +702,7 @@ </el-col> <el-col :span="6"> <Historicalreport + v-show="lishi" :reportHistorydata="reportHistorydata" ></Historicalreport> </el-col> @@ -754,11 +755,12 @@ title="鎻愮ず" :visible.sync="jianqians" width="1000px" - :before-close="handleClose" + :before-close="handleClose1" > - <jianqianwenzhen - :jianqianwenzhendata="jianqianwenzhendata" - ></jianqianwenzhen> + <jianqianwenzhen + :jianqianwenzhendata="jianqianwenzhendata" + v-if="flags" + ></jianqianwenzhen> <span slot="footer" class="dialog-footer"> <el-button @click="jianqians = false">鍙� 娑�</el-button> </span> @@ -768,6 +770,7 @@ <script> +import { getInfoById } from "@/api/hosp/history"; import jianqianwenzhen from "@/components/jianqianwenzhen"; import Public from "@/components/public"; import { getPdf } from "@/api/hosp/order"; @@ -791,10 +794,13 @@ export default { dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"], name: "check", - components: { Public, Historicalreport,jianqianwenzhen }, + components: { Public, Historicalreport, jianqianwenzhen }, data() { return { - jianqians:false, + flags: false, + lishi: false, + jianqianwenzhendata: [], + jianqians: false, selected: false, checkval: false, // 閬僵灞� @@ -869,6 +875,7 @@ deptId: "", userId: "", nickName: "", + doctorNames: "", date: new Date(new Date().getTime() + 8 * 3600 * 1000) .toJSON() .substr(0, 19) @@ -919,6 +926,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) => { @@ -930,6 +943,9 @@ }, handleClose() { this.$tab.refreshPage(); + }, + handleClose1() { + this.jianqians = false; }, // 鑾峰彇鍖荤敓 selName(val) { @@ -1201,7 +1217,6 @@ }, hadleedit(row) { - console.log(row, 111); this.form.hzType = row.hzType; this.form.id = row.id; // this.form.hzDeptId = row.hzDeptNameList; @@ -1326,11 +1341,20 @@ if (res.data[0] != null) { this.reportHistorydata = res.data; } + if (this.reportHistorydata.length >= 1) { + this.lishi = true; + } else { + this.lishi = true; + this.$modal.msgError("鏆傛棤鍘嗗彶鎶ュ憡"); + } }); }, jianqian() { + this.flags = true; this.jianqians = true; + let tjNumber = this.tableAll.tjNumber; + this.jianqianwenzhendata.push(tjNumber); }, handlecan(row) { @@ -1496,6 +1520,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; @@ -1631,6 +1663,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; } @@ -1685,6 +1725,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; } -- Gitblit v1.8.0