From 2d1cc07e5be9d226d23dc172031a3971ea43528f Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 08 三月 2024 15:50:38 +0800 Subject: [PATCH] qxtj --- src/views/hosp/extension/index.vue | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/hosp/extension/index.vue b/src/views/hosp/extension/index.vue index 53475eb..4690df9 100644 --- a/src/views/hosp/extension/index.vue +++ b/src/views/hosp/extension/index.vue @@ -30,8 +30,9 @@ <el-date-picker clearable v-model="createTimeList" - style="width: 240px" - value-format="yyyy-MM-dd" + :default-time="['00:00:00', '23:00:00']" + format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" @@ -48,9 +49,10 @@ start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :picker-options="pickerOptions" - value-format="yyyy-MM-dd" + :default-time="['00:00:00', '23:00:00']" + format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss" placeholder="璇烽�夋嫨浣撴瀹屾垚鏃堕棿" - style="width: 240px" > </el-date-picker> </el-form-item> @@ -310,6 +312,8 @@ import { listSendTemplate } from "@/api/hosp/sendTemplate"; import ViewPdf from "@/components/ViewPdf"; import { queryCompany } from "@/api/team/tuanti"; +import { getNewDateList } from "@/api/hosp/order"; +import moment from "moment"; export default { components: { ViewPdf, @@ -405,8 +409,9 @@ }; }, created() { - this.getNowTime(); + // this.getNowTime(); this.getList(); + this.getdate(); }, mounted() { this.$nextTick(() => { @@ -414,6 +419,14 @@ }); }, methods: { + getdate() { + getNewDateList().then((res) => { + this.finishTimeList = [ + moment(res.data).format("YYYY-MM-DD 00:00:00"), + moment(res.data).format("YYYY-MM-DD 23:59:00"), + ]; + }); + }, dialogVisibles() { this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); }, -- Gitblit v1.8.0