import {Button, Card, Space} from 'antd'; import {FC, useMemo} from 'react'; import css from './index.module.css'; import {FormField, FormSelect} from '@components'; import {useFormState} from './hooks'; import {useDictionaryWidthCode, useMaterialOptions, useStorageOptions} from '@hooks'; const OtherStockOut: FC = function () { const [{control, isLoading}, {onSubmit, onReset, watch}] = useFormState(); const {data: materialOptions, isFetching} = useMaterialOptions(); const [{data: warehouseOptions, isFetching: isWarehouseFetching}] = useDictionaryWidthCode( '仓库', {enabled: true}, ); const halfWarehouseOptions = useMemo( function () { return warehouseOptions.filter(val => val.type === '1'); }, [warehouseOptions], ); const warehouseId = watch('warehouse'); const {data: locationOptions, isFetching: isLocationFetching} = useStorageOptions( false, state => state.storageLocationCode, { id: warehouseId, }, ); const [{data: corporationOptions, isFetching: isCorporationFetching}] = useDictionaryWidthCode( '公司', {enabled: true, findValue: state => state.code}, ); return (
{' '}
); }; export default OtherStockOut;