更新部分功能

This commit is contained in:
孙景学
2025-07-03 10:24:33 +08:00
parent cf8e9d0820
commit e15c97d741
26 changed files with 199 additions and 114 deletions

View File

@ -20,10 +20,11 @@ interface InvoiceInfo {
interface InvoiceTabProps {
viewType?: boolean;
record?: string;
}
const InvoiceTab: React.FC<InvoiceTabProps> = (props) => {
const { viewType = false } = props;
const { viewType = false, record = '' } = props;
//语言切换
const intl = useIntl();
//列表渲染数据
@ -37,7 +38,7 @@ const InvoiceTab: React.FC<InvoiceTabProps> = (props) => {
const getList = async (pageNo = 1, pageSize = 10) => {
setLoading(true);
try {
const { code, data } = await invoiceGetPage({ pageNo, pageSize });
const { code, data } = await invoiceGetPage({ pageNo, pageSize, supplierId: record });
if (code === 200) {
setData(data.records);
setPagination({ current: pageNo, pageSize, total: data.total });