| | |
| | | import * as orderServices from '@12333/services/api/Order'; |
| | | import _ from 'lodash'; |
| | | import { trim } from '@12333/utils'; |
| | | import { MaybeRef } from 'vue'; |
| | | |
| | | export enum HomeOrderType { |
| | | Recommend = 'Recommend', |
| | | LastShelfTime = 'LastShelfTime', |
| | | } |
| | | |
| | | export function useTaskList() { |
| | | type UseTaskListOptions = { |
| | | cityName?: MaybeRef<string>; |
| | | }; |
| | | |
| | | export function useTaskList(options: UseTaskListOptions = {}) { |
| | | const { cityName = '' } = options; |
| | | |
| | | const searchValue = ref(''); |
| | | |
| | | const queryMenuState = reactive({ |
| | |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState, queryMenuState], |
| | | queryKey: ['orderServices/getFrontOrderList', queryState, queryMenuState, cityName], |
| | | } |
| | | ); |
| | | |