| | |
| | | <script lang="ts" setup> |
| | | <script lang="ts" setup> |
| | | import type { MesHomeApi } from '#/api/mes/home'; |
| | | |
| | | import { computed } from 'vue'; |
| | | |
| | | import { IconifyIcon } from '..\..\..\..\packages\icons\src'; |
| | | import { IconifyIcon } from '@vben/icons'; |
| | | |
| | | import { Badge, Card } from 'ant-design-vue'; |
| | | |
| | |
| | | /** 待办提醒列表:标签、描述、图标、目标路由名称、数量 */ |
| | | const alertItems = computed(() => [ |
| | | { |
| | | count: props.summary.andonActiveCount, |
| | | desc: '未处置的安灯呼叫', |
| | | icon: 'lucide:bell-ring', |
| | | iconClass: 'bg-red-50 text-red-500', |
| | | label: '安灯报警', |
| | | routeName: 'MesProAndonRecord', |
| | | }, |
| | | { |
| | | count: props.summary.repairActiveCount, |
| | | desc: '待处理的维修工单', |
| | | desc: '待处理的维修订单', |
| | | icon: 'lucide:wrench', |
| | | iconClass: 'bg-orange-50 text-orange-500', |
| | | label: '设备维修', |
| | |
| | | }, |
| | | { |
| | | count: props.summary.workOrderPrepareCount, |
| | | desc: '草稿状态的生产工单', |
| | | desc: '草稿状态的生产订单', |
| | | icon: 'lucide:clipboard-list', |
| | | iconClass: 'bg-blue-50 text-blue-500', |
| | | label: '待排产工单', |
| | | label: '待排产订单', |
| | | routeName: 'MesProWorkOrder', |
| | | }, |
| | | ]); |