wupengfei
5 天以前 71946de0732b558027023358f4bbfaf5046a33fc
apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue
@@ -20,11 +20,13 @@
      :photos="userResumeInfo.photos"
      :height="userResumeInfo.height"
      :weight="userResumeInfo.weight"
      :shoeSize="userResumeInfo.shoeSize"
      :videos="userResumeInfo.videos"
      :taskInfoUsers="userResumeInfo.taskInfoUsers"
      :isCollapse="true"
    >
      <template #footer>
        <PageFooterBtn
        <!-- <PageFooterBtn
          v-if="
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Pass
          "
@@ -32,16 +34,17 @@
          plain
          @click="handleUnsign"
          >解约</PageFooterBtn
        >
        <PageFooterBtn
        > -->
        <!-- <PageFooterBtn
          type="primary"
          @click="goToSign"
          v-if="
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Wait ||
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Refuse
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Stop ||
            !enterpriseEmployeeInfo.userSignContractStatus
          "
          >签约</PageFooterBtn
        >
        > -->
      </template>
    </JobDetailContent>
  </LoadingLayout>
@@ -51,6 +54,7 @@
import Taro from '@tarojs/taro';
import { EnumTaskUserSignContractStatus } from '@12333/constants';
import { useGetEnterpriseEmployee, useUserResume } from '@12333/hooks';
import * as enterpriseEmployeeServices from '@12333/services/apiV2/enterpriseEmployee';
import { Message } from '@12333/utils';
defineOptions({
@@ -77,6 +81,14 @@
async function handleUnsign() {
  try {
    await Message.confirm({ message: '确定要解约吗?' });
    let params: API.StopElectronSignCommand = {
      ids: [enterpriseEmployeeInfo.value?.id],
    };
    let res = await enterpriseEmployeeServices.stopElectronSign(params);
    if (res) {
      Message.success('解约成功');
      refetch();
    }
  } catch (error) {}
}
</script>