| | |
| | | label: $t('ui.actionTitle.create', ['杂项入库单']), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.ADD, |
| | | auth: ['mes:wm-misc-receipt:create'], |
| | | auth: ['mes:wm:misc-receipt:create'], |
| | | onClick: handleCreate, |
| | | }, |
| | | { |
| | | label: $t('ui.actionTitle.export'), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.DOWNLOAD, |
| | | auth: ['mes:wm-misc-receipt:export'], |
| | | auth: ['mes:wm:misc-receipt:export'], |
| | | onClick: handleExport, |
| | | }, |
| | | ]" |
| | |
| | | label: $t('common.edit'), |
| | | type: 'link', |
| | | icon: ACTION_ICON.EDIT, |
| | | auth: ['mes:wm-misc-receipt:update'], |
| | | auth: ['mes:wm:misc-receipt:update'], |
| | | ifShow: row.status === MesWmMiscReceiptStatusEnum.PREPARE, |
| | | onClick: handleEdit.bind(null, row), |
| | | }, |
| | |
| | | type: 'link', |
| | | danger: true, |
| | | icon: ACTION_ICON.DELETE, |
| | | auth: ['mes:wm-misc-receipt:delete'], |
| | | auth: ['mes:wm:misc-receipt:delete'], |
| | | ifShow: row.status === MesWmMiscReceiptStatusEnum.PREPARE, |
| | | popConfirm: { |
| | | title: $t('ui.actionMessage.deleteConfirm', [row.code]), |
| | |
| | | { |
| | | label: '执行入库', |
| | | type: 'link', |
| | | auth: ['mes:wm-misc-receipt:finish'], |
| | | auth: ['mes:wm:misc-receipt:finish'], |
| | | ifShow: row.status === MesWmMiscReceiptStatusEnum.APPROVED, |
| | | onClick: handleFinish.bind(null, row), |
| | | }, |
| | |
| | | label: '取消', |
| | | type: 'link', |
| | | danger: true, |
| | | auth: ['mes:wm-misc-receipt:cancel'], |
| | | auth: ['mes:wm:misc-receipt:cancel'], |
| | | ifShow: row.status === MesWmMiscReceiptStatusEnum.APPROVED, |
| | | popConfirm: { |
| | | title: '确认取消该杂项入库单吗?', |