wupengfei
2 天以前 8d973d050ba66a497ca763f9670aab457a74e2b1
apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue
@@ -38,7 +38,9 @@
          @click="goToSign"
          v-if="
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Wait ||
            enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Refuse
            enterpriseEmployeeInfo.userSignContractStatus ===
              EnumTaskUserSignContractStatus.Refuse ||
            !enterpriseEmployeeInfo.userSignContractStatus
          "
          >签约</PageFooterBtn
        >
@@ -51,6 +53,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 +80,14 @@
async function handleUnsign() {
  try {
    await Message.confirm({ message: '确定要解约吗?' });
    let params: API.StopElectronSignCommand = {
      id: enterpriseEmployeeInfo.value?.id,
    };
    let res = await enterpriseEmployeeServices.stopElectronSign(params);
    if (res) {
      Message.success('解约成功');
      refetch();
    }
  } catch (error) {}
}
</script>