优化初始化以及去掉固定供应商ID
This commit is contained in:
@ -77,8 +77,10 @@ const InvoiceTab: React.FC<InvoiceTabProps> = (props) => {
|
||||
|
||||
//初始化
|
||||
useEffect(() => {
|
||||
getList();
|
||||
}, []);
|
||||
if(record) {
|
||||
getList();
|
||||
}
|
||||
}, [record]);
|
||||
|
||||
const columns: ColumnsType<InvoiceInfo> = [
|
||||
{ title: 'page.workbench.invoice.index', dataIndex: 'index', width: 80, key: 'index', render: (_: any, __: any, index: number) => index + 1 },
|
||||
|
Reference in New Issue
Block a user