抓取生产工单,抓取发料异常

This commit is contained in:
hjq
2026-06-11 19:38:16 +08:00
parent a160d5d48f
commit 94c81cdc4f
10 changed files with 160 additions and 28 deletions

View File

@@ -244,6 +244,16 @@
}
},
mounted() {
// 默认初始化为当月的第一天和最后一天
const now = new Date();
const y = now.getFullYear();
const m = now.getMonth() + 1;
const pad = (n) => n.toString().padStart(2, '0');
const lastDayDate = new Date(y, m, 0);
const firstDay = `${y}-${pad(m)}-01`;
const lastDay = `${y}-${pad(m)}-${pad(lastDayDate.getDate())}`;
this.dateRangeSelect = [firstDay, lastDay];
// 初始化加载数据
this.loadSummary();
this.loadUnmatchedData();