9个文件已修改
4个文件已添加
793 ■■■■■ 已修改文件
apps/bMiniApp/CHANGELOG.md 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue 95 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/Input/ChooseInputWithPicker.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/constants/apiEnum.ts 92 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/hooks/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/hooks/insurance.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/enterprise.ts 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/enterpriseInsuranceProduct.ts 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/index.ts 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/insuranceProduct.ts 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/typings.d.ts 388 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/wxmpUtils.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/CHANGELOG.md
@@ -1,5 +1,18 @@
## [1.1.16](http://120.26.58.240:8888/r/flexJobMiniApp/compare/@12333/bMiniApp/v1.1.15...@12333/bMiniApp/v1.1.16) (2025-12-12)
### Features
* 保险 ([b4007c6](http://120.26.58.240:8888/r/flexJobMiniApp/commits/b4007c6c9282ca2db3f24581ee8c3759c912bead))
* 保险 ([0d1b015](http://120.26.58.240:8888/r/flexJobMiniApp/commits/0d1b01575736fbb808f9f7a2b17399de0900bcc7))
* 保险 ([df174a7](http://120.26.58.240:8888/r/flexJobMiniApp/commits/df174a7a91ca8b354ded7752f21ea0253881eb02))
* 保险 ([5ef9c0d](http://120.26.58.240:8888/r/flexJobMiniApp/commits/5ef9c0d1b3b82d7b30ec8d066d4abcb8284b4e04))
* 保险 ([baa4fe4](http://120.26.58.240:8888/r/flexJobMiniApp/commits/baa4fe4c19c0151cb46d52c47658c6aab4853cc4))
* 保险 ([080d96d](http://120.26.58.240:8888/r/flexJobMiniApp/commits/080d96d823e35144b9a2470000ea3733170c953f))
* 页面 ([4c0fc31](http://120.26.58.240:8888/r/flexJobMiniApp/commits/4c0fc31d6019863b34594a2ea7c6472123a35b99))
## [1.1.15](http://120.26.58.240:8888/r/flexJobMiniApp/compare/@12333/bMiniApp/v1.1.14...@12333/bMiniApp/v1.1.15) (2025-12-05)
apps/bMiniApp/package.json
@@ -1,6 +1,6 @@
{
  "name": "@12333/bMiniApp",
  "version": "1.1.15",
  "version": "1.1.16",
  "private": true,
  "description": "",
  "templateInfo": {
apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
@@ -13,6 +13,7 @@
          placeholder="请选择供应商"
          :value-enum="supplierEnterpriseSelect"
          :disabled="isEdit"
          @change="supplierEnterpriseChange"
        />
      </nut-form-item>
      <nut-form-item label="任务名称:" class="bole-form-item" prop="name" label-width="90px">
@@ -335,14 +336,19 @@
      <nut-form-item
        label="保险产品:"
        class="bole-form-item"
        prop="supplierEnterpriseId"
        prop="insuranceProductId"
        label-width="90px"
        required
        v-if="
          form.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn) &&
          form.isConfiguredInsurance
        "
      >
        <ChooseInputWithPicker
          v-model="form.supplierEnterpriseId"
          v-model="form.insuranceProductId"
          placeholder="请选择保险产品"
          :value-enum="supplierEnterpriseSelect"
          :value-enum="enterpriseInsuranceProductSelect"
          @change="calcTaskTotalServiceFee()"
        />
      </nut-form-item>
      <nut-form-item
@@ -365,7 +371,7 @@
        prop="totalServiceFee"
        label-width="110px"
      >
        {{ `${toThousand(totalServiceFee)}元` }}
        {{ `${toThousand(form.totalServiceFee)}元` }}
      </nut-form-item>
    </nut-form>
  </ContentScrollView>
@@ -411,6 +417,7 @@
import {
  useAllAreaList,
  useDictionaryDataSelect,
  useEnterpriseInsuranceProductSelect,
  useEnterpriseWalletAccessSelect,
  useGetSupplierEnterpriseSelect,
} from '@12333/hooks';
@@ -425,6 +432,7 @@
const { findAreaNameFromCode } = useAllAreaList();
const { supplierEnterpriseSelect } = useGetSupplierEnterpriseSelect();
const router = Taro.useRouter();
const taskId = router.params?.id ?? '';
const isCopy = router.params?.isCopy === 'true';
@@ -489,6 +497,8 @@
  totalPieceQuantity: '' as any as number,
  totalServiceFee: null as number,
  insuranceProductId: '',
  isConfiguredInsurance: false,
});
const rules = reactive<FormRules>({
@@ -600,10 +610,25 @@
      },
    },
  ],
  insuranceProductId: [
    {
      required: true,
      message: '请选择保险产品',
      validator(value) {
        if (!value?.length) return Promise.reject('请选择保险产品');
        return Promise.resolve(true);
      },
    },
  ],
});
const { settlementAccessList } = useEnterpriseWalletAccessSelect({
  supplierEnterpriseId: computed(() => form.supplierEnterpriseId),
});
const { enterpriseInsuranceProductSelect } = useEnterpriseInsuranceProductSelect({
  supplierEnterpriseId: computed(() => form.supplierEnterpriseId),
  isConfiguredInsurance: computed(() => form.isConfiguredInsurance),
});
const {
@@ -657,7 +682,10 @@
    form.applyBeginTime = dayjs(data.applyBeginTime).format('YYYY-MM-DD');
    form.applyEndTime = dayjs(data.applyEndTime).format('YYYY-MM-DD');
    form.settlementAccess = data.settlementAccess;
    form.insuranceProductId = data.insuranceProductId;
    form.totalServiceFee = data.estimatedServiceFee;
    supplierEnterpriseChange();
    if (!!data.timeoutServiceFee) {
      calcTaskTotalServiceFee();
    }
@@ -666,21 +694,25 @@
async function calcTaskTotalServiceFee() {
  try {
    console.log();
    if (!form.beginTime || !form.endTime) {
      return;
    }
    if (form.billingMethod !== EnumBillingMethod.Piece && !form.needPeopleNumber) {
      return;
    }
    let params: API.CalcTaskTotalServiceFeeCommand = {
      billingMethod: form.billingMethod,
      serviceFee: form.serviceFee,
      verifyWorkHours: form.verifyWorkHours,
      totalPieceQuantity: form.totalPieceQuantity,
      needPeopleNumber: form.needPeopleNumber,
      needPeopleNumber: form.needPeopleNumber ? form.needPeopleNumber : 0,
      beginTime: dayjs(form.beginTime).format('YYYY-MM-DD 00:00:00'),
      endTime: dayjs(form.endTime).format('YYYY-MM-DD 23:59:59'),
      supplierEnterpriseId: form.supplierEnterpriseId,
      checkReceiveMethods: form.checkReceiveMethods,
    };
    if (form.insuranceProductId) {
      params.insuranceProductId = form.insuranceProductId;
    }
    let res = await taskServices.calcTaskTotalServiceFee(params, { showLoading: false });
    if (res) {
      form.totalServiceFee = res.totalServiceFee;
@@ -688,26 +720,34 @@
  } catch (error) {}
}
const totalServiceFee = computed(() => {
  if (!form.beginTime || !form.endTime) {
    return 0;
function supplierEnterpriseChange() {
  if (form.supplierEnterpriseId) {
    form.isConfiguredInsurance = supplierEnterpriseSelect.value?.find(
      (item) => item.value === form.supplierEnterpriseId
    )?.data?.isConfiguredInsurance;
  }
  var days = dayjs(form.endTime).diff(dayjs(form.beginTime), 'day') + 1;
  const serviceFee = form.serviceFee || 0;
  const needPeopleNumber = form.needPeopleNumber || 0;
  switch (form.billingMethod) {
    case EnumBillingMethod.Month:
      return serviceFee * Math.round(days / 30) * needPeopleNumber;
    case EnumBillingMethod.Day:
      return serviceFee * days * needPeopleNumber;
    case EnumBillingMethod.Hour:
      return serviceFee * (form.verifyWorkHours || 0) * days * needPeopleNumber;
    case EnumBillingMethod.Piece:
      return serviceFee * (form.totalPieceQuantity || 0);
    default:
      return 0;
  }
});
}
// const totalServiceFee = computed(() => {
//   if (!form.beginTime || !form.endTime) {
//     return 0;
//   }
//   var days = dayjs(form.endTime).diff(dayjs(form.beginTime), 'day') + 1;
//   const serviceFee = form.serviceFee || 0;
//   const needPeopleNumber = form.needPeopleNumber || 0;
//   switch (form.billingMethod) {
//     case EnumBillingMethod.Month:
//       return serviceFee * Math.round(days / 30) * needPeopleNumber;
//     case EnumBillingMethod.Day:
//       return serviceFee * days * needPeopleNumber;
//     case EnumBillingMethod.Hour:
//       return serviceFee * (form.verifyWorkHours || 0) * days * needPeopleNumber;
//     case EnumBillingMethod.Piece:
//       return serviceFee * (form.totalPieceQuantity || 0);
//     default:
//       return 0;
//   }
// });
const formRef = ref<any>(null);
function handleConfirm() {
@@ -752,6 +792,7 @@
      applyBeginTime: dayjs(form.applyBeginTime).format('YYYY-MM-DD 00:00:00'),
      applyEndTime: dayjs(form.applyEndTime).format('YYYY-MM-DD 23:59:59'),
      settlementAccess: form.settlementAccess,
      insuranceProductId: form.insuranceProductId ? form.insuranceProductId : null,
    };
    if (form.billingMethod !== EnumBillingMethod.Face) {
      params.serviceFee = form.serviceFee;
packages/components/src/Input/ChooseInputWithPicker.vue
@@ -29,6 +29,7 @@
const emit = defineEmits<{
  (e: 'update:modelValue', val: string | number): void;
  (e: 'change'): void;
}>();
const options = computed(() =>
@@ -66,6 +67,7 @@
                  onConfirm: ({ selectedValue, selectedOptions }) => {
                    console.log('selectedValue: ', selectedValue, selectedOptions);
                    emit('update:modelValue', selectedOptions[0].value);
                    emit('change');
                    onClose();
                  },
                }),
packages/constants/apiEnum.ts
@@ -285,6 +285,12 @@
  Pass = 30,
}
/** 投保供应商账号 */
export enum EnumInsuranceSupplierAccess {
  /**人资园 */
  WaterDropCloud = 10,
}
/** 日志级别 */
export enum EnumLogLevel {
  /**跟踪 */
@@ -423,54 +429,62 @@
  FlexJobServerTaskUser = 2,
  /**任务验收 */
  FlexJobServerTaskCheckReceive = 3,
  /**投保产品 */
  FlexJobServerInsuranceProduct = 4,
  /**企业投保产品 */
  FlexJobServerEnterpriseInsuranceProduct = 5,
  /**编号地址 */
  CommonServerCodeUrls = 4,
  CommonServerCodeUrls = 6,
  /**文件 */
  CommonServerFileUtils = 5,
  CommonServerFileUtils = 7,
  /**事件 */
  CommonServerEventUtils = 6,
  CommonServerEventUtils = 8,
  /**文字识别 */
  CommonServerOcrUtils = 7,
  CommonServerOcrUtils = 9,
  /**日志记录 */
  CommonServerLogRecords = 8,
  CommonServerLogRecords = 10,
  /**同步数据库 */
  CommonServerSyncDatabase = 9,
  CommonServerSyncDatabase = 11,
  /**短信工具 */
  CommonServerSmsUtils = 10,
  CommonServerSmsUtils = 12,
  /**配置 */
  CommonServerSettings = 11,
  CommonServerSettings = 13,
  /**已读 */
  CommonServerReadRecord = 12,
  CommonServerReadRecord = 14,
  /**微信小程序 */
  CommonServerWxmp = 15,
  /**用户认证 */
  UserServerAuth = 13,
  UserServerAuth = 16,
  /**用户菜单 */
  UserServerMenu = 14,
  UserServerMenu = 17,
  /**用户资源 */
  UserServerResource = 15,
  UserServerResource = 18,
  /**用户角色 */
  UserServerRole = 16,
  UserServerRole = 19,
  /**用户信息 */
  UserServerUser = 17,
  UserServerUser = 20,
  /**用户钱包 */
  UserServerUserWallet = 18,
  UserServerUserWallet = 21,
  /**电子签 */
  UserServerElectronSign = 19,
  UserServerElectronSign = 22,
  /**用户简历 */
  UserServerUserResume = 20,
  UserServerUserResume = 23,
  /**企业信息 */
  UserServerEnterprise = 21,
  UserServerEnterprise = 24,
  /**企业钱包 */
  UserServerEnterpriseWallet = 22,
  UserServerEnterpriseWallet = 25,
  /**企业合作钱包 */
  UserServerEnterpriseCooperationWallet = 23,
  UserServerEnterpriseCooperationWallet = 26,
  /**灵工信息 */
  UserServerEnterpriseEmployee = 24,
  UserServerEnterpriseEmployee = 27,
  /**电子签 */
  ElectronSignServerElectronSign = 25,
  ElectronSignServerElectronSign = 28,
  /**短信 */
  ToolServerSms = 26,
  ToolServerSms = 29,
  /**小程序 */
  ToolServerWxmp = 27,
  ToolServerWxmp = 30,
  /**保险 */
  WaterDropCloudServerInsurance = 31,
}
/** 资源请求方式 */
@@ -911,6 +925,36 @@
  VERIFYING = 2,
}
/** 微信小程序订阅消息模板 */
export enum EnumWxmpSubscribMessageTemplate {
  /**工易赚 */
  HireCompletedToPersonal = 0,
  /**工易赚 */
  ElectronSignStatusChangedForPersonal = 1,
  /**工易赚 */
  ArrangeCompletedToPersonal = 2,
  /**工易赚 */
  TaskCheckReceiveResultToPersonal = 3,
  /**工易赚 */
  SettlementReceiveToPersonal = 4,
  /**灵工达 */
  TaskCheckReceiveResultToEnterprise = 5,
  /**灵工达 */
  SettlementWaitAuditToEnterprise = 6,
  /**灵工达 */
  SettlementReceiveToEnterprise = 7,
  /**灵工达 */
  RechargeStatusChangedToEnterprise = 8,
  /**淘闪工 */
  SettlementWaitSureToSupplier = 9,
  /**淘闪工 */
  SettlementReceiveToSupplier = 10,
  /**淘闪工 */
  RechargeStatusChangedToSupplier = 11,
  /**淘闪工 */
  CheckInToSupplier = 12,
}
/** 我的报名分页列表-状态 */
export enum GetPersonalApplyTaskInfosQueryStatus {
  /**待确认 */
packages/hooks/index.ts
@@ -10,3 +10,4 @@
export * from './user';
export * from './payrollChange';
export * from './dialog';
export * from './insurance';
packages/hooks/insurance.ts
New file
@@ -0,0 +1,35 @@
import { useQuery, useQueryClient } from '@tanstack/vue-query';
import * as enterpriseInsuranceProductServices from '@12333/services/apiV2/enterpriseInsuranceProduct';
import { compile, computed, MaybeRef, unref } from 'vue';
type UseEnterpriseInsuranceProductSelectOptions = {
  supplierEnterpriseId: MaybeRef<string>;
  isConfiguredInsurance: MaybeRef<boolean>;
};
export function useEnterpriseInsuranceProductSelect(
  options: UseEnterpriseInsuranceProductSelectOptions
) {
  const { supplierEnterpriseId, isConfiguredInsurance } = options;
  const queryClient = useQueryClient();
  const { data: enterpriseInsuranceProductSelect } = useQuery({
    queryKey: [
      'enterpriseInsuranceProductServices/getEnterpriseInsuranceProductSelect',
      supplierEnterpriseId,
    ],
    queryFn: () => {
      return enterpriseInsuranceProductServices.getEnterpriseInsuranceProductSelect(
        { supplierEnterpriseId: unref(supplierEnterpriseId) },
        {
          showLoading: false,
        }
      );
    },
    placeholderData: () =>
      [] as API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[],
    enabled: computed(() => !!unref(supplierEnterpriseId) && unref(isConfiguredInsurance)),
  });
  return { enterpriseInsuranceProductSelect };
}
packages/services/apiV2/enterprise.ts
@@ -35,6 +35,24 @@
  );
}
/** 查询企业保险配置 GET /api/user/enterprise/getEnterpriseInsuranceSetting */
export async function getEnterpriseInsuranceSetting(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseInsuranceSettingParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseInsuranceSettingQueryResult>(
    '/api/user/enterprise/getEnterpriseInsuranceSetting',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
/** 查询企业信息分页列表数据 POST /api/user/enterprise/getEnterprises */
export async function getEnterprises(body: API.GetEnterprisesQuery, options?: API.RequestConfig) {
  return request<API.PagedListQueryResultGetEnterprisesQueryResultItem>(
@@ -196,6 +214,21 @@
  });
}
/** 设置企业保险配置 PUT /api/user/enterprise/setEnterpriseInsuranceSetting */
export async function setEnterpriseInsuranceSetting(
  body: API.SetEnterpriseInsuranceSettingCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterprise/setEnterpriseInsuranceSetting', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 设置企业短信配置 PUT /api/user/enterprise/setEnterpriseSmsSetting */
export async function setEnterpriseSmsSetting(
  body: API.SetEnterpriseSmsSettingCommand,
packages/services/apiV2/enterpriseInsuranceProduct.ts
New file
@@ -0,0 +1,57 @@
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
/** 查询企业保险产品分页列表 POST /api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProducts */
export async function getEnterpriseInsuranceProducts(
  body: API.GetEnterpriseInsuranceProductsQuery,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseInsuranceProductsQueryResult>(
    '/api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProducts',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 查询企业保险产品选择器数据 GET /api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProductSelect */
export async function getEnterpriseInsuranceProductSelect(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseInsuranceProductSelectParams,
  options?: API.RequestConfig
) {
  return request<API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[]>(
    '/api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProductSelect',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
/** 设置企业投保产品状态 PUT /api/flexjob/enterpriseInsuranceProduct/setDisabledEnterpriseInsuranceProducts */
export async function setDisabledEnterpriseInsuranceProducts(
  body: API.SetDisabledEnterpriseInsuranceProductsCommand,
  options?: API.RequestConfig
) {
  return request<number>(
    '/api/flexjob/enterpriseInsuranceProduct/setDisabledEnterpriseInsuranceProducts',
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
packages/services/apiV2/index.ts
@@ -17,8 +17,10 @@
import * as userResume from './userResume';
import * as auth from './auth';
import * as taskUser from './taskUser';
import * as enterpriseInsuranceProduct from './enterpriseInsuranceProduct';
import * as eventUtils from './eventUtils';
import * as enterpriseCooperationWallet from './enterpriseCooperationWallet';
import * as insuranceProduct from './insuranceProduct';
import * as codeUrl from './codeUrl';
import * as syncDatabase from './syncDatabase';
import * as menu from './menu';
@@ -26,6 +28,7 @@
import * as userWallet from './userWallet';
import * as fileUtils from './fileUtils';
import * as settings from './settings';
import * as wxmpUtils from './wxmpUtils';
export default {
  enterprise,
  enterpriseEmployee,
@@ -42,8 +45,10 @@
  userResume,
  auth,
  taskUser,
  enterpriseInsuranceProduct,
  eventUtils,
  enterpriseCooperationWallet,
  insuranceProduct,
  codeUrl,
  syncDatabase,
  menu,
@@ -51,4 +56,5 @@
  userWallet,
  fileUtils,
  settings,
  wxmpUtils,
};
packages/services/apiV2/insuranceProduct.ts
New file
@@ -0,0 +1,51 @@
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
/** 查询保险产品分页列表 POST /api/flexjob/insuranceProduct/getInsuranceProducts */
export async function getInsuranceProducts(
  body: API.GetInsuranceProductsQuery,
  options?: API.RequestConfig
) {
  return request<API.GetInsuranceProductsQueryResult>(
    '/api/flexjob/insuranceProduct/getInsuranceProducts',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 保存保险产品 POST /api/flexjob/insuranceProduct/saveInsuranceProduct */
export async function saveInsuranceProduct(
  body: API.SaveInsuranceProductCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/flexjob/insuranceProduct/saveInsuranceProduct', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 设置保险产品状态 PUT /api/flexjob/insuranceProduct/setIsDisabledInsuranceProduct */
export async function setIsDisabledInsuranceProduct(
  body: API.SetIsDisabledInsuranceProductCommand,
  options?: API.RequestConfig
) {
  return request<number>('/api/flexjob/insuranceProduct/setIsDisabledInsuranceProduct', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
packages/services/apiV2/typings.d.ts
@@ -140,6 +140,16 @@
    taskInfoId?: string;
  }
  interface APIgetEnterpriseInsuranceProductSelectParams {
    /** 供应商Id */
    supplierEnterpriseId?: string;
  }
  interface APIgetEnterpriseInsuranceSettingParams {
    /** Id */
    id?: string;
  }
  interface APIgetEnterpriseLoginInfoParams {
    /** 查询企业用户登录信息 */
    request?: GetEnterpriseLoginInfoQuery;
@@ -546,6 +556,8 @@
  }
  interface CalcTaskTotalServiceFeeCommand {
    /** 供应商Id */
    supplierEnterpriseId?: string;
    billingMethod?: EnumBillingMethod;
    /** 服务费 */
    serviceFee?: number;
@@ -553,17 +565,30 @@
    verifyWorkHours?: number;
    /** 总件数 */
    totalPieceQuantity?: number;
    /** 保险产品Id */
    insuranceProductId?: string;
    /** 需求人数 */
    needPeopleNumber?: number;
    /** 任务开始时间 */
    beginTime?: string;
    /** 任务结束时间 */
    endTime?: string;
    /** 验收方式 */
    checkReceiveMethods?: EnumTaskCheckReceiveMethod[];
  }
  interface CalcTaskTotalServiceFeeCommandResult {
    /** 服务费 */
    totalServiceFee?: number;
    /** 保费单价 */
    insuranceUnitPrice?: number;
    /** 预计保费 */
    insuranceTotalPrice?: number;
    insuranceSupplierAccess?: EnumInsuranceSupplierAccess;
    /** 投保供应商账号 */
    insuranceSupplierAccount?: string;
    /** 保险供应商Id */
    insuranceSupplierId?: string;
  }
  interface ChangePhoneNumberCommand {
@@ -1042,6 +1067,11 @@
    Pass = 30,
  }
  enum EnumInsuranceSupplierAccess {
    /**人资园 */
    WaterDropCloud = 10,
  }
  enum EnumLogLevel {
    /**跟踪 */
    Trace = 10,
@@ -1167,54 +1197,62 @@
    FlexJobServerTaskUser = 2,
    /**任务验收 */
    FlexJobServerTaskCheckReceive = 3,
    /**投保产品 */
    FlexJobServerInsuranceProduct = 4,
    /**企业投保产品 */
    FlexJobServerEnterpriseInsuranceProduct = 5,
    /**编号地址 */
    CommonServerCodeUrls = 4,
    CommonServerCodeUrls = 6,
    /**文件 */
    CommonServerFileUtils = 5,
    CommonServerFileUtils = 7,
    /**事件 */
    CommonServerEventUtils = 6,
    CommonServerEventUtils = 8,
    /**文字识别 */
    CommonServerOcrUtils = 7,
    CommonServerOcrUtils = 9,
    /**日志记录 */
    CommonServerLogRecords = 8,
    CommonServerLogRecords = 10,
    /**同步数据库 */
    CommonServerSyncDatabase = 9,
    CommonServerSyncDatabase = 11,
    /**短信工具 */
    CommonServerSmsUtils = 10,
    CommonServerSmsUtils = 12,
    /**配置 */
    CommonServerSettings = 11,
    CommonServerSettings = 13,
    /**已读 */
    CommonServerReadRecord = 12,
    CommonServerReadRecord = 14,
    /**微信小程序 */
    CommonServerWxmp = 15,
    /**用户认证 */
    UserServerAuth = 13,
    UserServerAuth = 16,
    /**用户菜单 */
    UserServerMenu = 14,
    UserServerMenu = 17,
    /**用户资源 */
    UserServerResource = 15,
    UserServerResource = 18,
    /**用户角色 */
    UserServerRole = 16,
    UserServerRole = 19,
    /**用户信息 */
    UserServerUser = 17,
    UserServerUser = 20,
    /**用户钱包 */
    UserServerUserWallet = 18,
    UserServerUserWallet = 21,
    /**电子签 */
    UserServerElectronSign = 19,
    UserServerElectronSign = 22,
    /**用户简历 */
    UserServerUserResume = 20,
    UserServerUserResume = 23,
    /**企业信息 */
    UserServerEnterprise = 21,
    UserServerEnterprise = 24,
    /**企业钱包 */
    UserServerEnterpriseWallet = 22,
    UserServerEnterpriseWallet = 25,
    /**企业合作钱包 */
    UserServerEnterpriseCooperationWallet = 23,
    UserServerEnterpriseCooperationWallet = 26,
    /**灵工信息 */
    UserServerEnterpriseEmployee = 24,
    UserServerEnterpriseEmployee = 27,
    /**电子签 */
    ElectronSignServerElectronSign = 25,
    ElectronSignServerElectronSign = 28,
    /**短信 */
    ToolServerSms = 26,
    ToolServerSms = 29,
    /**小程序 */
    ToolServerWxmp = 27,
    ToolServerWxmp = 30,
    /**保险 */
    WaterDropCloudServerInsurance = 31,
  }
  enum EnumResourceMethod {
@@ -1614,6 +1652,35 @@
    VERIFY_FAIL = 1,
    /**验证中,商户可发起提现尝试 */
    VERIFYING = 2,
  }
  enum EnumWxmpSubscribMessageTemplate {
    /**工易赚 */
    HireCompletedToPersonal = 0,
    /**工易赚 */
    ElectronSignStatusChangedForPersonal = 1,
    /**工易赚 */
    ArrangeCompletedToPersonal = 2,
    /**工易赚 */
    TaskCheckReceiveResultToPersonal = 3,
    /**工易赚 */
    SettlementReceiveToPersonal = 4,
    /**灵工达 */
    TaskCheckReceiveResultToEnterprise = 5,
    /**灵工达 */
    SettlementWaitAuditToEnterprise = 6,
    /**灵工达 */
    SettlementReceiveToEnterprise = 7,
    /**灵工达 */
    RechargeStatusChangedToEnterprise = 8,
    /**淘闪工 */
    SettlementWaitSureToSupplier = 9,
    /**淘闪工 */
    SettlementReceiveToSupplier = 10,
    /**淘闪工 */
    RechargeStatusChangedToSupplier = 11,
    /**淘闪工 */
    CheckInToSupplier = 12,
  }
  interface ExportEnterpriseBalanceDetailsCommand {
@@ -2188,6 +2255,42 @@
    timestamp?: number;
  }
  interface FriendlyResultGetEnterpriseInsuranceProductsQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetEnterpriseInsuranceProductsQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetEnterpriseInsuranceSettingQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetEnterpriseInsuranceSettingQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetEnterpriseLoginInfoQueryResult {
    /** 跟踪Id */
    traceId?: string;
@@ -2448,6 +2551,24 @@
    /** 错误码 */
    errorCode?: string;
    data?: GetIdentityFrontOcrCommandResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultGetInsuranceProductsQueryResult {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    data?: GetInsuranceProductsQueryResult;
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
@@ -3564,6 +3685,25 @@
    errorCode?: string;
    /** 数据 */
    data?: SelectOptionGuidGetTaskSelectQueryOption[];
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
    msg?: any;
    /** 附加数据 */
    extras?: any;
    /** 时间戳 */
    timestamp?: number;
  }
  interface FriendlyResultListSelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption {
    /** 跟踪Id */
    traceId?: string;
    /** 状态码 */
    code?: number;
    /** 错误码 */
    errorCode?: string;
    /** 数据 */
    data?: SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[];
    /** 执行成功 */
    success?: boolean;
    /** 错误信息 */
@@ -5028,6 +5168,78 @@
    createdTime?: string;
  }
  interface GetEnterpriseInsuranceProductSelectQueryOption {
    /** Id */
    id?: string;
    /** 产品名称 */
    name?: string;
  }
  interface GetEnterpriseInsuranceProductsQuery {
    /** 企业合作Id */
    enterpriseCooperationId: string;
    /** 关键字 */
    keywords?: string;
    /** 保险公司编号 */
    supplierCode?: string;
    /** 保险险种编号 */
    typeCode?: string;
    /** 保额编号 */
    sumInsuredCode?: string;
    /** 投保方式编号 */
    periodCode?: string;
    /** 是否禁用 */
    isDisabled?: boolean;
    pageModel?: PagedListQueryPageModel;
  }
  interface GetEnterpriseInsuranceProductsQueryResult {
    pageModel?: PagedListQueryResultPageModel;
    /** 数据 */
    data?: GetEnterpriseInsuranceProductsQueryResultItem[];
  }
  interface GetEnterpriseInsuranceProductsQueryResultItem {
    /** Id */
    id?: string;
    /** 保险公司编号 */
    supplierCode?: string;
    /** 保险公司 */
    supplierContent?: string;
    /** 产品名称 */
    name?: string;
    /** 保险险种编号 */
    typeCode?: string;
    /** 保险险种 */
    typeContent?: string;
    /** 保额编号 */
    sumInsuredCode?: string;
    /** 保额 */
    sumInsuredContent?: string;
    /** 投保方式编号 */
    periodCode?: string;
    /** 投保方式 */
    periodContent?: string;
    /** 职业类别编号 */
    jobCategoryCode?: string;
    /** 职业类别 */
    jobCategoryContent?: string;
    /** 投保版本编号 */
    versionCode?: string;
    /** 投保版本 */
    versionContent?: string;
    /** 是否禁用 */
    isDisabled?: boolean;
  }
  interface GetEnterpriseInsuranceSettingQueryResult {
    /** Id */
    id?: string;
    insuranceSupplierAccess?: EnumInsuranceSupplierAccess;
    /** 投保供应商账号 */
    insuranceSupplierAccount?: string;
  }
  type GetEnterpriseLoginInfoQuery = Record<string, any>;
  interface GetEnterpriseLoginInfoQueryResult {
@@ -5548,6 +5760,61 @@
    model?: BaiduOcrIdentityFrontResultModel;
  }
  interface GetInsuranceProductsQuery {
    /** 关键字 */
    keywords?: string;
    /** 保险公司编号 */
    supplierCode?: string;
    /** 保险险种编号 */
    typeCode?: string;
    /** 保额编号 */
    sumInsuredCode?: string;
    /** 投保方式编号 */
    periodCode?: string;
    /** 是否禁用 */
    isDisabled?: boolean;
    pageModel?: PagedListQueryPageModel;
  }
  interface GetInsuranceProductsQueryResult {
    pageModel?: PagedListQueryResultPageModel;
    /** 数据 */
    data?: GetInsuranceProductsQueryResultItem[];
  }
  interface GetInsuranceProductsQueryResultItem {
    /** Id */
    id?: string;
    /** 保险公司编号 */
    supplierCode?: string;
    /** 保险公司 */
    supplierContent?: string;
    /** 产品名称 */
    name?: string;
    /** 保险险种编号 */
    typeCode?: string;
    /** 保险险种 */
    typeContent?: string;
    /** 保额编号 */
    sumInsuredCode?: string;
    /** 保额 */
    sumInsuredContent?: string;
    /** 投保方式编号 */
    periodCode?: string;
    /** 投保方式 */
    periodContent?: string;
    /** 职业类别编号 */
    jobCategoryCode?: string;
    /** 职业类别 */
    jobCategoryContent?: string;
    /** 投保版本编号 */
    versionCode?: string;
    /** 投保版本 */
    versionContent?: string;
    /** 是否禁用 */
    isDisabled?: boolean;
  }
  interface GetLicenseOcrCommand {
    access?: EnumOcrAccess;
    /** 场景 */
@@ -5854,6 +6121,8 @@
    serviceFeeRate?: number;
    /** 发票税点 */
    invoiceTaxPointRate?: number;
    /** 是否已配置 */
    isConfigured?: boolean;
  }
  interface GetPersonalApplyTaskInfosQuery {
@@ -6936,6 +7205,8 @@
    /** 供应商Id */
    supplierEnterpriseId?: string;
    supplierEnterprise?: GetSupplierEnterpriseSelectQueryOptionEnterprise;
    /** 是否已配置保险 */
    isConfiguredInsurance?: boolean;
  }
  interface GetSupplierEnterpriseSelectQueryOptionEnterprise {
@@ -7037,6 +7308,10 @@
    timeoutServiceFee?: number;
    /** 总件数 */
    totalPieceQuantity?: number;
    /** 保险产品Id */
    insuranceProductId?: string;
    /** 保险产品名称 */
    insuranceProductName?: string;
    settlementCycle?: EnumSettlementCycle;
    /** 结算日期 */
    settlementDate?: number;
@@ -8335,6 +8610,27 @@
    ext?: string;
  }
  interface SaveInsuranceProductCommand {
    /** 保险公司编号 */
    supplierCode: string;
    /** 产品名称 */
    name: string;
    /** 保险险种编号 */
    typeCode?: string;
    /** 保额编号 */
    sumInsuredCode?: string;
    /** 投保方式编号 */
    periodCode?: string;
    /** 职业类别编号 */
    jobCategoryCode?: string;
    /** 版本编号 */
    versionCode?: string;
    /** 是否禁用 */
    isDisabled?: boolean;
    /** Id */
    id?: string;
  }
  interface SaveMenuButtonCommand {
    /** 菜单Id */
    parentId?: string;
@@ -8587,6 +8883,8 @@
    timeoutServiceFee?: number;
    /** 总件数 */
    totalPieceQuantity?: number;
    /** 保险产品Id */
    insuranceProductId?: string;
    settlementCycle: EnumSettlementCycle;
    /** 结算日期 */
    settlementDate: number;
@@ -8770,6 +9068,14 @@
    data?: GetTaskSelectQueryOption;
  }
  interface SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption {
    /** 值 */
    value?: string;
    /** 标签 */
    label?: string;
    data?: GetEnterpriseInsuranceProductSelectQueryOption;
  }
  interface SelectOptionStringGetDictionaryDataSelectQueryResultOption {
    /** 值 */
    value?: string;
@@ -8804,7 +9110,27 @@
    phoneNumber: string;
  }
  interface SendWxmpSubscribMessageCommand {
    template: EnumWxmpSubscribMessageTemplate;
    /** 点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转 */
    page?: string;
    /** 用户Id */
    userId?: string;
    /** 企业Id */
    enterpriseId?: string;
    /** 关联Id */
    relationId?: string;
  }
  interface SetDictionaryDataIsDisabledCommand {
    ids?: string[];
    /** 是否已禁用 */
    isDisabled?: boolean;
  }
  interface SetDisabledEnterpriseInsuranceProductsCommand {
    /** 企业合作Id */
    enterpriseCooperationId?: string;
    ids?: string[];
    /** 是否已禁用 */
    isDisabled?: boolean;
@@ -8817,6 +9143,14 @@
    electronSignAccesses?: EnumElectronSignAccess[];
  }
  interface SetEnterpriseInsuranceSettingCommand {
    /** Id */
    id?: string;
    insuranceSupplierAccess?: EnumInsuranceSupplierAccess;
    /** 投保供应商账号 */
    insuranceSupplierAccount?: string;
  }
  interface SetEnterpriseSmsSettingCommand {
    /** Id */
    id?: string;
@@ -8831,6 +9165,12 @@
    isDisabled?: boolean;
  }
  interface SetIsDisabledInsuranceProductCommand {
    ids?: string[];
    /** 是否已禁用 */
    isDisabled?: boolean;
  }
  interface SetMenuSwitchCommand {
    /** Id */
    ids?: string[];
packages/services/apiV2/wxmpUtils.ts
New file
@@ -0,0 +1,18 @@
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
/** 发送微信订阅消息 POST /api/common/wxmpUtils/sendWxmpSubscribMessage */
export async function sendWxmpSubscribMessage(
  body: API.SendWxmpSubscribMessageCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/common/wxmpUtils/sendWxmpSubscribMessage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}