zhengyiming
4 天以前 d54c9c48c0b4f7c609e0aa65671a6c3fd26f94b4
src/hooks/insuranceClaim.ts
@@ -50,3 +50,34 @@
    isLoading,
  };
}
export function useInsureActions() {
  const router = useRouter();
  async function handleGoDownloadInvoice(id: string) {
    try {
      await insuranceOrderServices.getInvoiceId({ id: id });
      router.push({
        name: 'InsureDownloadInvoice',
        params: {
          id: id,
        },
      });
    } catch (error) {}
  }
  async function handleGoStampFiles(id: string) {
    try {
      router.push({
        name: 'InsurancePolicyStampFiles',
        params: {
          id: id,
        },
      });
    } catch (error) {}
  }
  return {
    handleGoDownloadInvoice,
    handleGoStampFiles,
  };
}