| | |
| | | import IconAttention from '@/assets/flexJob/icon-attention-lg.png'; |
| | | import IconAttentionActive from '@/assets/flexJob/icon-attention-lg-active.png'; |
| | | import { EnumPagedListOrder } from '@12333/constants'; |
| | | import { useGetOpenStandardServices } from '@/hooks'; |
| | | |
| | | defineOptions({ |
| | | name: 'serciceDetail', |
| | |
| | | name: res.name, |
| | | }; |
| | | queryState.jobCode = res.jobCode; |
| | | queryState.ignoreId = id; |
| | | }, |
| | | }); |
| | | |
| | |
| | | } catch (error) {} |
| | | }); |
| | | |
| | | const queryState = reactive({ |
| | | ignoreId: id, |
| | | jobCode: '', |
| | | }); |
| | | |
| | | const { infiniteLoadingProps, invalidateQueries } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.GetStandardServicesQuery = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | | orderInput: [{ property: 'createdTime', order: EnumPagedListOrder.Desc }], |
| | | }, |
| | | ignoreId: queryState.ignoreId, |
| | | jobCode: queryState.jobCode, |
| | | }; |
| | | |
| | | return standardServiceServices.getOpenStandardServices(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['standardServiceServices/getOpenStandardServices', queryState], |
| | | enabled: computed(() => !!queryState.jobCode), |
| | | } |
| | | ); |
| | | const { queryState, infiniteLoadingProps } = useGetOpenStandardServices(); |
| | | |
| | | function goSerciceDetail(item: API.GetStandardServicesQueryResultItem) { |
| | | Taro.navigateTo({ |