From f9e6eb6fc2c2e0c2a2b17238b817fcbfcb6bab56 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 10 八月 2026 16:38:45 +0800
Subject: [PATCH] feat(erp): 添加采购来票管理和付款关联功能

---
 src/views/crm/receivable/index.vue |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/src/views/crm/receivable/index.vue b/src/views/crm/receivable/index.vue
index f0ce55b..329fdec 100644
--- a/src/views/crm/receivable/index.vue
+++ b/src/views/crm/receivable/index.vue
@@ -5,8 +5,8 @@
 import { ref } from 'vue';
 import { useRouter } from 'vue-router';
 
-import { Page, useVbenModal } from '../../../packages/effects/common-ui/src';
-import { downloadFileFromBlobPart } from '../../../packages/utils/src';
+import { Page, useVbenModal } from '@vben/common-ui';
+import { downloadFileFromBlobPart } from '@vben/utils';
 
 import { Button, message, Tabs } from 'ant-design-vue';
 
@@ -106,6 +106,11 @@
   push({ name: 'CrmContractDetail', params: { id: row.contractId } });
 }
 
+/** 鏌ョ湅寮�绁ㄨ鎯� */
+function handleInvoiceDetail(row: CrmReceivableApi.Receivable) {
+  push({ name: 'CrmInvoiceDetail', params: { id: row.invoiceId } });
+}
+
 /** 鏌ョ湅瀹℃壒璇︽儏 */
 function handleProcessDetail(row: CrmReceivableApi.Receivable) {
   push({
@@ -186,6 +191,18 @@
           {{ row.customerName }}
         </Button>
       </template>
+      <template #invoiceNo="{ row }">
+        <template v-if="row.invoice">
+          <Button type="link" @click="handleInvoiceDetail(row)">
+            {{ row.invoice.no }}
+          </Button>
+          <span class="mx-1">/</span>
+          <span>{{ row.invoice.invoiceNo ?? '-' }}</span>
+          <span class="mx-1">/</span>
+          <span>楼{{ row.invoice.price ?? 0 }}</span>
+        </template>
+        <span v-else>--</span>
+      </template>
       <template #contractNo="{ row }">
         <Button
           v-if="row.contract"

--
Gitblit v1.9.3