| | |
| | | |
| | | const reset = () => { |
| | | setFormData({ |
| | | name: '', |
| | | code: '', |
| | | groupId: 0 |
| | | name: null, |
| | | code: null, |
| | | groupId: null |
| | | }) |
| | | } |
| | | |
| | |
| | | |
| | | const reset = () => { |
| | | setFormData({ |
| | | name: '', |
| | | code: '', |
| | | groupId: 0 |
| | | name: null, |
| | | code: null, |
| | | groupId: null |
| | | }) |
| | | } |
| | | |
| | |
| | | |
| | | const reset = () => { |
| | | setFormData({ |
| | | name: '', |
| | | code: '', |
| | | groupId: 0 |
| | | name: null, |
| | | code: null, |
| | | groupId: null |
| | | }) |
| | | } |
| | | |
| | |
| | | |
| | | const getData = async () => { |
| | | setIsLoading(true) |
| | | console.log(page); |
| | | const res = await request.post(`/matnr/page`, { |
| | | ...formData, |
| | | current: page?.page, |
| | |
| | | </DialogTitle> |
| | | <Grid container rowSpacing={2} columnSpacing={2}> |
| | | <DialogContent> |
| | | <Grid item sx={24}> |
| | | <Grid item> |
| | | <List |
| | | resource="/deliveryItem/filters" |
| | | sx={{ |
| | |
| | | public PageParam<Matnr, BaseParam> getMatnrPage(PageParam<Matnr, BaseParam> pageParam, Map<String, Object> params) { |
| | | List<Long> longs = new ArrayList<>(); |
| | | if (params.containsKey("groupId")) { |
| | | if (!Objects.isNull(params.get("groupId"))) { |
| | | Object groupId = params.get("groupId"); |
| | | MatnrGroup group = matnrGroupService.getById(groupId.toString()); |
| | | if (null != group){ |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | QueryWrapper<Matnr> queryWrapper = pageParam.buildWrapper(true); |
| | | queryWrapper.in(!longs.isEmpty(),"group_id", longs); |
| | | |