From ae97cf4803095815b77e7f3b6e8aa16c85d07b06 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 26 三月 2024 17:28:01 +0800 Subject: [PATCH] qxtj --- src/views/doctor/checkAll/index.vue | 91 +++++++++++++++++++++++++++++---------------- 1 files changed, 58 insertions(+), 33 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index c41e4dd..fa565b2 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -110,7 +110,7 @@ 鎬у埆锛� </td> <td style="border: 1px solid #dfe6ec; border-collapse: collapse"> - {{ tableAll.cusSex }} + {{ tableAll.cusSex == 0? "鐢�" :tableAll.cusSex == 1?"濂�":"鏈煡"}} </td> </tr> <tr style="border: 1px solid #dfe6ec; border-collapse: collapse"> @@ -554,6 +554,7 @@ </span> </el-dialog> <Packages ref="bbb" :baogao="baogao" /> + </div> </template> @@ -571,7 +572,7 @@ getState, getforceIn, gettoPdf, - getModified, + getModified, isPdfOrJimu } from "@/api/doctor/checkAll"; import { getInfoById } from "@/api/hosp/history"; import { getInfo } from "@/api/login"; @@ -584,12 +585,14 @@ import { getTjYxjcList } from "@/api/system/package"; +import { getNewDateList } from "@/api/hosp/order"; +import moment from "moment"; export default { components: { ViewPdf, Historicalreport, jianqianwenzhen, - Packages + Packages }, dicts: [ "dict_tjtype", @@ -724,8 +727,9 @@ }, created() { - this.getNowTime(); - this.getList(); + // this.getNowTime(); + + this.getdate(); }, mounted() { @@ -734,6 +738,15 @@ }); }, methods: { + getdate() { + getNewDateList().then((res) => { + this.startTime = [ + moment(res.data).format("YYYY-MM-DD 00:00:00"), + moment(res.data).format("YYYY-MM-DD 23:59:00"), + ]; + this.getList(); + }); + }, // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡 getNowTime() { var curDate = new Date().getTime(); @@ -809,25 +822,34 @@ viewReport(row) { const tjNumber = row.tjNumber; - const flag = true; - getPdf(tjNumber, flag).then((response) => { - if (response.size === 0) { - const loading = this.$loading({ - lock: true, - text: "Loading", - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - }); - setTimeout(() => { - loading.close(); - }, 3000); - this.$message.msgSuccess("鎶ュ憡姝e湪鐢熸垚锛岃涓ゅ垎閽熷悗棰勮锛�"); - } else { - this.dialogVisible = true; + isPdfOrJimu(tjNumber).then((response) => { + if (response.data.flag == "0") { + const flag = true; + getPdf(tjNumber, flag).then((response) => { + if (response.size === 0) { + const loading = this.$loading({ + lock: true, + text: "Loading", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + setTimeout(() => { + loading.close(); + }, 3000); + this.$message.msgSuccess("鎶ュ憡姝e湪鐢熸垚锛岃涓ゅ垎閽熷悗棰勮锛�"); + } else { + this.dialogVisible = true; - this.url = window.webkitURL.createObjectURL(response); //灏嗗悗绔繑鍥炵殑blob鏂囦欢璇诲彇鍑簎rl + this.url = window.webkitURL.createObjectURL(response); //灏嗗悗绔繑鍥炵殑blob鏂囦欢璇诲彇鍑簎rl + } + }); + } else { + let url = response.data.url + const params = { url }; + this.$tab.openPage("鍋ュ悍璇佹鏌ヨ〃", "/report/zongjianjiankangzheng", params); } - }); + }) + }, Graphicreport() { @@ -1074,23 +1096,25 @@ }, // 閲嶇疆 resetQuery() { + this.startTime=[] this.resetForm("tableList"); this.submitForm(); }, // 鐐瑰嚮璇︽儏 handleClick(row) { + this.tableAll = row; this.tjproject = "0" - if (this.tableAll.cusSex === 0) { - this.tableAll.cusSex = "鐢�"; - } - if (this.tableAll.cusSex === 1) { - this.tableAll.cusSex = "濂�"; - } - if (this.tableAll.cusSex === 2) { - this.tableAll.cusSex = "鏈煡"; - } + // if (this.tableAll.cusSex === 0) { + // this.tableAll.cusSex = "鐢�"; + // } + // if (this.tableAll.cusSex === 1) { + // this.tableAll.cusSex = "濂�"; + // } + // if (this.tableAll.cusSex === 2) { + // this.tableAll.cusSex = "鏈煡"; + // } this.tjNumber = this.tableAll.tjNumber; getState(this.tjNumber).then((res) => { this.status = res.data; @@ -1108,10 +1132,10 @@ this.drawer = true; getupdateCheckType(this.tjNumber).then((response) => { this.changedate = response.data; - this.changedate.forEach((item) => { + if (this.changedate) { + this.changedate.forEach((item) => { this.textarea1 = item.checkAdvice; }); - if (this.changedate) { for (let i = 0; i < this.changedate.length; i++) { this.remark = this.changedate[i].remark; } @@ -1197,6 +1221,7 @@ }); }); this.drawer = false; + } }); -- Gitblit v1.8.0