Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
| | |
| | | const InitModal = ({ open, setOpen }) => { |
| | | const refresh = useRefresh(); |
| | | const translate = useTranslate(); |
| | | |
| | | const {filterValues} = useListContext(); // 获取列表上下文 |
| | | |
| | | |
| | | const notify = useNotify(); |
| | | const [disabled, setDisabled] = useState(false) |
| | | |
| | | const [formData, setFormData] = useState({ |
| | | "warehouseId": null, |
| | | "areaId": undefined, |
| | | "warehouseId": filterValues.warehouseId, |
| | | "areaId": filterValues.areaId, |
| | | "endBay": undefined, |
| | | "endLev": undefined, |
| | | "endRow": undefined, |
| | |
| | | |
| | | return ( |
| | | <Dialog open={open} maxWidth="md" fullWidth> |
| | | <Form onSubmit={handleSubmit}> |
| | | <Form onSubmit={handleSubmit} defaultValues={filterValues}> |
| | | <DialogCloseButton onClose={handleClose} /> |
| | | <DialogTitle>{translate('toolbar.locInit')}</DialogTitle> |
| | | <DialogContent sx={{ mt: 2 }}> |
| | |
| | | reference="warehouse" |
| | | > |
| | | <AutocompleteInput |
| | | debounce |
| | | label="table.field.loc.warehouseId" |
| | | optionText="name" |
| | | onChange={(value) => handleChange(value, 'warehouseId')} |
| | |
| | | </WrapperField> |
| | | |
| | | </StyledDatagrid> |
| | | <InitModal |
| | | open={initDialog} |
| | | setOpen={setInitDialog} |
| | | /> |
| | | </List> |
| | | <LocCreate |
| | | open={createDialog} |
| | |
| | | setDrawerVal={setDrawerVal} |
| | | > |
| | | </PageDrawer> |
| | | |
| | | <InitModal |
| | | open={initDialog} |
| | | setOpen={setInitDialog} |
| | | /> |
| | | |
| | | |
| | | </Box> |
| | | ) |
| | | } |
| | |
| | | if (row.flagWare === 1) { |
| | | setFilters({ warehouseId: row.id, areaId: '' }); |
| | | } else if (row.flagWare === 0) { |
| | | setFilters({ areaId: row.id, warehouseId: '' }); |
| | | setFilters({ areaId: row.id, warehouseId: row.warehouseId }); |
| | | } |
| | | |
| | | }; |
| | |
| | | getOptions(); |
| | | }, []); |
| | | const getOptions = async () => { |
| | | const parmas = { |
| | | const parmas = { |
| | | "type": "supplier" |
| | | } |
| | | const { |
| | | data: { code, data, msg }, |
| | |
| | | getOptions(); |
| | | }, []); |
| | | const getOptions = async () => { |
| | | const parmas = { |
| | | const parmas = { |
| | | "type": "supplier" |
| | | } |
| | | const { |
| | | data: { code, data, msg }, |
| | |
| | | package com.vincent.rsf.server.manager.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.common.R; |
| | |
| | | @PreAuthorize("hasAuthority('manager:asnOrderItemLog:list')") |
| | | @PostMapping("/asnOrderItemLog/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(asnOrderItemLogService.list(), AsnOrderItemLog.class), response); |
| | | LambdaQueryWrapper<AsnOrderItemLog> itemLogLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | itemLogLambdaQueryWrapper.like(AsnOrderItemLog::getLogId, map.get("logId")); |
| | | List<AsnOrderItemLog> list = asnOrderItemLogService.list(itemLogLambdaQueryWrapper); |
| | | ExcelUtil.build(ExcelUtil.create(list, AsnOrderItemLog.class), response); |
| | | } |
| | | |
| | | } |