wupengfei
2 天以前 7d80d093585939e22af224a03dd432dac80b821d
apps/housekeepingMiniApp/src/subpackages/sercice/serciceDetail/serciceDetail.vue
@@ -123,6 +123,7 @@
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',
@@ -194,32 +195,7 @@
  } 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({