From fea063f5c7fdf79d56ada2dd2b8045a44ca2db44 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 08 八月 2025 15:17:55 +0800 Subject: [PATCH] feat: 任务 --- src/views/FlexJobManage/FlexJobManage.vue | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/views/FlexJobManage/FlexJobManage.vue b/src/views/FlexJobManage/FlexJobManage.vue index 79429e4..d89e356 100644 --- a/src/views/FlexJobManage/FlexJobManage.vue +++ b/src/views/FlexJobManage/FlexJobManage.vue @@ -100,6 +100,9 @@ :operationBtns="operationBtns" show-column-check ref="proTable" + :table-props="{ + rowKey: 'id', + }" > </ProTableV2> </AppContainer> @@ -108,6 +111,7 @@ v-bind="dialogBatchImportProps" @onDownloadTemplate="handleDownloadTemplate" /> + <SendShotMessageDialog v-bind="dialogShotMessageProps" /> </LoadingLayout> </template> @@ -128,13 +132,13 @@ 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', @@ -238,7 +242,7 @@ { defaultExtraParams: { searchWord: '', - orderInput: [{ property: 'id', order: OrderInputType.Desc }], + orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], flexEnterpriseSettingStatus: '' as any as FlexEnterpriseSettingStatus, }, queryKey: ['flexEnterpriseServices/getFlexEnterpriseList'], @@ -327,12 +331,44 @@ 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() {} -- Gitblit v1.9.1