#
luxiaotao1123
2024-09-24 d305580602cce0bef8a0f548578b5f26f97da826
#
3个文件已修改
16 ■■■■■ 已修改文件
zy-acs-flow/src/page/bus/BusList.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MissionAssignService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/enums/TaskStsType.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/bus/BusList.jsx
@@ -33,7 +33,7 @@
    FunctionField,
    Pagination,
} from 'react-admin';
import { Box, Typography, Card, Chip } from '@mui/material';
import { Box, Typography, Button, Chip } from '@mui/material';
import { styled } from '@mui/material/styles';
import BusCreate from "./BusCreate";
import BusPanel from "./BusPanel";
@@ -46,6 +46,7 @@
import * as Common from '@/utils/common';
import BusListAside from "./BusListAside";
import { getBusStsColor } from '@/utils/color-util';
import CancelIcon from '@mui/icons-material/Cancel';
const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
    '& .css-1vooibu-MuiSvgIcon-root': {
@@ -67,7 +68,7 @@
        whiteSpace: 'nowrap',
    },
    '& .opt': {
        width: 80
        width: 120
    },
}));
@@ -164,8 +165,9 @@
                    {/* <BooleanField source="statusBool" label="common.field.status" sortable={false} /> */}
                    <TextField source="memo" label="common.field.memo" sortable={false} emptyText="-" />
                    <FunctionField label="common.field.opt" cellClassName="opt" render={record => (
                        (record.busSts === 15) && (
                            <DeleteButton label="" sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} />
                        (record.busSts === 15 || true) && (
                            // <DeleteButton label="" sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} />
                            <Button size="small" color="error" startIcon={<CancelIcon />} sx={{ padding: '1px', fontSize: '.75rem' }}>cancel</Button>
                        )
                    )} />
                </StyledDatagrid>
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MissionAssignService.java
@@ -35,7 +35,7 @@
    @Autowired
    private TaskService taskService;
    public synchronized Agv execute1(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) {
    public synchronized Agv execute(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) {
        String oriLocNo = task.getOriLoc$();
        int oriLocRow = LocUtils.getRow(oriLocNo);
        String destLocNo = task.getDestLoc$();
@@ -79,7 +79,7 @@
        return hit;
    }
    public synchronized Agv execute(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) {
    public synchronized Agv execute1(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) {
        String oriLocNo = task.getOriLoc$();
        int oriLocRow = LocUtils.getRow(oriLocNo);
        String destLocNo = task.getDestLoc$();
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/enums/TaskStsType.java
@@ -37,7 +37,7 @@
    @Override
    public List<String> getDataFieldSort() {
        return Arrays.stream(BusStsType.values())
        return Arrays.stream(TaskStsType.values())
                .sorted((e1, e2) -> Integer.compare(e1.dataSort, e2.dataSort))
                .map(Enum::name)
                .collect(Collectors.toList());