@pisell/private-materials 6.1.23 → 6.1.25

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 (176) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/booking/components/footer/index.d.ts +1 -0
  10. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  11. package/es/components/booking/info2/index.js +2 -2
  12. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  13. package/es/components/eftposPay/amount.d.ts +1 -1
  14. package/es/components/eftposPay/device.d.ts +1 -1
  15. package/es/components/eftposPay/store/index.d.ts +2 -2
  16. package/es/components/ticketBooking/index.d.ts +1 -0
  17. package/es/components/ticketBooking/index.js +4 -2
  18. package/es/components/walletList/index.js +1 -3
  19. package/es/hooks/useEngineContext.js +4 -1
  20. package/lib/components/booking/components/footer/index.d.ts +1 -0
  21. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  22. package/lib/components/booking/info2/index.js +5 -7
  23. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  24. package/lib/components/eftposPay/amount.d.ts +1 -1
  25. package/lib/components/eftposPay/device.d.ts +1 -1
  26. package/lib/components/eftposPay/store/index.d.ts +2 -2
  27. package/lib/components/ticketBooking/index.d.ts +1 -0
  28. package/lib/components/ticketBooking/index.js +2 -2
  29. package/lib/hooks/useEngineContext.js +4 -3
  30. package/package.json +12 -12
  31. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  32. package/es/components/booking/components/voucher/index.d.ts +0 -3
  33. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  34. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  35. package/es/components/booking/info/client/index.d.ts +0 -4
  36. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  37. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  38. package/es/components/booking/info/index.d.ts +0 -3
  39. package/es/components/booking/info/service/Lists.d.ts +0 -2
  40. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  41. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
  42. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  43. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  44. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  45. package/es/components/booking/info/service2/Lists.d.ts +0 -2
  46. package/es/components/booking/info/service2/utils.d.ts +0 -251
  47. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  48. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  49. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  50. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  51. package/es/components/booking/info2/service/index.d.ts +0 -4
  52. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
  53. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  54. package/es/components/booking/locales.d.ts +0 -906
  55. package/es/components/booking/materiels/duration/index.d.ts +0 -13
  56. package/es/components/booking/materiels/startTime/index.d.ts +0 -9
  57. package/es/components/booking/utils.d.ts +0 -174
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  59. package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
  60. package/es/components/pay/toB/components/Card/index.d.ts +0 -7
  61. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
  62. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
  63. package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
  64. package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
  65. package/es/components/pay/toB/components/Content/index.d.ts +0 -4
  66. package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
  67. package/es/components/pay/toB/components/index.d.ts +0 -5
  68. package/es/components/pay/toB/hooks.d.ts +0 -12
  69. package/es/components/pay/toB/index.d.ts +0 -3
  70. package/es/components/pay/toB/locales.d.ts +0 -54
  71. package/es/components/pay/toB/store/context.d.ts +0 -3
  72. package/es/components/pay/toB/store/hooks.d.ts +0 -15
  73. package/es/components/pay/toB/store/index.d.ts +0 -3
  74. package/es/components/pay/toB/store/provider.d.ts +0 -4
  75. package/es/components/pay/toB/store/utils.d.ts +0 -13
  76. package/es/components/pay/toB/types/index.d.ts +0 -1
  77. package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  81. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  82. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  83. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
  84. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  85. package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
  86. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  87. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  88. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  89. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  90. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  91. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  92. package/es/components/ticketBooking/locales.d.ts +0 -180
  93. package/es/components/ticketBooking/serve.d.ts +0 -288
  94. package/es/components/ticketBooking/utils/index.d.ts +0 -62
  95. package/es/components/walletList/index.d.ts +0 -28
  96. package/es/hooks/useEngineContext.d.ts +0 -10
  97. package/es/plus/clientCard/locales.d.ts +0 -18
  98. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  99. package/es/plus/clinetSearch/index.d.ts +0 -18
  100. package/es/pro/comprehensiveSearch/index.d.ts +0 -9
  101. package/es/pro/comprehensiveSearch/types.d.ts +0 -31
  102. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  103. package/es/pro/skuDetailModal/index.d.ts +0 -5
  104. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  105. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  106. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  107. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  108. package/lib/components/booking/info/client/index.d.ts +0 -4
  109. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  110. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  111. package/lib/components/booking/info/index.d.ts +0 -3
  112. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  113. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  114. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
  115. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  116. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  117. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  118. package/lib/components/booking/info/service2/Lists.d.ts +0 -2
  119. package/lib/components/booking/info/service2/utils.d.ts +0 -251
  120. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  121. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  122. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  123. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  124. package/lib/components/booking/info2/service/index.d.ts +0 -4
  125. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
  126. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  127. package/lib/components/booking/locales.d.ts +0 -906
  128. package/lib/components/booking/materiels/duration/index.d.ts +0 -13
  129. package/lib/components/booking/materiels/startTime/index.d.ts +0 -9
  130. package/lib/components/booking/utils.d.ts +0 -174
  131. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  132. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
  133. package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
  134. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
  135. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
  136. package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
  137. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
  138. package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
  139. package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
  140. package/lib/components/pay/toB/components/index.d.ts +0 -5
  141. package/lib/components/pay/toB/hooks.d.ts +0 -12
  142. package/lib/components/pay/toB/index.d.ts +0 -3
  143. package/lib/components/pay/toB/locales.d.ts +0 -54
  144. package/lib/components/pay/toB/store/context.d.ts +0 -3
  145. package/lib/components/pay/toB/store/hooks.d.ts +0 -15
  146. package/lib/components/pay/toB/store/index.d.ts +0 -3
  147. package/lib/components/pay/toB/store/provider.d.ts +0 -4
  148. package/lib/components/pay/toB/store/utils.d.ts +0 -13
  149. package/lib/components/pay/toB/types/index.d.ts +0 -1
  150. package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
  151. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  152. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  153. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  154. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  155. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  156. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
  157. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  158. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
  159. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  160. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  161. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  162. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  163. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  164. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  165. package/lib/components/ticketBooking/locales.d.ts +0 -180
  166. package/lib/components/ticketBooking/serve.d.ts +0 -288
  167. package/lib/components/ticketBooking/utils/index.d.ts +0 -62
  168. package/lib/components/walletList/index.d.ts +0 -28
  169. package/lib/hooks/useEngineContext.d.ts +0 -10
  170. package/lib/plus/clientCard/locales.d.ts +0 -18
  171. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  172. package/lib/plus/clinetSearch/index.d.ts +0 -18
  173. package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
  174. package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
  175. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  176. package/lib/pro/skuDetailModal/index.d.ts +0 -5
@@ -1,251 +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) => {
71
- _origin: any;
72
- id: any;
73
- _id: any;
74
- name: any;
75
- title: any;
76
- price: any;
77
- total: number;
78
- origin_total: number;
79
- num: any;
80
- image: any;
81
- isShowNote: boolean;
82
- note: any;
83
- like_status: any;
84
- bundle: any;
85
- options: any;
86
- errorMessage: string;
87
- product_option_string: any;
88
- discount_reason: any;
89
- resource_id: any;
90
- relation_form_name: any;
91
- holder_title: any;
92
- start_date: any;
93
- end_date: any;
94
- holder_id: any;
95
- isNormalProduct: boolean;
96
- isCustomItem: any;
97
- vouchersApplicable: any;
98
- locale: any;
99
- symbol: any;
100
- relation_products: any;
101
- items: any[];
102
- }[];
103
- /**
104
- * @title: 禁用日期
105
- * @description:
106
- * @param {any} current
107
- * @param {string} position
108
- * @param {any} startDate
109
- * @return {*}
110
- * @Author: WangHan
111
- * @Date: 2024-12-03 17:51
112
- */
113
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
114
- /**
115
- * @title: 是否是跨日预约
116
- * @description:
117
- * @param {any} state
118
- * @return {*}
119
- * @Author: WangHan
120
- * @Date: 2024-12-04 09:49
121
- */
122
- export declare const isDayBooking: (state: any) => boolean;
123
- export declare const isDaysBooking: (state: any) => boolean;
124
- export declare const isEventBooking: (state: any) => boolean;
125
- export declare const isAppointmentProduct: (item: any) => boolean;
126
- /**
127
- * @title: 是否是terminal上的跨日预约
128
- * @description:
129
- * @param {any} state
130
- * @return {*}
131
- * @Author: WangHan
132
- * @Date: 2024-12-04 15:31
133
- */
134
- export declare const isTerminalDayBooking: (state: any) => any;
135
- export declare const formatDayDate: (_extend: any) => any;
136
- /**
137
- * @title: 根据营业日时间格式化时间
138
- * @description:
139
- * @param {any} state
140
- * @return {*}
141
- * @Author: WangHan
142
- * @Date: 2024-12-04 12:07
143
- */
144
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
145
- startDateTime: dayjs.Dayjs;
146
- endDateTime: dayjs.Dayjs;
147
- };
148
- export declare const formatDateTime: (start_date: any, end_date: any) => {
149
- value: dayjs.Dayjs;
150
- end_date: dayjs.Dayjs;
151
- };
152
- /**
153
- * @title: 初始化日期
154
- * @description:
155
- * @return {*}
156
- * @Author: WangHan
157
- * @Date: 2024-12-06 17:24
158
- */
159
- export declare const initDate: () => {
160
- value: dayjs.Dayjs;
161
- end_date: dayjs.Dayjs;
162
- };
163
- /**
164
- * @title: 是否有预约商品
165
- * @description:
166
- * @return {*}
167
- * @Author: WangHan
168
- * @Date: 2024-12-12 15:47
169
- */
170
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
171
- /**
172
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
173
- * @description:
174
- * @param {any} lists
175
- * @return {*}
176
- * @Author: WangHan
177
- * @Date: 2024-12-13 16:44
178
- */
179
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
180
- /**
181
- * @title: 格式化表单数据
182
- * @description:
183
- * @param {any} state
184
- * @return {*}
185
- * @Author: WangHan
186
- * @Date: 2024-12-30 22:19
187
- */
188
- export declare const getPets: (state: any) => any;
189
- /**
190
- * @title: 得出预约商品
191
- * @description:
192
- * @param {any} state
193
- * @return {*}
194
- * @Author: WangHan
195
- * @Date: 2024-12-30 22:26
196
- */
197
- export declare const getAppointmentService: (state: any) => any;
198
- /**
199
- * @title: 判断是否打开删除宠物弹窗
200
- * @description:
201
- * @param {any} state
202
- * @param {any} newVal
203
- * @return {*}
204
- * @Author: WangHan
205
- * @Date: 2024-12-16 16:12
206
- */
207
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
208
- ids: any;
209
- lists: any;
210
- };
211
- /**
212
- * @title: 当前选中的表单id
213
- * @description:
214
- * @param {any} state
215
- * @return {*}
216
- * @Author: WangHan
217
- * @Date: 2024-12-17 14:40
218
- */
219
- export declare const holderId: (state: any) => number;
220
- /**
221
- * @title: 更新套餐的价格
222
- * @description:
223
- * @param {any} currentValue
224
- * @param {any} newBundleData
225
- * @return {*}
226
- * @Author: WangHan
227
- * @Date: 2024-12-31 15:16
228
- */
229
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
230
- /**
231
- * @title: 更新预约商品报价单
232
- * @description:
233
- * @param {any} state
234
- * @param {any} cacheItem
235
- * @return {*}
236
- * @Author: WangHan
237
- * @Date: 2024-12-25 16:41
238
- */
239
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
240
- multiDayPrices: any;
241
- price: number;
242
- }>;
243
- /**
244
- * @title: 更新普通商品报价单价格
245
- * @description:
246
- * @param {any} state
247
- * @return {*}
248
- * @Author: WangHan
249
- * @Date: 2024-12-24 11:32
250
- */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { ClientCardRef } from './types';
3
- import './index.less';
4
- export type { ClientData } from './types';
5
- declare const CartClientCard: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ClientCardRef>>;
6
- export default CartClientCard;
@@ -1,11 +0,0 @@
1
- import { PisellDrawerProps } from '../../../components/drawer';
2
- import '../../../info/service/addService/index.less';
3
- interface AddServiceProps {
4
- onEdit: any;
5
- dispatch?: any;
6
- state?: any;
7
- drawerProps?: PisellDrawerProps;
8
- renderMode?: 'current' | 'drawer';
9
- }
10
- declare const Info: (props: AddServiceProps) => JSX.Element;
11
- export default Info;
@@ -1,98 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const getUsableTime: (cacheItem: any) => any;
3
- export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
- startDate: dayjs.Dayjs;
5
- usableTime: any;
6
- duration: string | number | {
7
- type: string;
8
- value: number;
9
- };
10
- locale: string;
11
- slice: any;
12
- selectProps: {
13
- size: string;
14
- };
15
- };
16
- /**
17
- * @title: 灵活时长选项
18
- * @description:
19
- * @param {*} useMemo
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-02-23 10:10
23
- */
24
- export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
- label: any;
26
- value: any;
27
- } | null;
28
- export declare const getTimeSlices: ({ state }: any) => {
29
- timeSlices: {
30
- label: string;
31
- value: string;
32
- }[];
33
- };
34
- /**
35
- * @title: 时间切片
36
- * @description:
37
- * @return {*}
38
- * @Author: zhiwei.Wang
39
- * @Date: 2024-01-09 13:37
40
- */
41
- export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
- timeSlices: {
43
- label: string;
44
- value: string;
45
- }[];
46
- durationSlicesBasedOnTime: {
47
- label: string;
48
- value: number;
49
- }[];
50
- };
51
- /**
52
- * @title: 获取资源列表
53
- * @description:
54
- * @return {*}
55
- * @Author: zhiwei.Wang
56
- * @Date: 2024-01-09 13:38
57
- */
58
- export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
- list: any;
60
- maps: any;
61
- };
62
- export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
- /**
64
- * @title: 设置默认容量
65
- * @description:
66
- * @param {any} param1
67
- * @return {*}
68
- * @Author: zhiwei.Wang
69
- * @Date: 2024-09-19 20:26
70
- */
71
- export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
- /**
73
- * @title: 将商品内关联的资源id还原成数据
74
- * @description:
75
- * @param {any} resourcesOriginMap
76
- * @param {any} cacheItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-09-19 20:23
80
- */
81
- export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
- /**
83
- * @title: 预生成服务的 extend
84
- * @description:
85
- * @param {any} param1
86
- * @return {*}
87
- * @Author: zhiwei.Wang
88
- * @Date: 2024-06-01 13:25
89
- */
90
- export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
91
- /**
92
- * @title: 格式化服务列表
93
- * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
94
- * 使用with resourceRelation后 返回的resource_relation是实时数据
95
- * 这里做一次转换
96
- * @param list
97
- */
98
- export declare const transServiceList: (list: any[]) => any[];
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import '../../info/service/index.less';
3
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
- export default _default;
@@ -1,5 +0,0 @@
1
- import './index.less';
2
- declare const ServiceList: ({ onEdit }: {
3
- onEdit: any;
4
- }) => JSX.Element;
5
- export default ServiceList;
@@ -1,36 +0,0 @@
1
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
- export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
3
- /**
4
- * @title: 查找是否有可用的time
5
- * @description:
6
- * @param {any} resourceItem
7
- * @return {*}
8
- * @Author: zhiwei.Wang
9
- * @Date: 2024-01-09 13:57
10
- */
11
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
- export declare const getErrorList: (resource: any, cacheItem: any) => {
13
- label: any;
14
- type: string;
15
- }[];
16
- /**
17
- * @title: 格式化资源, 添加自定义参数
18
- * @description:
19
- * @param {any} resourceItem
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-01-09 13:40
23
- */
24
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
- export declare const getAppointmentTimingPreference: (state: any) => any;
26
- /**
27
- * @title: 创建服务的开始时间和结束时间
28
- * @description:
29
- * @param {any} state
30
- * @param {any} item
31
- * @return {*}
32
- * @Author: zhiwei.Wang
33
- * @Date: 2024-01-26 14:09
34
- */
35
- export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
36
- export declare const getIsNoSpecAndPackage: (product: any) => boolean;