@pisell/private-materials 6.2.24 → 6.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) 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 +9 -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 +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Cart/index.js +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  16. package/es/components/booking/addons/index.js +4 -1
  17. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  18. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  19. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  20. package/es/components/booking/components/actionButtons/index.js +395 -0
  21. package/es/components/booking/components/actionButtons/index.less +148 -0
  22. package/es/components/booking/components/browserSelect/index.js +1 -1
  23. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  24. package/es/components/booking/components/clearCartModal/index.js +50 -0
  25. package/es/components/booking/components/clearCartModal/index.less +109 -0
  26. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  27. package/es/components/booking/components/customiseItemModal/index.js +294 -0
  28. package/es/components/booking/components/customiseItemModal/index.less +606 -0
  29. package/es/components/booking/components/footer/amount.d.ts +1 -0
  30. package/es/components/booking/components/footer/amount.js +15 -3
  31. package/es/components/booking/components/footer/index.js +106 -39
  32. package/es/components/booking/components/footer/utils.js +52 -24
  33. package/es/components/booking/components/tabPane/index.js +86 -5
  34. package/es/components/booking/components/tabPane/index.less +75 -1
  35. package/es/components/booking/components/voucher/index.js +19 -8
  36. package/es/components/booking/components/voucher/index.less +1 -1
  37. package/es/components/booking/dashboard/index.d.ts +1 -1
  38. package/es/components/booking/dashboard/index.js +10 -3
  39. package/es/components/booking/forms/model.js +5 -5
  40. package/es/components/booking/hooks/useQuotation.js +17 -7
  41. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  42. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  43. package/es/components/booking/info/hooks/useInfoHolder.js +12 -3
  44. package/es/components/booking/info/index.less +18 -2
  45. package/es/components/booking/info/main.js +14 -15
  46. package/es/components/booking/info/service/Lists.js +5 -2
  47. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  48. package/es/components/booking/info/service/like/index.js +1 -1
  49. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  50. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  51. package/es/components/booking/info/service2/utils.d.ts +5 -1
  52. package/es/components/booking/info/service2/utils.js +12 -2
  53. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  54. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  55. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  56. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  57. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  58. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  59. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  60. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  61. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  62. package/es/components/booking/info2/index.js +40 -18
  63. package/es/components/booking/info2/service/addTimeModal/index.js +2 -1
  64. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  65. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  66. package/es/components/booking/info2/service/editService/index.js +3 -2
  67. package/es/components/booking/info2/service/index.js +11 -5
  68. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  69. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  70. package/es/components/booking/info2/utilsByBooking.js +26 -3
  71. package/es/components/booking/locales.d.ts +75 -0
  72. package/es/components/booking/locales.js +99 -3
  73. package/es/components/booking/materiels/startTime/index.js +1 -1
  74. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  75. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  76. package/es/components/booking/notes/addNote/index.d.ts +1 -1
  77. package/es/components/booking/notes/addNote/index.js +52 -32
  78. package/es/components/booking/notes/addNote/index.less +53 -0
  79. package/es/components/booking/notes/model.js +5 -5
  80. package/es/components/booking/payments/model.js +5 -5
  81. package/es/components/eftposPay/amount.d.ts +1 -1
  82. package/es/components/eftposPay/device.d.ts +1 -1
  83. package/es/components/eftposPay/hooks.d.ts +2 -2
  84. package/es/components/eftposPay/store/index.d.ts +3 -3
  85. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  87. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  91. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  92. package/es/components/listComponent/index.js +5 -5
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  95. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  96. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  97. package/es/components/productExtension/card/index.js +3 -3
  98. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  99. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  100. package/es/components/productExtension/fields/Forms/index.js +12 -12
  101. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  102. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  103. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  104. package/es/components/productExtension/server.js +2 -2
  105. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  106. package/es/components/schedules/calendar/index.js +4 -4
  107. package/es/components/schedules/calendar/serve.js +2 -2
  108. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  109. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  110. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  111. package/es/components/schedules/components/ResourceList/index.js +1 -1
  112. package/es/components/schedules/components/Search/index.js +5 -5
  113. package/es/components/schedules/model.js +5 -5
  114. package/es/components/schedules/openHours/index.js +1 -1
  115. package/es/components/schedules/openHours/serve.js +2 -2
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  117. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  118. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  119. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  120. package/es/components/schedules/products/serve.js +2 -2
  121. package/es/components/schedules/products/utils.js +5 -5
  122. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  123. package/es/components/schedules/resources/detail/index.js +10 -10
  124. package/es/components/schedules/resources/list/index.js +2 -2
  125. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  126. package/es/components/schedules/resources/serve.js +2 -2
  127. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  128. package/es/components/schedules/utils.js +4 -4
  129. package/es/components/selectModal/index.js +2 -2
  130. package/es/components/shoppingCart/components/Cart/Product.js +20 -3
  131. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  132. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  133. package/es/components/shoppingCart/type.d.ts +1 -0
  134. package/es/components/subTotal/index.less +1 -1
  135. package/es/components/ticketBooking/components/addServiceVariant/addService.js +155 -217
  136. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  137. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  138. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  139. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  140. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  141. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  142. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  143. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  144. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  145. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  146. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  147. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  148. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  149. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  150. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  151. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  152. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  153. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  154. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  155. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  156. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  157. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  158. package/es/components/ticketBooking/components/ticketBooking/index.js +208 -33
  159. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  160. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  161. package/es/components/ticketBooking/components/timeBar/index.js +10 -3
  162. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  163. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  164. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  165. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  166. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  167. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  168. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  169. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  170. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  171. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  172. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  173. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  174. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  175. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  176. package/es/components/ticketBooking/index.js +21 -3
  177. package/es/components/ticketBooking/locales.d.ts +6 -3
  178. package/es/components/ticketBooking/locales.js +6 -3
  179. package/es/components/ticketBooking/serve.js +11 -11
  180. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  181. package/es/components/ticketBooking/utils/index.js +104 -11
  182. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  183. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  184. package/es/hooks/useComponents.js +1 -1
  185. package/es/hooks/useToast.d.ts +2 -0
  186. package/es/hooks/useToast.js +9 -0
  187. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  188. package/es/hooks/useTranslationOriginal.js +10 -0
  189. package/es/index.d.ts +4 -0
  190. package/es/index.js +5 -1
  191. package/es/plus/clientCard/index.d.ts +7 -0
  192. package/es/plus/clientCard/index.js +452 -0
  193. package/es/plus/clientCard/index.less +539 -0
  194. package/es/plus/clientCard/line/index.d.ts +9 -0
  195. package/es/plus/clientCard/line/index.js +157 -0
  196. package/es/plus/clientCard/line/index.less +142 -0
  197. package/es/plus/clientCard/locales.d.ts +18 -0
  198. package/es/plus/clientCard/locales.js +17 -0
  199. package/es/plus/clientCard/types.d.ts +126 -0
  200. package/es/plus/clientCard/types.js +1 -0
  201. package/es/plus/clientCard/utils.d.ts +8 -0
  202. package/es/plus/clientCard/utils.js +59 -0
  203. package/es/plus/clientName/index.d.ts +5 -0
  204. package/es/plus/clientName/index.js +18 -0
  205. package/es/plus/clientName/index.less +10 -0
  206. package/es/plus/clientName/type.d.ts +13 -0
  207. package/es/plus/clientName/type.js +1 -0
  208. package/es/plus/clientName/utils.d.ts +2 -0
  209. package/es/plus/clientName/utils.js +18 -0
  210. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  211. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  212. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  213. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  214. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  215. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  216. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  217. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  218. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  219. package/es/plus/clinetSearch/Add/index.js +212 -0
  220. package/es/plus/clinetSearch/Add/index.less +30 -0
  221. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  222. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  223. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  224. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  225. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  226. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  227. package/es/plus/clinetSearch/index.d.ts +18 -0
  228. package/es/plus/clinetSearch/index.js +214 -0
  229. package/es/plus/clinetSearch/index.less +91 -0
  230. package/es/plus/clinetSearch/locales.d.ts +102 -0
  231. package/es/plus/clinetSearch/locales.js +101 -0
  232. package/es/plus/clinetSearch/serve.d.ts +1 -0
  233. package/es/plus/clinetSearch/serve.js +31 -0
  234. package/es/plus/clinetSearch/types.d.ts +49 -0
  235. package/es/plus/clinetSearch/types.js +1 -0
  236. package/es/plus/noteModal/AddTempModal.d.ts +7 -0
  237. package/es/plus/noteModal/AddTempModal.js +64 -0
  238. package/es/plus/noteModal/index.d.ts +4 -0
  239. package/es/plus/noteModal/index.js +199 -0
  240. package/es/plus/noteModal/index.less +168 -0
  241. package/es/plus/noteModal/locales.d.ts +33 -0
  242. package/es/plus/noteModal/locales.js +32 -0
  243. package/es/plus/noteModal/types.d.ts +17 -0
  244. package/es/plus/noteModal/types.js +1 -0
  245. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  246. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  247. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  248. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  249. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  250. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  251. package/es/pro/comprehensiveSearch/index.js +342 -0
  252. package/es/pro/comprehensiveSearch/index.less +323 -0
  253. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  254. package/es/pro/comprehensiveSearch/locales.js +17 -0
  255. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  256. package/es/pro/comprehensiveSearch/types.js +1 -0
  257. package/es/pro/numberKeyboard/index.d.ts +28 -0
  258. package/es/pro/numberKeyboard/index.js +155 -0
  259. package/es/pro/numberKeyboard/index.less +25 -0
  260. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  261. package/es/pro/numberKeyboard/locales.js +11 -0
  262. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  263. package/es/pro/pisellNumberSelector/example.js +68 -0
  264. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  265. package/es/pro/pisellNumberSelector/index.js +231 -0
  266. package/es/pro/pisellNumberSelector/index.less +193 -0
  267. package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  268. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  269. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  270. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  271. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  272. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  273. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
  274. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
  275. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  276. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  277. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  278. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  279. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  280. package/es/pro/pisellPriceRadio/index.js +113 -0
  281. package/es/pro/pisellPriceRadio/index.less +158 -0
  282. package/es/pro/skuDetailModal/index.d.ts +5 -0
  283. package/es/pro/skuDetailModal/index.js +352 -0
  284. package/es/pro/skuDetailModal/index.less +236 -0
  285. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  286. package/es/pro/skuDetailModal/locales.js +47 -0
  287. package/es/pro/skuDetailModal/types.d.ts +347 -0
  288. package/es/pro/skuDetailModal/types.js +1 -0
  289. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  290. package/lib/components/Sales/Cart/index.js +1 -0
  291. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  292. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  293. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  294. package/lib/components/booking/addons/index.js +4 -1
  295. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  296. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  297. package/lib/components/booking/components/actionButtons/index.js +325 -0
  298. package/lib/components/booking/components/actionButtons/index.less +148 -0
  299. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  300. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  301. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  302. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  303. package/lib/components/booking/components/customiseItemModal/index.js +279 -0
  304. package/lib/components/booking/components/customiseItemModal/index.less +606 -0
  305. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  306. package/lib/components/booking/components/footer/amount.js +5 -3
  307. package/lib/components/booking/components/footer/index.js +93 -23
  308. package/lib/components/booking/components/footer/utils.js +38 -13
  309. package/lib/components/booking/components/tabPane/index.js +78 -4
  310. package/lib/components/booking/components/tabPane/index.less +75 -1
  311. package/lib/components/booking/components/voucher/index.js +18 -7
  312. package/lib/components/booking/components/voucher/index.less +1 -1
  313. package/lib/components/booking/dashboard/index.d.ts +1 -1
  314. package/lib/components/booking/dashboard/index.js +7 -2
  315. package/lib/components/booking/hooks/useQuotation.js +3 -1
  316. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  317. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  318. package/lib/components/booking/info/hooks/useInfoHolder.js +11 -3
  319. package/lib/components/booking/info/index.less +18 -2
  320. package/lib/components/booking/info/main.js +12 -5
  321. package/lib/components/booking/info/service/Lists.js +6 -2
  322. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  323. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  324. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  325. package/lib/components/booking/info/service2/utils.d.ts +5 -1
  326. package/lib/components/booking/info/service2/utils.js +14 -2
  327. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  328. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  329. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  330. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  331. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  332. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  333. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  334. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  335. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  336. package/lib/components/booking/info2/index.js +30 -9
  337. package/lib/components/booking/info2/service/addTimeModal/index.js +1 -0
  338. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  339. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  340. package/lib/components/booking/info2/service/editService/index.js +2 -1
  341. package/lib/components/booking/info2/service/index.js +5 -5
  342. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  343. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  344. package/lib/components/booking/info2/utilsByBooking.js +23 -4
  345. package/lib/components/booking/locales.d.ts +75 -0
  346. package/lib/components/booking/locales.js +93 -3
  347. package/lib/components/booking/notes/addNote/index.d.ts +1 -1
  348. package/lib/components/booking/notes/addNote/index.js +41 -23
  349. package/lib/components/booking/notes/addNote/index.less +53 -0
  350. package/lib/components/eftposPay/amount.d.ts +1 -1
  351. package/lib/components/eftposPay/device.d.ts +1 -1
  352. package/lib/components/eftposPay/hooks.d.ts +2 -2
  353. package/lib/components/eftposPay/store/index.d.ts +3 -3
  354. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  355. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  356. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  357. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  358. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  359. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  360. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  361. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  362. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  363. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  364. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  365. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  366. package/lib/components/schedules/utils.js +1 -1
  367. package/lib/components/shoppingCart/components/Cart/Product.js +20 -3
  368. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  369. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  370. package/lib/components/shoppingCart/type.d.ts +1 -0
  371. package/lib/components/subTotal/index.less +1 -1
  372. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +41 -131
  373. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  374. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  375. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  376. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  377. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  378. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  379. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  380. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  381. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  382. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  383. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  384. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  385. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  386. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  387. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  388. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  389. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  390. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  391. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  392. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  393. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  394. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  395. package/lib/components/ticketBooking/components/ticketBooking/index.js +228 -80
  396. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  397. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  398. package/lib/components/ticketBooking/components/timeBar/index.js +12 -2
  399. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  400. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  401. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  402. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  403. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  404. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  405. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  406. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  407. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  408. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  409. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  410. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  411. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  412. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  413. package/lib/components/ticketBooking/index.js +31 -4
  414. package/lib/components/ticketBooking/locales.d.ts +6 -3
  415. package/lib/components/ticketBooking/locales.js +6 -3
  416. package/lib/components/ticketBooking/serve.js +11 -11
  417. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  418. package/lib/components/ticketBooking/utils/index.js +71 -10
  419. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  420. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  421. package/lib/hooks/useToast.d.ts +2 -0
  422. package/lib/hooks/useToast.js +42 -0
  423. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  424. package/lib/hooks/useTranslationOriginal.js +42 -0
  425. package/lib/index.d.ts +4 -0
  426. package/lib/index.js +12 -0
  427. package/lib/plus/clientCard/index.d.ts +7 -0
  428. package/lib/plus/clientCard/index.js +442 -0
  429. package/lib/plus/clientCard/index.less +539 -0
  430. package/lib/plus/clientCard/line/index.d.ts +9 -0
  431. package/lib/plus/clientCard/line/index.js +153 -0
  432. package/lib/plus/clientCard/line/index.less +142 -0
  433. package/lib/plus/clientCard/locales.d.ts +18 -0
  434. package/lib/plus/clientCard/locales.js +41 -0
  435. package/lib/plus/clientCard/types.d.ts +126 -0
  436. package/lib/plus/clientCard/types.js +17 -0
  437. package/lib/plus/clientCard/utils.d.ts +8 -0
  438. package/lib/plus/clientCard/utils.js +75 -0
  439. package/lib/plus/clientName/index.d.ts +5 -0
  440. package/lib/plus/clientName/index.js +53 -0
  441. package/lib/plus/clientName/index.less +10 -0
  442. package/lib/plus/clientName/type.d.ts +13 -0
  443. package/lib/plus/clientName/type.js +17 -0
  444. package/lib/plus/clientName/utils.d.ts +2 -0
  445. package/lib/plus/clientName/utils.js +43 -0
  446. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  447. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  448. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  449. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  450. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  451. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  452. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  453. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  454. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  455. package/lib/plus/clinetSearch/Add/index.js +243 -0
  456. package/lib/plus/clinetSearch/Add/index.less +30 -0
  457. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  458. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  459. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  460. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  461. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  462. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  463. package/lib/plus/clinetSearch/index.d.ts +18 -0
  464. package/lib/plus/clinetSearch/index.js +205 -0
  465. package/lib/plus/clinetSearch/index.less +91 -0
  466. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  467. package/lib/plus/clinetSearch/locales.js +125 -0
  468. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  469. package/lib/plus/clinetSearch/serve.js +33 -0
  470. package/lib/plus/clinetSearch/types.d.ts +49 -0
  471. package/lib/plus/clinetSearch/types.js +17 -0
  472. package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
  473. package/lib/plus/noteModal/AddTempModal.js +95 -0
  474. package/lib/plus/noteModal/index.d.ts +4 -0
  475. package/lib/plus/noteModal/index.js +199 -0
  476. package/lib/plus/noteModal/index.less +168 -0
  477. package/lib/plus/noteModal/locales.d.ts +33 -0
  478. package/lib/plus/noteModal/locales.js +56 -0
  479. package/lib/plus/noteModal/types.d.ts +17 -0
  480. package/lib/plus/noteModal/types.js +17 -0
  481. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  482. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  483. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  484. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  485. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  486. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  487. package/lib/pro/comprehensiveSearch/index.js +259 -0
  488. package/lib/pro/comprehensiveSearch/index.less +323 -0
  489. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  490. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  491. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  492. package/lib/pro/comprehensiveSearch/types.js +17 -0
  493. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  494. package/lib/pro/numberKeyboard/index.js +182 -0
  495. package/lib/pro/numberKeyboard/index.less +25 -0
  496. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  497. package/lib/pro/numberKeyboard/locales.js +35 -0
  498. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  499. package/lib/pro/pisellNumberSelector/example.js +93 -0
  500. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  501. package/lib/pro/pisellNumberSelector/index.js +260 -0
  502. package/lib/pro/pisellNumberSelector/index.less +193 -0
  503. package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  504. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  505. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  506. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  507. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  508. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  509. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
  510. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
  511. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  512. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  513. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  514. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  515. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  516. package/lib/pro/pisellPriceRadio/index.js +130 -0
  517. package/lib/pro/pisellPriceRadio/index.less +158 -0
  518. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  519. package/lib/pro/skuDetailModal/index.js +311 -0
  520. package/lib/pro/skuDetailModal/index.less +236 -0
  521. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  522. package/lib/pro/skuDetailModal/locales.js +71 -0
  523. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  524. package/lib/pro/skuDetailModal/types.js +17 -0
  525. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  526. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  527. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  528. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  529. package/lowcode/client-card/meta.ts +337 -0
  530. package/lowcode/comprehensive-search/meta.ts +261 -0
  531. package/package.json +26 -26
@@ -5,7 +5,6 @@
5
5
  position: relative;
6
6
  display: flex;
7
7
  flex-direction: column;
8
-
9
8
  }
10
9
 
11
10
  .pisell-lowcode__booking-tab-pane-title {
@@ -30,6 +29,8 @@
30
29
  flex: 1;
31
30
  overflow: auto;
32
31
  padding: 0 32px;
32
+ // 为 voucher-section 预留空间
33
+ padding-bottom: 120px;
33
34
 
34
35
  .pisell-lowcode__booking-tab-pane-label {
35
36
  font-size: 16px;
@@ -45,6 +46,79 @@
45
46
  }
46
47
  }
47
48
 
49
+ // Voucher 和功能按钮区域
50
+ .pisell-lowcode__booking-tab-pane-voucher-section {
51
+ display: flex;
52
+ flex-direction: column;
53
+ padding: 8px 16px;
54
+ position: relative;
55
+ z-index: 3;
56
+ background-color: #1b1b1b;
57
+ box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
58
+
59
+ .pisell-lowcode__booking-footer-voucher-container {
60
+ background: var(--base-white, #FFF);
61
+ padding: 4px;
62
+ border-radius: 8px;
63
+ }
64
+
65
+ // ActionButtons 在 voucher-section 中的样式
66
+ .pisell-lowcode__action-buttons {
67
+ margin-top: 8px;
68
+ // 确保按钮可见
69
+ .action-button {
70
+ // 重要:确保文字颜色在深色背景下可见
71
+ color: white !important;
72
+
73
+ &:hover:not(:disabled) {
74
+ color: white !important;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ // 订单备注区域
81
+ .pisell-lowcode__booking-tab-pane-notes-section {
82
+ background-color: #1b1b1b;
83
+ position: relative;
84
+ z-index: 3;
85
+
86
+ .pisell-lowcode__booking-notes {
87
+ background: var(--base-white, #FFF);
88
+ padding: 12px;
89
+ width: 100%;
90
+
91
+ .pisell-lowcode__booking-notes-label {
92
+ font-weight: 500;
93
+ color: #333;
94
+ margin-bottom: 8px;
95
+ }
96
+
97
+ .pisell-lowcode__booking-notes-input {
98
+ .pisell-lowcode-input {
99
+ height: 44px !important;
100
+ min-height: 44px !important;
101
+ border-radius: 6px;
102
+ font-size: 16px;
103
+ line-height: 36px;
104
+ }
105
+
106
+ // 备用选择器,以防万一
107
+ textarea.pisell-lowcode-input {
108
+ height: 44px !important;
109
+ min-height: 44px !important;
110
+ border-radius: 6px;
111
+ resize: none;
112
+ }
113
+
114
+ // 去掉外层包装容器的边框
115
+ .pisell-lowcode-input-textarea-affix-wrapper {
116
+ border-width: 1px;
117
+ }
118
+ }
119
+ }
120
+ }
121
+
48
122
  .pisell-lowcode__booking-tab-pane-footer {
49
123
  position: sticky;
50
124
  bottom: 0;
@@ -28,6 +28,7 @@ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
28
28
  import "./index.less";
29
29
  import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
30
30
  import { getServiceAddons } from "./utils";
31
+ import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
31
32
  var ShopDiscountHooks = {
32
33
  onInited: 'shopDiscount:onInited',
33
34
  onDestroy: 'shopDiscount:onDestroy',
@@ -65,6 +66,21 @@ var VoucherCard = function VoucherCard(props) {
65
66
  var shopDiscount = pisellos.getModule('shopDiscount');
66
67
  services = state.service;
67
68
 
69
+ // 将选中的客户数据传递给状态管理
70
+ var changeCustomerToGlobalState = useMemoizedFn(function (value) {
71
+ dispatch({
72
+ type: 'setClient',
73
+ payload: {
74
+ value: value,
75
+ edit: true
76
+ }
77
+ });
78
+ });
79
+ var _useCustomer = useCustomer({
80
+ changeCustomerToGlobalState: changeCustomerToGlobalState
81
+ }),
82
+ selectCustomer = _useCustomer.selectCustomer;
83
+
68
84
  // 设置client
69
85
  useDebounceEffect(function () {
70
86
  if (isBooking4Shop) {
@@ -90,7 +106,8 @@ var VoucherCard = function VoucherCard(props) {
90
106
  price: value.price,
91
107
  total: value === null || value === void 0 || (_value$_extend = value._extend) === null || _value$_extend === void 0 ? void 0 : _value$_extend.total,
92
108
  discount_list: value.discount_list,
93
- origin_total: value === null || value === void 0 || (_value$_extend2 = value._extend) === null || _value$_extend2 === void 0 ? void 0 : _value$_extend2.origin_total
109
+ origin_total: value === null || value === void 0 || (_value$_extend2 = value._extend) === null || _value$_extend2 === void 0 ? void 0 : _value$_extend2.origin_total,
110
+ quantity: value._extend.quantity
94
111
  };
95
112
  });
96
113
  return val;
@@ -156,13 +173,7 @@ var VoucherCard = function VoucherCard(props) {
156
173
  useEffect(function () {
157
174
  if (!isBooking4Shop) return;
158
175
  var onScanCustomerChange = function onScanCustomerChange(customer) {
159
- // 更新客户
160
- dispatch({
161
- type: 'setClient',
162
- payload: {
163
- value: customer
164
- }
165
- });
176
+ selectCustomer(customer);
166
177
  };
167
178
  var onDiscountListChange = function onDiscountListChange(discount) {
168
179
  setDisCountList(discount);
@@ -4,7 +4,7 @@
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- margin-bottom: 10px;
7
+ margin-bottom: 0px;
8
8
 
9
9
  .voucher-title-left {
10
10
  color: var(--base-black, #000);
@@ -16,5 +16,5 @@ export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivEleme
16
16
  departed: string | number;
17
17
  }, dataList: string[]) => void;
18
18
  }
19
- declare const BookingDashboard: (props: BookingDashboardProps) => JSX.Element;
19
+ declare const BookingDashboard: React.ForwardRefExoticComponent<BookingDashboardProps & React.RefAttributes<unknown>>;
20
20
  export default BookingDashboard;
@@ -21,7 +21,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
21
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
23
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24
- import React, { useEffect, useState } from 'react';
24
+ import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
25
25
  import { PisellStatisticList } from '@pisell/materials';
26
26
  import { isArr, locales } from '@pisell/utils';
27
27
  import dayjs from 'dayjs';
@@ -52,7 +52,7 @@ var formatCapacityToChildrenData = function formatCapacityToChildrenData(data) {
52
52
  });
53
53
  };
54
54
  locales.init(localeTexts, getLocale());
55
- var BookingDashboard = function BookingDashboard(props) {
55
+ var BookingDashboard = /*#__PURE__*/forwardRef(function (props, ref) {
56
56
  var _props$otherParams = props.otherParams,
57
57
  otherParams = _props$otherParams === void 0 ? {} : _props$otherParams,
58
58
  backgroundColors = props.backgroundColors,
@@ -292,11 +292,18 @@ var BookingDashboard = function BookingDashboard(props) {
292
292
  clearInterval(timer);
293
293
  };
294
294
  }, [JSON.stringify(otherParams), refreshKey]);
295
+ useImperativeHandle(ref, function () {
296
+ return {
297
+ refresh: function refresh() {
298
+ getData();
299
+ }
300
+ };
301
+ });
295
302
  return /*#__PURE__*/React.createElement(PisellStatisticList, _extends({}, others, {
296
303
  data: data,
297
304
  backgroundColors: backgroundColors,
298
305
  labelColor: labelColor,
299
306
  valueColor: valueColor
300
307
  }));
301
- };
308
+ });
302
309
  export default BookingDashboard;
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -139,7 +139,7 @@ var useQuotation = function useQuotation(state, dispatch) {
139
139
  cartValueRef.current = state.service.value;
140
140
  var getCartQuotation = /*#__PURE__*/function () {
141
141
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
142
- var data;
142
+ var ids, data;
143
143
  return _regeneratorRuntime().wrap(function _callee$(_context) {
144
144
  while (1) switch (_context.prev = _context.next) {
145
145
  case 0:
@@ -149,18 +149,28 @@ var useQuotation = function useQuotation(state, dispatch) {
149
149
  }
150
150
  return _context.abrupt("return");
151
151
  case 2:
152
- _context.next = 4;
152
+ ids = cartValueRef.current.filter(function (item) {
153
+ return !item.isCustomItem;
154
+ }) // 过滤掉自定义商品
155
+ .map(function (item) {
156
+ return item.product_id;
157
+ });
158
+ if (ids.length) {
159
+ _context.next = 5;
160
+ break;
161
+ }
162
+ return _context.abrupt("return");
163
+ case 5:
164
+ _context.next = 7;
153
165
  return getProductPrice({
154
- ids: cartValueRef.current.map(function (item) {
155
- return item.product_id;
156
- }),
166
+ ids: ids,
157
167
  schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date,
158
168
  customer_id: params === null || params === void 0 ? void 0 : params.customer_id
159
169
  });
160
- case 4:
170
+ case 7:
161
171
  data = _context.sent;
162
172
  return _context.abrupt("return", data);
163
- case 6:
173
+ case 9:
164
174
  case "end":
165
175
  return _context.stop();
166
176
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -5,5 +5,6 @@ declare const useInfoHolder: (state: any, dispatch: any) => {
5
5
  dispatchService: (type: string, payload: any) => void;
6
6
  handleAction: (dataSource: any) => void;
7
7
  showAddTimeModal: boolean;
8
+ editNormalServiceRef: import("react").MutableRefObject<any>;
8
9
  };
9
10
  export default useInfoHolder;
@@ -9,9 +9,11 @@ import useHolderConfig from "./useHolderConfig";
9
9
  import { isOpenAddTime } from "../utils";
10
10
  import useGetHolderList from "./useGetHolderList";
11
11
  import { getProductExtend } from "../../info2/service/addService/utils";
12
+ import { getIsNoSpecAndPackage } from "../../info2/utilsByBooking";
12
13
  var useInfoHolder = function useInfoHolder(state, dispatch) {
13
14
  var _state$client, _state$bookingConfig2;
14
15
  var detailRef = useRef();
16
+ var editNormalServiceRef = useRef(null);
15
17
  var _useHolderConfig = useHolderConfig(state),
16
18
  holder = _useHolderConfig.holder,
17
19
  isFormSubject = _useHolderConfig.isFormSubject,
@@ -33,8 +35,14 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
33
35
  }, [state, appointment_card.quick_time]);
34
36
  var handleEdit = function handleEdit(cacheItem, type) {
35
37
  setTimeout(function () {
36
- var _detailRef$current, _detailRef$current$in;
37
- (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
38
+ var isNoSpecAndPackage = getIsNoSpecAndPackage(cacheItem);
39
+ if (isNoSpecAndPackage) {
40
+ var _editNormalServiceRef;
41
+ (_editNormalServiceRef = editNormalServiceRef.current) === null || _editNormalServiceRef === void 0 || _editNormalServiceRef.init(cacheItem);
42
+ } else {
43
+ var _detailRef$current, _detailRef$current$in;
44
+ (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
45
+ }
38
46
  }, 100);
39
47
  };
40
48
  var dispatchService = function dispatchService(type, payload) {
@@ -63,7 +71,8 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
63
71
  handleEdit: handleEdit,
64
72
  dispatchService: dispatchService,
65
73
  handleAction: handleAction,
66
- showAddTimeModal: showAddTimeModal
74
+ showAddTimeModal: showAddTimeModal,
75
+ editNormalServiceRef: editNormalServiceRef
67
76
  };
68
77
  };
69
78
  export default useInfoHolder;
@@ -4,6 +4,22 @@
4
4
  .booking-info {
5
5
  padding-bottom: 16px;
6
6
 
7
+ .booking-info-client-line {
8
+ display: flex;
9
+ flex-direction: row;
10
+ gap: 10px;
11
+
12
+ .booking-info-client-line-code {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: 64px;
17
+ height: 64px;
18
+ border-radius: 8px;
19
+ background: #5d3f9f;
20
+ cursor: pointer;
21
+ }
22
+ }
7
23
  }
8
24
 
9
25
  // &::before {
@@ -22,7 +38,7 @@
22
38
  }
23
39
  }
24
40
  .create-booking-page-info-wrap-create {
25
- background: var(--Success-50, #ECFDF3);
41
+ background: var(--Success-50, #ecfdf3);
26
42
  }
27
43
  .create-booking-page-info-wrap {
28
44
  position: initial !important;
@@ -34,4 +50,4 @@
34
50
  font-weight: 600;
35
51
  line-height: 32px;
36
52
  }
37
- }
53
+ }
@@ -9,7 +9,6 @@ import React, { useContext, useEffect, useMemo } from 'react';
9
9
  import Footer from "../components/footer";
10
10
  import TabPane from "../components/tabPane";
11
11
  import localeTexts from "../locales";
12
- import AddNote from "../notes/addNote";
13
12
  import Client from "./client";
14
13
  import DateCom from "./date";
15
14
  import Header from "./header";
@@ -37,7 +36,7 @@ var defaultModules = {
37
36
  };
38
37
  locales.init(localeTexts, getLocale());
39
38
  var Info = Provider(function (props) {
40
- var _modal$state2, _modal$state5, _context$appHelper4, _modal$state6;
39
+ var _modal$state2, _modal$state3, _context$appHelper4, _modal$state4;
41
40
  var style = props.style,
42
41
  globalState = props.globalState,
43
42
  _props$modules = props.modules,
@@ -109,7 +108,6 @@ var Info = Provider(function (props) {
109
108
  });
110
109
  }, [globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, modal.state, modal.dispatch, globalState === null || globalState === void 0 ? void 0 : globalState.renderType]);
111
110
  var notes = useMemo(function () {
112
- var _modal$state4;
113
111
  if (!modules.note) {
114
112
  return null;
115
113
  }
@@ -119,17 +117,15 @@ var Info = Provider(function (props) {
119
117
 
120
118
  // 跨日预约一直显示备注
121
119
  if (isDayBooking(globalState)) {
122
- var _modal$state3;
123
- return /*#__PURE__*/React.createElement(AddNote, {
124
- value: (_modal$state3 = modal.state) === null || _modal$state3 === void 0 || (_modal$state3 = _modal$state3.notes) === null || _modal$state3 === void 0 ? void 0 : _modal$state3.orderNote,
125
- onChange: addNote
126
- });
120
+ return (
121
+ // <AddNote value={modal.state?.notes?.orderNote} onChange={addNote} />
122
+ null
123
+ );
127
124
  }
128
- return globalState !== null && globalState !== void 0 && globalState.bookingId ? globalState.renderType === 'eventBooking' || globalState.isBookingCreatePage ? /*#__PURE__*/React.createElement(Notes, null) : null : /*#__PURE__*/React.createElement(AddNote, {
129
- value: (_modal$state4 = modal.state) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.notes) === null || _modal$state4 === void 0 ? void 0 : _modal$state4.orderNote,
130
- onChange: addNote
131
- });
132
- }, [modules.note, globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, globalState.render, (_modal$state5 = modal.state) === null || _modal$state5 === void 0 || (_modal$state5 = _modal$state5.notes) === null || _modal$state5 === void 0 ? void 0 : _modal$state5.orderNote]);
125
+ return globalState !== null && globalState !== void 0 && globalState.bookingId ? globalState.renderType === 'eventBooking' || globalState.isBookingCreatePage ? /*#__PURE__*/React.createElement(Notes, null) : null :
126
+ // <AddNote value={modal.state?.notes?.orderNote} onChange={addNote} />
127
+ null;
128
+ }, [modules.note, globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, globalState.render, (_modal$state3 = modal.state) === null || _modal$state3 === void 0 || (_modal$state3 = _modal$state3.notes) === null || _modal$state3 === void 0 ? void 0 : _modal$state3.orderNote]);
133
129
  return /*#__PURE__*/React.createElement(React.Fragment, null, !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, {
134
130
  style: _objectSpread(_objectSpread({}, style), {}, {
135
131
  height: context !== null && context !== void 0 && (_context$appHelper4 = context.appHelper) !== null && _context$appHelper4 !== void 0 && (_context$appHelper4 = _context$appHelper4.utils) !== null && _context$appHelper4 !== void 0 && _context$appHelper4.isMobile ? '100%' : '100vh'
@@ -140,10 +136,13 @@ var Info = Provider(function (props) {
140
136
  dispatch: modal.dispatch,
141
137
  source: "info"
142
138
  }),
143
- bodyClassName: classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode && !isTerminalDayBooking(modal.state)))
139
+ bodyClassName: classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode && !isTerminalDayBooking(modal.state))),
140
+ state: modal.state,
141
+ dispatch: modal.dispatch,
142
+ source: "info"
144
143
  }, /*#__PURE__*/React.createElement("div", {
145
144
  className: "booking-info"
146
- }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state6 = modal.state) !== null && _modal$state6 !== void 0 && _modal$state6.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
145
+ }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state4 = modal.state) !== null && _modal$state4 !== void 0 && _modal$state4.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
147
146
  loading: globalState.loading,
148
147
  round: true,
149
148
  active: true,
@@ -81,6 +81,7 @@ var Lists = function Lists(_ref) {
81
81
  * @Date: 2024-12-09 16:07
82
82
  */
83
83
  var productParams = useMemo(function () {
84
+ var _state$bookingConfig;
84
85
  return {
85
86
  hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
86
87
  isShowNote: isEventBooking(state),
@@ -92,14 +93,16 @@ var Lists = function Lists(_ref) {
92
93
  isShowChangeHolder: isShowChangeHolder,
93
94
  isShowChangeResource: true,
94
95
  isShowAddHolderButton: true,
95
- isShowEditProduct: !state.isBookingCreatePage
96
+ isShowEditProduct: !state.isBookingCreatePage,
97
+ productCardStyleConfig: (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.cart_settings_tab
96
98
  };
97
- }, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage]);
99
+ }, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage, state.bookingConfig]);
98
100
  return /*#__PURE__*/React.createElement(CartContext.Provider, {
99
101
  value: {
100
102
  state: state
101
103
  }
102
104
  }, /*#__PURE__*/React.createElement(ShoppingCart, {
105
+ scenario: state.isBookingTicket2 ? 'booking2' : undefined,
103
106
  isParallelResource: isParallelResource,
104
107
  onAction: onAction,
105
108
  onChange: handleChange,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -19,7 +19,7 @@ var Like = function Like(_ref) {
19
19
  }
20
20
  e.preventDefault();
21
21
  e.stopPropagation();
22
- onChange === null || onChange === void 0 ? void 0 : onChange(status === "like" ? "common" : "like");
22
+ onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
23
23
  }
24
24
  });
25
25
  };
@@ -39,7 +39,7 @@ var ServiceItem = function ServiceItem(_ref) {
39
39
  icon: /*#__PURE__*/React.createElement(Iconfont, {
40
40
  type: "pisell2-trash-01"
41
41
  })
42
- })), d.id ? /*#__PURE__*/React.createElement("div", {
42
+ })), d.id || d.isCustomItem ? /*#__PURE__*/React.createElement("div", {
43
43
  className: "pisell-lowcode__booking-service-item-title"
44
44
  }, d.title) : null, d._extend ? /*#__PURE__*/React.createElement(React.Fragment, null, state.renderType !== 'eventBooking' && /*#__PURE__*/React.createElement("div", {
45
45
  className: "pisell-lowcode__booking-service-item-date"
@@ -59,7 +59,7 @@ var ServiceItem = function ServiceItem(_ref) {
59
59
  renderItem: function renderItem(item) {
60
60
  return renderBundles(item, state.amountSymbol);
61
61
  }
62
- }) : null, d.id ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
62
+ }) : null, d.id || d.isCustomItem ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
63
63
  className: "pisell-lowcode__booking-service-item-price-wrap"
64
64
  }, /*#__PURE__*/React.createElement("span", {
65
65
  className: "pisell-lowcode__booking-service-item-price"
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -58,6 +58,7 @@ export declare const getIsSubjectRequire: (state: any) => boolean;
58
58
  export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
59
  export declare const isAllNormalProduct: (items: any[]) => boolean;
60
60
  export declare const isAllNormalProductByState: (state: any) => boolean;
61
+ export declare const genRowKey: (key: string) => string;
61
62
  /**
62
63
  * @title: 格式化商品数据
63
64
  * @description:
@@ -71,6 +72,7 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
71
72
  id: any;
72
73
  _id: any;
73
74
  name: any;
75
+ title: any;
74
76
  price: any;
75
77
  total: number;
76
78
  origin_total: number;
@@ -91,6 +93,8 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
91
93
  end_date: any;
92
94
  holder_id: any;
93
95
  isNormalProduct: boolean;
96
+ isCustomItem: any;
97
+ vouchersApplicable: any;
94
98
  locale: any;
95
99
  symbol: any;
96
100
  relation_products: any;
@@ -244,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
248
  * @Author: WangHan
245
249
  * @Date: 2024-12-24 11:32
246
250
  */
247
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -429,6 +429,7 @@ var formatBundle = function formatBundle(bundle) {
429
429
  return {
430
430
  id: item === null || item === void 0 ? void 0 : item.id,
431
431
  title: item === null || item === void 0 ? void 0 : item.title,
432
+ cover: item === null || item === void 0 ? void 0 : item.cover,
432
433
  num: item === null || item === void 0 ? void 0 : item.num,
433
434
  price: item === null || item === void 0 ? void 0 : item.price,
434
435
  total: item === null || item === void 0 ? void 0 : item.price,
@@ -531,7 +532,7 @@ export var getIsSubjectRequire = function getIsSubjectRequire(state) {
531
532
  // 非预约商品 通过时长和日程判断是否是普通商品
532
533
  export var isNormalProductByDurationSchedule = function isNormalProductByDurationSchedule(item) {
533
534
  var _item$schedules, _item$scheduleIds;
534
- return !(item !== null && item !== void 0 && item.duration) && !(item !== null && item !== void 0 && (_item$schedules = item.schedules) !== null && _item$schedules !== void 0 && _item$schedules.length) && !((_item$scheduleIds = item['schedule.ids']) !== null && _item$scheduleIds !== void 0 && _item$scheduleIds.length);
535
+ return !(item !== null && item !== void 0 && item.duration) && !(item !== null && item !== void 0 && (_item$schedules = item.schedules) !== null && _item$schedules !== void 0 && _item$schedules.length) && !(item !== null && item !== void 0 && (_item$scheduleIds = item['schedule.ids']) !== null && _item$scheduleIds !== void 0 && _item$scheduleIds.length);
535
536
  };
536
537
 
537
538
  // 是否全部是普通商品
@@ -543,6 +544,9 @@ export var isAllNormalProduct = function isAllNormalProduct(items) {
543
544
  export var isAllNormalProductByState = function isAllNormalProductByState(state) {
544
545
  return isAllNormalProduct(state.service.value);
545
546
  };
547
+ export var genRowKey = function genRowKey(key) {
548
+ return "rowKey-".concat(key);
549
+ };
546
550
  var getGeneralParams = function getGeneralParams(item, state, isParallelResource) {
547
551
  var _formData$, _item$_extend5, _item$_extend6, _item$_extend7, _item$_extend8, _item$_extend9;
548
552
  var pet = state.pet,
@@ -621,7 +625,7 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
621
625
  holder_id: item === null || item === void 0 || (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.holder_id,
622
626
  start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.startDate : "",
623
627
  end_date: !isNormalProduct ? (item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.endDate) || (item === null || item === void 0 || (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.end_date) : "",
624
- rowKey: "rowKey-".concat(item === null || item === void 0 || (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 || (_item$_extend9 = _item$_extend9.other) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.rowKey)
628
+ rowKey: genRowKey(item === null || item === void 0 || (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 || (_item$_extend9 = _item$_extend9.other) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.rowKey)
625
629
  }, parallelResourceOtherParams);
626
630
  };
627
631
  var calcAddTimeTotalPrice = function calcAddTimeTotalPrice(total, addTimeProducts) {
@@ -663,6 +667,8 @@ export var formatProducts = function formatProducts(lists, state) {
663
667
  id: item === null || item === void 0 ? void 0 : item.id,
664
668
  _id: item === null || item === void 0 ? void 0 : item._id,
665
669
  name: item === null || item === void 0 ? void 0 : item.title,
670
+ title: item === null || item === void 0 ? void 0 : item.title,
671
+ // 购物车显示需要 title 字段
666
672
  price: item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.price,
667
673
  total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.total, item === null || item === void 0 || (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.relation_details),
668
674
  origin_total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.origin_total, item === null || item === void 0 || (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.relation_details),
@@ -683,6 +689,10 @@ export var formatProducts = function formatProducts(lists, state) {
683
689
  end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.end_date : '',
684
690
  holder_id: (item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.holder_id) || 0,
685
691
  isNormalProduct: isNormalProduct,
692
+ isCustomItem: item === null || item === void 0 ? void 0 : item.isCustomItem,
693
+ // 添加自定义商品标识
694
+ vouchersApplicable: item === null || item === void 0 ? void 0 : item.vouchersApplicable,
695
+ // 是否适用优惠券/折扣
686
696
  locale: state.locale,
687
697
  symbol: state.amountSymbol,
688
698
  relation_products: (item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.relation_details) || [],
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { ClientCardRef } from './types';
3
+ import './index.less';
4
+ export type { ClientData } from './types';
5
+ declare const CartClientCard: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ClientCardRef>>;
6
+ export default CartClientCard;