@pisell/private-materials 3.3.49 → 3.3.51

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