From cee2eca9c3e40b48c40a8fe80f938a777f03d463 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期二, 10 六月 2025 17:57:11 +0800 Subject: [PATCH] 1 --- src/views/hosp/extension/index.vue | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/views/hosp/extension/index.vue b/src/views/hosp/extension/index.vue index 53475eb..ba40f72 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> @@ -75,6 +77,7 @@ size="mini" @click="transmittext" :disabled="multiple" + style="margin: 0 15px;" >鎵归噺鍙戦�佺煭淇�</el-button > <el-button @@ -310,6 +313,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 +410,9 @@ }; }, created() { - this.getNowTime(); - this.getList(); + // this.getNowTime(); + + this.getdate(); }, mounted() { this.$nextTick(() => { @@ -414,6 +420,15 @@ }); }, 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"), + ]; + this.getList(); + }); + }, dialogVisibles() { this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�"); }, @@ -527,6 +542,7 @@ }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { + this.finishTimeList=[] this.resetForm("queryForm"); this.handleQuery(); }, -- Gitblit v1.8.0