| | |
| | | import { |
| | | List, |
| | | DatagridConfigurable, |
| | | SearchInput, |
| | | TopToolbar, |
| | | Button, |
| | | SelectColumnsButton, |
| | | EditButton, |
| | | FilterButton, |
| | | CreateButton, |
| | | ExportButton, |
| | | BulkDeleteButton, |
| | | WrapperField, |
| | | useRecordContext, |
| | | useTranslate, |
| | | useNotify, |
| | | useListContext, |
| | | FunctionField, |
| | | TextField, |
| | | NumberField, |
| | | DateField, |
| | | BooleanField, |
| | | ReferenceField, |
| | | TextInput, |
| | | DateTimeInput, |
| | | DateInput, |
| | | SelectInput, |
| | | NumberInput, |
| | | ReferenceInput, |
| | | ReferenceArrayInput, |
| | | AutocompleteInput, |
| | | DeleteButton, |
| | | SimpleForm, |
| | | required, |
| | | Form, |
| | | useRefresh, |
| | |
| | | setRows(fetchRows) |
| | | } else { |
| | | const mas = fetchRows.filter(item => selectedMatnr.includes(item.matnrCode)); |
| | | setRows(mas) |
| | | console.log(mas); |
| | | let ids = mas.map(item => item.matnrCode); |
| | | console.log(ids); |
| | | const { data: { code, data, msg } } = request.get('/check/order/items/' + ids ); |
| | | if (code === 200) { |
| | | setFetchRows(data) |
| | | } else { |
| | | notify(msg); |
| | | } |
| | | // setRows(mas) |
| | | } |
| | | }, [selectedMatnr]) |
| | | |
| | |
| | | if (formData.waveId == null && formData.waveId == undefined) { |
| | | return |
| | | } |
| | | const { data: { code, data, msg } } = await request.post('/outStock/order/getOutTaskItems', { ...formData }); |
| | | const { data: { code, data, msg } } = await request.post('/check/order/items', { ...formData }); |
| | | if (code === 200) { |
| | | setFetchRows(data) |
| | | } else { |