diff --git a/inventory-web/src/views/purchase/index.vue b/inventory-web/src/views/purchase/index.vue
index eb691d9..087e524 100644
--- a/inventory-web/src/views/purchase/index.vue
+++ b/inventory-web/src/views/purchase/index.vue
@@ -91,7 +91,7 @@
¥{{ Number(row.totalAmount).toFixed(2) }}
-
+
@@ -292,7 +292,7 @@
{{ detail.purchase_date }}
{{ detail.unit_price || '-' }}
{{ detail.total_price || '-' }}
- {{ detail.requester_name }}
+ {{ formatUserName(detail.requester_name) }}
{{ detail.approver_name || '-' }}
{{ detail.approved_at || '-' }}
@@ -720,6 +720,12 @@ const getImageUrl = (url: string) => {
const formatDate = (d: string) => d ? d.split(' ')[0] : ''
+// ★ 格式化用户名:韩善龙/hanshanlong → 韩善龙(只取斜杠前的中文部分)
+const formatUserName = (name: string): string => {
+ if (!name) return '-'
+ return name.split('/')[0].trim()
+}
+
// --- 数据获取 ---
const fetchData = async () => {
loading.value = true