@pisell/private-materials 3.3.51 → 3.3.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 (211) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/preview.js +8 -8
  3. package/build/lowcode/render/default/view.css +1 -1
  4. package/build/lowcode/render/default/view.js +7 -7
  5. package/build/lowcode/view.css +1 -1
  6. package/build/lowcode/view.js +6 -6
  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/Resource/index.js +5 -44
  14. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/hooks.js +177 -218
  18. package/es/components/appointmentBooking/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/locales.d.ts +0 -3
  20. package/es/components/appointmentBooking/locales.js +0 -9
  21. package/es/components/booking/components/TabProduct/productItem/index.js +2 -14
  22. package/es/components/booking/components/drawer/index.js +2 -4
  23. package/es/components/booking/components/footer/index.d.ts +0 -1
  24. package/es/components/booking/components/voucher/index.js +17 -25
  25. package/es/components/booking/forms/footer.d.ts +1 -0
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  27. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  28. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  29. package/es/components/booking/info/client/index.js +1 -2
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  31. package/es/components/booking/info/date/index.d.ts +0 -1
  32. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  34. package/es/components/booking/info/index.d.ts +0 -1
  35. package/es/components/booking/info/notes/index.d.ts +0 -1
  36. package/es/components/booking/info/pet/index.js +0 -3
  37. package/es/components/booking/info/service/Lists.d.ts +0 -1
  38. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  39. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  40. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  41. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  42. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  43. package/es/components/booking/info/service2/utils.js +27 -27
  44. package/es/components/booking/info2/index.js +3 -3
  45. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  46. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  47. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  48. package/es/components/booking/info2/service/addService/utils.js +2 -5
  49. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  50. package/es/components/booking/info2/service/editService/index.js +0 -1
  51. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  52. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  53. package/es/components/eftposPay/amount.d.ts +1 -1
  54. package/es/components/eftposPay/device.d.ts +1 -1
  55. package/es/components/eftposPay/hooks.d.ts +2 -2
  56. package/es/components/eftposPay/store/index.d.ts +5 -5
  57. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  60. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +4 -23
  74. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  75. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  77. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  78. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  79. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  80. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  81. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -1
  82. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +6 -18
  83. package/es/components/productExtension/index.d.ts +0 -1
  84. package/es/components/productSelect/components/TabProduct/index.js +10 -28
  85. package/es/components/productSelect/components/productGroup/index.js +7 -20
  86. package/es/components/productSelect/components/productGroup/index.less +1 -14
  87. package/es/components/productSelect/index.less +2 -1
  88. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  89. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  90. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  91. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  92. package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -16
  93. package/es/components/ticketBooking/components/addServiceVariant/index.less +0 -10
  94. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -3
  95. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  96. package/es/components/ticketBooking/index.js +1 -2
  97. package/es/components/ticketBooking/locales.d.ts +0 -3
  98. package/es/components/ticketBooking/locales.js +3 -12
  99. package/es/components/ticketBooking/utils/index.d.ts +1 -5
  100. package/es/components/ticketBooking/utils/index.js +3 -35
  101. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  102. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  103. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  104. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  105. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  106. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  107. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  108. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  109. package/lib/components/appointmentBooking/components/Resource/index.js +5 -44
  110. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  111. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  112. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  113. package/lib/components/appointmentBooking/hooks.js +3 -12
  114. package/lib/components/appointmentBooking/index.d.ts +0 -1
  115. package/lib/components/appointmentBooking/locales.d.ts +0 -3
  116. package/lib/components/appointmentBooking/locales.js +0 -3
  117. package/lib/components/booking/components/TabProduct/productItem/index.js +1 -8
  118. package/lib/components/booking/components/drawer/index.js +2 -2
  119. package/lib/components/booking/components/footer/index.d.ts +0 -1
  120. package/lib/components/booking/components/voucher/index.js +27 -31
  121. package/lib/components/booking/forms/footer.d.ts +1 -0
  122. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  123. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  124. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  125. package/lib/components/booking/info/client/index.js +1 -2
  126. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  127. package/lib/components/booking/info/date/index.d.ts +0 -1
  128. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  129. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  130. package/lib/components/booking/info/index.d.ts +0 -1
  131. package/lib/components/booking/info/notes/index.d.ts +0 -1
  132. package/lib/components/booking/info/pet/index.js +0 -3
  133. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  134. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  135. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  136. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  137. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  138. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  139. package/lib/components/booking/info/service2/utils.js +2 -2
  140. package/lib/components/booking/info2/index.js +4 -7
  141. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  142. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  143. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  144. package/lib/components/booking/info2/service/addService/utils.js +2 -4
  145. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  146. package/lib/components/booking/info2/service/editService/index.js +0 -1
  147. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  148. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  149. package/lib/components/eftposPay/amount.d.ts +1 -1
  150. package/lib/components/eftposPay/device.d.ts +1 -1
  151. package/lib/components/eftposPay/hooks.d.ts +2 -2
  152. package/lib/components/eftposPay/store/index.d.ts +5 -5
  153. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  154. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  155. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  156. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  157. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  158. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  159. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  160. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  161. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  162. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  163. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  165. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +8 -18
  170. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  171. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  172. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  173. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  174. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  175. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  176. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  177. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -1
  178. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +1 -8
  179. package/lib/components/productExtension/index.d.ts +0 -1
  180. package/lib/components/productSelect/components/TabProduct/index.js +6 -19
  181. package/lib/components/productSelect/components/productGroup/index.js +4 -24
  182. package/lib/components/productSelect/components/productGroup/index.less +1 -14
  183. package/lib/components/productSelect/index.less +2 -1
  184. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  185. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  186. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  187. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  188. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +14 -25
  189. package/lib/components/ticketBooking/components/addServiceVariant/index.less +0 -10
  190. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -3
  191. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  192. package/lib/components/ticketBooking/index.js +1 -2
  193. package/lib/components/ticketBooking/locales.d.ts +0 -3
  194. package/lib/components/ticketBooking/locales.js +3 -6
  195. package/lib/components/ticketBooking/utils/index.d.ts +1 -5
  196. package/lib/components/ticketBooking/utils/index.js +3 -35
  197. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  198. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  199. package/package.json +4 -4
  200. package/es/components/appointmentBooking/assets/resource.svg +0 -1
  201. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  202. package/es/components/productSelect/components/TabProduct/tabs/index.js +0 -243
  203. package/es/components/productSelect/components/TabProduct/tabs/index.less +0 -126
  204. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  205. package/es/components/productSelect/components/pisellPriceText/index.js +0 -43
  206. package/lib/components/appointmentBooking/assets/resource.svg +0 -1
  207. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  208. package/lib/components/productSelect/components/TabProduct/tabs/index.js +0 -202
  209. package/lib/components/productSelect/components/TabProduct/tabs/index.less +0 -126
  210. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  211. package/lib/components/productSelect/components/pisellPriceText/index.js +0 -72
@@ -219,7 +219,6 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
219
219
  return;
220
220
  }
221
221
  // 2. 插入表单步骤
222
- var preKey = '';
223
222
  currentSelectedResources === null || currentSelectedResources === void 0 || currentSelectedResources.forEach(function (cart) {
224
223
  var _selectedResource$ren, _selectedResource$ren2;
225
224
  var selectedResource = cart === null || cart === void 0 ? void 0 : cart.currentSelectedResource;
@@ -235,9 +234,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
235
234
  appointmentBooking.addStep({
236
235
  key: formKey,
237
236
  description: description
238
- }, preKey || beforeKey);
239
- // 如果有同时有多个预约表单,则需要记录下当前的表单key,用于后续插入表单步骤
240
- preKey = formKey;
237
+ }, beforeKey);
241
238
  } else {
242
239
  appointmentBooking.removeStep(formKey);
243
240
  }
@@ -279,87 +276,49 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
279
276
  var renderItem = (_selectedResource === null || _selectedResource === void 0 ? void 0 : _selectedResource.renderItem) || {};
280
277
 
281
278
  // 监测holder数据
282
- var checkHolder = /*#__PURE__*/function () {
283
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
284
- var cartLists, newCarts, appoimentCarts, _checkAndGoNext, hasError;
285
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
286
- while (1) switch (_context2.prev = _context2.next) {
287
- case 0:
288
- setLoading(false);
279
+ var checkHolder = function checkHolder() {
280
+ setLoading(false);
289
281
 
290
- // 零售订单不需要验证holder
291
- if (!(isRetailTemplate || appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts())) {
292
- _context2.next = 3;
293
- break;
294
- }
295
- return _context2.abrupt("return", appointmentBooking.next());
296
- case 3:
297
- cartLists = carts || [];
298
- if (carts !== null && carts !== void 0 && carts.length) {
299
- _context2.next = 11;
300
- break;
301
- }
302
- _context2.next = 7;
303
- return appointmentBooking.getCart();
304
- case 7:
305
- newCarts = _context2.sent;
306
- cartLists = newCarts || [];
307
- _context2.next = 12;
308
- break;
309
- case 11:
310
- cartLists = carts || [];
311
- case 12:
312
- appoimentCarts = cartLists.filter(function (n) {
313
- return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
314
- });
315
- _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts), hasError = _checkAndGoNext.hasError;
316
- setIsErrorHolder(hasError);
317
- if (!hasError) {
318
- _context2.next = 17;
319
- break;
320
- }
321
- return _context2.abrupt("return");
322
- case 17:
323
- if (!(renderItem !== null && renderItem !== void 0 && renderItem.policy_id)) {
324
- _context2.next = 21;
325
- break;
326
- }
327
- openPolicy({
328
- id: renderItem === null || renderItem === void 0 ? void 0 : renderItem.policy_id
329
- }, function () {
330
- return appointmentBooking.next();
331
- });
332
- _context2.next = 22;
333
- break;
334
- case 21:
335
- return _context2.abrupt("return", appointmentBooking.next());
336
- case 22:
337
- case "end":
338
- return _context2.stop();
339
- }
340
- }, _callee2);
341
- }));
342
- return function checkHolder() {
343
- return _ref4.apply(this, arguments);
344
- };
345
- }();
282
+ // 零售订单不需要验证holder
283
+ if (isRetailTemplate || appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts()) {
284
+ return appointmentBooking.next();
285
+ }
286
+ var appoimentCarts = carts.filter(function (n) {
287
+ return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
288
+ });
289
+ var _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts),
290
+ hasError = _checkAndGoNext.hasError;
291
+ setIsErrorHolder(hasError);
292
+ if (hasError) {
293
+ return;
294
+ }
295
+ if (!!(renderItem !== null && renderItem !== void 0 && renderItem.policy_id)) {
296
+ openPolicy({
297
+ id: renderItem === null || renderItem === void 0 ? void 0 : renderItem.policy_id
298
+ }, function () {
299
+ return appointmentBooking.next();
300
+ });
301
+ } else {
302
+ return appointmentBooking.next();
303
+ }
304
+ };
346
305
 
347
306
  // 检测是否登录
348
307
  var checkLogin = /*#__PURE__*/function () {
349
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
308
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
350
309
  var accountLists;
351
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
352
- while (1) switch (_context3.prev = _context3.next) {
310
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
311
+ while (1) switch (_context2.prev = _context2.next) {
353
312
  case 0:
354
313
  if (isLogin) {
355
- _context3.next = 7;
314
+ _context2.next = 7;
356
315
  break;
357
316
  }
358
- _context3.next = 3;
317
+ _context2.next = 3;
359
318
  return appointmentBooking.getAccounts();
360
319
  case 3:
361
- accountLists = _context3.sent;
362
- return _context3.abrupt("return", openLoginModal({
320
+ accountLists = _context2.sent;
321
+ return _context2.abrupt("return", openLoginModal({
363
322
  callback: function callback(status) {
364
323
  if (status === 'success') {
365
324
  if (!isFormSubject) {
@@ -382,15 +341,15 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
382
341
  }
383
342
  }));
384
343
  case 7:
385
- return _context3.abrupt("return", checkHolder());
344
+ return _context2.abrupt("return", checkHolder());
386
345
  case 8:
387
346
  case "end":
388
- return _context3.stop();
347
+ return _context2.stop();
389
348
  }
390
- }, _callee3);
349
+ }, _callee2);
391
350
  }));
392
351
  return function checkLogin() {
393
- return _ref5.apply(this, arguments);
352
+ return _ref4.apply(this, arguments);
394
353
  };
395
354
  }();
396
355
 
@@ -434,81 +393,81 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
434
393
  * @Date: 2025-04-15 11:12
435
394
  */
436
395
  export var useAppointmentBookingProduct = function useAppointmentBookingProduct() {
437
- var _ref6 = useAppointmentBookingContext(),
438
- appointmentBooking = _ref6.appointmentBooking;
439
- var _ref7 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
440
- productModuleParams = _ref7.productModuleParams;
441
- var _ref8 = productModuleParams || {},
442
- bookingProcess = _ref8.bookingProcess;
396
+ var _ref5 = useAppointmentBookingContext(),
397
+ appointmentBooking = _ref5.appointmentBooking;
398
+ var _ref6 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
399
+ productModuleParams = _ref6.productModuleParams;
400
+ var _ref7 = productModuleParams || {},
401
+ bookingProcess = _ref7.bookingProcess;
443
402
 
444
403
  // 获取商品列表
445
404
  var getProducts = /*#__PURE__*/function () {
446
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
447
- var _dates$, dates, _ref10, _productModuleParams, _productList, _ref11, productModuleParams, productList;
448
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
449
- while (1) switch (_context4.prev = _context4.next) {
405
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
406
+ var _dates$, dates, _ref9, _productModuleParams, _productList, _ref10, productModuleParams, productList;
407
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
408
+ while (1) switch (_context3.prev = _context3.next) {
450
409
  case 0:
451
410
  if (!(bookingProcess === 'date_first')) {
452
- _context4.next = 11;
411
+ _context3.next = 11;
453
412
  break;
454
413
  }
455
- _context4.next = 3;
414
+ _context3.next = 3;
456
415
  return appointmentBooking.getDateRange();
457
416
  case 3:
458
- dates = _context4.sent;
417
+ dates = _context3.sent;
459
418
  if (!(!dates || !dates.length)) {
460
- _context4.next = 6;
419
+ _context3.next = 6;
461
420
  break;
462
421
  }
463
- return _context4.abrupt("return");
422
+ return _context3.abrupt("return");
464
423
  case 6:
465
- _ref10 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, _productModuleParams = _ref10.productModuleParams;
466
- _context4.next = 9;
424
+ _ref9 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, _productModuleParams = _ref9.productModuleParams;
425
+ _context3.next = 9;
467
426
  return appointmentBooking.loadProductByScheduleDate(_objectSpread({
468
427
  date: (_dates$ = dates[0]) === null || _dates$ === void 0 ? void 0 : _dates$.date
469
428
  }, _productModuleParams));
470
429
  case 9:
471
- _productList = _context4.sent;
472
- return _context4.abrupt("return", _productList);
430
+ _productList = _context3.sent;
431
+ return _context3.abrupt("return", _productList);
473
432
  case 11:
474
433
  // 先选商品
475
- _ref11 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, productModuleParams = _ref11.productModuleParams;
476
- _context4.next = 14;
434
+ _ref10 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, productModuleParams = _ref10.productModuleParams;
435
+ _context3.next = 14;
477
436
  return appointmentBooking.loadProducts(productModuleParams);
478
437
  case 14:
479
- productList = _context4.sent;
480
- return _context4.abrupt("return", productList);
438
+ productList = _context3.sent;
439
+ return _context3.abrupt("return", productList);
481
440
  case 16:
482
441
  case "end":
483
- return _context4.stop();
442
+ return _context3.stop();
484
443
  }
485
- }, _callee4);
444
+ }, _callee3);
486
445
  }));
487
446
  return function getProducts() {
488
- return _ref9.apply(this, arguments);
447
+ return _ref8.apply(this, arguments);
489
448
  };
490
449
  }();
491
450
 
492
451
  // 检测商品类型
493
452
  var checkProductType = /*#__PURE__*/function () {
494
- var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(productId) {
453
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(productId) {
495
454
  var result;
496
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
497
- while (1) switch (_context5.prev = _context5.next) {
455
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
456
+ while (1) switch (_context4.prev = _context4.next) {
498
457
  case 0:
499
- _context5.next = 2;
458
+ _context4.next = 2;
500
459
  return appointmentBooking.getProductTypeById(productId);
501
460
  case 2:
502
- result = _context5.sent;
503
- return _context5.abrupt("return", result);
461
+ result = _context4.sent;
462
+ return _context4.abrupt("return", result);
504
463
  case 4:
505
464
  case "end":
506
- return _context5.stop();
465
+ return _context4.stop();
507
466
  }
508
- }, _callee5);
467
+ }, _callee4);
509
468
  }));
510
469
  return function checkProductType(_x2) {
511
- return _ref12.apply(this, arguments);
470
+ return _ref11.apply(this, arguments);
512
471
  };
513
472
  }();
514
473
  return {
@@ -528,30 +487,30 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
528
487
  var _appointmentBooking$o2;
529
488
  var pisellOS = usePisellOS();
530
489
  var utils = contextUtils();
531
- var _ref13 = useAppointmentBookingContext(),
532
- appointmentBooking = _ref13.appointmentBooking,
533
- setCarts = _ref13.setCarts,
534
- setSummary = _ref13.setSummary,
535
- setIsAgreeDepositPolicy = _ref13.setIsAgreeDepositPolicy;
536
- var _ref14 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
537
- bookingSubject = _ref14.bookingSubject;
490
+ var _ref12 = useAppointmentBookingContext(),
491
+ appointmentBooking = _ref12.appointmentBooking,
492
+ setCarts = _ref12.setCarts,
493
+ setSummary = _ref12.setSummary,
494
+ setIsAgreeDepositPolicy = _ref12.setIsAgreeDepositPolicy;
495
+ var _ref13 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
496
+ bookingSubject = _ref13.bookingSubject;
538
497
  var getCartAndSummary = /*#__PURE__*/function () {
539
- var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
498
+ var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
540
499
  var _utils$storage2;
541
500
  var locale, symbol, carts, accountLists, newCarts, summary;
542
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
543
- while (1) switch (_context6.prev = _context6.next) {
501
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
502
+ while (1) switch (_context5.prev = _context5.next) {
544
503
  case 0:
545
504
  locale = (utils === null || utils === void 0 || (_utils$storage2 = utils.storage) === null || _utils$storage2 === void 0 ? void 0 : _utils$storage2.get('umi_locale')) || 'en-US';
546
505
  symbol = (utils === null || utils === void 0 ? void 0 : utils.getSymbolic()) || '$';
547
- _context6.next = 4;
506
+ _context5.next = 4;
548
507
  return appointmentBooking.getCart();
549
508
  case 4:
550
- carts = _context6.sent;
551
- _context6.next = 7;
509
+ carts = _context5.sent;
510
+ _context5.next = 7;
552
511
  return appointmentBooking.getAccounts();
553
512
  case 7:
554
- accountLists = _context6.sent;
513
+ accountLists = _context5.sent;
555
514
  newCarts = carts === null || carts === void 0 ? void 0 : carts.map(function (item) {
556
515
  var _item$duration;
557
516
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -568,10 +527,10 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
568
527
  });
569
528
  });
570
529
  setCarts(newCarts || []);
571
- _context6.next = 12;
530
+ _context5.next = 12;
572
531
  return appointmentBooking.getSummary();
573
532
  case 12:
574
- summary = _context6.sent;
533
+ summary = _context5.sent;
575
534
  setSummary(summary || {});
576
535
 
577
536
  // 清空勾选定金协议
@@ -580,26 +539,26 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
580
539
  }
581
540
  case 15:
582
541
  case "end":
583
- return _context6.stop();
542
+ return _context5.stop();
584
543
  }
585
- }, _callee6);
544
+ }, _callee5);
586
545
  }));
587
546
  return function getCartAndSummary() {
588
- return _ref15.apply(this, arguments);
547
+ return _ref14.apply(this, arguments);
589
548
  };
590
549
  }();
591
550
  useEffect(function () {
592
551
  getCartAndSummary();
593
- pisellOS.effects.on('appointmentBooking_cart:changed', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
594
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
595
- while (1) switch (_context7.prev = _context7.next) {
552
+ pisellOS.effects.on('appointmentBooking_cart:changed', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
553
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
554
+ while (1) switch (_context6.prev = _context6.next) {
596
555
  case 0:
597
556
  getCartAndSummary();
598
557
  case 1:
599
558
  case "end":
600
- return _context7.stop();
559
+ return _context6.stop();
601
560
  }
602
- }, _callee7);
561
+ }, _callee6);
603
562
  })));
604
563
  }, []);
605
564
  };
@@ -616,8 +575,8 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
616
575
  var utils = contextUtils();
617
576
  var isLogin = !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token));
618
577
  var openLoginModal = function openLoginModal(params) {
619
- var _ref17 = params || {},
620
- callback = _ref17.callback;
578
+ var _ref16 = params || {},
579
+ callback = _ref16.callback;
621
580
  utils.action({
622
581
  type: 'pisell1.login',
623
582
  data: {
@@ -648,69 +607,69 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
648
607
  _useState2 = _slicedToArray(_useState, 2),
649
608
  accountLists = _useState2[0],
650
609
  setAccountLists = _useState2[1];
651
- var _ref18 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {},
652
- bookingSubject = _ref18.bookingSubject;
610
+ var _ref17 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {},
611
+ bookingSubject = _ref17.bookingSubject;
653
612
  var form_id = bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.form_id;
654
613
 
655
614
  // 获取账户列表数据
656
615
  var getAccountLists = /*#__PURE__*/function () {
657
- var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
616
+ var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
658
617
  var data;
659
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
660
- while (1) switch (_context8.prev = _context8.next) {
618
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
619
+ while (1) switch (_context7.prev = _context7.next) {
661
620
  case 0:
662
- _context8.next = 2;
621
+ _context7.next = 2;
663
622
  return appointmentBooking.getAccounts();
664
623
  case 2:
665
- data = _context8.sent;
624
+ data = _context7.sent;
666
625
  setAccountLists(data || []);
667
626
  case 4:
668
627
  case "end":
669
- return _context8.stop();
628
+ return _context7.stop();
670
629
  }
671
- }, _callee8);
630
+ }, _callee7);
672
631
  }));
673
632
  return function getAccountLists() {
674
- return _ref19.apply(this, arguments);
633
+ return _ref18.apply(this, arguments);
675
634
  };
676
635
  }();
677
636
  useEffect(function () {
678
637
  getAccountLists();
679
638
  pisellOS.effects.on('appointmentBooking_accountList:changed', /*#__PURE__*/function () {
680
- var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(res) {
681
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
682
- while (1) switch (_context9.prev = _context9.next) {
639
+ var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(res) {
640
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
641
+ while (1) switch (_context8.prev = _context8.next) {
683
642
  case 0:
684
643
  if (res.path === 'accounts') {
685
644
  getAccountLists();
686
645
  }
687
646
  case 1:
688
647
  case "end":
689
- return _context9.stop();
648
+ return _context8.stop();
690
649
  }
691
- }, _callee9);
650
+ }, _callee8);
692
651
  }));
693
652
  return function (_x3) {
694
- return _ref20.apply(this, arguments);
653
+ return _ref19.apply(this, arguments);
695
654
  };
696
655
  }());
697
656
  }, []);
698
657
 
699
658
  // 获取表单数据
700
659
  var getHolders = /*#__PURE__*/function () {
701
- var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
660
+ var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
702
661
  var _utils$getStore$getSt;
703
662
  var shop_id, customer, params, data, newData;
704
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
705
- while (1) switch (_context10.prev = _context10.next) {
663
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
664
+ while (1) switch (_context9.prev = _context9.next) {
706
665
  case 0:
707
666
  shop_id = (_utils$getStore$getSt = utils.getStore().getState()) === null || _utils$getStore$getSt === void 0 || (_utils$getStore$getSt = _utils$getStore$getSt.global) === null || _utils$getStore$getSt === void 0 || (_utils$getStore$getSt = _utils$getStore$getSt.shop) === null || _utils$getStore$getSt === void 0 ? void 0 : _utils$getStore$getSt.id;
708
667
  customer = getCustomer(utils);
709
668
  if (!(!shop_id || !form_id || !(customer !== null && customer !== void 0 && customer.id))) {
710
- _context10.next = 4;
669
+ _context9.next = 4;
711
670
  break;
712
671
  }
713
- return _context10.abrupt("return", []);
672
+ return _context9.abrupt("return", []);
714
673
  case 4:
715
674
  params = {
716
675
  url: '/form/data/v1',
@@ -720,52 +679,52 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
720
679
  shop_id: shop_id
721
680
  }
722
681
  };
723
- _context10.next = 7;
682
+ _context9.next = 7;
724
683
  return appointmentBooking.fetchHolderAccountsAsync(params);
725
684
  case 7:
726
- data = _context10.sent;
685
+ data = _context9.sent;
727
686
  newData = data === null || data === void 0 ? void 0 : data.map(function (item) {
728
687
  return {
729
688
  id: item === null || item === void 0 ? void 0 : item.form_record_id,
730
689
  label: item === null || item === void 0 ? void 0 : item.main_field
731
690
  };
732
691
  });
733
- return _context10.abrupt("return", newData || []);
692
+ return _context9.abrupt("return", newData || []);
734
693
  case 10:
735
694
  case "end":
736
- return _context10.stop();
695
+ return _context9.stop();
737
696
  }
738
- }, _callee10);
697
+ }, _callee9);
739
698
  }));
740
699
  return function getHolders() {
741
- return _ref21.apply(this, arguments);
700
+ return _ref20.apply(this, arguments);
742
701
  };
743
702
  }();
744
703
 
745
704
  // 添加账户
746
705
  var addAccount = /*#__PURE__*/function () {
747
- var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(val, type) {
706
+ var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(val, type) {
748
707
  var customer, result;
749
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
750
- while (1) switch (_context11.prev = _context11.next) {
708
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
709
+ while (1) switch (_context10.prev = _context10.next) {
751
710
  case 0:
752
711
  customer = getCustomer(utils);
753
- _context11.next = 3;
712
+ _context10.next = 3;
754
713
  return appointmentBooking.addAccount(val, {
755
714
  type: type,
756
715
  customerId: customer === null || customer === void 0 ? void 0 : customer.id
757
716
  });
758
717
  case 3:
759
- result = _context11.sent;
760
- return _context11.abrupt("return", result);
718
+ result = _context10.sent;
719
+ return _context10.abrupt("return", result);
761
720
  case 5:
762
721
  case "end":
763
- return _context11.stop();
722
+ return _context10.stop();
764
723
  }
765
- }, _callee11);
724
+ }, _callee10);
766
725
  }));
767
726
  return function addAccount(_x4, _x5) {
768
- return _ref22.apply(this, arguments);
727
+ return _ref21.apply(this, arguments);
769
728
  };
770
729
  }();
771
730
 
@@ -790,12 +749,12 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
790
749
  * @Date: 2025-04-15 11:29
791
750
  */
792
751
  export var useAppointmentBookingResource = function useAppointmentBookingResource() {
793
- var _ref23 = useAppointmentBookingContext(),
794
- appointmentBooking = _ref23.appointmentBooking,
795
- setResources = _ref23.setResources,
796
- setTimes = _ref23.setTimes;
797
- var _ref24 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
798
- resourceSort = _ref24.resourceSort;
752
+ var _ref22 = useAppointmentBookingContext(),
753
+ appointmentBooking = _ref22.appointmentBooking,
754
+ setResources = _ref22.setResources,
755
+ setTimes = _ref22.setTimes;
756
+ var _ref23 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
757
+ resourceSort = _ref23.resourceSort;
799
758
 
800
759
  // 设置资源列表
801
760
  var getResourceList = function getResourceList() {
@@ -819,26 +778,26 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
819
778
 
820
779
  // 设置时间切片
821
780
  var getResourceTimeSlot = /*#__PURE__*/function () {
822
- var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(index) {
781
+ var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(index) {
823
782
  var _getResourceList, resourceCodes, code, data;
824
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
825
- while (1) switch (_context12.prev = _context12.next) {
783
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
784
+ while (1) switch (_context11.prev = _context11.next) {
826
785
  case 0:
827
786
  _getResourceList = getResourceList(), resourceCodes = _getResourceList.resourceCodes;
828
787
  code = resourceCodes === null || resourceCodes === void 0 ? void 0 : resourceCodes[index || 0];
829
- _context12.next = 4;
788
+ _context11.next = 4;
830
789
  return appointmentBooking.getTimeSlotByAllResources(code);
831
790
  case 4:
832
- data = _context12.sent;
791
+ data = _context11.sent;
833
792
  setTimes(data || []);
834
793
  case 6:
835
794
  case "end":
836
- return _context12.stop();
795
+ return _context11.stop();
837
796
  }
838
- }, _callee12);
797
+ }, _callee11);
839
798
  }));
840
799
  return function getResourceTimeSlot(_x6) {
841
- return _ref25.apply(this, arguments);
800
+ return _ref24.apply(this, arguments);
842
801
  };
843
802
  }();
844
803
  return {
@@ -855,8 +814,8 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
855
814
  * @Date: 2025-04-21 11:47
856
815
  */
857
816
  export var useIsSkipResourceStep = function useIsSkipResourceStep() {
858
- var _ref26 = useAppointmentBookingContext(),
859
- currentStepParams = _ref26.currentStepParams;
817
+ var _ref25 = useAppointmentBookingContext(),
818
+ currentStepParams = _ref25.currentStepParams;
860
819
  var _useAppointmentBookin5 = useAppointmentBookingResource(),
861
820
  getResourceList = _useAppointmentBookin5.getResourceList;
862
821
  var _useAppointmentBookin6 = useAppointmentBookingSetting(),
@@ -865,27 +824,27 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
865
824
  var _useAppointmentBookin7 = useAppointmentBookingStep(),
866
825
  nextStep = _useAppointmentBookin7.nextStep;
867
826
  var checkSkipResourceStep = /*#__PURE__*/function () {
868
- var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
827
+ var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
869
828
  var _getResourceList2, resources, accountLists, _currentAppointmentBo, isSystem, isSkip, form_code, renderLists, _isSkip;
870
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
871
- while (1) switch (_context13.prev = _context13.next) {
829
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
830
+ while (1) switch (_context12.prev = _context12.next) {
872
831
  case 0:
873
- _context13.prev = 0;
832
+ _context12.prev = 0;
874
833
  _getResourceList2 = getResourceList(), resources = _getResourceList2.resources;
875
- _context13.next = 4;
834
+ _context12.next = 4;
876
835
  return appointmentBooking.getAccounts();
877
836
  case 4:
878
- accountLists = _context13.sent;
837
+ accountLists = _context12.sent;
879
838
  _currentAppointmentBo = currentAppointmentBoard(currentStepParams.key, resources, appointmentBooking), isSystem = _currentAppointmentBo.isSystem, isSkip = _currentAppointmentBo.isSkip, form_code = _currentAppointmentBo.form_code; // 客户不可选择资源,系统自动分派
880
839
  if (!isSystem) {
881
- _context13.next = 9;
840
+ _context12.next = 9;
882
841
  break;
883
842
  }
884
843
  nextStep();
885
- return _context13.abrupt("return", true);
844
+ return _context12.abrupt("return", true);
886
845
  case 9:
887
846
  if (!((accountLists === null || accountLists === void 0 ? void 0 : accountLists.length) === 1 || isFormSubject)) {
888
- _context13.next = 19;
847
+ _context12.next = 19;
889
848
  break;
890
849
  }
891
850
  renderLists = currentRenderLists(resources, form_code);
@@ -898,30 +857,30 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
898
857
 
899
858
  // 如果跳过资源选择步骤,则执行跳过的逻辑
900
859
  if (!_isSkip) {
901
- _context13.next = 16;
860
+ _context12.next = 16;
902
861
  break;
903
862
  }
904
863
  nextStep();
905
- return _context13.abrupt("return", true);
864
+ return _context12.abrupt("return", true);
906
865
  case 16:
907
- return _context13.abrupt("return", _isSkip);
866
+ return _context12.abrupt("return", _isSkip);
908
867
  case 19:
909
- return _context13.abrupt("return", false);
868
+ return _context12.abrupt("return", false);
910
869
  case 20:
911
- _context13.next = 25;
870
+ _context12.next = 25;
912
871
  break;
913
872
  case 22:
914
- _context13.prev = 22;
915
- _context13.t0 = _context13["catch"](0);
916
- return _context13.abrupt("return", false);
873
+ _context12.prev = 22;
874
+ _context12.t0 = _context12["catch"](0);
875
+ return _context12.abrupt("return", false);
917
876
  case 25:
918
877
  case "end":
919
- return _context13.stop();
878
+ return _context12.stop();
920
879
  }
921
- }, _callee13, null, [[0, 22]]);
880
+ }, _callee12, null, [[0, 22]]);
922
881
  }));
923
882
  return function checkSkipResourceStep() {
924
- return _ref27.apply(this, arguments);
883
+ return _ref26.apply(this, arguments);
925
884
  };
926
885
  }();
927
886
  return {
@@ -939,13 +898,13 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
939
898
  export var useAppointmentBookingSetting = function useAppointmentBookingSetting() {
940
899
  var _appointmentBooking$o4, _appointmentBooking$o5;
941
900
  var utils = contextUtils();
942
- var _ref28 = useAppointmentBookingContext(),
943
- appointmentBooking = _ref28.appointmentBooking;
944
- var _ref29 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o4 = appointmentBooking.otherParams) === null || _appointmentBooking$o4 === void 0 ? void 0 : _appointmentBooking$o4.productModuleParams) || {},
945
- bookingProcess = _ref29.bookingProcess,
946
- bookingSubject = _ref29.bookingSubject,
947
- customPageId = _ref29.customPageId,
948
- channel = _ref29.channel;
901
+ var _ref27 = useAppointmentBookingContext(),
902
+ appointmentBooking = _ref27.appointmentBooking;
903
+ var _ref28 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o4 = appointmentBooking.otherParams) === null || _appointmentBooking$o4 === void 0 ? void 0 : _appointmentBooking$o4.productModuleParams) || {},
904
+ bookingProcess = _ref28.bookingProcess,
905
+ bookingSubject = _ref28.bookingSubject,
906
+ customPageId = _ref28.customPageId,
907
+ channel = _ref28.channel;
949
908
 
950
909
  // 设置缓存
951
910
  var setOtherData = function setOtherData(key, val) {