fix(contract-payment): 详情页以采购单号作为主标题
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
81d82a88d5
commit
b02b776a97
5 files changed
+8
-3
No files matched your search
@@ -3,7 +3,8 @@
|
||||
用途:展示单份采购合同的概览、原文附件、付款计划及企业微信预警审计。
|
||||
依赖:contract-payment.api、统一消息提示;由 Chat 台账/待确认行点击在当前 Tab 内下钻。
|
||||
逻辑:以合同 ID 调用已有详情接口,付款任务按节点和预警轮次聚合;原文附件可在线预览 PDF/图片,或继续下载。
|
||||
待复核合同时,解析提示右侧用主按钮放「人工复核」,弹窗里填写阶段后再进入台账。合同概览和页头其余内容保持原样。
|
||||
待复核合同时,解析提示右侧用主按钮放「人工复核」,弹窗里填写阶段后再进入台账。
|
||||
页头主标题展示采购单号,摘要卡第二格展示合同号;采购跟单以采购单号为主标识。
|
||||
未付的预付款、出货款可在卡片上标为已付,只改这一阶段。
|
||||
-->
|
||||
<script setup lang="ts">
|
||||
@@ -411,7 +412,7 @@ onBeforeUnmount(() => closeAttachmentPreview());
|
||||
<section class="section-gap contract-detail animate-fade-in-up">
|
||||
<header class="mb-5 flex items-start justify-between gap-3">
|
||||
<div v-if="contract" class="min-w-0">
|
||||
<h2 class="text-2xl font-bold text-primary">{{ contract.contract_no || t('admin.contractPayment.contractNoPending') }}</h2>
|
||||
<h2 class="text-2xl font-bold text-primary">{{ contract.purchase_order_no || '—' }}</h2>
|
||||
<p class="mt-1 text-sm text-muted">{{ contract.supplier_name || '—' }}</p>
|
||||
</div>
|
||||
<div class="flex shrink-0 gap-2"><button class="btn-secondary-ds" :disabled="reparsing" @click="reparseContract"><RefreshCw class="h-4 w-4" :class="{ 'animate-spin': reparsing }" />{{ t('admin.contractPaymentReparse.action') }}</button><button class="btn-secondary-ds" @click="backToLedger"><ArrowLeft class="h-4 w-4" />{{ t('admin.contractPayment.backToLedger') }}</button></div>
|
||||
@@ -422,7 +423,7 @@ onBeforeUnmount(() => closeAttachmentPreview());
|
||||
|
||||
<div class="detail-summary-grid">
|
||||
<div class="detail-summary-card"><span>{{ t('admin.contractPayment.amount') }}</span><strong>{{ contract.total_amount || '—' }}<template v-if="displayCurrency(contract.currency)"> {{ displayCurrency(contract.currency) }}</template></strong></div>
|
||||
<div class="detail-summary-card"><span>{{ t('admin.contractPayment.purchaseOrder') }}</span><strong>{{ contract.purchase_order_no || '—' }}</strong></div>
|
||||
<div class="detail-summary-card"><span>{{ t('admin.contractPayment.contractNo') }}</span><strong>{{ contract.contract_no || t('admin.contractPayment.contractNoPending') }}</strong></div>
|
||||
<div class="detail-summary-card"><span>{{ t('admin.contractPayment.workflowNo') }}</span><strong>{{ contract.workflow_no || '—' }}</strong></div>
|
||||
<div class="detail-summary-card"><span>{{ t('admin.contractPayment.applicant') }}</span><strong>{{ contract.applicant_name || '—' }}</strong></div>
|
||||
</div>
|
||||
|
||||
@@ -5227,6 +5227,7 @@
|
||||
"items": "items",
|
||||
"empty": "No contract data",
|
||||
"purchaseOrder": "Purchase order",
|
||||
"contractNo": "Contract no.",
|
||||
"supplier": "Supplier",
|
||||
"amount": "Contract amount",
|
||||
"deliveryDate": "Delivery due date",
|
||||
|
||||
@@ -5227,6 +5227,7 @@
|
||||
"items": "รายการ",
|
||||
"empty": "ไม่มีข้อมูลสัญญา",
|
||||
"purchaseOrder": "ใบสั่งซื้อ",
|
||||
"contractNo": "เลขที่สัญญา",
|
||||
"supplier": "ผู้ขาย",
|
||||
"amount": "มูลค่าสัญญา",
|
||||
"deliveryDate": "กำหนดส่งมอบ",
|
||||
|
||||
@@ -5230,6 +5230,7 @@
|
||||
"items": "条",
|
||||
"empty": "暂无合同数据",
|
||||
"purchaseOrder": "采购单号",
|
||||
"contractNo": "合同号",
|
||||
"supplier": "供应商",
|
||||
"amount": "合同金额",
|
||||
"deliveryDate": "交货期限",
|
||||
|
||||
@@ -5227,6 +5227,7 @@
|
||||
"items": "筆",
|
||||
"empty": "暫無合約資料",
|
||||
"purchaseOrder": "採購單號",
|
||||
"contractNo": "合約號",
|
||||
"supplier": "供應商",
|
||||
"amount": "合約金額",
|
||||
"deliveryDate": "交貨期限",
|
||||
|
||||
Reference in new issue
Block a user