| | |
| | | import MyField from "../components/MyField"; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | import ImportButton from "../components/ImportButton"; |
| | | import MatListAside from './MatnrListAside'; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | |
| | | <ReferenceInput source="groupId" label="table.field.matnr.groupId" reference="matnrGroup" > |
| | | <AutocompleteInput label="table.field.matnr.groupId" optionText="code" filterToQuery={(val) => ({ code: val })} /> |
| | | </ReferenceInput>, |
| | | <ReferenceInput source="batchRegularId" label="table.field.matnr.batchRegularId" reference="batchRegular"> |
| | | <AutocompleteInput label="table.field.matnr.batchRegularId" optionText="code" filterToQuery={(val) => ({ code: val })} /> |
| | | <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="spec" label="table.field.matnr.spec" />, |
| | |
| | | <TextInput source="describle" label="table.field.matnr.describle" />, |
| | | <NumberInput source="nromNum" label="table.field.matnr.nromNum" />, |
| | | <TextInput source="unit" label="table.field.matnr.unit" />, |
| | | <TextInput source="purchaseUnit" label="table.field.matnr.purchaseUnit" />, |
| | | <TextInput source="purchaseUnit" label="table.field.matnr.purUnit" />, |
| | | <TextInput source="stockUnit" label="table.field.matnr.stockUnit" />, |
| | | <SelectInput source="stockLeval" label="table.field.matnr.stockLeval" |
| | | <SelectInput source="stockLeval" label="table.field.matnr.stockLevel" |
| | | choices={[ |
| | | { id: 0, name: ' A' }, |
| | | { id: 1, name: ' B' }, |
| | |
| | | { id: 1, name: ' 是' }, |
| | | ]} |
| | | />, |
| | | <NumberInput source="safetyQty" label="table.field.matnr.safetyQty" />, |
| | | <NumberInput source="safeQty" label="table.field.matnr.safeQty" />, |
| | | <NumberInput source="minQty" label="table.field.matnr.minQty" />, |
| | | <NumberInput source="maxQty" label="table.field.matnr.maxQty" />, |
| | | <NumberInput source="stagnate" label="table.field.matnr.stagnate" />, |
| | | <NumberInput source="validity" label="table.field.matnr.validity" />, |
| | | <NumberInput source="validityWarr" label="table.field.matnr.validityWarr" />, |
| | | <NumberInput source="stagn" label="table.field.matnr.stagn" />, |
| | | <NumberInput source="valid" label="table.field.matnr.valid" />, |
| | | <NumberInput source="validWarn" label="table.field.matnr.validWarn" />, |
| | | <NumberInput source="flagCheck" label="table.field.matnr.flagCheck" />, |
| | | |
| | | <TextInput label="common.field.memo" source="memo" />, |
| | |
| | | <ReferenceField source="groupId" label="table.field.matnr.groupId" reference="matnrGroup" link={false} sortable={false}> |
| | | <TextField source="code" /> |
| | | </ReferenceField> |
| | | <ReferenceField source="batchRegularId" label="table.field.matnr.batchRegularId" reference="batchRegular" link={false} sortable={false}> |
| | | <ReferenceField source="rglarId" label="table.field.matnr.rglarId" reference="rglarId" link={false} sortable={false}> |
| | | <TextField source="code" /> |
| | | </ReferenceField> |
| | | <TextField source="erpCode" label="table.field.matnr.erpCode" /> |
| | |
| | | <TextField source="describle" label="table.field.matnr.describle" /> |
| | | <NumberField source="nromNum" label="table.field.matnr.nromNum" /> |
| | | <TextField source="unit" label="table.field.matnr.unit" /> |
| | | <TextField source="purchaseUnit" label="table.field.matnr.purchaseUnit" /> |
| | | <TextField source="purchaseUnit" label="table.field.matnr.purUnit" /> |
| | | <TextField source="stockUnit" label="table.field.matnr.stockUnit" /> |
| | | <TextField source="stockLeval$" label="table.field.matnr.stockLeval" sortable={false} /> |
| | | <TextField source="stockLeval$" label="table.field.matnr.stockLevel" sortable={false} /> |
| | | <TextField source="isLabelMange$" label="table.field.matnr.isLabelMange" sortable={false} /> |
| | | <NumberField source="safetyQty" label="table.field.matnr.safetyQty" /> |
| | | <NumberField source="safeQty" label="table.field.matnr.safeQty" /> |
| | | <NumberField source="minQty" label="table.field.matnr.minQty" /> |
| | | <NumberField source="maxQty" label="table.field.matnr.maxQty" /> |
| | | <NumberField source="stagnate" label="table.field.matnr.stagnate" /> |
| | | <NumberField source="validity" label="table.field.matnr.validity" /> |
| | | <NumberField source="validityWarr" label="table.field.matnr.validityWarr" /> |
| | | <NumberField source="stagn" label="table.field.matnr.stagn" /> |
| | | <NumberField source="valid" label="table.field.matnr.valid" /> |
| | | <NumberField source="validWarn" label="table.field.matnr.validWarn" /> |
| | | <NumberField source="flagCheck" label="table.field.matnr.flagCheck" /> |
| | | |
| | | <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}> |
| | |
| | | <FilterButton /> |
| | | <MyCreateButton onClick={() => { setCreateDialog(true) }} /> |
| | | <SelectColumnsButton preferenceKey='matnr' /> |
| | | <ImportButton /> |
| | | <MyExportButton /> |
| | | </TopToolbar> |
| | | )} |
| | |
| | | ) |
| | | } |
| | | |
| | | export default MatnrList; |
| | | export default MatnrList; |