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 | 92 +++++++++++++++++++++++++--------------------- 1 files changed, 50 insertions(+), 42 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index f515a51..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> @@ -701,7 +701,8 @@ </div> </el-col> <el-col :span="6"> - <Historicalreport v-show="lishi" + <Historicalreport + v-show="lishi" :reportHistorydata="reportHistorydata" ></Historicalreport> </el-col> @@ -756,9 +757,10 @@ width="1000px" :before-close="handleClose1" > - <jianqianwenzhen - :jianqianwenzhendatas="jianqianwenzhendatas" - ></jianqianwenzhen> + <jianqianwenzhen + :jianqianwenzhendata="jianqianwenzhendata" + v-if="flags" + ></jianqianwenzhen> <span slot="footer" class="dialog-footer"> <el-button @click="jianqians = false">鍙� 娑�</el-button> </span> @@ -792,13 +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 { - lishi:false, - rowes:{}, - jianqianwenzhendatas:[], - jianqians:false, + flags: false, + lishi: false, + jianqianwenzhendata: [], + jianqians: false, selected: false, checkval: false, // 閬僵灞� @@ -873,6 +875,7 @@ deptId: "", userId: "", nickName: "", + doctorNames: "", date: new Date(new Date().getTime() + 8 * 3600 * 1000) .toJSON() .substr(0, 19) @@ -923,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) => { @@ -935,8 +944,8 @@ handleClose() { this.$tab.refreshPage(); }, - handleClose1(){ - this.jianqians = false + handleClose1() { + this.jianqians = false; }, // 鑾峰彇鍖荤敓 selName(val) { @@ -1208,7 +1217,6 @@ }, hadleedit(row) { - console.log(row, 111); this.form.hzType = row.hzType; this.form.id = row.id; // this.form.hzDeptId = row.hzDeptNameList; @@ -1329,14 +1337,13 @@ cusId: this.tableAll.cusId, }; reportHistory(data).then((res) => { - console.log(res); this.loading = false; if (res.data[0] != null) { this.reportHistorydata = res.data; } - if(this.reportHistorydata.length >= 1){ + if (this.reportHistorydata.length >= 1) { this.lishi = true; - }else{ + } else { this.lishi = true; this.$modal.msgError("鏆傛棤鍘嗗彶鎶ュ憡"); } @@ -1344,31 +1351,10 @@ }, jianqian() { - let tjNumber = this.rowes.tjNumber; - getInfoById(tjNumber).then((response) => { - this.jianqianwenzhendatas = response.data; - if (this.form.xiyan == null) { - this.form.xiyan = "1"; - } - if (this.form.xiyanpinlv == null) { - this.form.xiyanpinlv = "0"; - } - if (this.form.xiyanyear == null) { - this.form.xiyanyear = "0"; - } - if (this.form.yinjiu == null) { - this.form.yinjiu = "1"; - } - if (this.form.yinjiupinlv == null) { - this.form.yinjiupinlv = "0"; - } - if (this.form.yinjiuyear == null) { - this.form.yinjiuyear = "0"; - } - this.form.tjAskHistorysList = response.data.tjAskHistorysList; - // this.isdisabled= true - }); + this.flags = true; this.jianqians = true; + let tjNumber = this.tableAll.tjNumber; + this.jianqianwenzhendata.push(tjNumber); }, handlecan(row) { @@ -1452,8 +1438,6 @@ // 鐐瑰嚮璇︽儏 handleClick(row) { - this.rowes = row; - console.log(this.rowes); this.getDept(row.tjNumber); this.loading = true; this.drawer = true; @@ -1536,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; @@ -1671,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; } @@ -1725,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