| | |
| | | import { getDictLabel } from '@vben/hooks'; |
| | | import { downloadFileFromBlobPart } from '@vben/utils'; |
| | | |
| | | import { Button, message, Tooltip } from 'ant-design-vue'; |
| | | import { Alert, Button, message, Tooltip } from 'ant-design-vue'; |
| | | |
| | | import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; |
| | | import { |
| | |
| | | import ImportModalComponent from '#/components/import-modal'; |
| | | |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | import Form from './modules/form.vue'; |
| | | // 工艺设计与生产基础数据共用同一个配置器,避免两套页面能力不一致。 |
| | | import Form from '#/views/mes/pro/route/modules/route-configurator.vue'; |
| | | |
| | | const { hasAccessByCodes } = useAccess(); |
| | | const statusEditable = hasAccessByCodes(['mes:pro-route:update']); // 是否可切换状态 |
| | |
| | | ): Promise<boolean | undefined> { |
| | | try { |
| | | await confirm( |
| | | `确认要将"${row.name}"工艺路线切换为【${getDictLabel(DICT_TYPE.COMMON_STATUS, newStatus)}】吗?`, |
| | | newStatus === CommonStatusEnum.ENABLE |
| | | ? `确认启用“${row.name}”吗?系统将检查产出入库位置、工序产出和工序投料是否完整。` |
| | | : `确认要将“${row.name}”工艺路线切换为【${getDictLabel(DICT_TYPE.COMMON_STATUS, newStatus)}】吗?`, |
| | | ); |
| | | } catch { |
| | | return false; |
| | |
| | | <template> |
| | | <Page auto-content-height><FormModal @success="handleRefresh" /> |
| | | <ImportModal @success="handleRefresh" /> |
| | | <Alert |
| | | class="mb-3" |
| | | message="路线配置顺序" |
| | | description="基本信息 → 产出产品及入库仓 → 工序及各工序产出 → 工序投料 → 校验启用" |
| | | show-icon |
| | | type="info" |
| | | /> |
| | | <Grid table-title="工艺路线列表"> |
| | | <template #toolbar-tools> |
| | | <TableAction |