工单对账时间选择

This commit is contained in:
2023-08-23 17:23:20 +08:00
parent 7f87288d14
commit bfcaa582c2

View File

@ -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