wupengfei
2025-08-01 1dd18a43eeddf5baf9c425dd5c37b5e0a0d5f781
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>
@@ -135,6 +139,7 @@
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',
@@ -327,12 +332,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() {}