| | |
| | | @onDownloadTemplate="handleDownloadTemplate" |
| | | /> |
| | | <SendShotMessageDialog v-bind="dialogShotMessageProps" /> |
| | | <SignDialog v-bind="dialogSignProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | import StaffInfoDialog from './components/StaffInfoDialog.vue'; |
| | | import BatchImportDialog from './components/BatchImportDialog.vue'; |
| | | import SendShotMessageDialog from './components/SendShotMessageDialog.vue'; |
| | | import SignDialog from './components/SignDialog.vue'; |
| | | import * as enterpriseEmployeeServices from '@/services/api/enterpriseEmployee'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | |
| | |
| | | downloadFileByUrl(ImportEnterpriseEmployeesTempPath, '批量导入模板'); |
| | | } |
| | | |
| | | function handleBatchUnSign() { |
| | | const { |
| | | dialogProps: dialogSignProps, |
| | | handleAdd: handleSignAdd, |
| | | editForm: signEditForm, |
| | | } = useFormDialog({ |
| | | onConfirm: signContract, |
| | | defaultFormParams: { |
| | | url: [] as UploadUserFile[], |
| | | }, |
| | | }); |
| | | |
| | | function handleSign(row: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | handleSignAdd(); |
| | | } |
| | | function handleBatchSign() { |
| | | const selectionRows = getSelectionRows(); |
| | | if (selectionRows) { |
| | | const hasSigned = selectionRows?.some( |
| | | (x) => |
| | | !( |
| | | x.userSignContractStatus === EnumTaskUserSignContractStatus.Pass && |
| | | x.enterpriseSignContractStatus === EnumTaskUserSignContractStatus.Wait |
| | | ) |
| | | ); |
| | | if (hasSigned) { |
| | | Message.warnMessage('勾选人员中包含已签约完成或未录用人员'); |
| | | return; |
| | | } |
| | | handleSignAdd(); |
| | | } |
| | | } |
| | | |
| | | async function signContract() { |
| | | try { |
| | | Message.warnMessage('功能开发中'); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleSign(row: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | Message.warnMessage('功能开发中'); |
| | | } |
| | | function handleBatchSign() { |
| | | Message.warnMessage('功能开发中'); |
| | | } |
| | | async function handleUnSign(row: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | try { |
| | | Message.warnMessage('功能开发中'); |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleBatchUnSign() { |
| | | try { |
| | | Message.warnMessage('功能开发中'); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function handleDelete(row: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | try { |
| | | await Message.deleteMessage(); |