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