fix(pl): 新规则安排不再被本地合同绑证缺口误拦。
H5 运输计划验收发现 customer_category 在服务端自动选证已通过时,前端仍用合同绑证空缺拦截安排;同步用证面板从占用回填证号并补专项单测。
This commit is contained in:
1 parent
c5ae2d957c
commit
d5f3a79ea5
5 files changed
+157
-5
No files matched your search
@@ -1,10 +1,16 @@
|
||||
/** 已标记证书齐备时,只保留服务端仍要拦住的来源问题,不再用本地两证缺口补一条拦截。 */
|
||||
export function toxicArrangeBlockMessage(
|
||||
quota: { quotaCertWaived?: boolean; arrangeBlockMessage?: string } | null | undefined,
|
||||
quota: {
|
||||
quotaCertWaived?: boolean
|
||||
arrangeBlockMessage?: string
|
||||
certQuotaRuleVersion?: string | null
|
||||
} | null | undefined,
|
||||
unboundMessage: string
|
||||
) {
|
||||
const serverMessage = (quota?.arrangeBlockMessage || '').trim()
|
||||
if (quota?.quotaCertWaived) return serverMessage
|
||||
// 新规则由服务端自动选证;本地「合同绑证」缺口不能再当安排拦截条件
|
||||
if (quota?.certQuotaRuleVersion === 'customer_category') return serverMessage
|
||||
return serverMessage || unboundMessage
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user