|
|
|
@ -375,6 +375,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//初始化查询的默认数据
|
|
|
|
|
async initSearchData() {
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const year = now.getFullYear();
|
|
|
|
|
const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
|
|
|
const startDate = `${year}-${month}-01 00:00:00`;
|
|
|
|
|
const startDateTimestamp = new Date(startDate).getTime();
|
|
|
|
|
const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`;
|
|
|
|
|
const endDateTimestamp = new Date(endDate).getTime();
|
|
|
|
|
this.query.manufactureTime = [startDateTimestamp, endDateTimestamp];
|
|
|
|
|
},
|
|
|
|
|
initData() {
|
|
|
|
|
this.listLoading = true;
|
|
|
|
|