From a6dc4b85d0b53c8d5a4d27ad6821fca367f1e792 Mon Sep 17 00:00:00 2001 From: shenyifei Date: Mon, 22 Dec 2025 10:02:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(dealer):=20=E6=96=B0=E5=A2=9E=E7=BB=8F?= =?UTF-8?q?=E9=94=80=E5=95=86=E6=A1=A3=E5=8F=A3=E7=AE=A1=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除独立的 MelonStallList 组件及其导出 - 新增 DealerStallList 组件用于管理经销商档口 - 在 DealerList 中集成档口管理模块,仅对市场类经销商可见 - 更新 DealerSelect 和 DealerSearch 中的标签显示逻辑,去除 ID 前缀 - 调整 BizDetail 过滤逻辑以支持动态显示配置项 - 添加经销商类型枚举国际化支持 - 页面路由从 MelonStall 迁移到 DealerStall - 补充 dealerStall 相关国际化文案 - 删除 melonStall 相关冗余国际化内容 --- .../components/BasicData/MelonStallList.tsx | 253 ------------------ .../src/components/BasicData/index.ts | 1 - .../src/components/Biz/BizDetail.tsx | 16 +- .../src/components/Dealer/DealerFormItem.tsx | 2 +- .../src/components/Dealer/DealerList.tsx | 32 ++- .../src/components/Dealer/DealerModal.tsx | 23 +- .../src/components/Dealer/DealerSearch.tsx | 8 +- .../src/components/Dealer/DealerSelect.tsx | 4 +- .../src/components/Dealer/DealerStallList.tsx | 151 +++++++++++ .../src/components/Dealer/index.ts | 1 + packages/app-operation/src/locales/zh-CN.ts | 169 ++++++------ .../app-operation/src/pages/DealerStall.tsx | 5 + .../app-operation/src/pages/MelonStall.tsx | 5 - 13 files changed, 316 insertions(+), 354 deletions(-) delete mode 100644 packages/app-operation/src/components/BasicData/MelonStallList.tsx create mode 100644 packages/app-operation/src/components/Dealer/DealerStallList.tsx create mode 100644 packages/app-operation/src/pages/DealerStall.tsx delete mode 100644 packages/app-operation/src/pages/MelonStall.tsx diff --git a/packages/app-operation/src/components/BasicData/MelonStallList.tsx b/packages/app-operation/src/components/BasicData/MelonStallList.tsx deleted file mode 100644 index 546aed1..0000000 --- a/packages/app-operation/src/components/BasicData/MelonStallList.tsx +++ /dev/null @@ -1,253 +0,0 @@ -import { - BizContainer, - BizValueType, - MaterialList, - ModeType, -} from '@/components'; -import { business } from '@/services'; -import { formatBankCard } from '@/utils/format'; -import { formatParam } from '@/utils/formatParam'; -import { useIntl } from '@@/exports'; -import { EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons'; -import { - ActionType, - ProColumns, - ProFormText, -} from '@ant-design/pro-components'; -import { ProDescriptionsItemProps } from '@ant-design/pro-descriptions'; -import { ProFormUploadMaterial } from '@chageable/components'; -import React, { useRef, useState } from 'react'; - -interface IMelonStallListProps { - ghost?: boolean; - supplierId?: BusinessAPI.SupplierVO['supplierId']; - search?: boolean; - onValueChange?: () => void; - mode?: ModeType; - trigger?: () => React.ReactNode; -} - -export default function MelonStallList(props: IMelonStallListProps) { - const { - ghost = false, - supplierId, - search = true, - mode = 'page', - trigger, - onValueChange, - } = props; - const intl = useIntl(); - const intlPrefix = 'melonStall'; - const actionRef = useRef(); - - const [showBankCard, setShowBankCard] = useState>({}); - - const columns: ProColumns[] = [ - { - title: intl.formatMessage({ id: intlPrefix + '.column.name' }), - dataIndex: 'name', - key: 'name', - renderText: (text: string) => {text}, - }, - { - title: intl.formatMessage({ id: intlPrefix + '.column.payeeName' }), - dataIndex: 'payeeName', - key: 'payeeName', - }, - { - title: intl.formatMessage({ id: intlPrefix + '.column.bankCard' }), - dataIndex: 'bankCard', - key: 'bankCard', - render: (_, record) => ( -
- - {formatBankCard(record.bankCard, showBankCard[record.supplierId])} - - { - setShowBankCard((prev) => ({ - ...prev, - [record.supplierId]: !prev[record.supplierId], - })); - }} - > - {showBankCard[record.supplierId] ? ( - - ) : ( - - )} - -
- ), - }, - { - title: intl.formatMessage({ id: intlPrefix + '.column.wechatQr' }), - dataIndex: 'wechatQr', - valueType: 'image', - key: 'wechatQr', - search: false, - }, - ]; - - const formContext = [ -