| | |
| | | |
| | | import { useGridColumns, useGridFormSchema } from './data'; |
| | | import Form from './modules/form.vue'; |
| | | import ParamManage from './modules/param-manage.vue'; |
| | | |
| | | const [FormModal, formModalApi] = useVbenModal({ |
| | | connectedComponent: Form, |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | | const [ParamManageModal, paramManageModalApi] = useVbenModal({ |
| | | connectedComponent: ParamManage, |
| | | destroyOnClose: true, |
| | | }); |
| | | |
| | | /** 刷新表格 */ |
| | | function handleRefresh() { |
| | | gridApi.query(); |
| | | } |
| | | |
| | | /** 管理工序绑定的工艺参数 */ |
| | | function handleParamManage(row: MesProProcessApi.Process) { |
| | | paramManageModalApi |
| | | .setData({ processId: row.id, processName: row.name }) |
| | | .open(); |
| | | } |
| | | |
| | | /** 创建生产工序 */ |
| | |
| | | |
| | | <template> |
| | | <Page auto-content-height><FormModal @success="handleRefresh" /> |
| | | <ParamManageModal @success="handleRefresh" /> |
| | | <Grid table-title="生产工序列表"> |
| | | <template #toolbar-tools> |
| | | <TableAction |
| | |
| | | <TableAction |
| | | :actions="[ |
| | | { |
| | | label: '工艺参数', |
| | | type: 'link', |
| | | icon: ACTION_ICON.EDIT, |
| | | auth: ['mes:pro-process:update'], |
| | | onClick: handleParamManage.bind(null, row), |
| | | }, |
| | | { |
| | | label: $t('common.edit'), |
| | | type: 'link', |
| | | icon: ACTION_ICON.EDIT, |