|
|
@@ -414,6 +414,8 @@
|
|
|
payModeTagType,
|
|
|
samplePaymentProgressLabel,
|
|
|
samplePaymentProgressTagType,
|
|
|
+ paymentScheduleStatusLabel,
|
|
|
+ paymentScheduleStatusTagType,
|
|
|
protocolStatusDisplayLabel,
|
|
|
protocolStatusTagType,
|
|
|
payStatusLabel,
|
|
|
@@ -495,26 +497,6 @@
|
|
|
return formatDisplayOrDash(d)
|
|
|
}
|
|
|
|
|
|
- function paymentScheduleStatusLabel(status: string) {
|
|
|
- const map: Record<string, string> = {
|
|
|
- open: '待缴清',
|
|
|
- cleared: '已缴清',
|
|
|
- void: '已作废'
|
|
|
- }
|
|
|
- return map[status] || status || '—'
|
|
|
- }
|
|
|
-
|
|
|
- function paymentScheduleStatusTagType(
|
|
|
- status: string
|
|
|
- ): 'success' | 'warning' | 'danger' | 'info' | 'primary' {
|
|
|
- const map: Record<string, 'success' | 'warning' | 'danger' | 'info' | 'primary'> = {
|
|
|
- open: 'warning',
|
|
|
- cleared: 'success',
|
|
|
- void: 'info'
|
|
|
- }
|
|
|
- return map[status] || 'info'
|
|
|
- }
|
|
|
-
|
|
|
function scheduleCanConfirm(sch: ScheduleRow) {
|
|
|
const arrears = Number(sch.arrearsAmount)
|
|
|
if (!(arrears > 0)) return false
|