383 lines
21 KiB
Vue
383 lines
21 KiB
Vue
<!--
|
||
features/contract-payment/views/ContractPaymentPage.vue
|
||
用途:合同付款预警台账列表、汇总卡与本周待发送摘要。
|
||
依赖:contract-payment.api、PaginationBar、统一消息提示。
|
||
逻辑:Chat Tab 以 embedded 嵌入时隐藏页头;点行通过 open-detail 交给父级下钻详情;关键词可搜合同号、流程号、采购单号、供应商和申请人。
|
||
四阶段列只显示阶段名。预付款、出货款按 ERP 付款事实标已付或逾期/即将到期/未到期;验收款、质保款只展示金额比例和日期依据。
|
||
嵌入布局为上半汇总卡/搜索与底部分页固定,仅表格区域双向滚动;汇总卡采用紧凑尺寸以留出小屏列表高度。
|
||
-->
|
||
<script setup lang="ts">
|
||
import { computed, onMounted, ref } from 'vue';
|
||
import { useI18n } from 'vue-i18n';
|
||
import { Search } from 'lucide-vue-next';
|
||
import { BusinessError } from '@/shared/api/client';
|
||
import PaginationBar from '@/shared/components/PaginationBar.vue';
|
||
import { useMessage } from '@/shared/composables/useMessage';
|
||
import {
|
||
getContractPaymentAlertSummary,
|
||
getContractPaymentLedgerSummary,
|
||
listContractPaymentContracts,
|
||
type AlertSummary,
|
||
type ContractPaymentContract,
|
||
type LedgerFocus,
|
||
type LedgerSummary,
|
||
} from '../api/contract-payment.api';
|
||
import { displayCurrency } from '../utils/currency';
|
||
import { aggregateContractNodeStatus, isNodeNearDue, isNodeOverdue, nodeDueReference, type ContractNodeStatusCode } from '../utils/paymentStatus';
|
||
|
||
const props = withDefaults(defineProps<{
|
||
embedded?: boolean;
|
||
}>(), { embedded: false });
|
||
|
||
const emit = defineEmits<{
|
||
'open-detail': [contractId: number];
|
||
}>();
|
||
|
||
const { t } = useI18n();
|
||
const msg = useMessage(); const keyword = ref(''); const loading = ref(false);
|
||
const contracts = ref<ContractPaymentContract[]>([]);
|
||
const alertSummary = ref<AlertSummary | null>(null);
|
||
const ledgerSummary = ref<LedgerSummary>({ due: 0, overdue: 0, active: 0, due_this_month: 0 });
|
||
const ledgerFocus = ref<LedgerFocus | ''>('');
|
||
const page = ref(1); const pageSize = ref(20); const total = ref(0); const pages = ref(1);
|
||
const ledgerFocusCards = computed(() => ([
|
||
{ key: 'due' as const, label: t('admin.contractPayment.ledgerFocus.due'), hint: t('admin.contractPayment.ledgerFocus.dueHint'), value: ledgerSummary.value.due, tone: 'due' },
|
||
{ key: 'overdue' as const, label: t('admin.contractPayment.ledgerFocus.overdue'), hint: '', value: ledgerSummary.value.overdue, tone: 'overdue' },
|
||
{ key: 'active' as const, label: t('admin.contractPayment.ledgerFocus.active'), hint: t('admin.contractPayment.ledgerFocus.activeHint'), value: ledgerSummary.value.active, tone: 'in-progress' },
|
||
{ key: 'due_this_month' as const, label: t('admin.contractPayment.ledgerFocus.dueThisMonth'), hint: t('admin.contractPayment.ledgerFocus.dueThisMonthHint'), value: ledgerSummary.value.due_this_month, tone: 'month' },
|
||
]));
|
||
const stage = (item: ContractPaymentContract, name: string) => item.nodes.find((node) => node.node_type === name);
|
||
/**
|
||
* 以整数格式展示付款比例,不改变接口返回的精确比例值。
|
||
* 核心逻辑:兼容字符串或数值;非数值保持原样,避免将异常数据错误改写为零。
|
||
* @param percentage - 节点的原始付款比例。
|
||
* @returns 去除无意义小数位后的比例文本。
|
||
*/
|
||
const displayPercentage = (percentage?: string | null): string => {
|
||
if (percentage === undefined || percentage === null || percentage === '') return '—';
|
||
const value = Number(percentage);
|
||
return Number.isFinite(value) ? String(Math.round(value)) : String(percentage);
|
||
};
|
||
const stageTypes = ['prepayment', 'shipment', 'acceptance', 'warranty'] as const;
|
||
type StagePayTone = '' | 'paid' | 'overdue' | 'due' | 'normal';
|
||
/**
|
||
* 组装一个付款阶段格子:金额比例、日期,以及预付款/出货款的付款状态。
|
||
* 核心逻辑:预付款、出货款有 ERP 付款事实。已付显示付款日;未付按日期依据标已逾期、即将到期或未到期,日期仍是依据日。
|
||
* 验收款、质保款没有付款回写,不标已付或未付。没有日期依据时显示待补充日期。
|
||
* 人工复核标成无此阶段,或比例和金额都是 0 的阶段,显示为横线,不参与这一格的状态。
|
||
* @param item - 合同台账行。
|
||
* @param name - 付款节点类型。
|
||
* @returns 金额比例、日期文本、是否待补充,以及状态标签和色调。
|
||
*/
|
||
const paymentCell = (item: ContractPaymentContract, name: string) => {
|
||
const node = stage(item, name);
|
||
const empty = { amountRatio: '—', dateText: '', missingDate: false, payLabel: '', payTone: '' as StagePayTone };
|
||
if (!node) return empty;
|
||
const status = String(node.status || '').trim().toLowerCase();
|
||
const percentValue = Number(node.percentage);
|
||
const amountValue = Number(node.amount);
|
||
const absent = status === 'not_applicable' || (
|
||
status !== 'paid'
|
||
&& Number.isFinite(percentValue)
|
||
&& percentValue === 0
|
||
&& (node.amount == null || node.amount === '' || amountValue === 0)
|
||
);
|
||
if (absent) return empty;
|
||
const amountRatio = node.amount || node.percentage ? `${node.amount || '—'} / ${displayPercentage(node.percentage)}%` : '—';
|
||
const basis = nodeDueReference(node) || '';
|
||
const payable = name === 'prepayment' || name === 'shipment';
|
||
const paid = String(node.status || '').trim().toLowerCase() === 'paid';
|
||
if (payable && paid) {
|
||
return { amountRatio, dateText: node.paid_at || '—', missingDate: false, payLabel: t('admin.contractPayment.stagePaid'), payTone: 'paid' as StagePayTone };
|
||
}
|
||
if (!basis) return { amountRatio, dateText: '', missingDate: true, payLabel: '', payTone: '' as StagePayTone };
|
||
if (!payable) return { amountRatio, dateText: basis, missingDate: false, payLabel: '', payTone: '' as StagePayTone };
|
||
if (isNodeOverdue(basis)) {
|
||
return { amountRatio, dateText: basis, missingDate: false, payLabel: t('admin.contractPayment.statusOverdue'), payTone: 'overdue' as StagePayTone };
|
||
}
|
||
if (isNodeNearDue(basis)) {
|
||
return { amountRatio, dateText: basis, missingDate: false, payLabel: t('admin.contractPayment.statusUpcoming'), payTone: 'due' as StagePayTone };
|
||
}
|
||
return { amountRatio, dateText: basis, missingDate: false, payLabel: t('admin.contractPayment.statusActive'), payTone: 'normal' as StagePayTone };
|
||
};
|
||
/**
|
||
* 按付款节点聚合台账状态:未到期 / 即将到期 / 已逾期 / 已完成 / 待补充。
|
||
* 核心逻辑:合同层先排除「待补充」(非激活或解析待确认);否则按节点到期/逾期状态取最高优先级展示,
|
||
* 让台账行一眼看出是否有逾期款。 @param item - 合同台账行。 @returns 状态标签和对应的视觉色调。
|
||
*/
|
||
const displayStatus = (item: ContractPaymentContract) => {
|
||
if (item.status !== 'active' || item.parse_status === 'needs_review') {
|
||
return { label: t('admin.contractPayment.statusNeedsCompletion'), tone: 'needs-completion' };
|
||
}
|
||
const code = aggregateContractNodeStatus(item.nodes || []);
|
||
const map: Record<ContractNodeStatusCode, { label: string; tone: string }> = {
|
||
overdue: { label: t('admin.contractPayment.statusOverdue'), tone: 'overdue' },
|
||
due: { label: t('admin.contractPayment.statusUpcoming'), tone: 'due' },
|
||
active: { label: t('admin.contractPayment.statusActive'), tone: 'normal' },
|
||
completed: { label: t('admin.contractPayment.statusCompleted'), tone: 'completed' },
|
||
needs_completion: { label: t('admin.contractPayment.statusNeedsCompletion'), tone: 'needs-completion' },
|
||
};
|
||
return map[code];
|
||
};
|
||
/**
|
||
* 将下次发送的 UTC 时间格式化为业务时区(默认上海)的年月日时分。
|
||
* 核心逻辑:使用接口返回的 timezone,避免浏览器本地时区把周五 18:00 显示成错误日期。
|
||
* @param iso - 后端返回的 UTC ISO 时间。
|
||
* @param timeZone - 业务时区名称。
|
||
* @returns `YYYY-MM-DD HH:mm`;无法解析时回退原值。
|
||
*/
|
||
function formatNextSendAt(iso?: string | null, timeZone?: string | null): string {
|
||
if (!iso) return '—';
|
||
const date = new Date(iso);
|
||
if (Number.isNaN(date.getTime())) return iso;
|
||
try {
|
||
return new Intl.DateTimeFormat('sv-SE', {
|
||
timeZone: timeZone || 'Asia/Shanghai',
|
||
year: 'numeric',
|
||
month: '2-digit',
|
||
day: '2-digit',
|
||
hour: '2-digit',
|
||
minute: '2-digit',
|
||
hour12: false,
|
||
}).format(date).replace('T', ' ');
|
||
} catch {
|
||
return iso;
|
||
}
|
||
}
|
||
const weeklyPendingText = computed(() => {
|
||
if (!alertSummary.value) return '';
|
||
const count = alertSummary.value.pending_count ?? 0;
|
||
const datetime = formatNextSendAt(alertSummary.value.next_send_at, alertSummary.value.timezone);
|
||
if (!alertSummary.value.next_send_at) {
|
||
return t('admin.contractPayment.weeklyPendingCountOnly', { count });
|
||
}
|
||
return t('admin.contractPayment.weeklyPendingSummary', { count, datetime });
|
||
});
|
||
/**
|
||
* 刷新本周待发送笔数和下一次周五发送时间。
|
||
* 核心逻辑:与合同列表分开请求,摘要失败不阻断台账展示。
|
||
*/
|
||
async function refreshSummary(): Promise<void> {
|
||
try {
|
||
alertSummary.value = await getContractPaymentAlertSummary();
|
||
} catch {
|
||
if (!alertSummary.value) alertSummary.value = { pending_count: 0, next_send_at: null, timezone: 'Asia/Shanghai' };
|
||
}
|
||
}
|
||
/**
|
||
* 刷新四张汇总卡的合同份数。
|
||
* 核心逻辑:始终统计全部已解析台账,失败时保留上次数字,不阻断列表。
|
||
*/
|
||
async function refreshLedgerSummary(): Promise<void> {
|
||
try {
|
||
ledgerSummary.value = await getContractPaymentLedgerSummary();
|
||
} catch {
|
||
/* 汇总失败不影响台账列表 */
|
||
}
|
||
}
|
||
/**
|
||
* 加载当前页合同台账。
|
||
* 核心逻辑:合同列表使用服务端分页;关键词同时匹配合同号、流程号、采购单号、供应商和申请人;
|
||
* 汇总卡 focus 与关键词叠加;搜索、点卡片和每页条数变化均从第一页开始,并并行刷新待发送摘要与汇总卡。
|
||
* @param resetPage - 为 true 时重置为第一页,用于关键词查询或切换汇总卡。
|
||
* @returns 完成后更新当前列表、分页元数据、待发送摘要和汇总卡。
|
||
*/
|
||
async function load(resetPage = false): Promise<void> {
|
||
if (resetPage) page.value = 1;
|
||
loading.value = true;
|
||
try {
|
||
const [result] = await Promise.all([
|
||
listContractPaymentContracts({
|
||
keyword: keyword.value.trim(),
|
||
focus: ledgerFocus.value || undefined,
|
||
page: page.value,
|
||
pageSize: pageSize.value,
|
||
}),
|
||
refreshSummary(),
|
||
refreshLedgerSummary(),
|
||
]);
|
||
contracts.value = result.items || [];
|
||
total.value = result.total || 0;
|
||
pages.value = result.pages || 1;
|
||
page.value = result.page || 1;
|
||
} catch (error) {
|
||
msg.error(error instanceof BusinessError ? error.message : t('admin.contractPayment.loadFailed'));
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}
|
||
/**
|
||
* 点击汇总卡过滤台账;再次点击同一张卡则取消过滤。
|
||
* 核心逻辑:focus 写入列表查询;汇总数字本身仍看全部台账。
|
||
* @param key - 汇总卡口径。
|
||
*/
|
||
function toggleLedgerFocus(key: LedgerFocus): void {
|
||
ledgerFocus.value = ledgerFocus.value === key ? '' : key;
|
||
void load(true);
|
||
}
|
||
/**
|
||
* 打开合同详情。
|
||
* 核心逻辑:Chat 父级用 open-detail 在当前 Tab 内下钻;不再跳工作台路由。
|
||
*/
|
||
function openContractDetail(contractId: number): void {
|
||
emit('open-detail', contractId);
|
||
}
|
||
onMounted(() => void load());
|
||
</script>
|
||
<template>
|
||
<section class="contract-ledger-page flex h-full min-h-0 flex-1 flex-col gap-2 animate-fade-in-up md:gap-3">
|
||
<div v-if="!props.embedded" class="shrink-0">
|
||
<h2 class="text-2xl font-bold text-primary">{{ t('admin.contractPayment.title') }}</h2>
|
||
<p class="text-sm text-muted mt-1">{{ t('admin.contractPayment.subtitle') }}</p>
|
||
</div>
|
||
<div class="contract-stat-grid shrink-0">
|
||
<button
|
||
v-for="card in ledgerFocusCards"
|
||
:key="card.key"
|
||
type="button"
|
||
class="contract-stat-card"
|
||
:class="[card.tone, { 'is-selected': ledgerFocus === card.key }]"
|
||
@click="toggleLedgerFocus(card.key)"
|
||
>
|
||
<span class="contract-stat-label">{{ card.label }}<small v-if="card.hint">({{ card.hint }})</small></span>
|
||
<strong class="contract-stat-value">{{ card.value }}</strong>
|
||
</button>
|
||
</div>
|
||
<div class="contract-filter-bar shrink-0">
|
||
<div class="contract-filter-search">
|
||
<Search class="contract-filter-icon" />
|
||
<input
|
||
v-model="keyword"
|
||
class="contract-filter-input"
|
||
:placeholder="t('admin.contractPayment.searchPlaceholder')"
|
||
@keyup.enter="load(true)"
|
||
/>
|
||
</div>
|
||
<button type="button" class="contract-filter-submit" @click="load(true)">{{ t('admin.contractPayment.search') }}</button>
|
||
<span v-if="weeklyPendingText" class="contract-filter-meta">{{ weeklyPendingText }}</span>
|
||
</div>
|
||
<div class="surface-panel contract-ledger-panel contract-scroll-panel min-h-0 flex-1">
|
||
<table class="contract-ledger-table text-sm">
|
||
<thead><tr>
|
||
<th>{{ t('admin.contractPayment.contractSupplier') }}</th><th>{{ t('admin.contractPayment.amount') }}</th>
|
||
<th v-for="nodeType in stageTypes" :key="nodeType">{{ t(`admin.contractPayment.nodeType.${nodeType}`) }}</th>
|
||
<th>{{ t('admin.contractPayment.applicant') }}</th><th>{{ t('admin.contractPayment.statusLabel') }}</th>
|
||
</tr></thead>
|
||
<tbody>
|
||
<tr v-for="item in contracts" :key="item.id" class="contract-ledger-row" @click="openContractDetail(item.id)">
|
||
<td class="contract-identify"><strong>{{ t('admin.contractPayment.contractPrefix') }}:{{ item.contract_no || t('admin.contractPayment.contractNoPending') }}</strong><span>{{ t('admin.contractPayment.purchaseOrder') }}:{{ item.purchase_order_no || '—' }}</span><span>{{ item.supplier_name || '—' }}</span></td>
|
||
<td class="contract-money">{{ item.total_amount || '—' }}<span v-if="displayCurrency(item.currency)"> {{ displayCurrency(item.currency) }}</span></td>
|
||
<td v-for="nodeType in stageTypes" :key="nodeType" class="contract-payment-cell"><template v-if="paymentCell(item, nodeType).amountRatio !== '—'"><strong>{{ paymentCell(item, nodeType).amountRatio }}</strong><span :class="{ 'contract-date-pending': paymentCell(item, nodeType).missingDate }">{{ paymentCell(item, nodeType).dateText || t('admin.contractPayment.datePending') }}</span><span v-if="paymentCell(item, nodeType).payLabel" class="stage-pay-tag" :class="paymentCell(item, nodeType).payTone">{{ paymentCell(item, nodeType).payLabel }}</span></template><span v-else>—</span></td>
|
||
<td class="contract-applicant">{{ item.applicant_name || '—' }}</td>
|
||
<td><span class="contract-status" :class="displayStatus(item).tone">{{ displayStatus(item).label }}</span></td>
|
||
</tr>
|
||
<tr v-if="!loading && !contracts.length"><td colspan="8" class="contract-empty">{{ t('admin.contractPayment.empty') }}</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<PaginationBar class="shrink-0" v-model:page="page" v-model:page-size="pageSize" :total="total" :pages="pages" :visible="total > 0 || !!keyword.trim() || !!ledgerFocus" @update:page="() => load()" @update:page-size="() => load()" />
|
||
</section>
|
||
</template>
|
||
<style scoped>
|
||
.contract-stat-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||
gap: 8px;
|
||
}
|
||
.contract-stat-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
min-height: 64px;
|
||
padding: 8px 10px 7px;
|
||
border: 1px solid #d7e1ef;
|
||
border-radius: 10px;
|
||
background: #fff;
|
||
box-shadow: 0 4px 14px rgba(33, 65, 111, .04);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
.contract-stat-card.is-selected { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59, 130, 246, .16); }
|
||
.contract-stat-label { color: #8aa0bd; font-size: 11px; font-weight: 600; line-height: 1.25; }
|
||
.contract-stat-label small { margin-left: 1px; font-size: 10px; font-weight: 600; }
|
||
.contract-stat-value { margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1; }
|
||
.contract-stat-card.due .contract-stat-value { color: #d97706; }
|
||
.contract-stat-card.overdue .contract-stat-value { color: #dc2626; }
|
||
.contract-stat-card.in-progress .contract-stat-value { color: #2563eb; }
|
||
.contract-stat-card.month .contract-stat-value { color: #16a34a; }
|
||
@media (max-width: 900px) {
|
||
.contract-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
|
||
.contract-stat-card { min-height: 56px; padding: 6px 8px 5px; border-radius: 8px; }
|
||
.contract-stat-label { font-size: 10px; line-height: 1.2; }
|
||
.contract-stat-label small { font-size: 9px; }
|
||
.contract-stat-value { margin-top: 2px; font-size: 18px; }
|
||
}
|
||
.contract-filter-bar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 12px;
|
||
border: 1px solid #d7e1ef;
|
||
border-radius: 10px;
|
||
background: #fff;
|
||
}
|
||
.contract-filter-search { position: relative; width: min(100%, 320px); }
|
||
.contract-filter-icon {
|
||
position: absolute;
|
||
left: 10px;
|
||
top: 50%;
|
||
width: 14px;
|
||
height: 14px;
|
||
color: #8aa0bd;
|
||
transform: translateY(-50%);
|
||
pointer-events: none;
|
||
}
|
||
.contract-filter-input {
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
height: 36px;
|
||
padding: 0 12px 0 30px;
|
||
border: 1px solid #d7e1ef;
|
||
border-radius: 8px;
|
||
background: #f7faff;
|
||
color: #183c72;
|
||
font-size: 14px;
|
||
line-height: 36px;
|
||
outline: none;
|
||
}
|
||
.contract-filter-input::placeholder { color: #8aa0bd; font-size: 14px; }
|
||
.contract-filter-input:focus { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59, 130, 246, .12); }
|
||
.contract-filter-submit {
|
||
height: 36px;
|
||
padding: 0 14px;
|
||
border: 1px solid #d7e1ef;
|
||
border-radius: 8px;
|
||
background: #fff;
|
||
color: #426493;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
}
|
||
.contract-filter-submit:hover { background: #f7faff; color: #183c72; }
|
||
.contract-filter-meta { color: #8aa0bd; font-size: 13px; line-height: 1.4; }
|
||
.contract-ledger-panel { min-height: 0; flex: 1 1 auto; border: 1px solid #d7e1ef; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(33, 65, 111, .05); }
|
||
.contract-scroll-panel {
|
||
overflow: auto;
|
||
overscroll-behavior: contain;
|
||
scrollbar-gutter: stable;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: #9eb1c9 #e8eef6;
|
||
}
|
||
.contract-scroll-panel::-webkit-scrollbar { width: 10px; height: 10px; }
|
||
.contract-scroll-panel::-webkit-scrollbar-track { background: #e8eef6; border-radius: 8px; }
|
||
.contract-scroll-panel::-webkit-scrollbar-thumb { background: #9eb1c9; border-radius: 8px; border: 2px solid #e8eef6; }
|
||
.contract-scroll-panel::-webkit-scrollbar-thumb:hover { background: #7c93b0; }
|
||
.contract-ledger-table { width: 100%; min-width: 1260px; border-collapse: separate; border-spacing: 0; color: #183c72; }
|
||
.contract-ledger-table th { position: sticky; top: 0; z-index: 2; height: auto; padding: 10px 12px; background: #f7faff; border-bottom: 1px solid #d7e1ef; color: #426493; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: left; vertical-align: middle; white-space: nowrap; }
|
||
.contract-ledger-table td { padding: 12px; border-bottom: 1px solid #d7e1ef; vertical-align: top; line-height: 1.5; }
|
||
.contract-ledger-table tbody tr:last-child td { border-bottom: 0; }
|
||
.contract-ledger-table tbody tr:hover { background: #fbfdff; }.contract-ledger-row { cursor: pointer; }
|
||
.contract-ledger-table th:nth-child(1) { width: 22%; }.contract-ledger-table th:nth-child(2) { width: 8.5%; }.contract-ledger-table th:nth-child(n+3):nth-child(-n+6) { width: 13.5%; }.contract-ledger-table th:nth-child(7) { width: 7.5%; }.contract-ledger-table th:nth-child(8) { width: 7%; }
|
||
.contract-identify strong, .contract-payment-cell strong { display: block; color: #102d59; font-weight: 750; }.contract-identify span, .contract-payment-cell span { display: block; margin-top: 3px; color: #58749f; }.contract-payment-cell .stage-pay-tag { display: inline-flex; align-items: center; margin-top: 6px; margin-bottom: 0; min-height: 20px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }.contract-payment-cell .stage-pay-tag.paid { color: #16a34a; background: #e8f7ee; }.contract-payment-cell .stage-pay-tag.due { color: #ea580c; background: #fff4e8; }.contract-payment-cell .stage-pay-tag.overdue { color: #dc2626; background: #fee2e2; }.contract-payment-cell .stage-pay-tag.normal { color: #2563eb; background: #edf5ff; }.contract-identify strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }.contract-money { color: #102d59; white-space: nowrap; }.contract-payment-cell { color: #102d59; }.contract-date-pending { color: #5c76a0; }.contract-applicant { white-space: nowrap; color: #102d59; }.contract-status { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }.contract-status.normal { color: #2563eb; background: #edf5ff; }.contract-status.due { color: #ea580c; background: #fff4e8; }.contract-status.overdue { color: #dc2626; background: #fee2e2; }.contract-status.completed { color: #16a34a; background: #e8f7ee; }.contract-status.needs-completion { color: #c2410c; background: #fff4e8; }.contract-empty { padding: 34px !important; color: var(--text-muted); text-align: center; }
|
||
</style>
|