更新部分功能

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

@ -19,9 +19,10 @@ interface attachmentsAdd {
interface Props {
viewType?: boolean;
record?: string;
}
const OtherAttachmentsTab: React.FC<Props> = (props) => {
const { viewType = false } = props;
const { viewType = false, record = '' } = props;
//语言切换
const intl = useIntl();
//列表渲染数据
@ -35,7 +36,7 @@ const OtherAttachmentsTab: React.FC<Props> = (props) => {
const getList = async (pageNo = 1, pageSize = 10) => {
setLoading(true);
try {
const { code, data } = await battachmentsGetPage({ pageNo, pageSize });
const { code, data } = await battachmentsGetPage({ pageNo, pageSize, supplierId: record });
if (code === 200) {
setData(data.records);
setPagination({ current: pageNo, pageSize, total: data.total });