| | |
| | | import MyField from "@/page/components/MyField"; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | import ImportButton from "@/page/components/ImportButton"; |
| | | import ImportButton from "../../components/ImportButton"; |
| | | import MatListAside from './MatnrListAside'; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | |
| | | <ReferenceInput source="rglarId" label="table.field.matnr.rglarId" reference="rglarId"> |
| | | <AutocompleteInput label="table.field.matnr.rglarId" optionText="code" filterToQuery={(val) => ({ code: val })} /> |
| | | </ReferenceInput>, |
| | | <TextInput source="erpCode" label="table.field.matnr.erpCode" />, |
| | | <TextInput source="platCode" label="table.field.matnr.platCode" />, |
| | | <TextInput source="spec" label="table.field.matnr.spec" />, |
| | | <TextInput source="model" label="table.field.matnr.model" />, |
| | | <NumberInput source="weight" label="table.field.matnr.weight" />, |
| | |
| | | rowClick={(id, resource, record) => false} |
| | | expand={() => <MatnrPanel />} |
| | | expandSingle={true} |
| | | omit={['id','shipperId','erpCode','spec','model','weight','color','size','describle' |
| | | omit={['id','shipperId','platCode','spec','model','weight','color','size','describle' |
| | | ,'nromNum','unit','purchaseUnit','stockUnit','stockLeval','isLabelMange','safeQty' |
| | | ,'minQty','maxQty','stagn','valid','validWarn','flagCheck','updateTime', 'updateBy' |
| | | , 'createTime', 'createBy', 'memo']} |
| | |
| | | <TextField source="name" /> |
| | | </ReferenceField> |
| | | <ReferenceField source="groupId" label="table.field.matnr.groupId" reference="matnrGroup" link={false} sortable={false}> |
| | | <TextField source="code" /> |
| | | <TextField source="name" /> |
| | | </ReferenceField> |
| | | <ReferenceField source="rglarId" label="table.field.matnr.rglarId" reference="batchRegular" link={false} sortable={false}> |
| | | <TextField source="code" /> |
| | | </ReferenceField> |
| | | <TextField source="erpCode" label="table.field.matnr.erpCode" /> |
| | | <TextField source="platCode" label="table.field.matnr.platCode" /> |
| | | <TextField source="spec" label="table.field.matnr.spec" /> |
| | | <TextField source="model" label="table.field.matnr.model" /> |
| | | <NumberField source="weight" label="table.field.matnr.weight" /> |
| | |
| | | <FilterButton /> |
| | | <MyCreateButton onClick={() => { setCreateDialog(true) }} /> |
| | | <SelectColumnsButton preferenceKey='matnr' /> |
| | | <ImportButton /> |
| | | <MatnrList.Context.Provider value={'matnr'}> |
| | | <ImportButton /> |
| | | </MatnrList.Context.Provider> |
| | | <MyExportButton /> |
| | | </TopToolbar> |
| | | )} |
| | |
| | | ) |
| | | } |
| | | |
| | | MatnrList.Context = React.createContext() |
| | | |
| | | export default MatnrList; |