From 5c124cdf26e4d749eae1e7fc9df366e9a5f4d259 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 18 八月 2026 15:04:09 +0800
Subject: [PATCH] 选择采购订单修改列表宽度设置
---
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