@pisell/private-materials 6.6.53 → 6.6.55

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 (65) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
  10. package/es/components/booking/addons/index.js +3 -2
  11. package/es/components/booking/components/footer/amount.js +1 -1
  12. package/es/components/booking/components/footer/index.js +7 -0
  13. package/es/components/booking/components/footer/utils.d.ts +1 -1
  14. package/es/components/booking/components/footer/utils.js +7 -5
  15. package/es/components/booking/components/voucher/index.js +6 -0
  16. package/es/components/booking/components/voucher/index.less +4 -1
  17. package/es/components/booking/components/voucherModal/index.less +1 -0
  18. package/es/components/booking/info2/service/editService/index.js +8 -2
  19. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  20. package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  21. package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
  22. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  23. package/es/components/checkout/hooks/useWalletPass.js +316 -192
  24. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  25. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  26. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  27. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  28. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  29. package/es/components/pay/toC/index.js +66 -27
  30. package/es/components/pay/toC/model.d.ts +1 -0
  31. package/es/components/pay/toC/serve.d.ts +18 -0
  32. package/es/components/pay/toC/serve.js +29 -1
  33. package/es/components/pay/toC/utils.d.ts +2 -2
  34. package/es/components/pay/toC/utils.js +4 -0
  35. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
  36. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
  37. package/lib/components/booking/addons/index.js +3 -2
  38. package/lib/components/booking/components/footer/amount.js +1 -1
  39. package/lib/components/booking/components/footer/index.js +9 -0
  40. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  41. package/lib/components/booking/components/footer/utils.js +5 -3
  42. package/lib/components/booking/components/voucher/index.js +6 -0
  43. package/lib/components/booking/components/voucher/index.less +4 -1
  44. package/lib/components/booking/components/voucherModal/index.less +1 -0
  45. package/lib/components/booking/info2/service/editService/index.js +24 -18
  46. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  47. package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  48. package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
  49. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  50. package/lib/components/checkout/hooks/useWalletPass.js +157 -108
  51. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  52. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  53. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  54. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  55. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  56. package/lib/components/pay/toC/index.js +52 -11
  57. package/lib/components/pay/toC/model.d.ts +1 -0
  58. package/lib/components/pay/toC/serve.d.ts +18 -0
  59. package/lib/components/pay/toC/serve.js +6 -0
  60. package/lib/components/pay/toC/utils.d.ts +2 -2
  61. package/lib/components/pay/toC/utils.js +4 -0
  62. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
  63. package/package.json +3 -3
  64. package/es/components/booking/info/service2/utils.d.ts +0 -219
  65. package/lib/components/booking/info/service2/utils.d.ts +0 -219
@@ -1,219 +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
- export declare const genRowKey: (key: string) => string;
62
- /**
63
- * @title: 格式化商品数据
64
- * @description:
65
- * @param {any} lists
66
- * @return {*}
67
- * @Author: WangHan
68
- * @Date: 2024-11-29 17:36
69
- */
70
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => any[];
71
- /**
72
- * @title: 禁用日期
73
- * @description:
74
- * @param {any} current
75
- * @param {string} position
76
- * @param {any} startDate
77
- * @return {*}
78
- * @Author: WangHan
79
- * @Date: 2024-12-03 17:51
80
- */
81
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
82
- /**
83
- * @title: 是否是跨日预约
84
- * @description:
85
- * @param {any} state
86
- * @return {*}
87
- * @Author: WangHan
88
- * @Date: 2024-12-04 09:49
89
- */
90
- export declare const isDayBooking: (state: any) => boolean;
91
- export declare const isDaysBooking: (state: any) => boolean;
92
- export declare const isEventBooking: (state: any) => boolean;
93
- export declare const isAppointmentProduct: (item: any) => boolean;
94
- /**
95
- * @title: 是否是terminal上的跨日预约
96
- * @description:
97
- * @param {any} state
98
- * @return {*}
99
- * @Author: WangHan
100
- * @Date: 2024-12-04 15:31
101
- */
102
- export declare const isTerminalDayBooking: (state: any) => any;
103
- export declare const formatDayDate: (_extend: any) => any;
104
- /**
105
- * @title: 根据营业日时间格式化时间
106
- * @description:
107
- * @param {any} state
108
- * @return {*}
109
- * @Author: WangHan
110
- * @Date: 2024-12-04 12:07
111
- */
112
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
113
- startDateTime: dayjs.Dayjs;
114
- endDateTime: dayjs.Dayjs;
115
- };
116
- export declare const formatDateTime: (start_date: any, end_date: any) => {
117
- value: dayjs.Dayjs;
118
- end_date: dayjs.Dayjs;
119
- };
120
- /**
121
- * @title: 初始化日期
122
- * @description:
123
- * @return {*}
124
- * @Author: WangHan
125
- * @Date: 2024-12-06 17:24
126
- */
127
- export declare const initDate: () => {
128
- value: dayjs.Dayjs;
129
- end_date: dayjs.Dayjs;
130
- };
131
- /**
132
- * @title: 是否有预约商品
133
- * @description:
134
- * @return {*}
135
- * @Author: WangHan
136
- * @Date: 2024-12-12 15:47
137
- */
138
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
139
- /**
140
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
141
- * @description:
142
- * @param {any} lists
143
- * @return {*}
144
- * @Author: WangHan
145
- * @Date: 2024-12-13 16:44
146
- */
147
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
148
- /**
149
- * @title: 格式化表单数据
150
- * @description:
151
- * @param {any} state
152
- * @return {*}
153
- * @Author: WangHan
154
- * @Date: 2024-12-30 22:19
155
- */
156
- export declare const getPets: (state: any) => any;
157
- /**
158
- * @title: 得出预约商品
159
- * @description:
160
- * @param {any} state
161
- * @return {*}
162
- * @Author: WangHan
163
- * @Date: 2024-12-30 22:26
164
- */
165
- export declare const getAppointmentService: (state: any) => any;
166
- /**
167
- * @title: 判断是否打开删除宠物弹窗
168
- * @description:
169
- * @param {any} state
170
- * @param {any} newVal
171
- * @return {*}
172
- * @Author: WangHan
173
- * @Date: 2024-12-16 16:12
174
- */
175
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
176
- ids: any;
177
- lists: any;
178
- };
179
- /**
180
- * @title: 当前选中的表单id
181
- * @description:
182
- * @param {any} state
183
- * @return {*}
184
- * @Author: WangHan
185
- * @Date: 2024-12-17 14:40
186
- */
187
- export declare const holderId: (state: any) => number;
188
- /**
189
- * @title: 更新套餐的价格
190
- * @description:
191
- * @param {any} currentValue
192
- * @param {any} newBundleData
193
- * @return {*}
194
- * @Author: WangHan
195
- * @Date: 2024-12-31 15:16
196
- */
197
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
198
- /**
199
- * @title: 更新预约商品报价单
200
- * @description:
201
- * @param {any} state
202
- * @param {any} cacheItem
203
- * @return {*}
204
- * @Author: WangHan
205
- * @Date: 2024-12-25 16:41
206
- */
207
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
208
- multiDayPrices: any;
209
- price: number;
210
- }>;
211
- /**
212
- * @title: 更新普通商品报价单价格
213
- * @description:
214
- * @param {any} state
215
- * @return {*}
216
- * @Author: WangHan
217
- * @Date: 2024-12-24 11:32
218
- */
219
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,219 +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
- export declare const genRowKey: (key: string) => string;
62
- /**
63
- * @title: 格式化商品数据
64
- * @description:
65
- * @param {any} lists
66
- * @return {*}
67
- * @Author: WangHan
68
- * @Date: 2024-11-29 17:36
69
- */
70
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => any[];
71
- /**
72
- * @title: 禁用日期
73
- * @description:
74
- * @param {any} current
75
- * @param {string} position
76
- * @param {any} startDate
77
- * @return {*}
78
- * @Author: WangHan
79
- * @Date: 2024-12-03 17:51
80
- */
81
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
82
- /**
83
- * @title: 是否是跨日预约
84
- * @description:
85
- * @param {any} state
86
- * @return {*}
87
- * @Author: WangHan
88
- * @Date: 2024-12-04 09:49
89
- */
90
- export declare const isDayBooking: (state: any) => boolean;
91
- export declare const isDaysBooking: (state: any) => boolean;
92
- export declare const isEventBooking: (state: any) => boolean;
93
- export declare const isAppointmentProduct: (item: any) => boolean;
94
- /**
95
- * @title: 是否是terminal上的跨日预约
96
- * @description:
97
- * @param {any} state
98
- * @return {*}
99
- * @Author: WangHan
100
- * @Date: 2024-12-04 15:31
101
- */
102
- export declare const isTerminalDayBooking: (state: any) => any;
103
- export declare const formatDayDate: (_extend: any) => any;
104
- /**
105
- * @title: 根据营业日时间格式化时间
106
- * @description:
107
- * @param {any} state
108
- * @return {*}
109
- * @Author: WangHan
110
- * @Date: 2024-12-04 12:07
111
- */
112
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
113
- startDateTime: dayjs.Dayjs;
114
- endDateTime: dayjs.Dayjs;
115
- };
116
- export declare const formatDateTime: (start_date: any, end_date: any) => {
117
- value: dayjs.Dayjs;
118
- end_date: dayjs.Dayjs;
119
- };
120
- /**
121
- * @title: 初始化日期
122
- * @description:
123
- * @return {*}
124
- * @Author: WangHan
125
- * @Date: 2024-12-06 17:24
126
- */
127
- export declare const initDate: () => {
128
- value: dayjs.Dayjs;
129
- end_date: dayjs.Dayjs;
130
- };
131
- /**
132
- * @title: 是否有预约商品
133
- * @description:
134
- * @return {*}
135
- * @Author: WangHan
136
- * @Date: 2024-12-12 15:47
137
- */
138
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
139
- /**
140
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
141
- * @description:
142
- * @param {any} lists
143
- * @return {*}
144
- * @Author: WangHan
145
- * @Date: 2024-12-13 16:44
146
- */
147
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
148
- /**
149
- * @title: 格式化表单数据
150
- * @description:
151
- * @param {any} state
152
- * @return {*}
153
- * @Author: WangHan
154
- * @Date: 2024-12-30 22:19
155
- */
156
- export declare const getPets: (state: any) => any;
157
- /**
158
- * @title: 得出预约商品
159
- * @description:
160
- * @param {any} state
161
- * @return {*}
162
- * @Author: WangHan
163
- * @Date: 2024-12-30 22:26
164
- */
165
- export declare const getAppointmentService: (state: any) => any;
166
- /**
167
- * @title: 判断是否打开删除宠物弹窗
168
- * @description:
169
- * @param {any} state
170
- * @param {any} newVal
171
- * @return {*}
172
- * @Author: WangHan
173
- * @Date: 2024-12-16 16:12
174
- */
175
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
176
- ids: any;
177
- lists: any;
178
- };
179
- /**
180
- * @title: 当前选中的表单id
181
- * @description:
182
- * @param {any} state
183
- * @return {*}
184
- * @Author: WangHan
185
- * @Date: 2024-12-17 14:40
186
- */
187
- export declare const holderId: (state: any) => number;
188
- /**
189
- * @title: 更新套餐的价格
190
- * @description:
191
- * @param {any} currentValue
192
- * @param {any} newBundleData
193
- * @return {*}
194
- * @Author: WangHan
195
- * @Date: 2024-12-31 15:16
196
- */
197
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
198
- /**
199
- * @title: 更新预约商品报价单
200
- * @description:
201
- * @param {any} state
202
- * @param {any} cacheItem
203
- * @return {*}
204
- * @Author: WangHan
205
- * @Date: 2024-12-25 16:41
206
- */
207
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
208
- multiDayPrices: any;
209
- price: number;
210
- }>;
211
- /**
212
- * @title: 更新普通商品报价单价格
213
- * @description:
214
- * @param {any} state
215
- * @return {*}
216
- * @Author: WangHan
217
- * @Date: 2024-12-24 11:32
218
- */
219
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;