@pisell/private-materials 3.3.48 → 3.3.50

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 (54) 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/info/utils.js +1 -1
  8. package/lib/components/booking/info/utils.js +37 -1
  9. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -1
  10. package/package.json +2 -2
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  12. package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  13. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  14. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -4
  15. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  16. package/es/components/appointmentBooking/context.d.ts +0 -35
  17. package/es/components/appointmentBooking/hooks.d.ts +0 -106
  18. package/es/components/appointmentBooking/utils.d.ts +0 -203
  19. package/es/components/booking/addons/index.d.ts +0 -17
  20. package/es/components/booking/components/footer/amount.d.ts +0 -24
  21. package/es/components/booking/components/footer/utils.d.ts +0 -40
  22. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  23. package/es/components/booking/info/service2/utils.d.ts +0 -247
  24. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  25. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  26. package/es/components/booking/utils.d.ts +0 -173
  27. package/es/components/productSelect/index.d.ts +0 -24
  28. package/es/components/ticketBooking/components/notAvailable/index.d.ts +0 -3
  29. package/es/components/ticketBooking/index.d.ts +0 -7
  30. package/es/components/ticketBooking/locales.d.ts +0 -150
  31. package/es/components/ticketBooking/serve.d.ts +0 -282
  32. package/es/components/ticketBooking/utils/index.d.ts +0 -15
  33. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  34. package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
  35. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  36. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -4
  37. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  38. package/lib/components/appointmentBooking/context.d.ts +0 -35
  39. package/lib/components/appointmentBooking/hooks.d.ts +0 -106
  40. package/lib/components/appointmentBooking/utils.d.ts +0 -203
  41. package/lib/components/booking/addons/index.d.ts +0 -17
  42. package/lib/components/booking/components/footer/amount.d.ts +0 -24
  43. package/lib/components/booking/components/footer/utils.d.ts +0 -40
  44. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  45. package/lib/components/booking/info/service2/utils.d.ts +0 -247
  46. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  47. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  48. package/lib/components/booking/utils.d.ts +0 -173
  49. package/lib/components/productSelect/index.d.ts +0 -24
  50. package/lib/components/ticketBooking/components/notAvailable/index.d.ts +0 -3
  51. package/lib/components/ticketBooking/index.d.ts +0 -7
  52. package/lib/components/ticketBooking/locales.d.ts +0 -150
  53. package/lib/components/ticketBooking/serve.d.ts +0 -282
  54. package/lib/components/ticketBooking/utils/index.d.ts +0 -15
@@ -1,282 +0,0 @@
1
- /**
2
- * @title: 获取客户列表
3
- * @description: 获取客户列表
4
- * @param {any} params
5
- * @return {*}
6
- * @Author: cong.shao
7
- * @Date: 2025-04-24 16:28
8
- */
9
- export declare const getClients: (params: any) => Promise<any>;
10
- /**
11
- * @title: 获取服务列表
12
- * @description: 查询服务列表
13
- * @param {any} params
14
- * @return {*}
15
- * @Author: cong.shao
16
- * @Date: 2025-04-24 16:28
17
- */
18
- export declare const getServices: (params: any) => Promise<any>;
19
- /**
20
- * @title: 获取资源列表
21
- * @description: 资源列表
22
- * @param {any} params
23
- * @return {*}
24
- * @Author: cong.shao
25
- * @Date: 2025-04-24 16:28
26
- */
27
- export declare const getResources: (params: any) => Promise<any>;
28
- /**
29
- * @title: 获取产品列表
30
- * @description: 查询产品列表
31
- * @param {any} params
32
- * @return {*}
33
- * @Author: cong.shao
34
- * @Date: 2025-04-24 16:28
35
- */
36
- export declare const getProducts: (params: any) => Promise<any>;
37
- /**
38
- * @title: 获取表单列表
39
- * @description: 获取关联记录表单列表
40
- * @param {any} params
41
- * @return {*}
42
- * @Author: cong.shao
43
- * @Date: 2025-04-24 16:28
44
- */
45
- export declare const getForms: (params: any) => Promise<any>;
46
- /**
47
- * @title: 获取预约配置
48
- * @description: 获取预约相关配置信息
49
- * @param {any} params
50
- * @return {*}
51
- * @Author: cong.shao
52
- * @Date: 2025-04-24 16:28
53
- */
54
- export declare const getBookingConfig: (params: any) => Promise<any>;
55
- /**
56
- * @title: 获取宠物信息
57
- * @description: 根据ID获取宠物信息
58
- * @param {string} formId
59
- * @param {any} params
60
- * @return {*}
61
- * @Author: cong.shao
62
- * @Date: 2025-04-24 16:28
63
- */
64
- export declare const getPets: (formId: string, params: any) => Promise<any>;
65
- /**
66
- * @title: 获取宠物数据
67
- * @description: 获取宠物数据
68
- * @param {any} params
69
- * @return {*}
70
- * @Author: cong.shao
71
- * @Date: 2025-04-24 16:28
72
- */
73
- export declare const getPetsData: (params: any) => Promise<any>;
74
- /**
75
- * @title: 创建预约
76
- * @description: 创建新的预约记录
77
- * @param {any} params
78
- * @return {*}
79
- * @Author: cong.shao
80
- * @Date: 2025-04-24 16:28
81
- */
82
- export declare const createBooking: (params: any) => Promise<any>;
83
- /**
84
- * @title: 获取预约附加服务
85
- * @description: 根据预约ID获取附加服务信息
86
- * @param {string} bookingId
87
- * @param {any} params
88
- * @return {*}
89
- * @Author: cong.shao
90
- * @Date: 2025-04-24 16:28
91
- */
92
- export declare const getAddonsByOrderId: (bookingId: string, params: any) => Promise<any>;
93
- /**
94
- * @title: 保存预约附加服务
95
- * @description: 保存预约的附加服务信息
96
- * @param {string} bookingId
97
- * @param {any} params
98
- * @return {*}
99
- * @Author: cong.shao
100
- * @Date: 2025-04-24 16:28
101
- */
102
- export declare const saveAddonsByOrderId: (bookingId: string, params: any) => Promise<any>;
103
- /**
104
- * @title: 获取预约详情
105
- * @description: 获取预约详细信息
106
- * @param {number} bookingId
107
- * @param {any} params
108
- * @return {*}
109
- * @Author: cong.shao
110
- * @Date: 2025-04-24 16:28
111
- */
112
- export declare const getBookingDetail: (bookingId: number, params?: any) => Promise<any>;
113
- /**
114
- * @title: 编辑预约状态
115
- * @description: 更新预约状态
116
- * @param {string} bookingId
117
- * @param {any} params
118
- * @return {*}
119
- * @Author: cong.shao
120
- * @Date: 2025-04-24 16:28
121
- */
122
- export declare const editBookingStatus: (bookingId: string, params: any) => Promise<any>;
123
- /**
124
- * @title: 编辑预约信息
125
- * @description: 更新预约信息
126
- * @param {string} bookingId
127
- * @param {any} params
128
- * @return {*}
129
- * @Author: cong.shao
130
- * @Date: 2025-04-24 16:28
131
- */
132
- export declare const editBooking: (bookingId: string, params: any) => Promise<any>;
133
- /**
134
- * @title: 获取预约备注
135
- * @description: 获取预约相关备注信息
136
- * @param {any} params
137
- * @return {*}
138
- * @Author: cong.shao
139
- * @Date: 2025-04-24 16:28
140
- */
141
- export declare const getNotesByOrder: (params: any) => Promise<any>;
142
- /**
143
- * @title: 添加预约备注
144
- * @description: 添加预约相关备注
145
- * @param {any} params
146
- * @return {*}
147
- * @Author: cong.shao
148
- * @Date: 2025-04-24 16:28
149
- */
150
- export declare const addNotesByOrder: (params: any) => Promise<any>;
151
- /**
152
- * @title: 编辑预约备注
153
- * @description: 更新预约备注信息
154
- * @param {string} bookingId
155
- * @param {any} params
156
- * @return {*}
157
- * @Author: cong.shao
158
- * @Date: 2025-04-24 16:28
159
- */
160
- export declare const editNoteByOrder: (bookingId: string, params: any) => Promise<any>;
161
- /**
162
- * @title: 删除预约备注
163
- * @description: 删除预约相关备注
164
- * @param {string} bookingId
165
- * @param {any} params
166
- * @return {*}
167
- * @Author: cong.shao
168
- * @Date: 2025-04-24 16:28
169
- */
170
- export declare const removeNoteByOrder: (bookingId: string, params: any) => Promise<any>;
171
- /**
172
- * @title: 保存预约表单数据
173
- * @description: 保存预约相关的表单数据
174
- * @param {any} params
175
- * @return {*}
176
- * @Author: cong.shao
177
- * @Date: 2025-04-24 16:28
178
- */
179
- export declare const saveBookingFormData: (params: any) => Promise<any>;
180
- /**
181
- * @title: 获取支付列表
182
- * @description: 获取支付相关列表数据
183
- * @param {any} params
184
- * @return {*}
185
- * @Author: cong.shao
186
- * @Date: 2025-04-24 16:28
187
- */
188
- export declare const getPaymentList: (params: any) => Promise<any>;
189
- /**
190
- * @title: 编辑订单备注
191
- * @description: 更新订单备注信息
192
- * @param {string} bookingId
193
- * @param {any} params
194
- * @return {*}
195
- * @Author: cong.shao
196
- * @Date: 2025-04-24 16:28
197
- */
198
- export declare const editOrderNote: (bookingId: string, params: any) => Promise<any>;
199
- /**
200
- * @title: 获取退款信息
201
- * @description: 获取退款相关信息
202
- * @param {string} bookingId
203
- * @param {any} params
204
- * @return {*}
205
- * @Author: cong.shao
206
- * @Date: 2025-04-24 16:28
207
- */
208
- export declare const getRefundInfo: (bookingId: string, params: any) => Promise<any>;
209
- /**
210
- * @title: 创建活动预约
211
- * @description: 创建新的活动预约记录
212
- * @param {any} params
213
- * @return {*}
214
- * @Author: cong.shao
215
- * @Date: 2025-04-24 16:28
216
- */
217
- export declare const createEventBooking: (params: any) => Promise<any>;
218
- /**
219
- * @title: 获取活动预约详情
220
- * @description: 获取活动预约详细信息
221
- * @param {number} bookingId
222
- * @param {any} params
223
- * @return {*}
224
- * @Author: cong.shao
225
- * @Date: 2025-04-24 16:28
226
- */
227
- export declare const getEventBookingDetail: (bookingId: number, params?: any) => Promise<any>;
228
- /**
229
- * @title: 编辑活动预约
230
- * @description: 更新活动预约信息
231
- * @param {string} bookingId
232
- * @param {any} params
233
- * @return {*}
234
- * @Author: cong.shao
235
- * @Date: 2025-04-24 16:28
236
- */
237
- export declare const editEventBooking: (bookingId: string, params: any) => Promise<any>;
238
- /**
239
- * @title: 获取定金显示配置
240
- * @description: 获取定金相关显示配置
241
- * @param {any} params
242
- * @return {*}
243
- * @Author: cong.shao
244
- * @Date: 2025-04-24 16:28
245
- */
246
- export declare const getDepositShow: (params: any) => Promise<any>;
247
- /**
248
- * @title: 获取表单记录
249
- * @description: 获取表单记录数据
250
- * @param {any} params
251
- * @return {*}
252
- * @Author: cong.shao
253
- * @Date: 2025-04-24 16:28
254
- */
255
- export declare const getFormRecords: (params: any) => Promise<any>;
256
- /**
257
- * @title: 获取预约列表
258
- * @description: 获取预约列表数据
259
- * @param {any} params
260
- * @return {*}
261
- * @Author: cong.shao
262
- * @Date: 2025-04-24 16:28
263
- */
264
- export declare const getBookingList2: (params: any) => Promise<any>;
265
- /**
266
- * @title: 获取订单信息
267
- * @description: 根据机器码获取订单信息
268
- * @param {any} params
269
- * @return {*}
270
- * @Author: cong.shao
271
- * @Date: 2025-04-24 16:28
272
- */
273
- export declare const getOrderInfoByCode: (params: any) => Promise<any>;
274
- /**
275
- * @title: 获取ES客户数据
276
- * @description: 从ES获取客户数据
277
- * @param {any} params
278
- * @return {*}
279
- * @Author: cong.shao
280
- * @Date: 2025-04-24 16:28
281
- */
282
- export declare const getClientsEs: (params: any) => Promise<any>;
@@ -1,15 +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 addService: (list: any[], addItem: any) => any[];
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const CartItem: ({ onNext }: any) => JSX.Element;
3
- export default CartItem;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ResourceProps {
4
- onChange?: (val: any) => void;
5
- }
6
- declare const Resource: React.ForwardRefExoticComponent<ResourceProps & React.RefAttributes<any>>;
7
- export default Resource;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default Services;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const TimeSlicing: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default TimeSlicing;
@@ -1,4 +0,0 @@
1
- import '../../../booking/components/voucher/index.less';
2
- import './index.less';
3
- declare const VoucherCard: (props: any) => JSX.Element;
4
- export default VoucherCard;
@@ -1,35 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { TasksManager } from '../../utils/tasks';
3
- interface AppointmentBookingContextType {
4
- appointmentBooking: any;
5
- times: any[];
6
- resources: any[];
7
- setTimes: (times: any[]) => void;
8
- setResources: (lists: any[]) => void;
9
- carts: any[];
10
- summary: any;
11
- setCarts: (val: any[]) => void;
12
- setSummary: (val: any) => void;
13
- currentStep: any;
14
- setCurrentStep: (val: any) => void;
15
- appHelper?: any;
16
- symbolic?: any;
17
- resourceOtherParams?: any;
18
- setResourceOtherParams: (val: any) => void;
19
- selectedTime: any;
20
- setSelectedTime: (val: any) => void;
21
- isAgreeDepositPolicy: boolean;
22
- setIsAgreeDepositPolicy: (val: boolean) => void;
23
- isLastStep: boolean;
24
- tasksManager: TasksManager;
25
- policyParams: any;
26
- setPolicyParams: (val: any) => void;
27
- openPolicy: (content: any, callback?: any) => void;
28
- closePolicy: (val?: boolean) => void;
29
- [key: string]: any;
30
- }
31
- export declare const AppointmentBookingProvider: ({ children, }: {
32
- children: ReactNode;
33
- }) => JSX.Element;
34
- export declare const useAppointmentBookingContext: () => AppointmentBookingContextType | undefined;
35
- export {};
@@ -1,106 +0,0 @@
1
- export declare const useAppointmentBooking: () => any;
2
- export declare const useShopDiscount: () => any;
3
- export declare const contextUtils: () => any;
4
- /**
5
- * @title: 监听步骤发生变化
6
- * @description:
7
- * @return {*}
8
- * @Author: WangHan
9
- * @Date: 2025-04-15 11:11
10
- */
11
- export declare const useAppointmentBookingStep: () => {
12
- getStepIndex: (type: string, skipNumber?: number) => any;
13
- stepList: any;
14
- removeStep: (key: string) => any;
15
- addStep: (props: any, stepKey?: string) => any;
16
- updateStep: (key: string, step: any) => void;
17
- nextStep: () => any;
18
- };
19
- /**
20
- * @title: 获取商品数据
21
- * @description:
22
- * @return {*}
23
- * @Author: WangHan
24
- * @Date: 2025-04-15 11:12
25
- */
26
- export declare const useAppointmentBookingProduct: () => {
27
- checkProductType: (productId: number) => Promise<any>;
28
- getProducts: () => Promise<any>;
29
- };
30
- /**
31
- * @title: 更新购物车数据
32
- * @description:
33
- * @return {*}
34
- * @Author: WangHan
35
- * @Date: 2025-04-15 11:12
36
- */
37
- export declare const useAppointmentBookingCart: () => void;
38
- /**
39
- * @title: 获取登录状态
40
- * @description:
41
- * @return {*}
42
- * @Author: WangHan
43
- * @Date: 2025-04-15 11:14
44
- */
45
- export declare const useAppointmentBookingLogin: () => {
46
- isLogin: boolean;
47
- openLoginModal: (params: {
48
- callback: any;
49
- }) => void;
50
- };
51
- /**
52
- * @title: 获取账户
53
- * @description:
54
- * @return {*}
55
- * @Author: WangHan
56
- * @Date: 2025-04-15 11:15
57
- */
58
- export declare const useAppointmentBookingAccount: () => {
59
- accountLists: any;
60
- getHolders: () => Promise<any>;
61
- form_id: any;
62
- addAccount: (val: any, type?: string) => Promise<any>;
63
- checkAccount: (type: any) => any;
64
- };
65
- /**
66
- * @title: 获取资源数据
67
- * @description:
68
- * @return {*}
69
- * @Author: WangHan
70
- * @Date: 2025-04-15 11:29
71
- */
72
- export declare const useAppointmentBookingResource: () => {
73
- getResourceTimeSlot: (index?: number) => Promise<void>;
74
- getResourceList: () => {
75
- resources: any;
76
- resourceCodes: any;
77
- };
78
- };
79
- /**
80
- * @title: 是否跳过资源选择步骤
81
- * @description:
82
- * @return {*}
83
- * @Author: WangHan
84
- * @Date: 2025-04-21 11:47
85
- */
86
- export declare const useIsSkipResourceStep: () => {
87
- checkSkipResourceStep: () => Promise<boolean>;
88
- };
89
- /**
90
- * @title: 获取预约配置
91
- * @description:
92
- * @return {*}
93
- * @Author: WangHan
94
- * @Date: 2025-04-24 18:15
95
- */
96
- export declare const useAppointmentBookingSetting: () => {
97
- isDateSelectedFirst: boolean;
98
- isFormSubject: boolean;
99
- isRetailTemplate: any;
100
- customPageId: any;
101
- channel: any;
102
- bookingSubject: any;
103
- setOtherData: (key: string, val: any) => any;
104
- getOtherData: (key: string) => any;
105
- formName: any;
106
- };
@@ -1,203 +0,0 @@
1
- /**
2
- * @title: 格式化holder表数据
3
- * @description:
4
- * @param {any} data
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-05-07 21:22
8
- */
9
- export declare const formatHolder: (data: any[]) => any[];
10
- export declare const formatGuest: (data: any[], products: any) => any[];
11
- /**
12
- * @title: 格式化购物车中资源上挂接的表单数据
13
- * @description:
14
- * @param {any} data
15
- * @param {any} resources
16
- * @return {*}
17
- * @Author: WangHan
18
- * @Date: 2025-05-06 22:22
19
- */
20
- export declare const formatCartsResources: (carts: any[], resources: any[], setPolicyIds: any) => any[];
21
- /**
22
- * @title: 格式化购物车数据
23
- * @description:
24
- * @param {any} data
25
- * @param {any} resources
26
- * @param {any} accountLists
27
- * @return {*}
28
- * @Author: WangHan
29
- * @Date: 2025-05-07 21:22
30
- */
31
- export declare const formatCarts: (data: any[], resources: any[], utils: any, accountLists?: any) => any[];
32
- /**
33
- * @title: 对资源进行排序
34
- * @description:
35
- * @param {any} currentResourcesMap
36
- * @param {any} resourceSort
37
- * @return {*}
38
- * @Author: WangHan
39
- * @Date: 2025-04-14 11:16
40
- */
41
- export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
42
- export declare const getMeAccount: (val: any[]) => any;
43
- export declare const getCustomer: (utils: any) => any;
44
- export declare const formatCustomer: (val: any) => {
45
- id: any;
46
- username: string;
47
- };
48
- export declare const formatCurrentUser: (utils: any) => {
49
- id: any;
50
- username: string;
51
- };
52
- /**
53
- * @title: 定金合并的标点符号
54
- * @description:
55
- * @return {*}
56
- * @Author: WangHan
57
- * @Date: 2025-04-21 17:52
58
- */
59
- export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
60
- /**
61
- * @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
62
- * @description:
63
- * @param {any} array
64
- * @param {any} resources
65
- * @return {*}
66
- * @Author: WangHan
67
- * @Date: 2025-04-25 19:05
68
- */
69
- export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
70
- export declare const formatForms: (array: any[]) => ({
71
- form_id: any;
72
- policy_id: any;
73
- id: any;
74
- cart_id: any;
75
- } | null)[];
76
- /**
77
- * @title: 打开表单
78
- * @description:
79
- * @param {string} title
80
- * @param {any} callback
81
- * @return {*}
82
- * @Author: WangHan
83
- * @Date: 2025-04-26 15:26
84
- */
85
- export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
86
- /**
87
- * @title: 更新数组
88
- * @description:
89
- * @return {*}
90
- * @Author: WangHan
91
- * @Date: 2025-04-26 18:13
92
- */
93
- export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
94
- /**
95
- * @title: 更新表单存储
96
- * @description:
97
- * @param {any} bookingForm
98
- * @param {number} id
99
- * @param {any} newData
100
- * @return {*}
101
- * @Author: WangHan
102
- * @Date: 2025-04-27 17:27
103
- */
104
- export declare const updateBookingFormStorage: (bookingForm: any, id: number | string, newData: any) => any;
105
- export declare const Toast: (text: string) => void;
106
- /**
107
- * @title: 添加或移除表单步骤
108
- * @description:
109
- * @param {any} param1
110
- * @return {*}
111
- * @Author: WangHan
112
- * @Date: 2025-05-06 21:51
113
- */
114
- export declare const checkHasFormStep: ({ setIsErrorHolder, nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => void;
115
- export declare const getCartCurrentResourceData: (cart: any, currentKey: any, resources: any[]) => any;
116
- /**
117
- * @title: 获取购物车资源列表
118
- * @description:
119
- * @return {*}
120
- * @Author: WangHan
121
- * @Date: 2025-05-25 13:56
122
- */
123
- export declare const getMultiResources: (cart: any, currentSelectedResource: any, currentKey: string) => any[];
124
- export declare const getCurrentBoard: (appointmentBooking: any, code: string) => any;
125
- /**
126
- * @title:
127
- * @description: 根据资源code获取资源标题
128
- * @param {any} appointmentBooking
129
- * @param {string} code
130
- * @return {*}
131
- * @Author: WangHan
132
- * @Date: 2025-05-24 18:51
133
- */
134
- export declare const getResourceTitle: (appointmentBooking: any, code: string, utils: any, originResource: any) => string;
135
- /**
136
- * @title: 监测购物车中是否有没有选择资源的
137
- * @description:
138
- * @param {any} carts
139
- * @return {*}
140
- * @Author: WangHan
141
- * @Date: 2025-05-24 18:47
142
- */
143
- export declare const checkAndMarkCartRenderError: (carts: any, appointmentBooking?: any, utils?: any) => {
144
- hasError: boolean;
145
- updatedCartList: any;
146
- } | {
147
- hasError?: undefined;
148
- updatedCartList?: undefined;
149
- };
150
- /**
151
- * @title: 查表表单步骤插入到哪个步骤的后面的key
152
- * @description:
153
- * @param {string} currentKey
154
- * @param {any} stepList
155
- * @return {*}
156
- * @Author: WangHan
157
- * @Date: 2025-05-24 19:05
158
- */
159
- export declare const getFormInsertBeforeKey: (currentKey: string, stepList: any[]) => any;
160
- /**
161
- * @title: 监测holder数据
162
- * @description:
163
- * @param {any} isFormSubject
164
- * @param {any} checkAccount
165
- * @param {any} carts
166
- * @return {*}
167
- * @Author: WangHan
168
- * @Date: 2025-05-24 22:46
169
- */
170
- export declare const checkAndGoNext: (isFormSubject: any, checkAccount: any, carts: any[]) => {
171
- hasError: boolean;
172
- updatedCartList: any[];
173
- };
174
- export declare const currentAppointmentBoard: (currentKey: string, resources: any[], appointmentBooking: any) => {
175
- isRequired: boolean;
176
- isSystem: boolean;
177
- isSkip: boolean;
178
- form_id: number;
179
- form_code: any;
180
- cart_id: string;
181
- resource_form_id: string;
182
- policy_id: string;
183
- } | {
184
- isRequired?: undefined;
185
- isSystem?: undefined;
186
- isSkip?: undefined;
187
- form_id?: undefined;
188
- form_code?: undefined;
189
- cart_id?: undefined;
190
- resource_form_id?: undefined;
191
- policy_id?: undefined;
192
- };
193
- export declare const currentRenderLists: (resources: any[], code: any) => any;
194
- /**
195
- * @title: 更新购物车
196
- * @description:
197
- * @param {any} carts
198
- * @param {any} value
199
- * @return {*}
200
- * @Author: WangHan
201
- * @Date: 2025-05-25 23:17
202
- */
203
- export declare const updateCartResources: (item: any, value?: any, currentSelectedResources?: any) => any;
@@ -1,17 +0,0 @@
1
- /**
2
- * @title: 添加额外商品
3
- * @description:
4
- * @return {*}
5
- * @Author: zhiwei.Wang
6
- * @Date: 2024-01-30 16:33
7
- */
8
- import './index.less';
9
- export interface InfoProps {
10
- title?: string;
11
- style?: any;
12
- globalState: any;
13
- setGlobalState: any;
14
- }
15
- export declare const formatProducts: (values: any) => any;
16
- declare const Addons: any;
17
- export default Addons;