| | |
| | | <template> |
| | | <LoadingLayout :loading="isLoading" :error="isError" :loadError="refetch"> |
| | | <ContentScrollView hasPaddingTop> |
| | | <InfiniteLoading |
| | | commonMode |
| | | :refetch="refetch" |
| | | :isLoading="isLoading" |
| | | :isError="isError" |
| | | :showMoreText="false" |
| | | scrollViewClassName="common-page-infinite-scroll-list" |
| | | > |
| | | <MineServiceDetailView |
| | | :contactName="detail?.name" |
| | | :contactPhoneNumber="detail?.contactPhoneNumber" |
| | | :addressDetail="detail?.addressDetail" |
| | | :serviceName="detail?.serviceName" |
| | | :price="detail?.payAmount" |
| | | :price="detail?.specPrice" |
| | | :specName="detail?.specName" |
| | | :specNumber="detail?.specNumber" |
| | | :imgUrl="detail?.serviceFile" |
| | |
| | | :endTime="detail?.endTime" |
| | | :supplierEnterpriseName="detail?.supplierEnterpriseName" |
| | | :remark="detail?.remark" |
| | | :serverContactPhoneNumbers="detail?.serverContactPhoneNumbers" |
| | | :showServerContactPhoneNumbers=" |
| | | detail.appointmentStatus === EnumStandardOrderAppointmentStatus.WaitServe |
| | | " |
| | | > |
| | | <template #status> |
| | | {{ EnumStandardOrderAppointmentStatusText[detail?.appointmentStatus] }} |
| | | </template> |
| | | </MineServiceDetailView> |
| | | </ContentScrollView> |
| | | </InfiniteLoading> |
| | | <PageFooter> |
| | | <PageFooterBtn |
| | | type="primary" |
| | |
| | | class="business-card-btn" |
| | | v-if=" |
| | | detail.taskCheckReceiveStatus == EnumTaskCheckReceiveStatus.Completed && |
| | | detail.appointmentStatus === EnumStandardOrderAppointmentStatus.WaitSure |
| | | detail.appointmentStatus === EnumStandardOrderAppointmentStatus.WaitServe |
| | | " |
| | | @click="goConfirm" |
| | | >服务确认</PageFooterBtn |
| | |
| | | EnumStandardOrderAppointmentStatusText, |
| | | EnumStandardOrderAppointmentStatus, |
| | | EnumTaskCheckReceiveStatus, |
| | | EnumGetStandardOrdersQueryScene, |
| | | } from '@12333/constants'; |
| | | |
| | | defineOptions({ |
| | |
| | | const route = Taro.useRouter(); |
| | | const id = route.params?.id as string; |
| | | |
| | | const { detail, isLoading, isError, refetch } = useStandardOrder({ id }); |
| | | const { detail, isLoading, isError, refetch } = useStandardOrder({ |
| | | id, |
| | | scene: EnumGetStandardOrdersQueryScene.PartAEnterpriseOrder, |
| | | }); |
| | | |
| | | Taro.useDidShow(() => { |
| | | refetch(); |