@pisell/private-materials 3.4.11 → 3.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/components/footer/utils.js +2 -1
  8. package/lib/components/booking/components/footer/utils.js +2 -1
  9. package/package.json +4 -4
  10. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  11. package/es/components/booking/forms/single/RenderValueById.d.ts +0 -7
  12. package/es/components/booking/hooks/useClearCart.d.ts +0 -2
  13. package/es/components/booking/hooks/useQuotation.d.ts +0 -5
  14. package/es/components/booking/info/client/index.d.ts +0 -4
  15. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  16. package/es/components/booking/info/service/Lists.d.ts +0 -2
  17. package/es/components/booking/info/service2/utils.d.ts +0 -247
  18. package/es/components/booking/info/utils.d.ts +0 -50
  19. package/es/components/booking/info2/index.d.ts +0 -12
  20. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  21. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  22. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  23. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  24. package/es/components/booking/info2/service/index.d.ts +0 -4
  25. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  26. package/es/components/booking/locales.d.ts +0 -822
  27. package/es/components/booking/materiels/duration/index.d.ts +0 -13
  28. package/es/components/booking/materiels/startTime/index.d.ts +0 -9
  29. package/es/components/booking/utils.d.ts +0 -174
  30. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  31. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  32. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  33. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  34. package/es/components/ticketBooking/utils/index.d.ts +0 -25
  35. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  36. package/lib/components/booking/forms/single/RenderValueById.d.ts +0 -7
  37. package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
  38. package/lib/components/booking/hooks/useQuotation.d.ts +0 -5
  39. package/lib/components/booking/info/client/index.d.ts +0 -4
  40. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  41. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  42. package/lib/components/booking/info/service2/utils.d.ts +0 -247
  43. package/lib/components/booking/info/utils.d.ts +0 -50
  44. package/lib/components/booking/info2/index.d.ts +0 -12
  45. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  46. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  47. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  48. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  49. package/lib/components/booking/info2/service/index.d.ts +0 -4
  50. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  51. package/lib/components/booking/locales.d.ts +0 -822
  52. package/lib/components/booking/materiels/duration/index.d.ts +0 -13
  53. package/lib/components/booking/materiels/startTime/index.d.ts +0 -9
  54. package/lib/components/booking/utils.d.ts +0 -174
  55. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  56. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  57. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  58. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  59. package/lib/components/ticketBooking/utils/index.d.ts +0 -25
@@ -1,13 +0,0 @@
1
- import { SelectProps } from 'antd';
2
- interface DurationProps extends SelectProps {
3
- locale?: string;
4
- slice?: number;
5
- selectProps?: SelectProps;
6
- timeObjChange?: any;
7
- duration?: any;
8
- usableTime?: any;
9
- startDate?: any;
10
- timeObj?: any;
11
- }
12
- declare const Duration: (props: DurationProps) => JSX.Element;
13
- export default Duration;
@@ -1,9 +0,0 @@
1
- import { SelectProps } from "antd";
2
- interface StartTimeProps extends SelectProps {
3
- locale?: string;
4
- slice?: number;
5
- selectProps?: SelectProps;
6
- timeObjChange?: any;
7
- }
8
- declare const StartTime: (props: StartTimeProps) => JSX.Element;
9
- export default StartTime;
@@ -1,174 +0,0 @@
1
- import dayjs from 'dayjs';
2
- declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
3
- declare class Request {
4
- private request;
5
- constructor();
6
- setRequest(val: any): void;
7
- getRequest(): {
8
- get: RType;
9
- post: RType;
10
- put: RType;
11
- remove: RType;
12
- custom: RType;
13
- };
14
- }
15
- export declare const request: Request;
16
- /**
17
- * @title: 格式化持续时长用于展示
18
- * @description:
19
- * @param {number} service_times
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-04-26 14:00
23
- */
24
- export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
25
- /**
26
- * @title: 时间切片
27
- * @description:
28
- * @param {any} config
29
- * @param {string} locale
30
- * @return {*}
31
- * @Author: zhiwei.Wang
32
- * @Date: 2024-04-26 13:59
33
- */
34
- export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
35
- timeSlices: {
36
- label: string;
37
- value: string;
38
- }[];
39
- durationSlicesBasedOnTime: {
40
- label: string;
41
- value: number;
42
- }[];
43
- };
44
- export declare const getNowTime: () => string;
45
- export declare const isNowTime: (time: string) => boolean;
46
- /**
47
- * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
48
- * @description:
49
- * @param {string} start_time
50
- * @return {*}
51
- * @Author: zhiwei.Wang
52
- * @Date: 2024-04-26 14:03
53
- */
54
- export declare const getServeStartTime: (start_time: string) => string;
55
- /**
56
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
57
- * @description:
58
- * @param {any} item
59
- * @param {any} currentDate
60
- * @return {*}
61
- * @Author: zhiwei.Wang
62
- * @Date: 2024-04-26 14:04
63
- */
64
- export declare const getServiceTime: (item: any, currentDate: any) => string;
65
- export declare const findNextSlice: ({ timeSlices, index, date, }: {
66
- timeSlices: any[];
67
- index?: number | undefined;
68
- date?: string | undefined;
69
- }) => any;
70
- export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
71
- export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
72
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
73
- /**
74
- * @title: 查找是否有可用的time
75
- * @description:
76
- * @param {any} resourceItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-01-09 13:57
80
- */
81
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
82
- /**
83
- * @title: 获取店铺的营业结束时间
84
- * @description:
85
- * @return {*}
86
- * @Author: zhiwei.Wang
87
- * @Date: 2024-02-23 10:00
88
- */
89
- export declare const getShopOpeningHours: () => string;
90
- /**
91
- * @title: 对灵活时长进行处理
92
- * @description:
93
- * @return {*}
94
- * @Author: zhiwei.Wang
95
- * @Date: 2024-02-23 10:00
96
- */
97
- export declare const flexibleObj: {
98
- create: (num: number) => any;
99
- getValue: (str: string | number) => number;
100
- isFlexible: (str: string | number) => boolean;
101
- add: (current: number | string, duration: number) => any;
102
- };
103
- /**
104
- * @title: 获取结束时间
105
- * @description: 取 endDate | 店铺营业时间 最小的那一个
106
- * @param {any} startDate
107
- * @param {string} duration
108
- * @param {any} endDate
109
- * @return {*}
110
- * @Author: zhiwei.Wang
111
- * @Date: 2024-02-23 10:01
112
- */
113
- export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
114
- export declare const getServiceTimes: (service: any) => {
115
- startDate: dayjs.Dayjs;
116
- endDate: dayjs.Dayjs;
117
- };
118
- export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
119
- label: any;
120
- type: string;
121
- }[];
122
- /**
123
- * @title: 格式化资源, 添加自定义参数
124
- * @description:
125
- * @param {any} resourceItem
126
- * @return {*}
127
- * @Author: zhiwei.Wang
128
- * @Date: 2024-01-09 13:40
129
- */
130
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
131
- export declare const getLastServer: (list: any) => any;
132
- export declare const getCacheParams: () => any;
133
- export declare const deleteCacheParams: () => void;
134
- /**
135
- * @title: 获取跨日预约的时长
136
- * @description:
137
- * @param {any} cacheItem
138
- * @return {*}
139
- * @Author: WangHan
140
- * @Date: 2024-12-01 22:43
141
- */
142
- export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
143
- export declare const isSessionProduct: (cacheItem: any) => boolean;
144
- export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
145
- export declare const getIsOnlySession: (item: any) => boolean;
146
- /**
147
- * @title: 创建一个服务商品
148
- * @description:
149
- * @param {any} state
150
- * @param {any} item
151
- * @return {*}
152
- * @Author: zhiwei.Wang
153
- * @Date: 2024-01-26 14:09
154
- */
155
- export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
156
- export declare const getProductTotalPrice: (item: any) => number;
157
- /**
158
- * @title: 判断 duration
159
- * @description: 用于处理不同格式的duration
160
- * @param {number} duration
161
- * @return {*}
162
- * @Author: zhiwei.Wang
163
- * @Date: 2024-02-23 10:02
164
- */
165
- export declare const getDuration: (duration: number | {
166
- type: string;
167
- value: number;
168
- }) => number | "flexible" | {
169
- type: string;
170
- value: number;
171
- };
172
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
- export declare const getIsEdit: (state: any) => boolean;
174
- export {};
@@ -1,3 +0,0 @@
1
- import { ProductProps } from '../../type';
2
- declare const Product: (props: ProductProps) => JSX.Element;
3
- export default Product;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Cart: () => JSX.Element;
3
- export default Cart;
@@ -1,9 +0,0 @@
1
- import './index.less';
2
- interface AddServiceProps {
3
- onEdit?: any;
4
- dispatch?: any;
5
- state?: any;
6
- renderMode?: 'current' | 'drawer';
7
- }
8
- declare const AddSerivce: (props: AddServiceProps) => JSX.Element | null;
9
- export default AddSerivce;
@@ -1,12 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- import './index.less';
3
- interface ITimeBarProps {
4
- globalState: any;
5
- setGlobalState: any;
6
- onDateChange: (date: Dayjs, dateString?: string) => void;
7
- onDateTimeChange: (date: Dayjs, timeString: string) => void;
8
- setIntervalTime: (value: boolean) => void;
9
- locale: string;
10
- }
11
- declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
12
- export default TimeBar;
@@ -1,25 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- /** dayjs对象格式化为字符串时间 */
3
- export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
- export declare const getDefaultStartParam: () => string | string[];
5
- export declare const formatBookingList: (bookingList: any[]) => any[];
6
- export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
- export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
- export declare const restoreProductOtherData: (data: any) => {
9
- product_id: any;
10
- option: never[];
11
- bundle: any;
12
- product_variant_id: number;
13
- quantity: number;
14
- } | undefined;
15
- export declare const isSameProduct: (a: any, b: any) => boolean;
16
- export declare const addService: (list: any[], addItem: any, state: any) => {
17
- list: any[];
18
- quantity: any;
19
- };
20
- export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
21
- export declare const getCartProductOverlay: (state: any) => any;
22
- export declare const getIsOverlayProduct: (item: any, state: any) => any;
23
- export declare const getIsShowNumber: (item: any, state: any) => any;
24
- export declare const genServiceKey: (item: any) => string;
25
- export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface CustomSelectProps {
4
- options: any[];
5
- onValueChange: (value: any[]) => void;
6
- value: any[];
7
- rowKey: string;
8
- previewItemRender?: (item: any) => React.ReactNode;
9
- previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
10
- addButtonRender?: () => React.ReactNode;
11
- optionRender: (item: any) => React.ReactNode;
12
- addButtonProps?: any;
13
- drawerProps?: any;
14
- createItemText?: string;
15
- loading?: boolean;
16
- previewItemClassName?: string;
17
- optionClassName?: string;
18
- mode?: 'single' | 'multiple' | 'form';
19
- filterItem?: (item: any, search: string) => boolean;
20
- isPreview?: boolean;
21
- name?: string;
22
- handleCreateItem?: () => void;
23
- handleViewItem?: (item: any) => void;
24
- searchChange?: (e: string) => void;
25
- loadMore?: any;
26
- virtualListHeight?: number;
27
- disabled?: boolean;
28
- searchValue?: string;
29
- onVirtualListScroll?: any;
30
- modalOpen?: boolean;
31
- closeCallback?: () => any;
32
- autoFocus?: boolean;
33
- showDropDown?: boolean;
34
- handleOpenModal?: () => void;
35
- handleDayChange?: (value: any) => void;
36
- }
37
- declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
38
- export default _default;
@@ -1,7 +0,0 @@
1
- import './index.less';
2
- interface RenderValueByIdProps {
3
- field: any;
4
- value: any;
5
- }
6
- declare const RenderValueById: (props: RenderValueByIdProps) => any;
7
- export default RenderValueById;
@@ -1,2 +0,0 @@
1
- declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
- export default useClearCart;
@@ -1,5 +0,0 @@
1
- export declare const calculateTotalPrice: (data: any) => number;
2
- declare const useQuotation: (state: any, dispatch: any) => {
3
- dom: JSX.Element;
4
- };
5
- export default useQuotation;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
- export default _default;
@@ -1,9 +0,0 @@
1
- import { EditServiceRef } from "../service/editService";
2
- declare const useInfoHolder: (state: any, dispatch: any) => {
3
- detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
4
- handleEdit: (cacheItem: any, type?: string) => void;
5
- dispatchService: (type: string, payload: any) => void;
6
- handleAction: (dataSource: any) => void;
7
- showAddTimeModal: boolean;
8
- };
9
- export default useInfoHolder;
@@ -1,2 +0,0 @@
1
- declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
- export default Lists;
@@ -1,247 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
- /**
4
- * @title: 获取资源名称
5
- * @description:
6
- * @param {any} id
7
- * @param {any} state
8
- * @return {*}
9
- * @Author: WangHan
10
- * @Date: 2024-11-29 18:02
11
- */
12
- export declare const getResourceItem: (id: any, state: any) => any;
13
- /**
14
- * @title: 错误提示
15
- * @description:
16
- * @param {any} service
17
- * @param {any} resourceItem
18
- * @return {*}
19
- * @Author: WangHan
20
- * @Date: 2024-11-29 18:41
21
- */
22
- export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
- /**
24
- * @title: 格式化主体列表
25
- * @description:
26
- * @param {any} lists
27
- * @param {boolean} isOpenGroup
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-04 11:27
31
- */
32
- export declare const formatHolderLists: (lists: any) => any;
33
- export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
- /**
35
- * @title: 是否是预约商品
36
- * @description:
37
- * @return {*}
38
- * @Author: WangHan
39
- * @Date: 2024-12-06 11:24
40
- */
41
- export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
- export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
43
- /**
44
- * @title: 更新商品数据
45
- * @description:
46
- * @param {any} state
47
- * @param currentItem
48
- * @param {string} type
49
- * @param {any} other
50
- * @param actions
51
- * @return {*}
52
- * @Author: WangHan
53
- * @Date: 2025-01-03 15:00
54
- */
55
- export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
- export declare const formItems: (items: any[]) => any[];
57
- export declare const getIsSubjectRequire: (state: any) => boolean;
58
- export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
- export declare const isAllNormalProduct: (items: any[]) => boolean;
60
- export declare const isAllNormalProductByState: (state: any) => boolean;
61
- /**
62
- * @title: 格式化商品数据
63
- * @description:
64
- * @param {any} lists
65
- * @return {*}
66
- * @Author: WangHan
67
- * @Date: 2024-11-29 17:36
68
- */
69
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
70
- _origin: any;
71
- id: any;
72
- _id: any;
73
- name: any;
74
- price: any;
75
- total: number;
76
- origin_total: number;
77
- num: any;
78
- image: any;
79
- isShowNote: boolean;
80
- note: any;
81
- like_status: any;
82
- bundle: any;
83
- options: any;
84
- errorMessage: string;
85
- product_option_string: any;
86
- discount_reason: any;
87
- resource_id: any;
88
- relation_form_name: any;
89
- holder_title: any;
90
- start_date: any;
91
- end_date: any;
92
- holder_id: any;
93
- isNormalProduct: boolean;
94
- locale: any;
95
- symbol: any;
96
- relation_products: any;
97
- items: any[];
98
- }[];
99
- /**
100
- * @title: 禁用日期
101
- * @description:
102
- * @param {any} current
103
- * @param {string} position
104
- * @param {any} startDate
105
- * @return {*}
106
- * @Author: WangHan
107
- * @Date: 2024-12-03 17:51
108
- */
109
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
110
- /**
111
- * @title: 是否是跨日预约
112
- * @description:
113
- * @param {any} state
114
- * @return {*}
115
- * @Author: WangHan
116
- * @Date: 2024-12-04 09:49
117
- */
118
- export declare const isDayBooking: (state: any) => boolean;
119
- export declare const isDaysBooking: (state: any) => boolean;
120
- export declare const isEventBooking: (state: any) => boolean;
121
- export declare const isAppointmentProduct: (item: any) => boolean;
122
- /**
123
- * @title: 是否是terminal上的跨日预约
124
- * @description:
125
- * @param {any} state
126
- * @return {*}
127
- * @Author: WangHan
128
- * @Date: 2024-12-04 15:31
129
- */
130
- export declare const isTerminalDayBooking: (state: any) => any;
131
- export declare const formatDayDate: (_extend: any) => any;
132
- /**
133
- * @title: 根据营业日时间格式化时间
134
- * @description:
135
- * @param {any} state
136
- * @return {*}
137
- * @Author: WangHan
138
- * @Date: 2024-12-04 12:07
139
- */
140
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
141
- startDateTime: dayjs.Dayjs;
142
- endDateTime: dayjs.Dayjs;
143
- };
144
- export declare const formatDateTime: (start_date: any, end_date: any) => {
145
- value: dayjs.Dayjs;
146
- end_date: dayjs.Dayjs;
147
- };
148
- /**
149
- * @title: 初始化日期
150
- * @description:
151
- * @return {*}
152
- * @Author: WangHan
153
- * @Date: 2024-12-06 17:24
154
- */
155
- export declare const initDate: () => {
156
- value: dayjs.Dayjs;
157
- end_date: dayjs.Dayjs;
158
- };
159
- /**
160
- * @title: 是否有预约商品
161
- * @description:
162
- * @return {*}
163
- * @Author: WangHan
164
- * @Date: 2024-12-12 15:47
165
- */
166
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
167
- /**
168
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
169
- * @description:
170
- * @param {any} lists
171
- * @return {*}
172
- * @Author: WangHan
173
- * @Date: 2024-12-13 16:44
174
- */
175
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
176
- /**
177
- * @title: 格式化表单数据
178
- * @description:
179
- * @param {any} state
180
- * @return {*}
181
- * @Author: WangHan
182
- * @Date: 2024-12-30 22:19
183
- */
184
- export declare const getPets: (state: any) => any;
185
- /**
186
- * @title: 得出预约商品
187
- * @description:
188
- * @param {any} state
189
- * @return {*}
190
- * @Author: WangHan
191
- * @Date: 2024-12-30 22:26
192
- */
193
- export declare const getAppointmentService: (state: any) => any;
194
- /**
195
- * @title: 判断是否打开删除宠物弹窗
196
- * @description:
197
- * @param {any} state
198
- * @param {any} newVal
199
- * @return {*}
200
- * @Author: WangHan
201
- * @Date: 2024-12-16 16:12
202
- */
203
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
204
- ids: any;
205
- lists: any;
206
- };
207
- /**
208
- * @title: 当前选中的表单id
209
- * @description:
210
- * @param {any} state
211
- * @return {*}
212
- * @Author: WangHan
213
- * @Date: 2024-12-17 14:40
214
- */
215
- export declare const holderId: (state: any) => number;
216
- /**
217
- * @title: 更新套餐的价格
218
- * @description:
219
- * @param {any} currentValue
220
- * @param {any} newBundleData
221
- * @return {*}
222
- * @Author: WangHan
223
- * @Date: 2024-12-31 15:16
224
- */
225
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
226
- /**
227
- * @title: 更新预约商品报价单
228
- * @description:
229
- * @param {any} state
230
- * @param {any} cacheItem
231
- * @return {*}
232
- * @Author: WangHan
233
- * @Date: 2024-12-25 16:41
234
- */
235
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
236
- multiDayPrices: any;
237
- price: number;
238
- }>;
239
- /**
240
- * @title: 更新普通商品报价单价格
241
- * @description:
242
- * @param {any} state
243
- * @return {*}
244
- * @Author: WangHan
245
- * @Date: 2024-12-24 11:32
246
- */
247
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -1,50 +0,0 @@
1
- export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
- export declare const uniqueByField: (arr: any[], field: string) => any[];
3
- export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
4
- /**
5
- * @title: 判断两个时间是否在同一个时间段内
6
- * @description:
7
- * @param {number} time1 开始时间
8
- * @param {number} time2 结束时间
9
- * @param {number} interval 时间间隔
10
- * @return {*}
11
- * @Author: zhiwei.Wang
12
- * @Date: 2024-08-13 19:37
13
- */
14
- export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
15
- /**
16
- * @title: 根据时间间隔格式化服务列表
17
- * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
18
- * @param {any} list 服务列表
19
- * @return {*}
20
- * @Author: zhiwei.Wang
21
- * @Date: 2024-08-13 19:36
22
- */
23
- export declare const formatServiceListByTime: (list: any[]) => any[];
24
- export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any;
25
- declare type DataEntry = {
26
- total: number;
27
- origin_total: number;
28
- num: number;
29
- quotation_id: number;
30
- start_date: string;
31
- end_date: string;
32
- };
33
- declare type ResultStructure = Record<string, Record<string, any>>;
34
- export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
35
- /**
36
- * @title: 是否是跨日预约
37
- * @description:
38
- * @param {number} shopId
39
- * @return {*}
40
- * @Author: WangHan
41
- * @Date: 2024-11-29 11:19
42
- */
43
- export declare const isDayBooking: (shopId: number) => boolean;
44
- export declare const isOpenAddTime: (state: any) => boolean;
45
- export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
- export declare const editSessionProduct: (cacheItem: any, session: any) => {
47
- duration: any;
48
- start_time: any;
49
- } | undefined;
50
- export {};
@@ -1,12 +0,0 @@
1
- import '../info/index.less';
2
- export interface InfoProps {
3
- style: any;
4
- globalState: any;
5
- callback: any;
6
- setGlobalState: any;
7
- modules: any;
8
- slot: any;
9
- setState: any;
10
- }
11
- declare const Info: any;
12
- export default Info;