|
@@ -13,9 +13,9 @@ import {
|
|
|
} from '@utils';
|
|
|
import {RawMaterialOutStreamListData} from '@models';
|
|
|
import {ColumnsType} from 'antd/es/table';
|
|
|
-import {useTableDeleteEvent} from '@hooks';
|
|
|
-import {delOutStream} from '@apis';
|
|
|
-import {Button} from 'antd';
|
|
|
+// import {useTableDeleteEvent} from '@hooks';
|
|
|
+// import {delOutStream} from '@apis';
|
|
|
+// import {Button} from 'antd';
|
|
|
|
|
|
export const columns: ColumnsType<RawMaterialOutStreamListData> = [
|
|
|
{
|
|
@@ -112,32 +112,32 @@ export const columns: ColumnsType<RawMaterialOutStreamListData> = [
|
|
|
},
|
|
|
];
|
|
|
|
|
|
-export function useColumns(refetch: () => void) {
|
|
|
- const [deleteingId, onDelete] = useTableDeleteEvent(
|
|
|
- delOutStream,
|
|
|
- refetch,
|
|
|
- {label: '出库流水', findId: state => state.id},
|
|
|
- );
|
|
|
+export function useColumns() {
|
|
|
+ // const [deleteingId, onDelete] = useTableDeleteEvent(
|
|
|
+ // delOutStream,
|
|
|
+ // refetch,
|
|
|
+ // {label: '出库流水', findId: state => state.id},
|
|
|
+ // );
|
|
|
|
|
|
return [
|
|
|
...columns,
|
|
|
- {
|
|
|
- title: '操作',
|
|
|
- fixed: true,
|
|
|
- dataIndex: 'id',
|
|
|
- width: MIDDLE_TABLE_WIDTH,
|
|
|
- render(_, {id, storageCode}) {
|
|
|
- return (
|
|
|
- <Button
|
|
|
- type="text"
|
|
|
- danger
|
|
|
- loading={deleteingId === id}
|
|
|
- onClick={onDelete({type: '0', id}, storageCode)}
|
|
|
- >
|
|
|
- 删除
|
|
|
- </Button>
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '操作',
|
|
|
+ // fixed: true,
|
|
|
+ // dataIndex: 'id',
|
|
|
+ // width: MIDDLE_TABLE_WIDTH,
|
|
|
+ // render(_, {id, storageCode}) {
|
|
|
+ // return (
|
|
|
+ // <Button
|
|
|
+ // type="text"
|
|
|
+ // danger
|
|
|
+ // loading={deleteingId === id}
|
|
|
+ // onClick={onDelete({type: '0', id}, storageCode)}
|
|
|
+ // >
|
|
|
+ // 删除
|
|
|
+ // </Button>
|
|
|
+ // );
|
|
|
+ // },
|
|
|
+ // },
|
|
|
] as ColumnsType<RawMaterialOutStreamListData>;
|
|
|
}
|