feat(consignment): 新增和平精英寄卖库存管理、定向收集审核与工单智能匹配履约

This commit is contained in:
yml2213
2026-09-14 11:39:15 +08:00
parent 38c0cf1223
commit 1aa6dba931
30 changed files with 6350 additions and 44 deletions
+28
View File
@@ -21,3 +21,31 @@ export function generateWorkOrderNo(date: Date = new Date()): string {
const rand = Math.floor(1000 + Math.random() * 9000)
return `WO${yy}${mm}${dd}${hh}${min}${rand}`
}
/**
* Generate formatted consignment inventory number
* 生成系统标准寄售库存编号,如:INV260913123456
*/
export function generateConsignmentInventoryNo(date: Date = new Date()): string {
const yy = String(date.getFullYear()).slice(-2)
const mm = String(date.getMonth() + 1).padStart(2, '0')
const dd = String(date.getDate()).padStart(2, '0')
const hh = String(date.getHours()).padStart(2, '0')
const min = String(date.getMinutes()).padStart(2, '0')
const rand = Math.floor(1000 + Math.random() * 9000)
return `INV${yy}${mm}${dd}${hh}${min}${rand}`
}
/**
* Generate formatted consignment submission number
* 生成系统标准寄售线索收集编号,如:SUB260913123456
*/
export function generateConsignmentSubmissionNo(date: Date = new Date()): string {
const yy = String(date.getFullYear()).slice(-2)
const mm = String(date.getMonth() + 1).padStart(2, '0')
const dd = String(date.getDate()).padStart(2, '0')
const hh = String(date.getHours()).padStart(2, '0')
const min = String(date.getMinutes()).padStart(2, '0')
const rand = Math.floor(1000 + Math.random() * 9000)
return `SUB${yy}${mm}${dd}${hh}${min}${rand}`
}