| | |
| | | <NumberInput |
| | | label="table.field.agvModel.backpack" |
| | | source="backpack" |
| | | validate={required()} |
| | | validate={[required(), minValue(1)]} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | |
| | | required, |
| | | useRecordContext, |
| | | DeleteButton, |
| | | minValue, |
| | | } from 'react-admin'; |
| | | import { useWatch, useFormContext } from "react-hook-form"; |
| | | import { Stack, Grid, Box, Typography } from '@mui/material'; |
| | |
| | | <NumberInput |
| | | label="table.field.agvModel.backpack" |
| | | source="backpack" |
| | | validate={[required(), minValue(1)]} |
| | | /> |
| | | </Stack> |
| | | <Stack direction='row' gap={2}> |
| | |
| | | <relativePath>../pom.xml</relativePath> |
| | | </parent> |
| | | |
| | | <artifactId>zy-acs-hk-latent</artifactId> |
| | | <artifactId>acs-hk-latent</artifactId> |
| | | <version>1.0.0</version> |
| | | <packaging>jar</packaging> |
| | | |
| | | <name>zy-acs-hk-latent</name> |
| | | <name>hk-latent</name> |
| | | |
| | | <properties> |
| | | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| | |
| | | result.put("message", message); |
| | | return result; |
| | | } |
| | | |
| | | } |
| | |
| | | @Autowired |
| | | private AgvService agvService; |
| | | @Autowired |
| | | private AgvModelService agvModelService; |
| | | @Autowired |
| | | private AgvDetailService agvDetailService; |
| | | @Autowired |
| | | private CodeService codeService; |
| | |
| | | throw new NullPointerException("segment is null in hasDelayAtSta."); |
| | | } |
| | | Long agvId = currSeg.getAgvId(); |
| | | if (agvModelService.isSingleBasket(agvId)) { |
| | | return false; |
| | | } |
| | | // 判断AGV是否在滚动输送线前 |
| | | Code currentCode = agvDetailService.getCurrentCode(agvId); |
| | | if (null == currentCode) { |
| | |
| | | |
| | | AgvModel getByAgvNo(String agvNo); |
| | | |
| | | Boolean isSingleBasket(Long agvId); |
| | | |
| | | } |
| | |
| | | return agvModel; |
| | | } |
| | | |
| | | @Override |
| | | public Boolean isSingleBasket(Long agvId) { |
| | | AgvModel model = this.getByAgvId(agvId); |
| | | return model.getBackpack() <= 1; |
| | | } |
| | | |
| | | } |