| | |
| | | import { AppScrollContainer, ProTabs, ProTabPane } from '@bole-core/components'; |
| | | import InsureOrderInfoView from './components/InsureOrderInfoView.vue'; |
| | | import BatchChangeRecordView from './components/BatchChangeRecordView.vue'; |
| | | import * as insuranceOrderServices from '@/services/api/InsuranceOrder'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | |
| | | defineOptions({ |
| | | name: 'InsuranceOrderDetail', |
| | |
| | | } |
| | | |
| | | const state = reactive({ |
| | | activeIndex: 1, |
| | | tabType: InsureOrderTabType.InsureOrderInfo, |
| | | }); |
| | | |
| | | const route = useRoute(); |
| | | const id = route.params.id as string; |
| | | |
| | | const { data: detail, isLoading } = useQuery({ |
| | | queryKey: ['insuranceOrderServices/getInsuranceOrderDetail', id], |
| | | queryFn: async () => { |
| | | return await insuranceOrderServices.getInsuranceOrderDetail({ id: id }); |
| | | }, |
| | | placeholderData: () => ({} as API.InsuranceOrderListOutput), |
| | | enabled: !!id, |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |