新增数据迁移任务到定时任务白名单;优化默认收货时间范围逻辑

This commit is contained in:
wuweihua
2026-11-11 15:34:11 +08:00
parent f82d9c667f
commit 7869205afc
14 changed files with 1251 additions and 3 deletions
+21 -1
View File
@@ -436,9 +436,29 @@ const exportFieldRef = ref()
const tableHeight = ref(480)
let tableResizeObserver = null
function pad2(n) {
return String(n).padStart(2, '0')
}
function formatDateTime(d, endOfDay) {
const y = d.getFullYear()
const m = pad2(d.getMonth() + 1)
const day = pad2(d.getDate())
return endOfDay ? `${y}-${m}-${day} 23:59:59` : `${y}-${m}-${day} 00:00:00`
}
/** 默认收货时间:最近两个星期(含今天共 14 天) */
function defaultPickupDateRange() {
const end = new Date()
const start = new Date()
start.setDate(start.getDate() - 13)
return [formatDateTime(start, false), formatDateTime(end, true)]
}
const defaultParams = {
orderStatuses: [3, 4, 5, 6, 7, 8, 11],
billingFailStatuses: []
billingFailStatuses: [],
pickupDateRange: defaultPickupDateRange()
}
const orderStatusMap = {