| | |
| | | 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, |
| | | }; |
| | | } |
| | | |