- 在BizContainer中新增company和paymentTask类型的支持 - 添加ProFormSelect组件用于公司选择 - 实现公司列表和付款任务列表的渲染功能 - 更新typing.ts中支持新的valueType类型 - 集成business服务的公司列表API - 添加PaymentTaskFormItem和PaymentTaskList组件导出 - 优化付款任务创建和支付流程 - 修复付款凭证字段名称和数据结构 - 添加完整的付款记录列表页面和组件 - 更新本地化文件中的付款相关文案 - 修正数据类型定义中的ID字段类型 - 添加付款记录的统计和筛选功能
55 lines
1.5 KiB
TypeScript
55 lines
1.5 KiB
TypeScript
import { CompanyPaymentAccountSearch } from '@/components';
|
|
import { useIntl } from '@@/exports';
|
|
import {
|
|
ProFormDependency,
|
|
ProFormSelectProps,
|
|
} from '@ant-design/pro-components';
|
|
|
|
export type ICompanyPaymentAccountSelectProps = {
|
|
onFinish?: (accountList: BusinessAPI.CompanyPaymentAccountVO[]) => void;
|
|
params: BusinessAPI.CompanyPaymentAccountPageQry;
|
|
} & ProFormSelectProps;
|
|
|
|
export default function CompanyPaymentAccountSelect(
|
|
props: ICompanyPaymentAccountSelectProps,
|
|
) {
|
|
const intl = useIntl();
|
|
console.log('props', props);
|
|
|
|
return (
|
|
<ProFormDependency name={['companyPaymentAccountVO', 'canChangeAccount']}>
|
|
{({ companyPaymentAccountVO, canChangeAccount }, form) => {
|
|
return (
|
|
<CompanyPaymentAccountSearch
|
|
{...(canChangeAccount !== undefined && {
|
|
readonly: !canChangeAccount,
|
|
})}
|
|
className={'company-payment-account-select'}
|
|
form={form}
|
|
{...(companyPaymentAccountVO && {
|
|
selectedList: [companyPaymentAccountVO],
|
|
})}
|
|
label={intl.formatMessage({
|
|
id: 'form.companyPaymentAccountId.label',
|
|
})}
|
|
name={'companyPaymentAccountVO'}
|
|
required={true}
|
|
placeholder={intl.formatMessage({
|
|
id: 'form.companyPaymentAccountId.placeholder',
|
|
})}
|
|
rules={[
|
|
{
|
|
required: true,
|
|
message: intl.formatMessage({
|
|
id: 'form.companyPaymentAccountId.required',
|
|
}),
|
|
},
|
|
]}
|
|
{...props}
|
|
/>
|
|
);
|
|
}}
|
|
</ProFormDependency>
|
|
);
|
|
}
|