From a2c6e0da9d51c37ceff8d0d7e1bb7f4f85f1deb5 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 16 四月 2025 14:15:24 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb --- src/views/system/biol/index.vue | 51 +++++++++++++++++++++++++++++++++------------------ 1 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/views/system/biol/index.vue b/src/views/system/biol/index.vue index af667af..af62fec 100644 --- a/src/views/system/biol/index.vue +++ b/src/views/system/biol/index.vue @@ -12,7 +12,7 @@ <el-select v-model="queryParams.dyzt" placeholder="璇烽�夋嫨" - @change="handleQuery" + @change="handleDyztChange" style="width: 100px" > <el-option @@ -551,7 +551,8 @@ hasPrintCode, getOrderListOO, getNewDateList, - getChexiao,xiugaidayinzhuangtai + getChexiao, + xiugaidayinzhuangtai, } from "@/api/hosp/order"; import moment from "moment"; import ViewPdf from "@/components/ViewPdf"; @@ -573,7 +574,7 @@ radios: "1", dialogVisiblese: false, isLoading: false, - isChexiao:false, + isChexiao: false, createTimeList: "", // printObj: { // id: "box", //鎵撳嵃鐨勫尯鍩� @@ -751,8 +752,12 @@ }, created() { // this.getNowTime(); - this.Company(); + // if (this.queryParams.dyzt === "0") { + // this.createTimeList = []; + // } else { + // this.getdate(); + // } this.getdate(); }, mounted() { @@ -762,6 +767,11 @@ }, methods: { getdate() { + if (this.queryParams.dyzt === "0") { + this.createTimeList = []; + this.getList(); + return; + } getNewDateList().then((res) => { this.createTimeList = [ moment(res.data).format("YYYY-MM-DD 00:00:00"), @@ -806,7 +816,6 @@ this.dialogVisiblese = true; }, timjiao() { - if (this.radios == "1") { this.mobanId = "912502827716915200"; } else { @@ -816,24 +825,21 @@ const viewNum = this.mobanId; const params = { viewNum, tjNum }; this.$tab.openPage("鍋ュ悍璇佹鏌ヨ〃", "/report/jiankangzheng", params); - let tjNumber = this.report[0] - xiugaidayinzhuangtai(tjNumber).then((response) => { - - }) - this.dialogVisiblese = false + let tjNumber = this.report[0]; + xiugaidayinzhuangtai(tjNumber).then((response) => {}); + this.dialogVisiblese = false; this.getList(); }, baogaoyulan() { const tjNumber = this.report[0]; - this.isLoading = true; + this.isLoading = true; isPdfOrJimu(tjNumber).then((response) => { if (response.data.flag == "0") { const flag = true; - this.isLoading = false; - let sfdy = this.queryParams.dyzt == 0 ? 1 : 0 + this.isLoading = false; + let sfdy = this.queryParams.dyzt == 0 ? 1 : 0; getPdfpre(tjNumber, flag, sfdy).then((response) => { - if (response.size === 0) { const loading = this.$loading({ lock: true, @@ -862,13 +868,13 @@ params ); } - this.isLoading = false; + this.isLoading = false; }); }, // 鎾ら攢鎵撳嵃 chexiao() { const tjNUms = this.seleList.map((item) => item.tjNumber); - this.isChexiao = true + this.isChexiao = true; getChexiao(tjNUms).then((res) => { console.log(res, 6666); if (res.code === 200) { @@ -877,7 +883,7 @@ } else { this.$modal.msgError("鎾ら攢澶辫触锛�"); } - this.isChexiao = false + this.isChexiao = false; }); }, //鎵撳嵃灏忕エ @@ -945,7 +951,6 @@ }); }); }, - doPrint(val) { var ordonnance = document.getElementById(val).contentWindow; @@ -1109,6 +1114,16 @@ this.queryParams.pageNum = 1; this.getList(); }, + handleDyztChange(value) { + if (value === "0") { + // 纭涓�涓� "鏈墦鍗�" 鐨� value 鏄笉鏄� '0' + this.createTimeList = []; + } else { + // 宸叉墦鍗� -> 璁剧疆榛樿鐧昏鏃堕棿 + this.getdate(); + } + this.handleQuery(); + }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { this.queryParams = { -- Gitblit v1.8.0