From c2943d4c365e6a4719fbd5fedf89f8c2232cf88e Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期一, 25 三月 2024 18:16:27 +0800 Subject: [PATCH] qxtj --- src/views/system/visit/index.vue | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/views/system/visit/index.vue b/src/views/system/visit/index.vue index 811c8dd..b4cf172 100644 --- a/src/views/system/visit/index.vue +++ b/src/views/system/visit/index.vue @@ -258,9 +258,10 @@ getPdf, getOrderList, printCode, + getNewDateList } from "@/api/hosp/order"; import { getsendEmail, getsendMessage } from "@/api/hosp/order"; - +import moment from "moment"; import { addSurveyRecord } from "@/api/hosp/surveyRecord"; import { getDictEmerList, listEmer } from "@/api/system/emer"; import ViewPdf from "@/components/ViewPdf"; @@ -427,10 +428,11 @@ }, }, created() { - this.getNowTime(); - this.getList(); + // this.getNowTime(); + this.Company(); this.getListEmer(); + this.getdate(); }, mounted() { this.$nextTick(() => { @@ -438,6 +440,15 @@ }); }, methods: { + getdate() { + getNewDateList().then((res) => { + this.createTimeList = [ + moment(res.data).format("YYYY-MM-DD 00:00:00"), + moment(res.data).format("YYYY-MM-DD 23:59:00") + ];; + this.getList(); + }); + }, dialogVisibles() { this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); }, @@ -506,8 +517,15 @@ }, /** 鏌ヨ浣撴璁板綍鍒楄〃 */ getList() { - this.queryParams.djbeginTime = this.createTimeList[0]; + if( this.createTimeList){ + this.queryParams.djbeginTime = this.createTimeList[0]; this.queryParams.djendTime = this.createTimeList[1]; + }else if(this.createTimeList == null){ + this.queryParams.djbeginTime = null; + this.queryParams.djendTime = null; + } + + this.loading = true; getOrderList(this.queryParams).then((response) => { this.orderList = response.data.list; @@ -605,6 +623,7 @@ }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { + this.createTimeList = [] this.resetForm("queryForm"); this.handleQuery(); }, -- Gitblit v1.8.0