Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
| | |
| | | omit={['id', 'createTime', 'createBy', 'memo', 'label','name','target','statusBool','updateBy']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="site" label="table.field.deviceSite.site" /> |
| | | <TextField source="site$" label="table.field.deviceSite.site" /> |
| | | <TextField source="name" label="table.field.deviceSite.name" /> |
| | | <NumberField source="type$" label="table.field.deviceSite.type" /> |
| | | |
| | | <TextField source="target" label="table.field.deviceSite.target" /> |
| | | <TextField source="label" label="table.field.deviceSite.label" /> |
| | | <TextField source="device$" label="table.field.deviceSite.device" /> |
| | | <TextField source="channel" label="table.field.deviceSite.channel" /> |
| | | <TextField source="deviceSite" label="table.field.deviceSite.deviceSite" /> |
| | | <TextField source="deviceSite$" label="table.field.deviceSite.deviceSite" /> |
| | | <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}> |
| | | <TextField source="nickname" /> |
| | | </ReferenceField> |
| | |
| | | <SelectInput |
| | | label="table.field.deviceSite.deviceSite" |
| | | optionText="stationName" |
| | | optionValue="stationName" |
| | | /> |
| | | </ReferenceInput> |
| | | </Grid> |
| | |
| | | <SelectInput |
| | | label="table.field.deviceSite.site" |
| | | optionText="stationName" |
| | | optionValue="stationName" |
| | | /> |
| | | </ReferenceInput> |
| | | |
| | |
| | | .map((item) => { |
| | | return { |
| | | id: item.site, |
| | | name: item.site |
| | | name: item.site$ |
| | | } |
| | | })); |
| | | } else { |
| | |
| | | source={name} |
| | | choices={list} |
| | | isLoading={loading} |
| | | optionValue='id' |
| | | optionValue='name' |
| | | optionText='name' |
| | | {...parmas} |
| | | /> |
| | |
| | | import request from '@/utils/request'; |
| | | import LocItemInfoModal from "../components/locItemInfoModal"; |
| | | import { Delete } from '@mui/icons-material'; |
| | | import _, { set } from 'lodash'; |
| | | import StaSelect from "../components/StaSelect"; |
| | | import { redirect } from "react-router"; |
| | | import { number } from "prop-types"; |
| | |
| | | # url: jdbc:mysql://47.76.147.249:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | # username: rsf |
| | | username: root |
| | | url: jdbc:mysql://10.10.10.200:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | password: xltys1995 |
| | | url: jdbc:mysql://127.0.0.1:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | password: 34821015 |
| | | # url: jdbc:mysql://10.10.10.200:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | # password: xltys1995 |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | | initial-size: 5 |
| | |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:deviceSite:list')") |
| | | @PostMapping("/x`selectStaList/list") |
| | | @PostMapping("/selectStaList/list") |
| | | public R selectStaList(@RequestBody Map<String, Object> map) { |
| | | List<String> longs = null; |
| | | if (map.get("type") != null) { |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.vincent.rsf.server.manager.service.BasStationService; |
| | | import com.vincent.rsf.server.manager.service.LocTypeService; |
| | | import com.vincent.rsf.server.system.constant.DictTypeCode; |
| | | import com.vincent.rsf.server.system.entity.DictData; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | |
| | | public String getSite$() { |
| | | if (this.site == null) {return null;} |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation station = service.getById(this.site); |
| | | if (Objects.isNull(station)) {return null;} |
| | | return station.getStationName(); |
| | | } |
| | | |
| | | public String getDeviceSite$() { |
| | | if (this.deviceSite == null) {return null;} |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation station = service.getById(this.deviceSite); |
| | | if (Objects.isNull(station)) {return null;} |
| | | return station.getStationName(); |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | String[] split = this.type.split(","); |
| | |
| | | |
| | | TASK_RESOUCE_CHECK_TYPE("5", "盘点出库任务"), |
| | | |
| | | |
| | | ; |
| | | TaskResouceType(String val, String desc) { |
| | | this.val = Short.parseShort(val); |
| | |
| | | List<String> targets = Arrays.asList(StringUtils.split(param.getTarget(), ",")); |
| | | List<DeviceSite> deviceSites = new ArrayList<>(); |
| | | for (String site : sites) { |
| | | BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, site)); |
| | | BasStation basStation = basStationService.getById(site); |
| | | if (null == basStation) { |
| | | throw new CoolException("初始化失败: 站点未找到!!"); |
| | | } |
| | | for (String deviceSite : dvSites) { |
| | | BasStation basStation2 = basStationService.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, deviceSite)); |
| | | BasStation basStation2 = basStationService.getById(deviceSite); |
| | | if (null == basStation2) { |
| | | throw new CoolException("初始化失败: 作业站点未找到!!"); |
| | | } |
| | |
| | | private OutStockService outStockService; |
| | | @Autowired |
| | | private WaveService waveService; |
| | | @Autowired |
| | | private BasStationService basStationService; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | String siteNo = map.getSiteNo(); |
| | | |
| | | List<LocItem> items = map.getItems(); |
| | | Map<Long, List<LocItem>> listMap = items.stream().collect(Collectors.groupingBy(LocItem::getLocId)); |
| | | WkOrder order; |
| | |
| | | # url: jdbc:mysql://47.76.147.249:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | # username: rsf |
| | | username: root |
| | | url: jdbc:mysql://10.10.10.200:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | password: xltys1995 |
| | | # url: jdbc:mysql://10.10.10.200:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | # password: xltys1995 |
| | | url: jdbc:mysql://127.0.0.1:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | password: 34821015 |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | | initial-size: 5 |
| | |
| | | # global-config:
|
| | | # field-strategy: 0
|
| | | configuration:
|
| | | # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
| | | map-underscore-to-camel-case: true
|
| | | cache-enabled: true
|
| | | call-setters-on-nulls: true
|