import dayjs from 'dayjs'; export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[]; /** * @title: 获取资源名称 * @description: * @param {any} id * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-11-29 18:02 */ export declare const getResourceItem: (id: any, state: any) => any; /** * @title: 错误提示 * @description: * @param {any} service * @param {any} resourceItem * @return {*} * @Author: WangHan * @Date: 2024-11-29 18:41 */ export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any; /** * @title: 格式化主体列表 * @description: * @param {any} lists * @param {boolean} isOpenGroup * @return {*} * @Author: WangHan * @Date: 2024-12-04 11:27 */ export declare const formatHolderLists: (lists: any) => any; export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined; /** * @title: 是否是预约商品 * @description: * @return {*} * @Author: WangHan * @Date: 2024-12-06 11:24 */ export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined; export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[]; /** * @title: 更新商品数据 * @description: * @param {any} state * @param currentItem * @param {string} type * @param {any} other * @param actions * @return {*} * @Author: WangHan * @Date: 2025-01-03 15:00 */ export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any; export declare const formItems: (items: any[]) => any[]; export declare const getIsSubjectRequire: (state: any) => boolean; export declare const isNormalProductByDurationSchedule: (item: any) => boolean; export declare const isAllNormalProduct: (items: any[]) => boolean; export declare const isAllNormalProductByState: (state: any) => boolean; export declare const genRowKey: (key: string) => string; /** * @title: 格式化商品数据 * @description: * @param {any} lists * @return {*} * @Author: WangHan * @Date: 2024-11-29 17:36 */ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean, translationOriginal?: any) => any[]; /** * @title: 禁用日期 * @description: * @param {any} current * @param {string} position * @param {any} startDate * @return {*} * @Author: WangHan * @Date: 2024-12-03 17:51 */ export declare const disabledDate: (current: any, position: string, currentDate: any) => any; /** * @title: 是否是跨日预约 * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-04 09:49 */ export declare const isDayBooking: (state: any) => boolean; export declare const isDaysBooking: (state: any) => boolean; export declare const isEventBooking: (state: any) => boolean; export declare const isAppointmentProduct: (item: any) => boolean; /** * @title: 是否是terminal上的跨日预约 * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-04 15:31 */ export declare const isTerminalDayBooking: (state: any) => any; export declare const formatDayDate: (_extend: any) => any; /** * @title: 根据营业日时间格式化时间 * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-04 12:07 */ export declare const formatDayTime: ({ startDate, endDate }: any) => { startDateTime: dayjs.Dayjs; endDateTime: dayjs.Dayjs; }; export declare const formatDateTime: (start_date: any, end_date: any) => { value: dayjs.Dayjs; end_date: dayjs.Dayjs; }; /** * @title: 初始化日期 * @description: * @return {*} * @Author: WangHan * @Date: 2024-12-06 17:24 */ export declare const initDate: () => { value: dayjs.Dayjs; end_date: dayjs.Dayjs; }; /** * @title: 是否有预约商品 * @description: * @return {*} * @Author: WangHan * @Date: 2024-12-12 15:47 */ export declare const isHasDayAppointmentProduct: (state: any) => boolean; /** * @title: 过滤出如果是预约商品,则只获取跨日的预约商品 * @description: * @param {any} lists * @return {*} * @Author: WangHan * @Date: 2024-12-13 16:44 */ export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any; /** * @title: 格式化表单数据 * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-30 22:19 */ export declare const getPets: (state: any) => any; /** * @title: 得出预约商品 * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-30 22:26 */ export declare const getAppointmentService: (state: any) => any; /** * @title: 判断是否打开删除宠物弹窗 * @description: * @param {any} state * @param {any} newVal * @return {*} * @Author: WangHan * @Date: 2024-12-16 16:12 */ export declare const isOpenDeletePet: (state: any, newVal: any) => { ids: any; lists: any; }; /** * @title: 当前选中的表单id * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-17 14:40 */ export declare const holderId: (state: any) => number; /** * @title: 更新套餐的价格 * @description: * @param {any} currentValue * @param {any} newBundleData * @return {*} * @Author: WangHan * @Date: 2024-12-31 15:16 */ export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[]; /** * @title: 更新预约商品报价单 * @description: * @param {any} state * @param {any} cacheItem * @return {*} * @Author: WangHan * @Date: 2024-12-25 16:41 */ export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{ multiDayPrices: any; price: number; }>; /** * @title: 更新普通商品报价单价格 * @description: * @param {any} state * @return {*} * @Author: WangHan * @Date: 2024-12-24 11:32 */ export declare const updateServicePrice: (state: any) => never[] | Promise; /** * @description: 根据_id和sourceProductId来获取主商品已选择的赠品 * @param {string} productId 主商品_id * @param {any} products 商品列表 * @return {*} */ export declare const getSelectedGiftBySourceProductId: (sourceProductId: string, products: any) => any;