fix: 协议子资源单事务保存,并补齐样本编码/OA/质检等近期能力
锁定缴费校验失败时整单回滚,避免样本半成功落库;前端禁止删除锁定缴费样本,改码走更正编码。同步落地样本更正、采集微信通知、OA提及未读、细胞产品套餐与相关迁移文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
19bc66ba45
commit
5dad1bb0e3
142 files changed
+95584
-65717
No files matched your search
@@ -271,6 +271,24 @@ export function samplePaymentHasConfirmedTransfer(pay: {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 与后端 `_locked_schedule_ids` 对齐:转账状态不是待缴费 `dfj` 即锁定
|
||||
*(含 jfqrz / yjf / tfqrz / ytf 等)。
|
||||
*/
|
||||
export function isSamplePaymentTransferLocked(payStatus: unknown): boolean {
|
||||
const status = String(payStatus || '').trim()
|
||||
return Boolean(status) && status !== 'dfj'
|
||||
}
|
||||
|
||||
/** 样本缴费方案是否含锁定转账(不可省略/删除) */
|
||||
export function samplePaymentHasLockedTransfer(pay: {
|
||||
schedules?: FgdScheduleLike[]
|
||||
}): boolean {
|
||||
return (pay.schedules || []).some((s) =>
|
||||
(s.transfers || []).some((t) => isSamplePaymentTransferLocked(t.payStatus))
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉可选缴费模式(趸交 ↔ 分改趸 互斥,不可直转):
|
||||
* - 分期:可改趸交 / 分改趸
|
||||
|
||||
Reference in new issue
Block a user