From bddb36bcdc87debcd3d3f2928eef48cc5696e096 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期四, 28 十二月 2023 18:05:53 +0800 Subject: [PATCH] su --- src/views/doctor/check/index.vue | 38 ++++++++++++++++++- src/views/doctor/checkAll/index.vue | 59 +++++++++++++++++++++++++++-- src/components/jianqianwenzhen/index.vue | 1 3 files changed, 92 insertions(+), 6 deletions(-) diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue index 36b1864..a669b7f 100644 --- a/src/components/jianqianwenzhen/index.vue +++ b/src/components/jianqianwenzhen/index.vue @@ -531,6 +531,7 @@ watch: { jianqianwenzhendata(val, newVla) { if (val) { + console.log(val); this.loading = false; this.form = val; if (this.form.xiyan == null) { diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 3057cf7..f1f0651 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -701,7 +701,7 @@ </div> </el-col> <el-col :span="6"> - <Historicalreport + <Historicalreport v-show="lishi" :reportHistorydata="reportHistorydata" ></Historicalreport> </el-col> @@ -754,7 +754,7 @@ title="鎻愮ず" :visible.sync="jianqians" width="1000px" - :before-close="handleClose" + :before-close="handleClose1" > <jianqianwenzhen :jianqianwenzhendata="jianqianwenzhendata" @@ -768,6 +768,7 @@ <script> +import { getInfoById } from "@/api/hosp/history"; import jianqianwenzhen from "@/components/jianqianwenzhen"; import Public from "@/components/public"; import { getPdf } from "@/api/hosp/order"; @@ -794,6 +795,9 @@ components: { Public, Historicalreport,jianqianwenzhen }, data() { return { + lishi:true, + rowes:{}, + jianqianwenzhendata:[], jianqians:false, selected: false, checkval: false, @@ -930,6 +934,9 @@ }, handleClose() { this.$tab.refreshPage(); + }, + handleClose1(){ + this.jianqians = false }, // 鑾峰彇鍖荤敓 selName(val) { @@ -1322,6 +1329,7 @@ cusId: this.tableAll.cusId, }; reportHistory(data).then((res) => { + console.log(res); this.loading = false; if (res.data[0] != null) { this.reportHistorydata = res.data; @@ -1330,6 +1338,30 @@ }, jianqian() { + let tjNumber = this.rowes.tjNumber; + getInfoById(tjNumber).then((response) => { + this.jianqianwenzhendata = 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.jianqians = true; }, @@ -1414,6 +1446,8 @@ // 鐐瑰嚮璇︽儏 handleClick(row) { + this.rowes = row; + console.log(this.rowes); this.getDept(row.tjNumber); this.loading = true; this.drawer = true; diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue index c52dbc7..8711f24 100644 --- a/src/views/doctor/checkAll/index.vue +++ b/src/views/doctor/checkAll/index.vue @@ -13,7 +13,7 @@ style="width: 120px" placeholder="璇疯緭鍏ュ鍚�" clearable - @keyup.enter.native="handleQuery" + @keyup.enter.native="submitForm" ></el-input> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNumber"> @@ -23,8 +23,8 @@ style="width: 180px" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable - @keyup.enter.native="handleQuery" - @blur="handleQuery" + @keyup.enter.native="submitForm" + @blur="submitForm" ></el-input> </el-form-item> <el-form-item label="浣撴鏃堕棿" prop="tjTime"> @@ -284,6 +284,11 @@ <div style="margin: 10px 10px" v-if="tableAll.tjCategory == '02'"> <el-button type="primary" size="mini" @click="medicalhistory()" >鑱屼笟鐥呭彶</el-button + > + </div> + <div style="margin: 10px 10px"> + <el-button type="primary" size="mini" @click="jianqian()" + >妫�鍓嶉棶璇�</el-button > </div> </div> @@ -964,11 +969,25 @@ ></iframe> </div> </el-dialog> + <el-dialog + title="鎻愮ず" + :visible.sync="jianqians" + width="1000px" + :before-close="handleClose1" + > + <jianqianwenzhen + :jianqianwenzhendata="jianqianwenzhendata" + ></jianqianwenzhen> + <span slot="footer" class="dialog-footer"> + <el-button @click="jianqians = false">鍙� 娑�</el-button> + </span> + </el-dialog> </div> </template> <script> +import jianqianwenzhen from "@/components/jianqianwenzhen"; import { getcheckList, getTjdetailList, @@ -992,6 +1011,7 @@ components: { ViewPdf, Historicalreport, + jianqianwenzhen }, dicts: [ "dict_tjtype", @@ -1005,6 +1025,8 @@ name: "checkAll", data() { return { + jianqianwenzhendata:[], + jianqians:false, sex: true, activeName: "1", wenzhen: false, @@ -1158,6 +1180,33 @@ ":" + this.add0(mm) ); + }, + jianqian() { + let tjNumber = this.tableAll.tjNumber; + getInfoById(tjNumber).then((response) => { + this.jianqianwenzhendata = 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.jianqians = true; }, getList() { this.loading = true; @@ -1521,7 +1570,9 @@ getfiedState(data).then((res) => {}); }); }, - + handleClose1(){ + this.jianqians = false + }, // 鐢熸垚鎶ュ憡 // generate(row) { // const tjNumber = row.tjNumber; -- Gitblit v1.8.0