更新部分功能
This commit is contained in:
@ -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 });
|
||||
|
Reference in New Issue
Block a user