| | |
| | | |
| | | const datePickerKey = ref(1); |
| | | |
| | | const { form, isLoading, claimDetail, disabledReportedDate, queryClaimDetailByOrderId, resetForm } = |
| | | useInsuranceClaimDetail({ |
| | | insuranceOrderId, |
| | | fromRoute, |
| | | }); |
| | | const { |
| | | form, |
| | | isLoading, |
| | | claimDetail, |
| | | disabledReportedDate, |
| | | queryClaimDetailByOrderId, |
| | | resetForm, |
| | | resetFormWithNotOrder, |
| | | } = useInsuranceClaimDetail({ |
| | | insuranceOrderId, |
| | | fromRoute, |
| | | }); |
| | | |
| | | // const { existedInsuranceOrderList } = useInsuranceOrderListByOrderRelevance({ |
| | | // params: computed(() => ({ |
| | |
| | | insuranceOrderList: existedInsuranceOrderList, |
| | | }); |
| | | } else { |
| | | resetFormWithNotOrder(); |
| | | Message.errorMessage('未找到匹配的保单信息'); |
| | | } |
| | | } |
| | |
| | | import { convertAttAchmentsToForm } from '../utils'; |
| | | import { UploadUserFile } from '@bole-core/components'; |
| | | import dayjs from 'dayjs'; |
| | | import { omit } from 'lodash'; |
| | | |
| | | type UseInsuranceClaimDetailOptions = { |
| | | insuranceOrderId?: MaybeRef<string>; |
| | |
| | | Object.assign(form, { ...DefaultForm }); |
| | | } |
| | | |
| | | function resetFormWithNotOrder() { |
| | | Object.assign(form, { ...omit(DefaultForm, 'idNumber'), accidentTime: '' }); |
| | | } |
| | | |
| | | const queryClient = useQueryClient(); |
| | | |
| | | const _insuranceOrderId = computed(() => form.insuranceOrderId); |
| | |
| | | queryFn: async () => { |
| | | return await insuranceClaimServices.getInsuranceClaimDetailByOrderId( |
| | | { |
| | | orderId: form.insuranceOrderId, |
| | | orderId: _insuranceOrderId.value, |
| | | }, |
| | | { |
| | | showLoading: false, |
| | |
| | | disabledReportedDate, |
| | | queryClaimDetailByOrderId, |
| | | resetForm, |
| | | resetFormWithNotOrder, |
| | | }; |
| | | } |
| | | |