From bfcaa582c2835bf1975f832474cba375e54a5222 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 23 Aug 2023 17:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E5=AF=B9=E8=B4=A6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workOrder/workOrderReconciliation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/workOrder/workOrderReconciliation.vue b/src/views/workOrder/workOrderReconciliation.vue index f11eee32..384714a7 100644 --- a/src/views/workOrder/workOrderReconciliation.vue +++ b/src/views/workOrder/workOrderReconciliation.vue @@ -148,14 +148,14 @@ export default { } }); }, - onConfirm(value) { + async onConfirm(value) { this.showDatetime = false const date = new Date(value); const year = date.getFullYear(); // 获取年份,结果为 2023 const month = (date.getMonth() + 1).toString().padStart(2, '0'); // 获取月份,需要注意月份从 0 开始,所以要加 1,结果为 9 this.ymTime = year + '-' + month this.queryTime=timeFormat(value); - this.getList(); + await this.getList(); }, initSelectTime() {//初始化查询时间 const year = this.currentDate.getFullYear(); // 获取年份,结果为 2023