| | |
| | | <ProTabPane :title="`全部`" :pane-key="0"></ProTabPane> |
| | | <ProTabPane |
| | | :title="`待确认`" |
| | | :pane-key="GetPersonalApplyTaskInfosQueryStatus.WaitHire" |
| | | :pane-key="EnumStandardOrderAppointmentStatus.WaitSure" |
| | | ></ProTabPane> |
| | | <ProTabPane |
| | | :title="`待服务`" |
| | | :pane-key="GetPersonalApplyTaskInfosQueryStatus.WaitSignContract" |
| | | :pane-key="EnumStandardOrderAppointmentStatus.WaitServe" |
| | | ></ProTabPane> |
| | | <ProTabPane |
| | | :title="`已完成`" |
| | | :pane-key="GetPersonalApplyTaskInfosQueryStatus.HireRefuse" |
| | | :pane-key="EnumStandardOrderAppointmentStatus.Completed" |
| | | ></ProTabPane> |
| | | <ProTabPane :title="`已取消`" :pane-key="40"></ProTabPane> |
| | | <ProTabPane |
| | | :title="`已取消`" |
| | | :pane-key="EnumStandardOrderAppointmentStatus.Cancelled" |
| | | ></ProTabPane> |
| | | </ProTabs> |
| | | <InfiniteLoading |
| | | scrollViewClassName="common-infinite-scroll-list home-list" |
| | |
| | | :end-time="item.endTime" |
| | | :addressDetail="item.addressDetail" |
| | | :appointmentStatus="item.appointmentStatus" |
| | | :supplierEnterpriseName="item.supplierEnterpriseName" |
| | | :payAmount="item.payAmount" |
| | | @click="goSerciceDetail(item)" |
| | | > |
| | | </ReserveServiceCard> |
| | |
| | | EnumGetStandardOrdersQueryScene, |
| | | EnumPagedListOrder, |
| | | EnumStandardOrderAppointmentStatus, |
| | | GetPersonalApplyTaskInfosQueryStatus, |
| | | } from '@12333/constants'; |
| | | import * as standardOrderServices from '@12333/services/apiV2/standardOrder'; |
| | | import Taro from '@tarojs/taro'; |
| | |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const route = Taro.useRouter(); |
| | | const status = route.params?.status as any as EnumStandardOrderAppointmentStatus; |
| | | |
| | | const queryState = reactive({ |
| | | scene: EnumGetStandardOrdersQueryScene.PartAEnterpriseOrder, |
| | | appointmentStatus: 0 as any as EnumStandardOrderAppointmentStatus, |
| | | appointmentStatus: status ? Number(status) : 0, |
| | | }); |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | | // onMounted(() => { |
| | | // standardOrderServices.checkPayStandardOrder({ |
| | | // id: 'ca8c17a1-6c44-446e-2e88-08de443f2678', |
| | | // }); |
| | | // }); |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.GetStandardOrdersQuery = { |
| | |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['taskServices/getOpenTaskInfos', queryState], |
| | | queryKey: ['standardOrderServices/getStandardOrders', queryState], |
| | | } |
| | | ); |
| | | |
| | | function goSerciceDetail(item: any) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.serciceDetail}?id=${item.id}`, |
| | | url: `${RouterPath.mineReserveServiceDetail}?id=${item.id}`, |
| | | }); |
| | | } |
| | | </script> |