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 = [ -