提交
This commit is contained in:
1 parent
67d37a1f0e
commit
54a1ba0c5c
21 files changed
+8646
-7577
No files matched your search
@@ -4,11 +4,22 @@ export const PL_INTERNAL_CUSTOMER_NAMES = [
|
||||
'安徽云栋化工有限公司'
|
||||
] as const
|
||||
|
||||
/**
|
||||
* 地磅单「可选」车辆主牌:内部客户时默认不勾且允许手动勾选。
|
||||
* 匹配主牌精确值(不含挂车拼接)。
|
||||
*/
|
||||
export const PL_DIBANG_OPTIONAL_VEHICLE_PLATES = ['皖H21522'] as const
|
||||
|
||||
export function isPlInternalCustomerName(name?: string | null): boolean {
|
||||
const n = (name || '').trim()
|
||||
return (PL_INTERNAL_CUSTOMER_NAMES as readonly string[]).includes(n)
|
||||
}
|
||||
|
||||
export function isPlDibangOptionalVehiclePlate(plate?: string | null): boolean {
|
||||
const p = (plate || '').trim()
|
||||
return (PL_DIBANG_OPTIONAL_VEHICLE_PLATES as readonly string[]).includes(p)
|
||||
}
|
||||
|
||||
/** 装货或送货段任一段客户为山峡/云栋时,需要现场链接。 */
|
||||
export function planRequiresSiteLink(
|
||||
plan?: {
|
||||
|
||||
Reference in new issue
Block a user