fix(contract-payment): fix comments of contract payment plan

This commit is contained in:
sophie committed 2026-09-10 13:20:13 +08:00
1 parent 60d4f06018
commit 1c0654c6f8
25 files changed
+956 -76

No files matched your search

@@ -28,7 +28,7 @@ const pages = ref(1);
/**
* 读取需要人工确认的合同列表。
* 核心逻辑:明确传入 reviewOnly,避免前端仅按显示状态过滤而遗漏后端新产生的待确认合同。
* 核心逻辑:明确传入 reviewOnly,避免前端仅按显示状态过滤而遗漏后端新产生的待确认合同;关键词同样匹配供应商。
* @param resetPage - 为 true 时重置到第一页,供关键词查询使用。
* @returns 请求完成后更新分页数据;失败时保留已有列表并提示原因。
*/
@@ -66,7 +66,18 @@ onMounted(() => void load());
<template>
<section class="section-gap animate-fade-in-up">
<div><h2 class="text-2xl font-bold text-primary">{{ t('admin.contractPaymentReview.title') }}</h2><p class="mt-1 text-sm text-muted">{{ t('admin.contractPaymentReview.subtitle') }}</p></div>
<div class="surface-panel mt-5 rounded-2xl p-4"><div class="flex flex-wrap items-center gap-3"><div class="relative w-full md:w-[360px]"><Search class="absolute left-3 top-2.5 h-4 w-4 text-muted" /><input v-model="keyword" class="input-field pl-9" :placeholder="t('admin.contractPaymentReview.searchPlaceholder')" @keyup.enter="load(true)" /></div><button class="btn-secondary-ds" @click="load(true)">{{ t('admin.contractPayment.search') }}</button></div></div>
<div class="contract-filter-bar">
<div class="contract-filter-search">
<Search class="contract-filter-icon" />
<input
v-model="keyword"
class="contract-filter-input"
:placeholder="t('admin.contractPaymentReview.searchPlaceholder')"
@keyup.enter="load(true)"
/>
</div>
<button type="button" class="contract-filter-submit" @click="load(true)">{{ t('admin.contractPayment.search') }}</button>
</div>
<div class="surface-panel mt-4 overflow-x-auto rounded-2xl">
<table class="review-table text-sm"><thead><tr><th>{{ t('admin.contractPaymentReview.contractWorkflow') }}</th><th>{{ t('admin.contractPayment.purchaseOrder') }}</th><th>{{ t('admin.contractPayment.supplier') }}</th><th>{{ t('admin.contractPayment.amount') }}</th><th>{{ t('admin.contractPaymentReview.reason') }}</th></tr></thead>
<tbody><tr v-for="item in contracts" :key="item.id" class="cursor-pointer hover:bg-surface-soft" @click="openContractDetail(item.id)"><td><strong>{{ item.contract_no || t('admin.contractPayment.contractNoPending') }}</strong><span>{{ item.workflow_no || '—' }}</span></td><td>{{ item.purchase_order_no || '—' }}</td><td>{{ item.supplier_name || '—' }}</td><td>{{ item.total_amount || '—' }}</td><td><ul><li v-for="issue in item.parse_issues || [t('admin.contractPaymentReview.fallbackIssue')]" :key="issue">{{ issue }}</li></ul></td></tr><tr v-if="!loading && !contracts.length"><td colspan="5" class="py-9 text-center text-muted">{{ t('admin.contractPaymentReview.empty') }}</td></tr></tbody>
@@ -77,5 +88,53 @@ onMounted(() => void load());
</template>
<style scoped>
.contract-filter-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-top: 16px;
padding: 10px 14px;
border: 1px solid #d7e1ef;
border-radius: 12px;
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; }
.review-table { width: 100%; min-width: 980px; border-collapse: collapse; color: #183c72; }.review-table th { padding: 13px 14px; border-bottom: 1px solid #d7e1ef; background: #f7faff; color: #426493; text-align: left; }.review-table td { padding: 13px 14px; border-bottom: 1px solid #d7e1ef; vertical-align: top; }.review-table tbody tr:last-child td { border-bottom: 0; }.review-table strong, .review-table span { display: block; }.review-table strong { color: #102d59; }.review-table span, .review-table li { color: #9a3412; }.review-table ul { margin: 0; padding-left: 18px; }.review-table li + li { margin-top: 3px; }
</style>