@pisell/private-materials 3.3.41 → 3.3.43

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 (123) 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/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  15. package/es/components/booking/components/footer/index.d.ts +0 -1
  16. package/es/components/booking/components/voucher/index.js +2 -1
  17. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  18. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/info/index.d.ts +0 -1
  21. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  22. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  23. package/es/components/booking/info/utils.js +1 -1
  24. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  25. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  26. package/es/components/eftposPay/store/index.d.ts +2 -2
  27. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  28. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  29. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  30. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  31. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  32. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  33. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  37. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  41. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  42. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  43. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  44. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  45. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  46. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  47. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  48. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  49. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  50. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  51. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  52. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  53. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  54. package/es/components/ticketBooking/index.d.ts +0 -1
  55. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  56. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  57. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  58. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  59. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  60. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  61. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  62. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  63. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  64. package/lib/components/booking/components/footer/index.d.ts +0 -1
  65. package/lib/components/booking/components/voucher/index.js +2 -1
  66. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  67. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  68. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  69. package/lib/components/booking/info/index.d.ts +0 -1
  70. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  71. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  72. package/lib/components/booking/info/utils.js +1 -1
  73. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  74. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  75. package/lib/components/eftposPay/store/index.d.ts +2 -2
  76. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  77. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  78. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  79. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  80. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  81. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  82. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  83. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  84. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  85. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  86. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  87. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  88. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  89. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  90. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  91. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  92. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  93. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  94. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  95. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  96. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  97. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  98. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  99. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  100. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  101. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  102. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  103. package/lib/components/ticketBooking/index.d.ts +0 -1
  104. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  105. package/package.json +3 -3
  106. package/es/components/booking/components/footer/amount.d.ts +0 -24
  107. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  108. package/es/components/booking/info/service2/utils.d.ts +0 -244
  109. package/es/components/booking/info/utils.d.ts +0 -50
  110. package/es/components/booking/info2/service/addService/index.d.ts +0 -12
  111. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  112. package/es/components/booking/utils.d.ts +0 -172
  113. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  114. package/es/components/ticketBooking/utils/index.d.ts +0 -14
  115. package/lib/components/booking/components/footer/amount.d.ts +0 -24
  116. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  117. package/lib/components/booking/info/service2/utils.d.ts +0 -244
  118. package/lib/components/booking/info/utils.d.ts +0 -50
  119. package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
  120. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  121. package/lib/components/booking/utils.d.ts +0 -172
  122. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  123. package/lib/components/ticketBooking/utils/index.d.ts +0 -14
@@ -1,244 +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
- /**
59
- * @title: 格式化商品数据
60
- * @description:
61
- * @param {any} lists
62
- * @return {*}
63
- * @Author: WangHan
64
- * @Date: 2024-11-29 17:36
65
- */
66
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
67
- _origin: any;
68
- id: any;
69
- _id: any;
70
- name: any;
71
- price: any;
72
- total: number;
73
- origin_total: number;
74
- num: any;
75
- image: any;
76
- isShowNote: boolean;
77
- note: any;
78
- like_status: any;
79
- bundle: any;
80
- options: any;
81
- errorMessage: string;
82
- product_option_string: any;
83
- discount_reason: any;
84
- resource_id: any;
85
- relation_form_name: any;
86
- holder_title: any;
87
- start_date: any;
88
- end_date: any;
89
- holder_id: any;
90
- isNormalProduct: boolean;
91
- locale: any;
92
- symbol: any;
93
- relation_products: any;
94
- items: any[];
95
- }[];
96
- /**
97
- * @title: 禁用日期
98
- * @description:
99
- * @param {any} current
100
- * @param {string} position
101
- * @param {any} startDate
102
- * @return {*}
103
- * @Author: WangHan
104
- * @Date: 2024-12-03 17:51
105
- */
106
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
107
- /**
108
- * @title: 是否是跨日预约
109
- * @description:
110
- * @param {any} state
111
- * @return {*}
112
- * @Author: WangHan
113
- * @Date: 2024-12-04 09:49
114
- */
115
- export declare const isDayBooking: (state: any) => boolean;
116
- export declare const isDaysBooking: (state: any) => boolean;
117
- export declare const isEventBooking: (state: any) => boolean;
118
- export declare const isAppointmentProduct: (item: any) => boolean;
119
- /**
120
- * @title: 是否是terminal上的跨日预约
121
- * @description:
122
- * @param {any} state
123
- * @return {*}
124
- * @Author: WangHan
125
- * @Date: 2024-12-04 15:31
126
- */
127
- export declare const isTerminalDayBooking: (state: any) => any;
128
- export declare const formatDayDate: (_extend: any) => any;
129
- /**
130
- * @title: 根据营业日时间格式化时间
131
- * @description:
132
- * @param {any} state
133
- * @return {*}
134
- * @Author: WangHan
135
- * @Date: 2024-12-04 12:07
136
- */
137
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
138
- startDateTime: dayjs.Dayjs;
139
- endDateTime: dayjs.Dayjs;
140
- };
141
- export declare const formatDateTime: (start_date: any, end_date: any) => {
142
- value: dayjs.Dayjs;
143
- end_date: dayjs.Dayjs;
144
- };
145
- /**
146
- * @title: 初始化日期
147
- * @description:
148
- * @return {*}
149
- * @Author: WangHan
150
- * @Date: 2024-12-06 17:24
151
- */
152
- export declare const initDate: () => {
153
- value: dayjs.Dayjs;
154
- end_date: dayjs.Dayjs;
155
- };
156
- /**
157
- * @title: 是否有预约商品
158
- * @description:
159
- * @return {*}
160
- * @Author: WangHan
161
- * @Date: 2024-12-12 15:47
162
- */
163
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
164
- /**
165
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
166
- * @description:
167
- * @param {any} lists
168
- * @return {*}
169
- * @Author: WangHan
170
- * @Date: 2024-12-13 16:44
171
- */
172
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
173
- /**
174
- * @title: 格式化表单数据
175
- * @description:
176
- * @param {any} state
177
- * @return {*}
178
- * @Author: WangHan
179
- * @Date: 2024-12-30 22:19
180
- */
181
- export declare const getPets: (state: any) => any;
182
- /**
183
- * @title: 得出预约商品
184
- * @description:
185
- * @param {any} state
186
- * @return {*}
187
- * @Author: WangHan
188
- * @Date: 2024-12-30 22:26
189
- */
190
- export declare const getAppointmentService: (state: any) => any;
191
- /**
192
- * @title: 判断是否打开删除宠物弹窗
193
- * @description:
194
- * @param {any} state
195
- * @param {any} newVal
196
- * @return {*}
197
- * @Author: WangHan
198
- * @Date: 2024-12-16 16:12
199
- */
200
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
201
- ids: any;
202
- lists: any;
203
- };
204
- /**
205
- * @title: 当前选中的表单id
206
- * @description:
207
- * @param {any} state
208
- * @return {*}
209
- * @Author: WangHan
210
- * @Date: 2024-12-17 14:40
211
- */
212
- export declare const holderId: (state: any) => number;
213
- /**
214
- * @title: 更新套餐的价格
215
- * @description:
216
- * @param {any} currentValue
217
- * @param {any} newBundleData
218
- * @return {*}
219
- * @Author: WangHan
220
- * @Date: 2024-12-31 15:16
221
- */
222
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
223
- /**
224
- * @title: 更新预约商品报价单
225
- * @description:
226
- * @param {any} state
227
- * @param {any} cacheItem
228
- * @return {*}
229
- * @Author: WangHan
230
- * @Date: 2024-12-25 16:41
231
- */
232
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
233
- multiDayPrices: any;
234
- price: number;
235
- }>;
236
- /**
237
- * @title: 更新普通商品报价单价格
238
- * @description:
239
- * @param {any} state
240
- * @return {*}
241
- * @Author: WangHan
242
- * @Date: 2024-12-24 11:32
243
- */
244
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -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) => boolean;
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
- /// <reference types="react" />
2
- import { PisellDrawerProps } from '../../../components/drawer';
3
- import '../../../info/service/addService/index.less';
4
- interface AddServiceProps {
5
- onEdit: any;
6
- dispatch?: any;
7
- state?: any;
8
- drawerProps?: PisellDrawerProps;
9
- renderMode?: 'current' | 'drawer';
10
- }
11
- declare const Info: (props: AddServiceProps) => JSX.Element;
12
- export default Info;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface EditServiceRef {
4
- init: (cacheItem?: any) => void;
5
- }
6
- declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
7
- export default _default;
@@ -1,172 +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
- /**
145
- * @title: 创建一个服务商品
146
- * @description:
147
- * @param {any} state
148
- * @param {any} item
149
- * @return {*}
150
- * @Author: zhiwei.Wang
151
- * @Date: 2024-01-26 14:09
152
- */
153
- export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
154
- export declare const getProductTotalPrice: (item: any) => number;
155
- /**
156
- * @title: 判断 duration
157
- * @description: 用于处理不同格式的duration
158
- * @param {number} duration
159
- * @return {*}
160
- * @Author: zhiwei.Wang
161
- * @Date: 2024-02-23 10:02
162
- */
163
- export declare const getDuration: (duration: number | {
164
- type: string;
165
- value: number;
166
- }) => number | {
167
- type: string;
168
- value: number;
169
- } | "flexible";
170
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
171
- export declare const getIsEdit: (state: any) => boolean;
172
- export {};
@@ -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,14 +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;