| | |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <StaffInfoDialog v-bind="dialogStaffInfoProps" /> |
| | | <StaffDetailInfoDialog v-bind="dialogStaffDetailProps" /> |
| | | <BatchImportDialog |
| | | v-bind="dialogBatchImportProps" |
| | | @onDownloadTemplate="handleDownloadTemplate" |
| | |
| | | import StaffInfoDialog from './components/StaffInfoDialog.vue'; |
| | | import BatchImportDialog from './components/BatchImportDialog.vue'; |
| | | import SendShotMessageDialog from './components/SendShotMessageDialog.vue'; |
| | | import StaffDetailInfoDialog from './components/StaffDetailInfoDialog.vue'; |
| | | import SignDialog from './components/SignDialog.vue'; |
| | | import * as enterpriseEmployeeServices from '@/services/api/enterpriseEmployee'; |
| | | import { ModelValueType } from 'element-plus'; |
| | |
| | | name: '详情', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => openDialog(role, true), |
| | | onClick: (role: API.GetEnterpriseEmployeesQueryResultItem) => |
| | | handleStaffDetailEdit({ id: role.id, tabType: 'info' }), |
| | | }, |
| | | }, |
| | | { |
| | |
| | | ids: [] as string[], |
| | | customerId: '', |
| | | name: '', |
| | | contractTemplateId: '', |
| | | }, |
| | | }); |
| | | |
| | |
| | | try { |
| | | let params: API.SendInviteElectronSignSmsCommand = { |
| | | ids: editShotMessageForm.ids, |
| | | contractTemplateId: editShotMessageForm.contractTemplateId, |
| | | }; |
| | | let res = await enterpriseEmployeeServices.sendInviteElectronSignSms(params); |
| | | if (res) { |
| | |
| | | (x) => x.enterpriseSignContractStatus !== EnumTaskUserSignContractStatus.Pass |
| | | ); |
| | | if (hasUnSigned) { |
| | | Message.warnMessage('勾选数据中包含未签约或已解约数据'); |
| | | Message.warnMessage('勾选数据中包含企业未签约或已解约数据'); |
| | | return; |
| | | } |
| | | stopElectronSign(selectionRows.map((x) => x.id)); |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const { |
| | | dialogProps: dialogStaffDetailProps, |
| | | handleEdit: handleStaffDetailEdit, |
| | | editForm: staffDetailEditForm, |
| | | } = useFormDialog({ |
| | | defaultFormParams: { |
| | | id: '', |
| | | tabType: 'info', |
| | | }, |
| | | }); |
| | | |
| | | async function handleDelete(row: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | try { |
| | | await Message.deleteMessage(); |