| | |
| | | label: '核算', |
| | | type: 'primary', |
| | | icon: ACTION_ICON.EDIT, |
| | | auth: ['hrm:salary-calculation:calculate'], |
| | | auth: ['hrm:salary:calculate'], |
| | | onClick: openCalculateModal, |
| | | }, |
| | | { |
| | | label: '批量确认', |
| | | type: 'primary', |
| | | auth: ['hrm:salary-calculation:confirm'], |
| | | auth: ['hrm:salary:confirm'], |
| | | onClick: handleBatchConfirm, |
| | | }, |
| | | { |
| | | label: '批量保存', |
| | | type: 'primary', |
| | | auth: ['hrm:salary-calculation:save'], |
| | | auth: ['hrm:salary:calculate'], |
| | | onClick: handleBatchSave, |
| | | }, |
| | | { |
| | | label: $t('ui.actionTitle.export'), |
| | | type: 'primary', |
| | | icon: ACTION_ICON.DOWNLOAD, |
| | | auth: ['hrm:salary-calculation:export'], |
| | | auth: ['hrm:salary:export'], |
| | | onClick: handleExport, |
| | | }, |
| | | ]" |
| | |
| | | { |
| | | label: '确认', |
| | | type: 'link', |
| | | auth: ['hrm:salary-calculation:confirm'], |
| | | auth: ['hrm:salary:confirm'], |
| | | ifShow: row.status === 0, |
| | | onClick: handleConfirm.bind(null, row), |
| | | }, |
| | |
| | | label: '删除', |
| | | type: 'link', |
| | | danger: true, |
| | | auth: ['hrm:salary-calculation:delete'], |
| | | auth: ['hrm:salary:delete'], |
| | | ifShow: row.status === 0, |
| | | onClick: handleDelete.bind(null, row), |
| | | }, |
| | | { |
| | | label: '撤销确认', |
| | | type: 'link', |
| | | auth: ['hrm:salary-calculation:confirm'], |
| | | auth: ['hrm:salary:confirm'], |
| | | ifShow: row.status === 10, |
| | | onClick: handleRevoke.bind(null, row), |
| | | }, |