This commit is contained in:
zlwu committed 2026-08-27 19:38:01 +08:00
1 parent 4611dbc2b2
commit ebf006eeff
46 files changed
+36802 -20974

No files matched your search

@@ -3,6 +3,7 @@ import { isPlInternalCustomerName } from '@/utils/pl-internal-customer'
export type PlanContractDisplayLine = {
side: string
no: string
contractId?: string
pending?: boolean
}
@@ -26,8 +27,9 @@ export function planContractSideLines(
): PlanContractDisplayLine[] {
const lines: PlanContractDisplayLine[] = []
for (const item of contracts || []) {
const no = item.contractNo || item.contractId
if (no) lines.push({ side, no: String(no) })
const contractId = item.contractId ? String(item.contractId) : undefined
const no = item.contractNo || contractId
if (no) lines.push({ side, no: String(no), contractId })
}
if (lines.length) return lines
if (isPlInternalCustomerName(customerName)) {