提交
This commit is contained in:
1 parent
62cfb8fbbf
commit
135dd550b6
2 files changed
+48
No files matched your search
@@ -89,6 +89,7 @@
|
||||
v-loading="loading"
|
||||
stripe
|
||||
row-key="id"
|
||||
:row-class-name="paymentRowClassName"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column
|
||||
@@ -431,6 +432,7 @@
|
||||
} from '@/api/collection-protocol'
|
||||
import { fetchUploadAttachment } from '@/api/business'
|
||||
import { maskIdCard } from '@/utils/mask-sensitive'
|
||||
import { isPaymentDueWithinWarnWindow } from '@/utils/protocol-payment-labels'
|
||||
|
||||
defineOptions({ name: 'CellStoragePaymentInfo' })
|
||||
|
||||
@@ -548,6 +550,12 @@
|
||||
return `${d.slice(0, 4)}-${d.slice(4, 6)}-${d.slice(6, 8)}`
|
||||
}
|
||||
|
||||
function paymentRowClassName({ row }: { row: Record<string, unknown> }) {
|
||||
if (activeTab.value !== 'dfj') return ''
|
||||
if (String(row.payStatus || '') !== 'dfj') return ''
|
||||
return isPaymentDueWithinWarnWindow(row.installmentDueDate) ? 'row-due-soon' : ''
|
||||
}
|
||||
|
||||
function formatAmount(v: unknown) {
|
||||
if (v == null || v === '') return '-'
|
||||
const n = Number(v)
|
||||
@@ -885,4 +893,13 @@
|
||||
color: #ef4444;
|
||||
}
|
||||
}
|
||||
|
||||
.list-table :deep(tr.row-due-soon > td.el-table__cell) {
|
||||
background-color: #fca5a5 !important;
|
||||
color: #7f1d1d;
|
||||
}
|
||||
|
||||
.list-table :deep(tr.row-due-soon:hover > td.el-table__cell) {
|
||||
background-color: #f87171 !important;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user