From dcde4b33fa739b09486c39faade9ed19b29a6d7a Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 03 八月 2026 14:58:35 +0800
Subject: [PATCH] feat(srm): 优化供应商选择组件功能

---
 src/views/crm/business/index.vue |   39 +++++++++++++++++++++++----------------
 1 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/src/views/crm/business/index.vue b/src/views/crm/business/index.vue
index 961239e..7125acc 100644
--- a/src/views/crm/business/index.vue
+++ b/src/views/crm/business/index.vue
@@ -5,10 +5,10 @@
 import { ref } from 'vue';
 import { useRouter } from 'vue-router';
 
-import { DocAlert, 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';
+import { Button, message, Tabs, Tag } from 'ant-design-vue';
 
 import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
 import {
@@ -23,6 +23,22 @@
 
 const { push } = useRouter();
 const sceneType = ref('1');
+
+const STATUS_COLORS: Record<string, string> = {
+  鎷滆: 'default',
+  鍒濇鎺ヨЕ: 'processing',
+  闇�姹傜‘璁�: 'cyan',
+  鏂规鎶ヤ环: 'orange',
+  鍟嗗姟璋堝垽: 'volcano',
+  鍚堝悓绛捐: 'success',
+  璧㈠崟: 'success',
+  杈撳崟: 'error',
+  鏃犳晥: 'default',
+};
+
+function getStatusColor(name: string): string {
+  return STATUS_COLORS[name] || 'blue';
+}
 
 const [FormModal, formModalApi] = useVbenModal({
   connectedComponent: Form,
@@ -118,19 +134,7 @@
 </script>
 
 <template>
-  <Page auto-content-height>
-    <template #doc>
-      <DocAlert
-        title="銆愬晢鏈恒�戝晢鏈虹鐞嗐�佸晢鏈虹姸鎬�"
-        url="https://doc.iocoder.cn/crm/business/"
-      />
-      <DocAlert
-        title="銆愰�氱敤銆戞暟鎹潈闄�"
-        url="https://doc.iocoder.cn/crm/permission/"
-      />
-    </template>
-
-    <FormModal @success="handleRefresh" />
+  <Page auto-content-height><FormModal @success="handleRefresh" />
     <Grid>
       <template #toolbar-actions>
         <Tabs class="w-full" @change="handleChangeSceneType">
@@ -169,6 +173,9 @@
           {{ row.customerName }}
         </Button>
       </template>
+      <template #statusName="{ row }">
+        <Tag v-if="row.statusName" :color="getStatusColor(row.statusName)">{{ row.statusName }}</Tag>
+      </template>
       <template #actions="{ row }">
         <TableAction
           :actions="[

--
Gitblit v1.9.3