feat(pl): 增加百链充值类型,并保留计划产品与证件上传时间。

充值单号按类型使用 ETC、YK、SX、BL 前缀;更换装货客户清空产品时不抹掉已有计划产品;运输证件列表展示上传时间。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-07 17:55:21 +08:00
1 parent af8d4d90fa
commit cc5cf78bcd
21 files changed
+274 -97

No files matched your search

+11
View File
@@ -768,6 +768,17 @@ export function mapLoadProductsToPlanFormRows(
}))
}
/**
* 更换装货客户会先清空装货产品。这段空窗不要抹掉已有计划产品,
* 重新选回同一产品和包装时才能继承原 id。正式保存仍按当前装货产品镜像。
*/
export function shouldRetainPlanProductsWhileLoadEmpty(
loadProducts: Array<unknown>,
previous: Array<unknown>
): boolean {
return loadProducts.length === 0 && previous.length > 0
}
/** 合并装货映射行与既有计划产品元数据(危化证、税额等) */
export function mergePlanProductsFromLoadMirror(
fromLoad: PlanFormProductRow[],