wupengfei
9 小时以前 aebf1603cd6df5341160ffe23c715919bf14c4a7
apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue
@@ -24,8 +24,22 @@
      :isCollapse="true"
    >
      <template #footer>
        <PageFooterBtn v-if="userResumeInfo" type="primary" plain>解约</PageFooterBtn>
        <PageFooterBtn type="primary" @click="goToSign">签约</PageFooterBtn>
        <PageFooterBtn
          v-if="
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Pass
          "
          type="primary"
          plain
          >解约</PageFooterBtn
        >
        <PageFooterBtn
          type="primary"
          @click="goToSign"
          v-if="
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Wait
          "
          >签约</PageFooterBtn
        >
      </template>
    </JobDetailContent>
  </LoadingLayout>
@@ -33,8 +47,8 @@
<script setup lang="ts">
import Taro from '@tarojs/taro';
import { useQuery } from '@tanstack/vue-query';
import { useUserResume } from '@12333/hooks';
import { EnumTaskUserSignContractStatus } from '@12333/constants';
import { useGetEnterpriseEmployee, useUserResume } from '@12333/hooks';
defineOptions({
  name: 'InnerPage',
@@ -47,6 +61,10 @@
  enterpriseEmployeeId: enterpriseEmployeeId,
});
const { enterpriseEmployeeInfo } = useGetEnterpriseEmployee({
  id: enterpriseEmployeeId,
});
function goToSign() {
  Taro.navigateTo({
    url: `${RouterPath.flexJobSign}?enterpriseEmployeeId=${enterpriseEmployeeId}`,