| | |
| | | import type { VxeTableGridOptions } from "#/adapter/vxe-table"; |
| | | import type { MesPdTemplateApi } from "#/api/mes/pro/processdesign/template"; |
| | | |
| | | import { Page, useVbenModal } from "../../../../packages/effects/common-ui/src"; |
| | | import { Page, useVbenModal } from "@vben/common-ui"; |
| | | |
| | | import { Button, message } from "ant-design-vue"; |
| | | |
| | |
| | | exportTemplateExcel, |
| | | } from "#/api/mes/pro/processdesign/template"; |
| | | import { $t } from "#/locales"; |
| | | import { downloadFileFromBlobPart } from "../../../../packages/utils/src"; |
| | | import { downloadFileFromBlobPart } from "@vben/utils"; |
| | | |
| | | import { useGridColumns, useGridFormSchema } from "./data"; |
| | | import Form from "./modules/form.vue"; |
| | |
| | | label: $t('ui.actionTitle.create', ['模板']), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.ADD, |
| | | auth: ['mes:pd:template:create'], |
| | | auth: ['mes:pd-process-param-template:create'], |
| | | onClick: handleCreate, |
| | | }, |
| | | { |
| | | label: $t('ui.actionTitle.export'), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.DOWNLOAD, |
| | | auth: ['mes:pd:template:export'], |
| | | auth: ['mes:pd-process-param-template:export'], |
| | | onClick: handleExport, |
| | | }, |
| | | ]" /> |
| | |
| | | label: $t('common.edit'), |
| | | type: 'link', |
| | | icon: ACTION_ICON.EDIT, |
| | | auth: ['mes:pd:template:update'], |
| | | auth: ['mes:pd-process-param-template:update'], |
| | | onClick: handleEdit.bind(null, row), |
| | | }, |
| | | { |
| | |
| | | type: 'link', |
| | | danger: true, |
| | | icon: ACTION_ICON.DELETE, |
| | | auth: ['mes:pd:template:delete'], |
| | | auth: ['mes:pd-process-param-template:delete'], |
| | | popConfirm: { |
| | | title: $t('ui.actionMessage.deleteConfirm', [row.templateName]), |
| | | confirm: handleDelete.bind(null, row), |