@pisell/private-materials 6.2.10 → 6.2.11

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 (414) 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.js +2 -2
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
  10. package/es/businessModel/SalesModel/index.d.ts +1 -0
  11. package/es/components/Sales/Cart/index.d.ts +53 -0
  12. package/es/components/Sales/Cart/utils.d.ts +63 -0
  13. package/es/components/Sales/Checkout/index.d.ts +37 -0
  14. package/es/components/Sales/Checkout/serve.d.ts +15 -0
  15. package/es/components/Sales/Checkout/utils.d.ts +40 -0
  16. package/es/components/Sales/Customer/index.d.ts +25 -0
  17. package/es/components/Sales/Resource/index.d.ts +26 -0
  18. package/es/components/Sales/Resource/serve.d.ts +12 -0
  19. package/es/components/Sales/Summary/index.d.ts +35 -0
  20. package/es/components/Sales/Summary/serve.d.ts +1 -0
  21. package/es/components/Sales/Summary/utils.d.ts +51 -0
  22. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  23. package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  24. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  25. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  26. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  27. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  28. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  29. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  30. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  31. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  32. package/es/components/appointmentBooking/index.d.ts +3 -0
  33. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  34. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  35. package/es/components/booking/components/browserSelect/index.js +1 -1
  36. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  37. package/es/components/booking/components/customSelect/index.js +1 -0
  38. package/es/components/booking/components/footer/index.d.ts +11 -0
  39. package/es/components/booking/components/footer/utils.d.ts +41 -0
  40. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  41. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  42. package/es/components/booking/components/voucher/index.d.ts +3 -0
  43. package/es/components/booking/editBookingModal/index.d.ts +5 -0
  44. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  45. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  46. package/es/components/booking/editBookingModal/serve.d.ts +51 -0
  47. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  48. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  49. package/es/components/booking/forms/model.js +5 -5
  50. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  51. package/es/components/booking/forms/table/index.d.ts +1 -0
  52. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  53. package/es/components/booking/hooks/useClearCart.js +11 -8
  54. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  55. package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
  56. package/es/components/booking/info/client/index.d.ts +4 -0
  57. package/es/components/booking/info/client/index.js +3 -2
  58. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  59. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  60. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  61. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  62. package/es/components/booking/info/index.d.ts +3 -0
  63. package/es/components/booking/info/model.d.ts +5 -0
  64. package/es/components/booking/info/service/Lists.d.ts +2 -0
  65. package/es/components/booking/info/service/Lists.js +36 -26
  66. package/es/components/booking/info/service/addService/index.d.ts +11 -0
  67. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  68. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  69. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  70. package/es/components/booking/info/service/like/index.d.ts +1 -0
  71. package/es/components/booking/info/service/like/index.js +1 -1
  72. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  73. package/es/components/booking/info/service2/utils.d.ts +247 -0
  74. package/es/components/booking/info/service2/utils.js +20 -21
  75. package/es/components/booking/info/utils.d.ts +50 -0
  76. package/es/components/booking/info2/index.d.ts +12 -0
  77. package/es/components/booking/info2/index.js +1 -0
  78. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  79. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  80. package/es/components/booking/info2/service/addService/utils.js +6 -3
  81. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  82. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  83. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  84. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  85. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  86. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  87. package/es/components/booking/info2/service/editService/index.d.ts +7 -0
  88. package/es/components/booking/info2/service/editService/index.js +258 -165
  89. package/es/components/booking/info2/service/index.d.ts +4 -0
  90. package/es/components/booking/info2/service/index.js +19 -15
  91. package/es/components/booking/info2/utils.d.ts +4 -0
  92. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  93. package/es/components/booking/locales.d.ts +828 -0
  94. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  95. package/es/components/booking/materiels/duration/index.js +9 -2
  96. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  97. package/es/components/booking/materiels/startTime/index.js +1 -1
  98. package/es/components/booking/model.d.ts +108 -0
  99. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  100. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  101. package/es/components/booking/notes/model.js +5 -5
  102. package/es/components/booking/payments/model.js +5 -5
  103. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  104. package/es/components/eftpos/form/index.d.ts +1 -0
  105. package/es/components/eftpos/group/index.d.ts +1 -0
  106. package/es/components/eftpos/hooks.d.ts +1 -0
  107. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  108. package/es/components/eftpos/icon/device.d.ts +1 -0
  109. package/es/components/eftpos/receipt/index.d.ts +1 -0
  110. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  111. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  112. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  113. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  114. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  115. package/es/components/eftposPay/const.d.ts +184 -0
  116. package/es/components/eftposPay/hooks.d.ts +35 -0
  117. package/es/components/eftposPay/index.d.ts +4 -0
  118. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  119. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  120. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  121. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  122. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  123. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  124. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  125. package/es/components/eftposPay/pay.d.ts +20 -0
  126. package/es/components/eftposPay/payo/config.d.ts +12 -0
  127. package/es/components/eftposPay/store/index.d.ts +355 -0
  128. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  129. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  130. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
  131. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  132. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  133. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  134. package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
  135. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  136. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  137. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  138. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  139. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  140. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  141. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  142. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  143. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  144. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  145. package/es/components/eventBooking/index.d.ts +3 -0
  146. package/es/components/eventBooking/locales.d.ts +246 -0
  147. package/es/components/index.d.ts +20 -0
  148. package/es/components/listComponent/index.js +5 -5
  149. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  150. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  151. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  152. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  153. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  154. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  155. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  156. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  157. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  158. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  159. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  160. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  161. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  162. package/es/components/pay/toC/index.d.ts +3 -0
  163. package/es/components/pay/toC/locales.d.ts +289 -0
  164. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  165. package/es/components/productExtension/card/index.js +3 -3
  166. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  167. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  168. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  169. package/es/components/productExtension/fields/Forms/index.js +12 -12
  170. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  171. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  172. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  173. package/es/components/productExtension/server.js +2 -2
  174. package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  175. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  176. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  177. package/es/components/schedules/calendar/index.js +4 -4
  178. package/es/components/schedules/calendar/serve.js +2 -2
  179. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  180. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  181. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  182. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  183. package/es/components/schedules/components/ResourceList/index.js +1 -1
  184. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  185. package/es/components/schedules/components/Search/index.js +5 -5
  186. package/es/components/schedules/model.js +5 -5
  187. package/es/components/schedules/openHours/index.js +1 -1
  188. package/es/components/schedules/openHours/serve.js +2 -2
  189. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  190. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  191. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  192. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  193. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  194. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  195. package/es/components/schedules/products/index.d.ts +1 -0
  196. package/es/components/schedules/products/serve.js +2 -2
  197. package/es/components/schedules/products/utils.js +5 -5
  198. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  199. package/es/components/schedules/resources/detail/index.js +10 -10
  200. package/es/components/schedules/resources/list/index.js +2 -2
  201. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  202. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  203. package/es/components/schedules/resources/serve.js +2 -2
  204. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  205. package/es/components/schedules/utils.js +4 -4
  206. package/es/components/selectModal/index.js +2 -2
  207. package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  208. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  209. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  210. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  211. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  212. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  213. package/es/components/stepController/components/Content/index.d.ts +7 -0
  214. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  215. package/es/components/stepController/components/Header/index.d.ts +20 -0
  216. package/es/components/stepController/index.d.ts +5 -0
  217. package/es/components/stepController/locales.d.ts +27 -0
  218. package/es/components/stepController/types.d.ts +23 -0
  219. package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
  220. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  221. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  222. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  223. package/es/components/ticketBooking/serve.d.ts +287 -0
  224. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  225. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  226. package/es/components/ticketBooking/utils/index.d.ts +23 -0
  227. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  228. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  229. package/es/hooks/useComponents.js +1 -1
  230. package/es/hooks/useWindowSize.d.ts +5 -0
  231. package/es/index.d.ts +47 -0
  232. package/es/utils/index.d.ts +23 -0
  233. package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
  234. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  235. package/lib/components/Sales/Cart/index.d.ts +53 -0
  236. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  237. package/lib/components/Sales/Checkout/index.d.ts +37 -0
  238. package/lib/components/Sales/Checkout/serve.d.ts +15 -0
  239. package/lib/components/Sales/Checkout/utils.d.ts +40 -0
  240. package/lib/components/Sales/Customer/index.d.ts +25 -0
  241. package/lib/components/Sales/Resource/index.d.ts +26 -0
  242. package/lib/components/Sales/Resource/serve.d.ts +12 -0
  243. package/lib/components/Sales/Summary/index.d.ts +35 -0
  244. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  245. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  246. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  247. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  248. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  249. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  250. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  251. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  252. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  253. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  254. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  255. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  256. package/lib/components/appointmentBooking/index.d.ts +3 -0
  257. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  258. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  259. package/lib/components/booking/components/customSelect/index.js +1 -0
  260. package/lib/components/booking/components/footer/index.d.ts +11 -0
  261. package/lib/components/booking/components/footer/utils.d.ts +41 -0
  262. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  263. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  264. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  265. package/lib/components/booking/editBookingModal/index.d.ts +5 -0
  266. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  267. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  268. package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
  269. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  270. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  271. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  272. package/lib/components/booking/forms/table/index.d.ts +1 -0
  273. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  274. package/lib/components/booking/hooks/useClearCart.js +16 -13
  275. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  276. package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
  277. package/lib/components/booking/info/client/index.d.ts +4 -0
  278. package/lib/components/booking/info/client/index.js +5 -4
  279. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  280. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  281. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  282. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  283. package/lib/components/booking/info/index.d.ts +3 -0
  284. package/lib/components/booking/info/model.d.ts +5 -0
  285. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  286. package/lib/components/booking/info/service/Lists.js +35 -23
  287. package/lib/components/booking/info/service/addService/index.d.ts +11 -0
  288. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  289. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  290. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  291. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  292. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  293. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  294. package/lib/components/booking/info/service2/utils.js +17 -17
  295. package/lib/components/booking/info/utils.d.ts +50 -0
  296. package/lib/components/booking/info2/index.d.ts +12 -0
  297. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  298. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  299. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  300. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  301. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  302. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  303. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  304. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  305. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  306. package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
  307. package/lib/components/booking/info2/service/editService/index.js +132 -70
  308. package/lib/components/booking/info2/service/index.d.ts +4 -0
  309. package/lib/components/booking/info2/service/index.js +13 -9
  310. package/lib/components/booking/info2/utils.d.ts +4 -0
  311. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  312. package/lib/components/booking/locales.d.ts +828 -0
  313. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  314. package/lib/components/booking/materiels/duration/index.js +7 -2
  315. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  316. package/lib/components/booking/model.d.ts +108 -0
  317. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  318. package/lib/components/eftpos/form/index.d.ts +1 -0
  319. package/lib/components/eftpos/group/index.d.ts +1 -0
  320. package/lib/components/eftpos/hooks.d.ts +1 -0
  321. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  322. package/lib/components/eftpos/icon/device.d.ts +1 -0
  323. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  324. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  325. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  326. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  327. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  328. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  329. package/lib/components/eftposPay/const.d.ts +184 -0
  330. package/lib/components/eftposPay/hooks.d.ts +35 -0
  331. package/lib/components/eftposPay/index.d.ts +4 -0
  332. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  333. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  334. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  335. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  336. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  337. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  338. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  339. package/lib/components/eftposPay/pay.d.ts +20 -0
  340. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  341. package/lib/components/eftposPay/store/index.d.ts +355 -0
  342. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  343. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  344. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
  345. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  346. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  347. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  348. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
  349. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  350. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  351. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  352. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  353. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  354. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  355. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  356. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  357. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  358. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  359. package/lib/components/eventBooking/index.d.ts +3 -0
  360. package/lib/components/eventBooking/locales.d.ts +246 -0
  361. package/lib/components/index.d.ts +20 -0
  362. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  363. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  364. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  365. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  366. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  367. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  368. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  369. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  370. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  371. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  372. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  373. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  374. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  375. package/lib/components/pay/toC/index.d.ts +3 -0
  376. package/lib/components/pay/toC/locales.d.ts +289 -0
  377. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  378. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  379. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  380. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
  381. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  382. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  383. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  384. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  385. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  386. package/lib/components/schedules/products/index.d.ts +1 -0
  387. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  388. package/lib/components/schedules/utils.js +1 -1
  389. package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  390. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  391. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  392. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  393. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  394. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  395. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  396. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  397. package/lib/components/stepController/components/Header/index.d.ts +20 -0
  398. package/lib/components/stepController/index.d.ts +5 -0
  399. package/lib/components/stepController/locales.d.ts +27 -0
  400. package/lib/components/stepController/types.d.ts +23 -0
  401. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
  402. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  403. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  404. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  405. package/lib/components/ticketBooking/serve.d.ts +287 -0
  406. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  407. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  408. package/lib/components/ticketBooking/utils/index.d.ts +23 -0
  409. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  410. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  411. package/lib/hooks/useWindowSize.d.ts +5 -0
  412. package/lib/index.d.ts +47 -0
  413. package/lib/utils/index.d.ts +23 -0
  414. package/package.json +3 -3
@@ -15,7 +15,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
15
15
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
16
16
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
- import React, { useContext, useEffect, useMemo, useImperativeHandle, forwardRef, useRef } from 'react';
18
+ import React, { useContext, useEffect, useMemo, useState, useImperativeHandle, forwardRef, useRef } from 'react';
19
19
  import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
20
20
  import Drawer from "../../../components/drawer";
21
21
  import { Context } from "../../../info/model";
@@ -27,7 +27,7 @@ import { Input, Button, Row, Col, Form, InputNumber } from 'antd';
27
27
  import "./index.less";
28
28
  import CollapsibleList from "../../../components/collapsibleList";
29
29
  import { renderBundles } from "../../../components/collapsibleList/utils";
30
- import { useUpdateEffect, useMemoizedFn } from 'ahooks';
30
+ import { useUpdateEffect, useMemoizedFn, useDebounceFn } from 'ahooks';
31
31
  // import SelectTime from "../../../../../../../materials/src/components/select-time";
32
32
  import { getServiceTimes, deleteCacheParams, getProductTotalPrice, isSessionProduct } from "../../../utils";
33
33
  import { getErrorList } from "../../utilsByBooking";
@@ -38,7 +38,7 @@ import { isNormalProductByDurationSchedule } from "../../../info/service2/utils"
38
38
  import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBooking/utils";
39
39
  var submitLock = false;
40
40
  var Info = function Info(_, ref) {
41
- var _state$service3, _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI5, _state$service6, _state$service8, _window$BaseMaterials, _state$service$cacheI6, _state$service9, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10, _state$bookingConfig3, _state$service$resour;
41
+ var _state$service3, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI4, _state$service$cacheI5, _state$service5, _window$BaseMaterials, _state$service7, _state$service$cacheI10, _state$bookingConfig5, _state$service$cacheI11, _state$service$cacheI12, _state$service8, _state$service$resour2, _state$service$cacheI13, _state$service$cacheI14;
42
42
  var _Form$useForm = Form.useForm(),
43
43
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
44
44
  form = _Form$useForm2[0];
@@ -57,14 +57,14 @@ var Info = function Info(_, ref) {
57
57
  }, [state === null || state === void 0 || (_state$service3 = state.service) === null || _state$service3 === void 0 ? void 0 : _state$service3.cacheItem]);
58
58
 
59
59
  // 当前商品信息+ 表单信息
60
- var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
60
+ var getCurrentCacheItem = useMemoizedFn(function (_cacheItem) {
61
61
  // 获取当前表单数据
62
62
  var values = form.getFieldsValue();
63
63
  var _item = _cacheItem || state.service.cacheItem;
64
64
  return _objectSpread(_objectSpread({}, _item), {}, {
65
65
  _extend: _objectSpread(_objectSpread({}, _item === null || _item === void 0 ? void 0 : _item._extend), values)
66
66
  });
67
- };
67
+ });
68
68
 
69
69
  /**
70
70
  * @title: 当前的资源
@@ -78,7 +78,7 @@ var Info = function Info(_, ref) {
78
78
  // let item =
79
79
  // resources.find((d: any) => d.form_record_id == useResource) || {};
80
80
  return null;
81
- }, [useResource]);
81
+ }, []);
82
82
 
83
83
  /**
84
84
  * @title: 持续时长组件的props
@@ -91,13 +91,16 @@ var Info = function Info(_, ref) {
91
91
  var durationProps = useMemo(function () {
92
92
  var _state$bookingConfig;
93
93
  var _cacheItem = getCurrentCacheItem();
94
- return getDurationProps({
94
+ var val = getDurationProps({
95
95
  cacheItem: _cacheItem,
96
96
  useStartTime: useStartTime,
97
- currentResource: currentResource,
97
+ // currentResource,
98
98
  slice: (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.basic) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.service_time
99
99
  });
100
- }, [currentResource, state.service.cacheItem, useStartTime, useResource, (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.config) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.basic) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.service_time]);
100
+ return val;
101
+ }, [
102
+ // currentResource,
103
+ state.service.cacheItem, useStartTime, useResource, (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.config) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.basic) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.service_time]);
101
104
 
102
105
  /**
103
106
  * @title: 灵活时长选项
@@ -108,9 +111,10 @@ var Info = function Info(_, ref) {
108
111
  * @Date: 2024-02-23 10:10
109
112
  */
110
113
  var flexibleOption = useMemo(function () {
111
- return getFlexibleOption({
114
+ var op = getFlexibleOption({
112
115
  durationProps: durationProps
113
116
  });
117
+ return op;
114
118
  }, [durationProps, locales.locale]);
115
119
 
116
120
  /**
@@ -121,14 +125,16 @@ var Info = function Info(_, ref) {
121
125
  * @Date: 2024-01-09 13:37
122
126
  */
123
127
  var timeObj = useMemo(function () {
124
- return getTimeObj({
128
+ var val = getTimeObj({
125
129
  durationProps: durationProps,
126
130
  useStartTime: useStartTime,
127
131
  currentResource: currentResource,
128
132
  state: state,
129
133
  useDuration: useDuration
130
134
  });
131
- }, [durationProps, useStartTime, currentResource, state, useDuration]);
135
+ return val;
136
+ }, [durationProps, useStartTime, currentResource, (_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.config) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.basic) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.service_time, useDuration]);
137
+
132
138
  // 由于灵活时长的结束时间随时变动, 这里发现如果当前选择的值没有在列表内,则选择最新的灵活时长值
133
139
  useEffect(function () {
134
140
  try {
@@ -280,12 +286,51 @@ var Info = function Info(_, ref) {
280
286
  }
281
287
  });
282
288
  };
289
+ var _useDebounceFn = useDebounceFn(function () {
290
+ setEditData.apply(void 0, arguments);
291
+ }, {
292
+ wait: 50,
293
+ leading: true,
294
+ trailing: false
295
+ }),
296
+ setEditDataRun = _useDebounceFn.run;
283
297
  var setEditData = useMemoizedFn(function (_cacheItem, open, openProductDetail) {
284
- form.resetFields();
298
+ console.timeEnd('handleChange');
299
+ console.log('setEditDatasetEditData', _cacheItem, open);
285
300
  isChangeTotal.current = false;
286
301
  var cacheItem = _cacheItem || state.service.cacheItem;
287
302
  var values = cacheItem._extend;
303
+ var startTime = performance.now();
304
+ console.log(startTime, 'startTime');
305
+ form.resetFields();
288
306
  form.setFieldsValue(values);
307
+ // form.setFieldValue('resource', values.resource)
308
+
309
+ // values.resource[1117][0].times = [];
310
+ // values.resource[1117][0]._extend = {
311
+ // usableTime: {
312
+ // ...values.resource[1117][0]._extend.usableTime,
313
+ // event_list: []
314
+ // }
315
+ // };
316
+
317
+ // form.setFieldsValue({
318
+ // capacity: values.capacity,
319
+ // duration: values.duration,
320
+ // endDate: values.endDate,
321
+ // origin_total: values.origin_total,
322
+ // price: values.price,
323
+ // product_name: values.product_name,
324
+ // quantity: values.quantity,
325
+ // resource: values.resource,
326
+ // startDate: values.startDate,
327
+ // start_time: values.start_time,
328
+ // total: values.total,
329
+ // });
330
+ var endTime = performance.now();
331
+ console.log(endTime - window.pp1, '打开商品5');
332
+ console.log('执行时间', endTime - startTime, values);
333
+ setTimeout(function () {}, 20);
289
334
  if (openProductDetail) {
290
335
  setTimeout(function () {
291
336
  handleEdit({});
@@ -368,7 +413,7 @@ var Info = function Info(_, ref) {
368
413
  useEffect(function () {
369
414
  // 预约创建页面并且打开了编辑弹窗
370
415
  if (state.isBookingCreatePage && state.service.editModal) {
371
- setEditData(null);
416
+ setEditDataRun(null);
372
417
  }
373
418
  }, [state.service.editModal, state.isBookingCreatePage]);
374
419
 
@@ -382,17 +427,10 @@ var Info = function Info(_, ref) {
382
427
  useEffect(function () {
383
428
  getDiscount();
384
429
  }, [useTotal, (_state$service$cacheI5 = state.service.cacheItem) === null || _state$service$cacheI5 === void 0 || (_state$service$cacheI5 = _state$service$cacheI5._extend) === null || _state$service$cacheI5 === void 0 ? void 0 : _state$service$cacheI5.origin_total]);
385
- var isDiscount = useMemo(function () {
386
- var _state$service4, _state$service5;
387
- if (!((_state$service4 = state.service) !== null && _state$service4 !== void 0 && _state$service4.cacheItem)) {
388
- return false;
389
- }
390
- return useTotal != ((_state$service5 = state.service) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.cacheItem) === null || _state$service5 === void 0 ? void 0 : _state$service5._extend.origin_total);
391
- }, [useTotal, (_state$service6 = state.service) === null || _state$service6 === void 0 || (_state$service6 = _state$service6.cacheItem) === null || _state$service6 === void 0 ? void 0 : _state$service6._extend.origin_total]);
392
430
  var bundles = useMemo(function () {
393
- var _state$service7;
394
- return ((_state$service7 = state.service) === null || _state$service7 === void 0 || (_state$service7 = _state$service7.cacheItem) === null || _state$service7 === void 0 || (_state$service7 = _state$service7._extend) === null || _state$service7 === void 0 || (_state$service7 = _state$service7.other) === null || _state$service7 === void 0 ? void 0 : _state$service7.bundle) || [];
395
- }, [(_state$service8 = state.service) === null || _state$service8 === void 0 || (_state$service8 = _state$service8.cacheItem) === null || _state$service8 === void 0 || (_state$service8 = _state$service8._extend) === null || _state$service8 === void 0 || (_state$service8 = _state$service8.other) === null || _state$service8 === void 0 ? void 0 : _state$service8.bundle]);
431
+ var _state$service4;
432
+ return ((_state$service4 = state.service) === null || _state$service4 === void 0 || (_state$service4 = _state$service4.cacheItem) === null || _state$service4 === void 0 || (_state$service4 = _state$service4._extend) === null || _state$service4 === void 0 || (_state$service4 = _state$service4.other) === null || _state$service4 === void 0 ? void 0 : _state$service4.bundle) || [];
433
+ }, [(_state$service5 = state.service) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.cacheItem) === null || _state$service5 === void 0 || (_state$service5 = _state$service5._extend) === null || _state$service5 === void 0 || (_state$service5 = _state$service5.other) === null || _state$service5 === void 0 ? void 0 : _state$service5.bundle]);
396
434
 
397
435
  /**
398
436
  * @title: 编辑商品
@@ -402,7 +440,7 @@ var Info = function Info(_, ref) {
402
440
  * @Author: zhiwei.Wang
403
441
  * @Date: 2024-08-28 17:08
404
442
  */
405
- var handleEdit = function handleEdit(e) {
443
+ var handleEdit = useMemoizedFn(function (e) {
406
444
  var _state$client;
407
445
  // 当前商品
408
446
  var item = state.service.cacheItem;
@@ -498,7 +536,7 @@ var Info = function Info(_, ref) {
498
536
  });
499
537
  }
500
538
  });
501
- };
539
+ });
502
540
 
503
541
  /**
504
542
  * @title: 更换商品
@@ -508,7 +546,7 @@ var Info = function Info(_, ref) {
508
546
  * @Author: zhiwei.Wang
509
547
  * @Date: 2024-08-28 17:10
510
548
  */
511
- var handleChange = function handleChange(e) {
549
+ var handleChange = useMemoizedFn(function (e) {
512
550
  if (state.channelDisabledEdit) {
513
551
  return;
514
552
  }
@@ -523,10 +561,10 @@ var Info = function Info(_, ref) {
523
561
  // changeService: true,
524
562
  }
525
563
  });
526
- };
564
+ });
527
565
  useImperativeHandle(ref, function () {
528
566
  return {
529
- init: setEditData
567
+ init: setEditDataRun
530
568
  };
531
569
  });
532
570
  var handleTotalChange = function handleTotalChange(number) {
@@ -540,6 +578,195 @@ var Info = function Info(_, ref) {
540
578
  return false;
541
579
  }, [state.renderType, isNormalProduct]);
542
580
  var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
581
+ console.log(isShowTimeAndResource, 'isShowTimeAndResource');
582
+ var productName = useMemo(function () {
583
+ var _state$service6;
584
+ return /*#__PURE__*/React.createElement(Col, {
585
+ span: 24
586
+ }, /*#__PURE__*/React.createElement(Form.Item, {
587
+ name: "product_name"
588
+ }, /*#__PURE__*/React.createElement("div", {
589
+ className: "current-service-info"
590
+ }, /*#__PURE__*/React.createElement("div", {
591
+ className: "current-service-info-name-wrap"
592
+ }, /*#__PURE__*/React.createElement("div", {
593
+ className: "current-service-info-name"
594
+ }, ((_state$service6 = state.service) === null || _state$service6 === void 0 || (_state$service6 = _state$service6.cacheItem) === null || _state$service6 === void 0 || (_state$service6 = _state$service6._extend) === null || _state$service6 === void 0 ? void 0 : _state$service6.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
595
+ onClick: handleEdit
596
+ }, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
597
+ onClick: handleChange
598
+ }, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
599
+ style: {
600
+ marginTop: bundles.length ? '8px' : 0
601
+ },
602
+ list: bundles,
603
+ renderItem: function renderItem(item) {
604
+ return renderBundles(item, state.amountSymbol);
605
+ }
606
+ }))));
607
+ }, [(_state$service7 = state.service) === null || _state$service7 === void 0 || (_state$service7 = _state$service7.cacheItem) === null || _state$service7 === void 0 || (_state$service7 = _state$service7._extend) === null || _state$service7 === void 0 ? void 0 : _state$service7.product_name, bundles, state.amountSymbol, state.isBookingCreatePage]);
608
+ var price = useMemo(function () {
609
+ var _state$service$cacheI6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9;
610
+ return /*#__PURE__*/React.createElement(Col, {
611
+ span: 24
612
+ }, /*#__PURE__*/React.createElement(Form.Item, {
613
+ label: locales.getText('pisell2.text.price'),
614
+ name: "total",
615
+ rules: [{
616
+ required: true
617
+ }],
618
+ extra: useTotal !== ((_state$service$cacheI6 = state.service.cacheItem) === null || _state$service$cacheI6 === void 0 || (_state$service$cacheI6 = _state$service$cacheI6._extend) === null || _state$service$cacheI6 === void 0 ? void 0 : _state$service$cacheI6.origin_total) && locales.getText('page.booking.text.price-extra')(formatAmount((_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 || (_state$service$cacheI7 = _state$service$cacheI7._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total, 2, state.amountSymbol), formatAmount(useTotal, 2, state.amountSymbol))
619
+ }, /*#__PURE__*/React.createElement(PisellAdjustPriceInputNumber, {
620
+ style: {
621
+ width: '100%'
622
+ },
623
+ min: 0,
624
+ precision: 2,
625
+ prefix: state.amountSymbol,
626
+ onChange: handleTotalChange,
627
+ disabled: state.channelDisabledEdit,
628
+ originValue: ((_state$service$cacheI8 = state.service.cacheItem) === null || _state$service$cacheI8 === void 0 || (_state$service$cacheI8 = _state$service$cacheI8._extend) === null || _state$service$cacheI8 === void 0 ? void 0 : _state$service$cacheI8.origin_total) || 0,
629
+ placeholder: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || '0'
630
+ })));
631
+ }, [useTotal, (_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total, state.amountSymbol, state.channelDisabledEdit]);
632
+ var reason = useMemo(function () {
633
+ return isReason ? /*#__PURE__*/React.createElement(Col, {
634
+ span: 24
635
+ }, /*#__PURE__*/React.createElement(Form.Item, {
636
+ label: locales.getText('pisell2.text.discount-reason'),
637
+ name: "discount_reason"
638
+ }, /*#__PURE__*/React.createElement(Input.TextArea, {
639
+ size: "large"
640
+ }))) : null;
641
+ }, [isReason]);
642
+ var startTime = useMemo(function () {
643
+ var _state$bookingConfig4;
644
+ return /*#__PURE__*/React.createElement(Col, {
645
+ span: 12
646
+ }, /*#__PURE__*/React.createElement(Form.Item, {
647
+ label: locales.getText('pisell2.text.start_time'),
648
+ name: "start_time",
649
+ rules: [{
650
+ required: true
651
+ }]
652
+ }, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
653
+ slice: (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.config) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.basic) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.service_time) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.value,
654
+ timePickerProps: {
655
+ style: {
656
+ width: '100%'
657
+ }
658
+ },
659
+ timeProps: {
660
+ style: {
661
+ zoom: 0.8
662
+ }
663
+ }
664
+ }) : null));
665
+ }, [SelectTime, (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.config) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.basic) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.service_time) === null || _state$bookingConfig5 === void 0 ? void 0 : _state$bookingConfig5.value]);
666
+ var duration = useMemo(function () {
667
+ console.log('render form duration');
668
+ return /*#__PURE__*/React.createElement(Col, {
669
+ span: 12
670
+ }, /*#__PURE__*/React.createElement(Form.Item, {
671
+ label: locales.getText('pisell2.text.duration'),
672
+ name: "duration",
673
+ rules: [{
674
+ required: true
675
+ }]
676
+ }, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
677
+ timeObj: timeObj
678
+ }))));
679
+ }, [durationProps, timeObj]);
680
+ var resource = useMemo(function () {
681
+ console.log('render form resource');
682
+ return /*#__PURE__*/React.createElement(Form.Item, {
683
+ noStyle: true,
684
+ name: "resource"
685
+ }, /*#__PURE__*/React.createElement(Resources, {
686
+ ref: resourcesRef,
687
+ state: state,
688
+ cacheItem: state.service.cacheItem,
689
+ getCurrentCacheItem: getCurrentCacheItem
690
+ // 内部没有使用 useDuration useStartTime
691
+ // useDuration={useDuration}
692
+ // useStartTime={useStartTime}
693
+ }));
694
+ // 只监听内部使用值
695
+ }, [state.renderType, (_state$service$cacheI11 = state.service.cacheItem) === null || _state$service$cacheI11 === void 0 || (_state$service$cacheI11 = _state$service$cacheI11._data) === null || _state$service$cacheI11 === void 0 ? void 0 : _state$service$cacheI11.resources, (_state$service$cacheI12 = state.service.cacheItem) === null || _state$service$cacheI12 === void 0 || (_state$service$cacheI12 = _state$service$cacheI12._data) === null || _state$service$cacheI12 === void 0 ? void 0 : _state$service$cacheI12.resourceMaps]);
696
+ var capacity = useMemo(function () {
697
+ return /*#__PURE__*/React.createElement(Form.Item, {
698
+ noStyle: true,
699
+ name: "capacity"
700
+ }, /*#__PURE__*/React.createElement(Capacity, {
701
+ state: state,
702
+ cacheItem: state.service.cacheItem
703
+ }));
704
+ // 只监听Capacity 内部使用的 state.locale state.isTerminal, state.service?.cacheItem?._data?.capacitys
705
+ }, [state.locale, state.isTerminal, (_state$service8 = state.service) === null || _state$service8 === void 0 || (_state$service8 = _state$service8.cacheItem) === null || _state$service8 === void 0 || (_state$service8 = _state$service8._data) === null || _state$service8 === void 0 ? void 0 : _state$service8.capacitys]);
706
+ var hiddenQuantity = useMemo(function () {
707
+ return /*#__PURE__*/React.createElement(Form.Item, {
708
+ hidden: true,
709
+ name: "quantity"
710
+ }, /*#__PURE__*/React.createElement(InputNumber, null));
711
+ }, []);
712
+ var quantity = useMemo(function () {
713
+ return /*#__PURE__*/React.createElement(Col, {
714
+ span: 24
715
+ }, /*#__PURE__*/React.createElement(Form.Item, {
716
+ label: locales.getText('pisell2.text.quantity'),
717
+ name: "quantity",
718
+ rules: [{
719
+ required: true
720
+ }]
721
+ }, /*#__PURE__*/React.createElement(InputNumber, {
722
+ size: "large",
723
+ style: {
724
+ width: '100%'
725
+ },
726
+ min: 1,
727
+ max: 999999,
728
+ formatter: function formatter(value) {
729
+ if (value !== undefined) {
730
+ // 向下取整
731
+ return Math.floor(value);
732
+ }
733
+ return value;
734
+ }
735
+ })));
736
+ }, []);
737
+ var footer = useMemo(function () {
738
+ var _state$service$resour;
739
+ return /*#__PURE__*/React.createElement("div", {
740
+ className: "pisell-lowcode__booking-service-body-edit-footer"
741
+ }, /*#__PURE__*/React.createElement("div", {
742
+ className: "pisell-lowcode__booking-service-delete-wrap",
743
+ onClick: handleDeleteProduct
744
+ }, /*#__PURE__*/React.createElement(Delete_wght300_24px, {
745
+ className: "pisell-lowcode__booking-service-delete-icon"
746
+ })), /*#__PURE__*/React.createElement(Button, {
747
+ type: "primary",
748
+ className: "pisell-lowcode__booking-service-body-edit-footer-apple",
749
+ disabled: !isNormalProduct && !((_state$service$resour = state.service.resourcesOrigin) !== null && _state$service$resour !== void 0 && _state$service$resour.length),
750
+ onClick: function onClick() {
751
+ form.submit();
752
+ }
753
+ }, locales.getText('pisell2.text.apply')));
754
+ }, [isNormalProduct, (_state$service$resour2 = state.service.resourcesOrigin) === null || _state$service$resour2 === void 0 ? void 0 : _state$service$resour2.length]);
755
+ console.log('render edit');
756
+ console.log(state.service.editModal && !((_state$service$cacheI13 = state.service.cacheItem) !== null && _state$service$cacheI13 !== void 0 && _state$service$cacheI13.autoClose), performance.now() - window.pp1, '打开商品1');
757
+ var _useState = useState(false),
758
+ _useState2 = _slicedToArray(_useState, 2),
759
+ val = _useState2[0],
760
+ setVal = _useState2[1];
761
+ useEffect(function () {
762
+ if (isShowTimeAndResource) {
763
+ setTimeout(function () {
764
+ setVal(true);
765
+ }, 200);
766
+ } else {
767
+ setVal(false);
768
+ }
769
+ }, [isShowTimeAndResource]);
543
770
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
544
771
  titleNoWrap: true
545
772
  //通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
@@ -547,7 +774,7 @@ var Info = function Info(_, ref) {
547
774
  zIndex: state.service.changeService ? 999 : 1000,
548
775
  forceRender: true,
549
776
  mask: state.drawerMask,
550
- open: state.service.editModal && !((_state$service$cacheI6 = state.service.cacheItem) !== null && _state$service$cacheI6 !== void 0 && _state$service$cacheI6.autoClose),
777
+ open: state.service.editModal && !((_state$service$cacheI14 = state.service.cacheItem) !== null && _state$service$cacheI14 !== void 0 && _state$service$cacheI14.autoClose),
551
778
  title: locales.getText('pisell2.text.edit-service'),
552
779
  onClose: function onClose() {
553
780
  dispatch({
@@ -570,140 +797,6 @@ var Info = function Info(_, ref) {
570
797
  width: '100%'
571
798
  },
572
799
  gutter: [16, 0]
573
- }, /*#__PURE__*/React.createElement(Col, {
574
- span: 24
575
- }, /*#__PURE__*/React.createElement(Form.Item, {
576
- name: "product_name"
577
- }, /*#__PURE__*/React.createElement("div", {
578
- className: "current-service-info"
579
- }, /*#__PURE__*/React.createElement("div", {
580
- className: "current-service-info-name-wrap"
581
- }, /*#__PURE__*/React.createElement("div", {
582
- className: "current-service-info-name"
583
- }, ((_state$service9 = state.service) === null || _state$service9 === void 0 || (_state$service9 = _state$service9.cacheItem) === null || _state$service9 === void 0 || (_state$service9 = _state$service9._extend) === null || _state$service9 === void 0 ? void 0 : _state$service9.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
584
- onClick: handleEdit
585
- }, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
586
- onClick: handleChange
587
- }, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
588
- style: {
589
- marginTop: bundles.length ? '8px' : 0
590
- },
591
- list: bundles,
592
- renderItem: function renderItem(item) {
593
- return renderBundles(item, state.amountSymbol);
594
- }
595
- })))), /*#__PURE__*/React.createElement(Col, {
596
- span: 24
597
- }, /*#__PURE__*/React.createElement(Form.Item, {
598
- label: locales.getText('pisell2.text.price'),
599
- name: "total",
600
- rules: [{
601
- required: true
602
- }],
603
- extra: useTotal !== ((_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 || (_state$service$cacheI7 = _state$service$cacheI7._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total) && locales.getText('page.booking.text.price-extra')(formatAmount((_state$service$cacheI8 = state.service.cacheItem) === null || _state$service$cacheI8 === void 0 || (_state$service$cacheI8 = _state$service$cacheI8._extend) === null || _state$service$cacheI8 === void 0 ? void 0 : _state$service$cacheI8.origin_total, 2, state.amountSymbol), formatAmount(useTotal, 2, state.amountSymbol))
604
- }, /*#__PURE__*/React.createElement(PisellAdjustPriceInputNumber, {
605
- style: {
606
- width: '100%'
607
- },
608
- min: 0,
609
- precision: 2,
610
- prefix: state.amountSymbol,
611
- onChange: handleTotalChange,
612
- disabled: state.channelDisabledEdit,
613
- originValue: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || 0,
614
- placeholder: ((_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total) || '0'
615
- }))), isReason ? /*#__PURE__*/React.createElement(Col, {
616
- span: 24
617
- }, /*#__PURE__*/React.createElement(Form.Item, {
618
- label: locales.getText('pisell2.text.discount-reason'),
619
- name: "discount_reason"
620
- }, /*#__PURE__*/React.createElement(Input.TextArea, {
621
- size: "large"
622
- }))) : null, isShowTimeAndResource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
623
- span: 12
624
- }, /*#__PURE__*/React.createElement(Form.Item, {
625
- label: locales.getText('pisell2.text.start_time'),
626
- name: "start_time",
627
- rules: [{
628
- required: true
629
- }]
630
- }, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
631
- slice: (_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.config) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.basic) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.service_time) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.value,
632
- timePickerProps: {
633
- style: {
634
- width: '100%'
635
- }
636
- },
637
- timeProps: {
638
- style: {
639
- zoom: 0.8
640
- }
641
- }
642
- }) : null)), /*#__PURE__*/React.createElement(Col, {
643
- span: 12
644
- }, /*#__PURE__*/React.createElement(Form.Item, {
645
- label: locales.getText('pisell2.text.duration'),
646
- name: "duration",
647
- rules: [{
648
- required: true
649
- }]
650
- }, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
651
- timeObj: timeObj
652
- })))), /*#__PURE__*/React.createElement(Form.Item, {
653
- noStyle: true,
654
- name: "resource"
655
- }, /*#__PURE__*/React.createElement(Resources, {
656
- ref: resourcesRef,
657
- state: state,
658
- cacheItem: state.service.cacheItem,
659
- getCurrentCacheItem: getCurrentCacheItem,
660
- useDuration: useDuration,
661
- useStartTime: useStartTime
662
- })), /*#__PURE__*/React.createElement(Form.Item, {
663
- noStyle: true,
664
- name: "capacity"
665
- }, /*#__PURE__*/React.createElement(Capacity, {
666
- state: state,
667
- cacheItem: state.service.cacheItem
668
- })), /*#__PURE__*/React.createElement(Form.Item, {
669
- hidden: true,
670
- name: "quantity"
671
- }, /*#__PURE__*/React.createElement(InputNumber, null))), isNormalProduct && /*#__PURE__*/React.createElement(Col, {
672
- span: 24
673
- }, /*#__PURE__*/React.createElement(Form.Item, {
674
- label: locales.getText('pisell2.text.quantity'),
675
- name: "quantity",
676
- rules: [{
677
- required: true
678
- }]
679
- }, /*#__PURE__*/React.createElement(InputNumber, {
680
- size: "large",
681
- style: {
682
- width: '100%'
683
- },
684
- min: 1,
685
- max: 999999,
686
- formatter: function formatter(value) {
687
- if (value !== undefined) {
688
- // 向下取整
689
- return Math.floor(value);
690
- }
691
- return value;
692
- }
693
- }))))), /*#__PURE__*/React.createElement("div", {
694
- className: "pisell-lowcode__booking-service-body-edit-footer"
695
- }, /*#__PURE__*/React.createElement("div", {
696
- className: "pisell-lowcode__booking-service-delete-wrap",
697
- onClick: handleDeleteProduct
698
- }, /*#__PURE__*/React.createElement(Delete_wght300_24px, {
699
- className: "pisell-lowcode__booking-service-delete-icon"
700
- })), /*#__PURE__*/React.createElement(Button, {
701
- type: "primary",
702
- className: "pisell-lowcode__booking-service-body-edit-footer-apple",
703
- disabled: !isNormalProduct && !((_state$service$resour = state.service.resourcesOrigin) !== null && _state$service$resour !== void 0 && _state$service$resour.length),
704
- onClick: function onClick() {
705
- form.submit();
706
- }
707
- }, locales.getText('pisell2.text.apply'))))));
800
+ }, productName, price, reason, val && isShowTimeAndResource && /*#__PURE__*/React.createElement(React.Fragment, null, startTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity)), footer)));
708
801
  };
709
802
  export default /*#__PURE__*/forwardRef(Info);
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import '../../info/service/index.less';
3
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
+ export default _default;
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useContext } from 'react';
1
+ import React, { useEffect, useContext, useMemo } from 'react';
2
2
  import AddService from "./addService";
3
3
  import { Context } from "../../info/model";
4
4
  import EditService from "./editService";
@@ -24,19 +24,23 @@ var Service = function Service() {
24
24
  var clearCart = useClearCart(state, dispatch);
25
25
  var _useQuotation = useQuotation(state, dispatch),
26
26
  dom = _useQuotation.dom;
27
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
28
- className: "pisell-lowcode__booking-service-wrap"
29
- }, clearCart, /*#__PURE__*/React.createElement(Lists, {
30
- isParallelResource: true,
31
- onEdit: handleEdit,
32
- onAction: handleAction,
33
- onChange: function onChange(e, type) {
34
- return dispatchService(type || 'setService', e);
35
- }
36
- }), !state.isBookingCreatePage ? /*#__PURE__*/React.createElement(AddService, {
37
- onEdit: handleEdit
38
- }) : null), /*#__PURE__*/React.createElement(EditService, {
39
- ref: detailRef
40
- }), showAddTimeModal && /*#__PURE__*/React.createElement(AddTimeModal, null), dom);
27
+ var renderMemo = useMemo(function () {
28
+ console.log('render info22222');
29
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
30
+ className: "pisell-lowcode__booking-service-wrap"
31
+ }, clearCart, /*#__PURE__*/React.createElement(Lists, {
32
+ isParallelResource: true,
33
+ onEdit: handleEdit,
34
+ onAction: handleAction,
35
+ onChange: function onChange(e, type) {
36
+ return dispatchService(type || 'setService', e);
37
+ }
38
+ }), !state.isBookingCreatePage ? /*#__PURE__*/React.createElement(AddService, {
39
+ onEdit: handleEdit
40
+ }) : null), /*#__PURE__*/React.createElement(EditService, {
41
+ ref: detailRef
42
+ }), showAddTimeModal && /*#__PURE__*/React.createElement(AddTimeModal, null), dom);
43
+ }, [clearCart, dom, showAddTimeModal, clearCart]);
44
+ return /*#__PURE__*/React.createElement(React.Fragment, null, renderMemo);
41
45
  };
42
46
  export default /*#__PURE__*/React.memo(Service);
@@ -0,0 +1,4 @@
1
+ export declare const getFormatResourceListAndMap: (data: any[], bookingId?: number[]) => {
2
+ list: any[];
3
+ listMap: any;
4
+ };
@@ -0,0 +1,35 @@
1
+ export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
+ export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
3
+ /**
4
+ * @title: 查找是否有可用的time
5
+ * @description:
6
+ * @param {any} resourceItem
7
+ * @return {*}
8
+ * @Author: zhiwei.Wang
9
+ * @Date: 2024-01-09 13:57
10
+ */
11
+ export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
+ export declare const getErrorList: (resource: any, cacheItem: any) => {
13
+ label: any;
14
+ type: string;
15
+ }[];
16
+ /**
17
+ * @title: 格式化资源, 添加自定义参数
18
+ * @description:
19
+ * @param {any} resourceItem
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-01-09 13:40
23
+ */
24
+ export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
+ export declare const getAppointmentTimingPreference: (state: any) => any;
26
+ /**
27
+ * @title: 创建服务的开始时间和结束时间
28
+ * @description:
29
+ * @param {any} state
30
+ * @param {any} item
31
+ * @return {*}
32
+ * @Author: zhiwei.Wang
33
+ * @Date: 2024-01-26 14:09
34
+ */
35
+ export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;