From e0c4ede7fdcacf281bd6b3303d625d87bd4e728c Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 20 十月 2023 18:08:54 +0800 Subject: [PATCH] hzymxg --- src/views/hosp/settlement/index.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/hosp/settlement/index.vue b/src/views/hosp/settlement/index.vue index a24f39b..f917347 100644 --- a/src/views/hosp/settlement/index.vue +++ b/src/views/hosp/settlement/index.vue @@ -6,8 +6,10 @@ style="width: 120px;" /> </el-form-item> <el-form-item label="缁撹处鏃堕棿" prop="tollCollectorName"> - <el-date-picker v-model="value1" type="datetimerange" start-placeholder="璧锋鏃ユ湡" end-placeholder="缁堟鏃ユ湡" - :default-time="['12:00:00']"> + <el-date-picker v-model="value1" type="datetimerange" start-placeholder="璧锋鏃ユ湡" end-placeholder="缁堟鏃ユ湡" :default-time="['00:00:00', '23:00:00']" + format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss" + @change="dateChangebirthday1"> </el-date-picker> </el-form-item> </el-form> @@ -136,19 +138,22 @@ }); }, + // 鏃堕棿 + dateChangebirthday1(val) { + this.value1 = val; + console.log(this.value1) + }, /** 缁熻 */ handleUpdate() { this.loading = true; + let data = { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize, userId: this.userId.toString(), - beginTime: moment(this.time).format("YYYY-MM-DD HH:mm:ss"), - endTime: new Date(new Date().getTime() + 8 * 3600 * 1000) - .toJSON() - .substr(0, 19) - .replace("T", " "), + beginTime: this.value1[0], + endTime: this.value1[1] }; getList(data).then((res) => { this.dataList = res.data.list; @@ -268,7 +273,7 @@ type: "success", }); this.$forceUpdate(); - this.handleUpdate(); + this.getList(); const accountId = res.msg; const viewNum = "809743614817824768"; const params = { viewNum, accountId }; -- Gitblit v1.8.0