工单对账时间选择
This commit is contained in:
@ -148,14 +148,14 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onConfirm(value) {
|
async onConfirm(value) {
|
||||||
this.showDatetime = false
|
this.showDatetime = false
|
||||||
const date = new Date(value);
|
const date = new Date(value);
|
||||||
const year = date.getFullYear(); // 获取年份,结果为 2023
|
const year = date.getFullYear(); // 获取年份,结果为 2023
|
||||||
const month = (date.getMonth() + 1).toString().padStart(2, '0'); // 获取月份,需要注意月份从 0 开始,所以要加 1,结果为 9
|
const month = (date.getMonth() + 1).toString().padStart(2, '0'); // 获取月份,需要注意月份从 0 开始,所以要加 1,结果为 9
|
||||||
this.ymTime = year + '-' + month
|
this.ymTime = year + '-' + month
|
||||||
this.queryTime=timeFormat(value);
|
this.queryTime=timeFormat(value);
|
||||||
this.getList();
|
await this.getList();
|
||||||
},
|
},
|
||||||
initSelectTime() {//初始化查询时间
|
initSelectTime() {//初始化查询时间
|
||||||
const year = this.currentDate.getFullYear(); // 获取年份,结果为 2023
|
const year = this.currentDate.getFullYear(); // 获取年份,结果为 2023
|
||||||
|
Reference in New Issue
Block a user