feat(reconciliation): 添加对账发票列表中的开票公司字段
- 在 DealerPaymentAccountList 组件中新增 accountId 参数 - 在 ReconciliationInvoiceList 中引入 DealerPaymentAccountList 组件并显示开票公司信息 - 新增开票公司列用于显示经销商支付账户信息 - 将发票日期字段从 dateTime 类型改为 dateRange 类型并调整显示格式 - 更新业务服务类型定义中对账发票相关字段 - 添加经销商、公司和支付账户信息的对象类型定义 - 在中文语言包中增加开票公司字段翻译
This commit is contained in:
parent
993326a895
commit
832a0299df
@ -14,6 +14,7 @@ import React from 'react';
|
|||||||
interface IDealerPaymentAccountListProps {
|
interface IDealerPaymentAccountListProps {
|
||||||
ghost?: boolean;
|
ghost?: boolean;
|
||||||
dealerVO?: BusinessAPI.DealerVO;
|
dealerVO?: BusinessAPI.DealerVO;
|
||||||
|
accountId: BusinessAPI.DealerPaymentAccountVO['accountId'];
|
||||||
search?: boolean;
|
search?: boolean;
|
||||||
onValueChange?: () => void;
|
onValueChange?: () => void;
|
||||||
mode?: ModeType;
|
mode?: ModeType;
|
||||||
@ -30,6 +31,7 @@ export default function DealerPaymentAccountList(
|
|||||||
mode = 'page',
|
mode = 'page',
|
||||||
trigger,
|
trigger,
|
||||||
onValueChange,
|
onValueChange,
|
||||||
|
accountId,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
@ -239,9 +241,11 @@ export default function DealerPaymentAccountList(
|
|||||||
update={{
|
update={{
|
||||||
formType: 'drawer',
|
formType: 'drawer',
|
||||||
formContext,
|
formContext,
|
||||||
|
trigger,
|
||||||
}}
|
}}
|
||||||
destroy={{}}
|
destroy={{}}
|
||||||
detail={{
|
detail={{
|
||||||
|
rowId: accountId,
|
||||||
formType: 'drawer',
|
formType: 'drawer',
|
||||||
columns: detailColumns,
|
columns: detailColumns,
|
||||||
formContext: detailContext,
|
formContext: detailContext,
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
BizContainer,
|
BizContainer,
|
||||||
BizValueType,
|
BizValueType,
|
||||||
|
DealerPaymentAccountList,
|
||||||
DealerSelect,
|
DealerSelect,
|
||||||
ModeType,
|
ModeType,
|
||||||
ProFormUploadMaterial,
|
ProFormUploadMaterial,
|
||||||
@ -17,6 +18,7 @@ import {
|
|||||||
ProFormSelect,
|
ProFormSelect,
|
||||||
} from '@ant-design/pro-components';
|
} from '@ant-design/pro-components';
|
||||||
import { ProDescriptionsItemProps } from '@ant-design/pro-descriptions';
|
import { ProDescriptionsItemProps } from '@ant-design/pro-descriptions';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
interface IReconciliationInvoiceListProps {
|
interface IReconciliationInvoiceListProps {
|
||||||
@ -61,6 +63,27 @@ export default function ReconciliationInvoiceList(
|
|||||||
valueType: 'dealer',
|
valueType: 'dealer',
|
||||||
hidden: !!dealerId,
|
hidden: !!dealerId,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: intl.formatMessage({ id: intlPrefix + '.column.account' }),
|
||||||
|
dataIndex: 'dealerPaymentAccountVO',
|
||||||
|
key: 'accountId',
|
||||||
|
render: (_, record) => {
|
||||||
|
const { dealerPaymentAccountVO } = record;
|
||||||
|
return (
|
||||||
|
dealerPaymentAccountVO && (
|
||||||
|
<DealerPaymentAccountList
|
||||||
|
ghost={true}
|
||||||
|
mode={'detail'}
|
||||||
|
search={false}
|
||||||
|
accountId={dealerPaymentAccountVO.accountId}
|
||||||
|
trigger={() => {
|
||||||
|
return <a>{dealerPaymentAccountVO.companyName}</a>;
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: intlPrefix + '.column.company' }),
|
title: intl.formatMessage({ id: intlPrefix + '.column.company' }),
|
||||||
dataIndex: 'companyVO',
|
dataIndex: 'companyVO',
|
||||||
@ -83,8 +106,12 @@ export default function ReconciliationInvoiceList(
|
|||||||
title: intl.formatMessage({ id: intlPrefix + '.column.invoiceDate' }),
|
title: intl.formatMessage({ id: intlPrefix + '.column.invoiceDate' }),
|
||||||
dataIndex: 'invoiceDate',
|
dataIndex: 'invoiceDate',
|
||||||
key: 'invoiceDate',
|
key: 'invoiceDate',
|
||||||
valueType: 'dateTime',
|
valueType: 'dateRange',
|
||||||
search: false,
|
render: (_, record) => (
|
||||||
|
<span>
|
||||||
|
{record.invoiceDate && dayjs(record.invoiceDate).format('YYYY-MM-DD')}
|
||||||
|
</span>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -3136,6 +3136,7 @@ export default {
|
|||||||
invoiceSn: '发票编码',
|
invoiceSn: '发票编码',
|
||||||
dealer: '经销商',
|
dealer: '经销商',
|
||||||
reconciliationSn: '对账编号',
|
reconciliationSn: '对账编号',
|
||||||
|
account: '开票公司',
|
||||||
company: '入账公司',
|
company: '入账公司',
|
||||||
invoiceAmount: '发票金额',
|
invoiceAmount: '发票金额',
|
||||||
invoiceDate: '发票日期',
|
invoiceDate: '发票日期',
|
||||||
|
|||||||
@ -5644,8 +5644,16 @@ declare namespace BusinessAPI {
|
|||||||
remark?: string;
|
remark?: string;
|
||||||
/** 状态:1_启用;0_禁用; */
|
/** 状态:1_启用;0_禁用; */
|
||||||
status?: boolean;
|
status?: boolean;
|
||||||
/** 对账发票ID */
|
/** 经销商ID */
|
||||||
reconciliationInvoiceId?: string;
|
dealerId?: string;
|
||||||
|
/** 公司ID */
|
||||||
|
companyId?: string;
|
||||||
|
/** 对账ID */
|
||||||
|
reconciliationId?: string;
|
||||||
|
/** 发票日期 */
|
||||||
|
invoiceDate?: string;
|
||||||
|
/** 发票编号 */
|
||||||
|
invoiceSn?: string;
|
||||||
offset?: number;
|
offset?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -5704,6 +5712,12 @@ declare namespace BusinessAPI {
|
|||||||
remark?: string;
|
remark?: string;
|
||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
createdAt?: string;
|
createdAt?: string;
|
||||||
|
/** 经销商信息 */
|
||||||
|
dealerVO?: DealerVO;
|
||||||
|
/** 公司信息 */
|
||||||
|
companyVO?: CompanyVO;
|
||||||
|
/** 经销商账户信息 */
|
||||||
|
dealerPaymentAccountVO?: DealerPaymentAccountVO;
|
||||||
};
|
};
|
||||||
|
|
||||||
type ReconciliationListQry = {
|
type ReconciliationListQry = {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user