From 2731cae57eddc3c8ea8de2c640df54a3f9f28c39 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 15:15:26 +0800
Subject: [PATCH] feat(invoice): 添加发票编辑权限控制

---
 src/views/crm/receivable/detail/data.ts |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/views/crm/receivable/detail/data.ts b/src/views/crm/receivable/detail/data.ts
index 326d5f9..d2b1698 100644
--- a/src/views/crm/receivable/detail/data.ts
+++ b/src/views/crm/receivable/detail/data.ts
@@ -2,8 +2,8 @@
 
 import { h } from 'vue';
 
-import { DICT_TYPE } from '..\..\..\..\packages\constants\src';
-import { erpPriceInputFormatter, formatDateTime } from '..\..\..\..\packages\utils\src';
+import { DICT_TYPE } from '@vben/constants';
+import { erpPriceInputFormatter, formatDate } from '@vben/utils';
 
 import { DictTag } from '#/components/dict-tag';
 
@@ -23,7 +23,7 @@
     {
       field: 'returnTime',
       label: '鍥炴鏃ユ湡',
-      render: (val) => formatDateTime(val) as string,
+      render: (val) => formatDate(val) as string,
     },
     {
       field: 'price',
@@ -55,9 +55,17 @@
         val && data?.contract?.no ? data?.contract?.no : '',
     },
     {
+      field: 'invoice',
+      label: '鍏宠仈寮�绁�',
+      render: (val, data) =>
+        val && data?.invoice?.no
+          ? `${data.invoice.no} / ${data.invoice.invoiceNo ?? '-'} / 楼${data.invoice.price ?? 0}`
+          : '',
+    },
+    {
       field: 'returnTime',
       label: '鍥炴鏃ユ湡',
-      render: (val) => formatDateTime(val) as string,
+      render: (val) => formatDate(val) as string,
     },
     {
       field: 'price',
@@ -94,12 +102,12 @@
     {
       field: 'createTime',
       label: '鍒涘缓鏃堕棿',
-      render: (val) => formatDateTime(val) as string,
+      render: (val) => formatDate(val) as string,
     },
     {
       field: 'updateTime',
       label: '鏇存柊鏃堕棿',
-      render: (val) => formatDateTime(val) as string,
+      render: (val) => formatDate(val) as string,
     },
   ];
 }

--
Gitblit v1.9.3