From f9fe4cd6ae79fbac1a9fd535487bc40539c3f00e Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期四, 25 四月 2024 15:58:56 +0800 Subject: [PATCH] su --- src/views/doctor/checkAll/index.vue | 186 +++++++++++++++++++++++++++++++++++++--------- 1 files changed, 149 insertions(+), 37 deletions(-) diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index ffdc4b0..b228e37 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"> @@ -141,13 +141,16 @@ </el-col> <el-col :span="6"> <div style="margin-right: 10px;display: flex "> - <div style="margin: 10px 10px"> + <div style="margin: 10px 2px"> + <el-button type="primary" size="mini" @click="Graphicreport()">鍥炬枃鎶ュ憡</el-button> + </div> + <div style="margin: 10px 5px"> <el-button type="primary" size="mini" @click="historicalreport()">鍘嗗彶鎶ュ憡</el-button> </div> - <div style="margin: 10px 10px" v-if="tableAll.tjCategory == '02'"> + <div style="margin: 10px 5px" v-if="tableAll.tjCategory == '02'"> <el-button type="primary" size="mini" @click="medicalhistory()">鑱屼笟鐥呭彶</el-button> </div> - <div style="margin: 10px 10px"> + <div style="margin: 10px 5px"> <el-button type="primary" size="mini" @click="jianqian()">妫�鍓嶉棶璇�</el-button> </div> </div> @@ -319,13 +322,18 @@ </td> </tr> </table> + <el-radio-group v-model="proposal" @input="proposalChange" style="margin-left: 20px;margin-bottom: 20px"> + <el-radio-button label="0">蹇嵎寤鸿</el-radio-button> + <el-radio-button label="1">甯哥敤寤鸿</el-radio-button> + <el-radio-button label="2">涓�閿敓鎴�</el-radio-button> + </el-radio-group> <el-form ref="numberValidateForm" label-width="80px" class="demo-ruleForm"> <el-form-item label="鎬绘寤鸿"> <el-input type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" v-model="textarea1" :rows="3" style="width: 96%"> </el-input> </el-form-item> </el-form> - <div slot="footer" class="dialog-footers"> + <div slot="footer" class="dialog-footers" v-if="tjproject == '0'"> <el-button type="primary" @click="determine" :disabled="isdisabled">鎻愪氦骞剁敓鎴愭姤鍛�</el-button> </div> </div> @@ -550,12 +558,36 @@ <el-button @click="jianqians = false">鍙� 娑�</el-button> </span> </el-dialog> + <Packages ref="bbb" :baogao="baogao" /> + <el-dialog title="甯哥敤寤鸿缁存姢" :visible.sync="propdialog" width="500px" append-to-body> + <el-form ref="form" :model="propform" label-width="80px"> + <el-form-item label="寤鸿鏍囬" prop="title"> + <el-input v-model="propform.title" placeholder="璇疯緭鍏ュ悕绉版爣棰�" /> + </el-form-item> + <el-form-item label="蹇嵎鏍囩" prop="title"> + <el-input v-model="propform.title" placeholder="璇疯緭鍏ュ悕绉版爣棰�" /> + </el-form-item> + <el-form-item label="寤鸿鍐呭" prop="advice"> + <el-input + type="textarea" + v-model="propform.advice" + :autosize="{ minRows: 9, maxRows: 10 }" + placeholder="璇疯緭鍏ュ缓璁�" + /> + </el-form-item> + </el-form> + <!-- <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> + <el-button @click="cancel">鍙� 娑�</el-button> + </div> --> + </el-dialog> </div> </template> <script> import jianqianwenzhen from "@/components/jianqianwenzhen"; +import Packages from "@/components/Packages"; import { getcheckList, getTjdetailList, @@ -566,7 +598,7 @@ getState, getforceIn, gettoPdf, - getModified, + getModified, isPdfOrJimu } from "@/api/doctor/checkAll"; import { getInfoById } from "@/api/hosp/history"; import { getInfo } from "@/api/login"; @@ -575,12 +607,18 @@ import { getPdf, revoke } from "@/api/hosp/order"; import ViewPdf from "@/components/ViewPdf"; import Historicalreport from "@/components/Historicalreport"; - +import { getDicts } from "@/api/system/dict/data"; +import { + getTjYxjcList +} from "@/api/system/package"; +import { getNewDateList } from "@/api/hosp/order"; +import moment from "moment"; export default { components: { ViewPdf, Historicalreport, jianqianwenzhen, + Packages }, dicts: [ "dict_tjtype", @@ -596,6 +634,7 @@ name: "checkAll", data() { return { + baogao: [], flags: false, jianqianwenzhendata: [], jianqians: false, @@ -605,6 +644,9 @@ hosproy: true, remarks: "", remark: "", + proposal:"0", + propdialog:false, + propform:{}, proIds: "", xiaojie: "", isdisabled: false, @@ -714,8 +756,9 @@ }, created() { - this.getNowTime(); - this.getList(); + // this.getNowTime(); + + this.getdate(); }, mounted() { @@ -724,6 +767,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(); @@ -799,25 +851,77 @@ 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() { + let dictType = "dict_ageunit" + getDicts(dictType).then(res => { + if (res.code == 200) { + res.data.forEach(item => { + if (this.tableAll.age_unit == item.dictValue) { + this.tableAll.age_unit = item.dictLabel + } + }) + let dictTypes = "sys_user_sex" + getDicts(dictTypes).then(res => { + if (res.code == 200) { + res.data.forEach(item => { + if (this.tableAll.cusSex == item.dictValue) { + this.tableAll.cusSex = item.dictLabel + } + }) + let data = { + patname: this.tableAll.cusName, + sex: this.tableAll.cusSex, + patage: this.tableAll.age, + patagename: this.tableAll.age_unit, + patbirth: this.tableAll.cusBrithday + } + // let data = { + // patname: "鑴辫兘濞�", + // sex: "濂�", + // patage: "60", + // patagename: "宀�", + // patbirth: "1963-01-01" + // } + getTjYxjcList(data).then(res => { + this.baogao = res.data + }) + this.$refs.bbb.open = true; + // this.$refs.bbb.getAllList(); + this.$refs.bbb.title = "鎶ュ憡瀛楀吀"; + } + }) + } + }) }, historicalreport() { @@ -896,6 +1000,11 @@ } this.loading = false; }); + }, + proposalChange(){ + if(this.proposal == "2"){ + this.propdialog = true + } }, radiotjprojectChange() { if (this.tjproject == "0") { @@ -1021,23 +1130,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; @@ -1055,10 +1166,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; } @@ -1144,6 +1255,7 @@ }); }); this.drawer = false; + } }); -- Gitblit v1.8.0