feat(pl): 运费结算审批分流与车辆挂车号等 PL 能力完善
拆分运费审批/出款页面,补充结算发票附件与菜单 SQL,并同步前后端模型与车辆相关展示。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
66d5a8714b
commit
98aec80d71
37 files changed
+1362
-195
No files matched your search
@@ -6,11 +6,16 @@ const SITE_INSTRUCTION = '说明:请打开链接上传现场附件并填写备
|
||||
|
||||
type SiteSummaryRecord = {
|
||||
productName?: string
|
||||
productText?: string
|
||||
batchNo?: string
|
||||
planNo?: string
|
||||
siteUrl?: string
|
||||
}
|
||||
|
||||
function formatSiteSummaryProductLine(record: SiteSummaryRecord) {
|
||||
return record.productText || record.productName || '—'
|
||||
}
|
||||
|
||||
export function buildSiteSummaryFromInventoryLinks(options: {
|
||||
planNo?: string
|
||||
licensePlate?: string
|
||||
@@ -33,13 +38,13 @@ export function buildSiteSummaryFromInventoryLinks(options: {
|
||||
|
||||
if (validRecords.length === 1) {
|
||||
const record = validRecords[0]
|
||||
lines.push(`产品:${record.productName || '—'}`)
|
||||
lines.push(`产品:${formatSiteSummaryProductLine(record)}`)
|
||||
if (record.batchNo) lines.push(`出入库单号:${record.batchNo}`)
|
||||
lines.push(`现场链接:${record.siteUrl}`)
|
||||
} else {
|
||||
lines.push('')
|
||||
validRecords.forEach((record, index) => {
|
||||
lines.push(`【${index + 1}】${record.productName || '产品'}`)
|
||||
lines.push(`【${index + 1}】${formatSiteSummaryProductLine(record)}`)
|
||||
if (record.batchNo) lines.push(`出入库单号:${record.batchNo}`)
|
||||
lines.push(`现场链接:${record.siteUrl}`)
|
||||
if (index < validRecords.length - 1) lines.push('')
|
||||
|
||||
Reference in new issue
Block a user