| | |
| | | <script lang="ts" setup> |
| | | import { computed, onMounted, ref } from 'vue'; |
| | | |
| | | import { DocAlert, Page } from '../../../../../packages/effects/common-ui/src'; |
| | | import { Page } from '@vben/common-ui'; |
| | | |
| | | import { Badge, Button, message } from 'ant-design-vue'; |
| | | import dayjs from 'dayjs'; |
| | | |
| | | import { getGanttTaskList, updateTask } from '#/api/mes/pro/task'; |
| | | |
| | |
| | | changes.map((change) => |
| | | updateTask({ |
| | | duration: change.duration, |
| | | endTime: change.endTime, |
| | | endTime: change.endTime ? dayjs(change.endTime).format('YYYY-MM-DD HH:mm:ss') : undefined, |
| | | id: change.id, |
| | | startTime: change.startTime, |
| | | startTime: change.startTime ? dayjs(change.startTime).format('YYYY-MM-DD HH:mm:ss') : undefined, |
| | | }), |
| | | ), |
| | | ); |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <Page auto-content-height> |
| | | <template #doc> |
| | | <DocAlert |
| | | title="【生产】生产排产、工序流转卡" |
| | | url="https://doc.iocoder.cn/mes/pro/schedule-card/" |
| | | /> |
| | | </template> |
| | | |
| | | <div class="mb-3 flex items-center justify-between"> |
| | | <Page auto-content-height><div class="mb-3 flex items-center justify-between"> |
| | | <span class="text-sm text-gray-500"> |
| | | 可直接拖拽/拉伸任务条,或双击编辑开始时间和时长,修改后点击「批量保存」 |
| | | </span> |