| | |
| | | :operationBtns="operationBtns" |
| | | show-column-check |
| | | ref="proTable" |
| | | :table-props="{ |
| | | rowKey: 'id', |
| | | }" |
| | | > |
| | | </ProTableV2> |
| | | </AppContainer> |
| | |
| | | v-bind="dialogBatchImportProps" |
| | | @onDownloadTemplate="handleDownloadTemplate" |
| | | /> |
| | | <SendShotMessageDialog v-bind="dialogShotMessageProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | useFormDialog, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import * as flexEnterpriseServices from '@/services/api/FlexEnterprise'; |
| | | import { FlexJobManageColumns } from './constants'; |
| | | import { FlexEnterpriseSettingStatus, Gender } from '@/constants'; |
| | | import { OrderInputType, Message } from '@bole-core/core'; |
| | | import { Message } from '@bole-core/core'; |
| | | import { convertApi2FormUrlOnlyOne, downloadFileByUrl } from '@/utils'; |
| | | import StaffInfoDialog from './components/StaffInfoDialog.vue'; |
| | | import BatchImportDialog from './components/BatchImportDialog.vue'; |
| | | import SendShotMessageDialog from './components/SendShotMessageDialog.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseManageList', |
| | |
| | | { |
| | | defaultExtraParams: { |
| | | searchWord: '', |
| | | orderInput: [{ property: 'id', order: OrderInputType.Desc }], |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], |
| | | flexEnterpriseSettingStatus: '' as any as FlexEnterpriseSettingStatus, |
| | | }, |
| | | queryKey: ['flexEnterpriseServices/getFlexEnterpriseList'], |
| | |
| | | |
| | | async function handleBatchImport() {} |
| | | |
| | | const { |
| | | dialogProps: dialogShotMessageProps, |
| | | handleAdd: handleShotMessageAdd, |
| | | editForm: editShotMessageForm, |
| | | } = useFormDialog({ |
| | | onConfirm: sendMessageForSign, |
| | | defaultFormParams: { |
| | | ids: [] as string[], |
| | | customerId: '', |
| | | name: '', |
| | | }, |
| | | }); |
| | | |
| | | async function handleSendShotMessage() { |
| | | try { |
| | | const selectionRows = getSelectionRows(); |
| | | if (selectionRows) { |
| | | if (selectionRows.some((x) => x.status === 10)) { |
| | | await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?'); |
| | | } |
| | | handleShotMessageAdd({ |
| | | ids: selectionRows.map((x) => x.id), |
| | | name: '人员签约通道短信', |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function sendMessageForSign() { |
| | | try { |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleDownloadTemplate() { |
| | | downloadFileByUrl('', '批量导入模板'); |
| | | } |
| | | |
| | | function handleBatchUnSign() {} |
| | | function handleSendShotMessage() {} |
| | | |
| | | function handleSign(row) {} |
| | | function handleBatchSign() {} |