@pisell/private-materials 6.7.5 → 6.7.6

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 (392) 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 +5 -5
  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 +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  22. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  23. package/es/components/appointmentBooking/index.d.ts +1 -0
  24. package/es/components/booking/addons/index.js +1 -1
  25. package/es/components/booking/components/footer/amount.d.ts +37 -0
  26. package/es/components/booking/components/footer/amount.js +48 -34
  27. package/es/components/booking/components/footer/index.d.ts +1 -0
  28. package/es/components/booking/components/footer/utils.js +38 -38
  29. package/es/components/booking/components/voucher/index.d.ts +1 -0
  30. package/es/components/booking/components/voucher/index.js +3 -1
  31. package/es/components/booking/deposit/index.d.ts +1 -0
  32. package/es/components/booking/forms/footer.d.ts +1 -0
  33. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  34. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  35. package/es/components/booking/hooks/useQuotation.d.ts +1 -0
  36. package/es/components/booking/hooks/useQuotation.js +4 -1
  37. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  38. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  39. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  40. package/es/components/booking/info/header/index.d.ts +1 -0
  41. package/es/components/booking/info/index.d.ts +1 -0
  42. package/es/components/booking/info/service/Lists.d.ts +1 -0
  43. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  44. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  45. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  46. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  47. package/es/components/booking/info/service2/utils.d.ts +251 -0
  48. package/es/components/booking/info2/service/addService/index.d.ts +12 -0
  49. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  50. package/es/components/booking/info2/service/editNormalService/index.js +6 -0
  51. package/es/components/booking/info2/service/editService/index.js +16 -6
  52. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  53. package/es/components/booking/info2/service/editService/utils.js +66 -0
  54. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  55. package/es/components/booking/utils.d.ts +174 -0
  56. package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  57. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +16 -0
  58. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  59. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  60. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  61. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  62. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  63. package/es/components/checkout/locales.d.ts +513 -0
  64. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  65. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  66. package/es/components/eftposPay/amount.d.ts +1 -1
  67. package/es/components/eftposPay/device.d.ts +1 -1
  68. package/es/components/eftposPay/hooks.d.ts +2 -2
  69. package/es/components/eftposPay/index.d.ts +1 -0
  70. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  71. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  72. package/es/components/eftposPay/payo/config.d.ts +13 -0
  73. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  74. package/es/components/eftposPay/store/index.d.ts +4 -4
  75. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  76. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  77. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  78. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  79. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  81. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  92. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  96. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  98. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  99. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  100. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  101. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  102. package/es/components/eventBooking/index.d.ts +1 -0
  103. package/es/components/index.d.ts +24 -0
  104. package/es/components/list/List.js +56 -40
  105. package/es/components/list/hooks/useListState.d.ts +5 -3
  106. package/es/components/list/hooks/useListState.js +17 -2
  107. package/es/components/list/styles/header.less +3 -3
  108. package/es/components/list/utils/index.d.ts +13 -1
  109. package/es/components/list/utils/index.js +43 -1
  110. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  111. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  112. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  113. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  114. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  115. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  116. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  118. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  119. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  120. package/es/components/pay/toC/locales.d.ts +301 -0
  121. package/es/components/pay/toC/status.d.ts +13 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  123. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  124. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  125. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  126. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  127. package/es/components/productExtension/index.d.ts +1 -0
  128. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  129. package/es/components/ruleSetting/index.d.ts +1 -0
  130. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  131. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  133. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  134. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  135. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  136. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  137. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  138. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  139. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  140. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  141. package/es/components/systemSettings/registry/services.d.ts +77 -0
  142. package/es/components/systemSettings/registry/types.d.ts +126 -0
  143. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  144. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  145. package/es/components/taxSelect/index.d.ts +1 -0
  146. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +1 -0
  147. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +33 -2
  148. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +139 -36
  149. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  150. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  151. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  152. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  153. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  154. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  155. package/es/components/ticketBooking/index.d.ts +1 -0
  156. package/es/components/ticketBooking/locales.d.ts +198 -0
  157. package/es/components/ticketBooking/utils/index.d.ts +93 -0
  158. package/es/components/wallet/Detail/locales.d.ts +153 -0
  159. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  160. package/es/components/wallet/serve.d.ts +150 -0
  161. package/es/components/wallet/utils.d.ts +48 -0
  162. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  163. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  164. package/es/plus/clientCard/locales.d.ts +18 -0
  165. package/es/plus/clinetSearch/index.d.ts +17 -0
  166. package/es/plus/clinetSearch/locales.d.ts +105 -0
  167. package/es/plus/clinetSearch/types.d.ts +61 -0
  168. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  169. package/es/plus/noteModal/AddTempModal.d.ts +1 -0
  170. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  171. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  172. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  173. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  174. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  175. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  176. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  177. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  178. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  179. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  180. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  181. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
  186. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  187. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  188. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  189. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  190. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  191. package/es/plus/walletPassGallery/index.d.ts +1 -0
  192. package/es/plus/walletPassGallery/serve.d.ts +221 -0
  193. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  194. package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
  195. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  196. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  197. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +13 -0
  198. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  199. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  200. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  201. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  202. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  203. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  204. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  205. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  206. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  207. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  208. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  209. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  210. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  211. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  212. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  213. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  214. package/lib/components/appointmentBooking/index.d.ts +1 -0
  215. package/lib/components/booking/components/footer/amount.d.ts +37 -0
  216. package/lib/components/booking/components/footer/amount.js +29 -15
  217. package/lib/components/booking/components/footer/index.d.ts +1 -0
  218. package/lib/components/booking/components/footer/utils.js +8 -8
  219. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  220. package/lib/components/booking/components/voucher/index.js +4 -2
  221. package/lib/components/booking/deposit/index.d.ts +1 -0
  222. package/lib/components/booking/forms/footer.d.ts +1 -0
  223. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  224. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  225. package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
  226. package/lib/components/booking/hooks/useQuotation.js +2 -1
  227. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  228. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  229. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  230. package/lib/components/booking/info/header/index.d.ts +1 -0
  231. package/lib/components/booking/info/index.d.ts +1 -0
  232. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  233. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  234. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  235. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  236. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  237. package/lib/components/booking/info/service2/utils.d.ts +251 -0
  238. package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
  239. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  240. package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
  241. package/lib/components/booking/info2/service/editService/index.js +12 -3
  242. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  243. package/lib/components/booking/info2/service/editService/utils.js +40 -3
  244. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  245. package/lib/components/booking/utils.d.ts +174 -0
  246. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
  247. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +16 -0
  248. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
  249. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  250. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  251. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  252. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  253. package/lib/components/checkout/locales.d.ts +513 -0
  254. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
  255. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  256. package/lib/components/eftposPay/amount.d.ts +1 -1
  257. package/lib/components/eftposPay/device.d.ts +1 -1
  258. package/lib/components/eftposPay/hooks.d.ts +2 -2
  259. package/lib/components/eftposPay/index.d.ts +1 -0
  260. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  261. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  262. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  263. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  264. package/lib/components/eftposPay/store/index.d.ts +4 -4
  265. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  266. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  267. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  268. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  269. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  270. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  271. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  272. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  273. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  274. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  275. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  276. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  277. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  278. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  279. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  280. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  281. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  282. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  283. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  284. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  285. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  286. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  287. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  288. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  289. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  290. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  291. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  292. package/lib/components/eventBooking/index.d.ts +1 -0
  293. package/lib/components/index.d.ts +24 -0
  294. package/lib/components/list/List.js +34 -16
  295. package/lib/components/list/hooks/useListState.d.ts +5 -3
  296. package/lib/components/list/hooks/useListState.js +14 -1
  297. package/lib/components/list/styles/header.less +3 -3
  298. package/lib/components/list/utils/index.d.ts +13 -1
  299. package/lib/components/list/utils/index.js +27 -0
  300. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  301. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  302. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  303. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  304. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  305. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
  306. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  307. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  308. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  309. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  310. package/lib/components/pay/toC/locales.d.ts +301 -0
  311. package/lib/components/pay/toC/status.d.ts +13 -0
  312. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  313. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  314. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  315. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  316. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  317. package/lib/components/productExtension/index.d.ts +1 -0
  318. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  319. package/lib/components/ruleSetting/index.d.ts +1 -0
  320. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  321. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  322. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  323. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  324. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  325. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  326. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  327. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  328. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  329. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  330. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  331. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  332. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  333. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  334. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  335. package/lib/components/taxSelect/index.d.ts +1 -0
  336. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +1 -0
  337. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +33 -2
  338. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +84 -24
  339. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  340. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  341. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  342. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  343. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  344. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  345. package/lib/components/ticketBooking/index.d.ts +1 -0
  346. package/lib/components/ticketBooking/locales.d.ts +198 -0
  347. package/lib/components/ticketBooking/utils/index.d.ts +93 -0
  348. package/lib/components/wallet/Detail/locales.d.ts +153 -0
  349. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  350. package/lib/components/wallet/serve.d.ts +150 -0
  351. package/lib/components/wallet/utils.d.ts +48 -0
  352. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  353. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  354. package/lib/plus/clientCard/locales.d.ts +18 -0
  355. package/lib/plus/clinetSearch/index.d.ts +17 -0
  356. package/lib/plus/clinetSearch/locales.d.ts +105 -0
  357. package/lib/plus/clinetSearch/types.d.ts +61 -0
  358. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
  359. package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
  360. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
  361. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  362. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  363. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  364. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
  365. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
  366. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  367. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  368. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
  369. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
  370. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  371. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  372. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
  373. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
  374. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  375. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
  376. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  377. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  378. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  379. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  380. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  381. package/lib/plus/walletPassGallery/index.d.ts +1 -0
  382. package/lib/plus/walletPassGallery/serve.d.ts +221 -0
  383. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  384. package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
  385. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  386. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  387. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +13 -0
  388. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  389. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
  390. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  391. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  392. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext, renderContactInfo }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const DepositContent: (props: {
3
4
  isAgreeDepositPolicy: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../booking/components/voucher/index.less';
2
3
  import './index.less';
3
4
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Deposit: (props: any) => JSX.Element;
3
4
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -35,7 +35,7 @@ import ProductItem from "../components/TabProduct/selectProductItem";
35
35
  import TabProduct from "../components/TabProduct";
36
36
  import EmptyBooking from "../components/emptyBooking";
37
37
  import Footer from "../components/footer";
38
- import { formatOriginalPrice, formatProductBundle, formatProductOption, formatProductPrice, formatSellingPrice, getBundleDiscountList, getMainProductSellingPrice, getSourceProductPrice } from "../components/footer/utils";
38
+ import { formatOriginalPrice, formatProductBundle, formatProductOption, formatProductPrice, formatSellingPrice, getBundleDiscountList, getSourceProductPrice, getMainProductSellingPrice } from "../components/footer/utils";
39
39
  import { formatProductListByCategory, getIsEject, getIsOnlySession, getMainPrice, getProductTotalPrice, isSessionProduct, request } from "../utils";
40
40
  import { locales, getUniqueId } from '@pisell/utils';
41
41
  import "./index.less";
@@ -0,0 +1,37 @@
1
+ export declare const getRelationDetailsTotal: (relation_details: any) => number;
2
+ export declare const getIsPriceIncludeTax: (state: any) => any;
3
+ /**
4
+ * 总金额
5
+ * @param state
6
+ * @param options isEdit: 预约信息是否发生变动
7
+ * @returns
8
+ */
9
+ export declare const getSumTotal: (state: any, options: {
10
+ [key: string]: any;
11
+ isEdit: boolean;
12
+ ScheduleModule: any;
13
+ }) => {
14
+ productAmount: number;
15
+ duration: string;
16
+ tax: number;
17
+ taxInfo: {
18
+ title: any;
19
+ rate: any;
20
+ is_price_include_tax: any;
21
+ };
22
+ shopDiscount: number;
23
+ surcharge: any;
24
+ otherAmount: any;
25
+ sumTotalAmount: number;
26
+ paidAmount: any;
27
+ notPaidAmount: number;
28
+ paySurchargeFee: number;
29
+ expectAmount: number;
30
+ actualPaidAmount: any;
31
+ orderPaidAmount: any;
32
+ totalRefundAmount: number;
33
+ dueAmount: number;
34
+ roundingAmount: number;
35
+ originExpectAmount: number;
36
+ originExpectAmountWithoutDiscount: number;
37
+ };
@@ -605,16 +605,8 @@ var getDiscountAmount = function getDiscountAmount(discounts) {
605
605
  * 获取主商品加价减价后的总价 (主商品价格 + 子商品加价减价)
606
606
  */
607
607
  var getMainProductTotal = function getMainProductTotal(item) {
608
- var _item$_extend$other2, _item$_extend$other3, _item$_extend$other5;
609
- var total = new Decimal(item._extend.main_product_selling_price || item._extend.price || 0);
610
-
611
- // 如果主商品没有main_product_selling_price 则通过discount_list计算
612
- if (!item._extend.main_product_selling_price) {
613
- // 主商品折扣金额
614
- var discountAmount = getDiscountAmount(item.discount_list);
615
- // 主商品总价 - 主商品折扣金额
616
- total = total.minus(discountAmount);
617
- }
608
+ var _ref3, _ref4, _item$_extend$main_pr, _item$_extend3, _item$metadata, _item$_extend$other2, _item$_extend$other3, _item$_extend$other5;
609
+ var total = new Decimal((_ref3 = (_ref4 = (_item$_extend$main_pr = (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.main_product_selling_price) !== null && _item$_extend$main_pr !== void 0 ? _item$_extend$main_pr : item === null || item === void 0 || (_item$metadata = item.metadata) === null || _item$metadata === void 0 ? void 0 : _item$metadata.main_product_selling_price) !== null && _ref4 !== void 0 ? _ref4 : item._extend.price) !== null && _ref3 !== void 0 ? _ref3 : 0);
618
610
 
619
611
  // 单规格
620
612
  if ((_item$_extend$other2 = item._extend.other) !== null && _item$_extend$other2 !== void 0 && _item$_extend$other2.option && Array.isArray((_item$_extend$other3 = item._extend.other) === null || _item$_extend$other3 === void 0 ? void 0 : _item$_extend$other3.option)) {
@@ -629,13 +621,13 @@ var getMainProductTotal = function getMainProductTotal(item) {
629
621
  for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
630
622
  var bundleItem = _step8.value;
631
623
  if (getBundleItemIsMarkupOrDiscountPrice(bundleItem)) {
632
- var _ref3, _bundleItem$bundle_se2;
624
+ var _ref5, _bundleItem$bundle_se2;
633
625
  // 子商品折扣金额
634
- var _discountAmount = getDiscountAmount(bundleItem.discount_list);
626
+ var discountAmount = getDiscountAmount(bundleItem.discount_list);
635
627
  // 子商品价格
636
- var bundleItemPrice = new Decimal((_ref3 = (_bundleItem$bundle_se2 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se2 !== void 0 ? _bundleItem$bundle_se2 : bundleItem.price) !== null && _ref3 !== void 0 ? _ref3 : 0);
628
+ var bundleItemPrice = new Decimal((_ref5 = (_bundleItem$bundle_se2 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se2 !== void 0 ? _bundleItem$bundle_se2 : bundleItem.price) !== null && _ref5 !== void 0 ? _ref5 : 0);
637
629
  // todo: 套餐子商品后不需要处理 子商品价格 - 子商品折扣金额
638
- var bundleItemTotal = bundleItemPrice.minus(_discountAmount);
630
+ var bundleItemTotal = bundleItemPrice.minus(discountAmount);
639
631
  total = total.add(bundleItemTotal);
640
632
  }
641
633
  }
@@ -837,11 +829,11 @@ var getSurcharge = function getSurcharge(state, options) {
837
829
  scheduleById: scheduleById || {},
838
830
  ScheduleModule: ScheduleModule
839
831
  })) {
840
- var _ref4, _bundleItem$bundle_se3;
832
+ var _ref6, _bundleItem$bundle_se3;
841
833
  var _mainQuantity = item._extend.quantity || 1;
842
834
  matchedItems.push({
843
835
  isMain: false,
844
- total: Number((_ref4 = (_bundleItem$bundle_se3 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se3 !== void 0 ? _bundleItem$bundle_se3 : bundleItem.price) !== null && _ref4 !== void 0 ? _ref4 : 0),
836
+ total: Number((_ref6 = (_bundleItem$bundle_se3 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se3 !== void 0 ? _bundleItem$bundle_se3 : bundleItem.price) !== null && _ref6 !== void 0 ? _ref6 : 0),
845
837
  quantity: bundleItem.num || bundleItem.quantity || 1,
846
838
  item: bundleItem,
847
839
  mainQuantity: _mainQuantity // 子商品的mainQuantity是所属主商品的quantity
@@ -936,10 +928,17 @@ var getSurcharge = function getSurcharge(state, options) {
936
928
 
937
929
  // 追加进入的固定附加费总值
938
930
  var fixedTotal = new Decimal(0);
931
+ // 追加到商品的附加费总值 用于追加抹平字段
932
+ var productTotalSurcharge = new Decimal(0);
939
933
  if (matchedItems.length > 0) {
940
934
  // 基于每个商品计算附加费:max(0, 商品价格) * rate + fixed
941
935
  var configTotal = new Decimal(0);
942
936
 
937
+ // 计算固定附加费 - 只加一次
938
+ if (fixed && new Decimal(fixed).gt(0)) {
939
+ configTotal = configTotal.plus(fixed);
940
+ }
941
+
943
942
  // 计算百分比附加费 - 对每个商品单独计算
944
943
  if (percentage && new Decimal(percentage).gt(0) || fixed) {
945
944
  var percentageRate = new Decimal(percentage);
@@ -957,6 +956,7 @@ var getSurcharge = function getSurcharge(state, options) {
957
956
  var addTimeTotal = new Decimal(_item4.addTimeTotal || 0);
958
957
  // 单个商品总附加费
959
958
  var itemTotalSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
959
+ configTotal = configTotal.plus(itemTotalSurcharge);
960
960
 
961
961
  // 单个商品单数量附加费
962
962
  var itemSurcharge = itemPrice.times(percentageRate);
@@ -965,10 +965,12 @@ var getSurcharge = function getSurcharge(state, options) {
965
965
  var fixedSurcharge = new Decimal(1).div(productCount).times(fixed).times(100).floor().div(100).toFixed(2);
966
966
  var quantity = _item4.isMain ? _item4.quantity : _item4.quantity * _item4.mainQuantity;
967
967
  fixedTotal = fixedTotal.plus(new Decimal(fixedSurcharge).times(quantity).toNumber());
968
+
968
969
  // 如果是最后一个商品 判断fixed - fixedTotal 是否有剩余小数 如果有的话,追加抹平字段
969
970
  if (isLast && fixedTotal.gt(0)) {
970
971
  var remaining = new Decimal(fixed).minus(fixedTotal).toNumber();
971
972
  if (remaining > 0) {
973
+ productTotalSurcharge = productTotalSurcharge.plus(remaining);
972
974
  if (_item4.isMain) {
973
975
  _item4.item._extend.surcharge_rounding_remainder = remaining;
974
976
  } else {
@@ -983,17 +985,34 @@ var getSurcharge = function getSurcharge(state, options) {
983
985
  var _item4$item$_extend;
984
986
  var originSurchargeFee = new Decimal(_item4.item._extend.surcharge_fee || 0);
985
987
  // 保留两位小数
986
- _item4.item._extend.surcharge_fee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toNumber();
988
+ var surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
989
+ productTotalSurcharge = productTotalSurcharge.plus(new Decimal(surchargeFee).times(itemQuantity).toNumber());
990
+ _item4.item._extend.surcharge_fee = surchargeFee;
987
991
  _item4.item._extend.relation_surcharge_ids = [].concat(_toConsumableArray(((_item4$item$_extend = _item4.item._extend) === null || _item4$item$_extend === void 0 ? void 0 : _item4$item$_extend.relation_surcharge_ids) || []), [id]);
988
992
  } else {
989
993
  var _item4$item;
990
994
  var _originSurchargeFee = new Decimal(_item4.item.surcharge_fee || 0);
991
995
  // 保留两位小数
992
- _item4.item.surcharge_fee = _originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toNumber();
996
+ var _surchargeFee = _originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
997
+ productTotalSurcharge = productTotalSurcharge.plus(new Decimal(_surchargeFee).times(itemQuantity).toNumber());
998
+ _item4.item.surcharge_fee = _surchargeFee;
993
999
  _item4.item.relation_surcharge_ids = [].concat(_toConsumableArray(((_item4$item = _item4.item) === null || _item4$item === void 0 ? void 0 : _item4$item.relation_surcharge_ids) || []), [id]);
994
1000
  }
995
1001
  }
996
- configTotal = configTotal.plus(itemTotalSurcharge);
1002
+ // 最后一个商品 判断configTotal - productTotalSurcharge 是否有剩余小数 如果有的话,追加抹平字段
1003
+ if (isLast && configTotal.minus(productTotalSurcharge).gt(0)) {
1004
+ // 四舍五入configTotal
1005
+ var configTotalRounded = configTotal.toDecimalPlaces(2, Decimal.ROUND_HALF_UP);
1006
+ if (_item4.isMain) {
1007
+ var newRoundingRemainder = new Decimal(_item4.item._extend.surcharge_rounding_remainder || 0);
1008
+ newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
1009
+ _item4.item._extend.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
1010
+ } else {
1011
+ var _newRoundingRemainder = new Decimal(_item4.item.surcharge_rounding_remainder || 0);
1012
+ _newRoundingRemainder = _newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
1013
+ _item4.item.surcharge_rounding_remainder = _newRoundingRemainder.toNumber();
1014
+ }
1015
+ }
997
1016
  }
998
1017
  } catch (err) {
999
1018
  _iterator18.e(err);
@@ -1002,11 +1021,6 @@ var getSurcharge = function getSurcharge(state, options) {
1002
1021
  }
1003
1022
  }
1004
1023
 
1005
- // 计算固定附加费 - 只加一次
1006
- if (fixed && new Decimal(fixed).gt(0)) {
1007
- configTotal = configTotal.plus(fixed);
1008
- }
1009
-
1010
1024
  // 如果该配置有金额,则添加到结果中
1011
1025
  finalAmount = configTotal.toDecimalPlaces(2, Decimal.ROUND_HALF_UP).toNumber();
1012
1026
  }
@@ -1099,13 +1113,13 @@ export var getIsPriceIncludeTax = function getIsPriceIncludeTax(state) {
1099
1113
  var _state$bookingDetail$, _state$bookingDetail6;
1100
1114
  return (_state$bookingDetail$ = (_state$bookingDetail6 = state.bookingDetail) === null || _state$bookingDetail6 === void 0 ? void 0 : _state$bookingDetail6.is_price_include_tax) !== null && _state$bookingDetail$ !== void 0 ? _state$bookingDetail$ : 0;
1101
1115
  };
1102
- var getExpectAmount = function getExpectAmount(_ref5) {
1103
- var price = _ref5.price,
1104
- tax = _ref5.tax,
1105
- surchargeAmount = _ref5.surchargeAmount,
1106
- shopDiscount = _ref5.shopDiscount,
1107
- state = _ref5.state,
1108
- options = _ref5.options;
1116
+ var getExpectAmount = function getExpectAmount(_ref7) {
1117
+ var price = _ref7.price,
1118
+ tax = _ref7.tax,
1119
+ surchargeAmount = _ref7.surchargeAmount,
1120
+ shopDiscount = _ref7.shopDiscount,
1121
+ state = _ref7.state,
1122
+ options = _ref7.options;
1109
1123
  var _tax = tax;
1110
1124
  // 如果价格含税, 则将税费改为0
1111
1125
  if (getIsPriceIncludeTax(state) || options !== null && options !== void 0 && options.is_price_include_tax) {
@@ -1127,9 +1141,9 @@ var getRoundingAmount = function getRoundingAmount(state) {
1127
1141
  var _state$bookingDetail9;
1128
1142
  return Number(state === null || state === void 0 || (_state$bookingDetail9 = state.bookingDetail) === null || _state$bookingDetail9 === void 0 ? void 0 : _state$bookingDetail9.rounding_amount) || 0;
1129
1143
  };
1130
- var getSumTotalAmount = function getSumTotalAmount(_ref6) {
1131
- var expectAmount = _ref6.expectAmount,
1132
- roundingAmount = _ref6.roundingAmount;
1144
+ var getSumTotalAmount = function getSumTotalAmount(_ref8) {
1145
+ var expectAmount = _ref8.expectAmount,
1146
+ roundingAmount = _ref8.roundingAmount;
1133
1147
  return expectAmount + roundingAmount;
1134
1148
  };
1135
1149
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -17,7 +17,7 @@ import { getSumCapacity } from "../../info2/utilsByBooking";
17
17
  import { getDays } from "../../utils";
18
18
  import { appointmentTypes } from "../../info/service2/status";
19
19
  import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule, genRowKey } from "../../info/service2/utils";
20
- import { isArr, locales, sendWarningLog, getUniqueId, isNumber } from '@pisell/utils';
20
+ import { isArr, locales, sendWarningLog, getUniqueId, isNumber, isString } from '@pisell/utils';
21
21
  import { PisellToast } from '@pisell/materials';
22
22
  import { getClientName } from "../../../../plus/clientName/utils";
23
23
  import { cloneDeep } from 'lodash';
@@ -127,8 +127,8 @@ export var formatProductBundle = function formatProductBundle(bundle) {
127
127
  "custom_price": (d === null || d === void 0 ? void 0 : d.custom_price) || Math.abs(new Decimal((d === null || d === void 0 ? void 0 : d.original_price) || (d === null || d === void 0 ? void 0 : d.product_price)).sub(option_price).toNumber()).toFixed(2),
128
128
  "custom_price_type": d === null || d === void 0 ? void 0 : d.price_type,
129
129
  "option": option,
130
- "bundle_selling_price": d === null || d === void 0 ? void 0 : d.price,
131
- "bundle_sum_price": (d === null || d === void 0 ? void 0 : d.original_price) || (d === null || d === void 0 ? void 0 : d.original_total),
130
+ "bundle_selling_price": Math.abs(d === null || d === void 0 ? void 0 : d.price),
131
+ // "bundle_sum_price": d?.original_price || d?.original_total,
132
132
  "metadata": {
133
133
  custom_product_bundle_map_id: d._id,
134
134
  // 子商品单数量附加费
@@ -274,9 +274,9 @@ var formatHolders = function formatHolders(state, item, values) {
274
274
  * @Date: 2024-12-23 12:05
275
275
  */
276
276
  export var formatProductPrice = function formatProductPrice(item) {
277
- var _item$_extend6, _item$_extend7, _item$variant;
277
+ var _item$_extend6, _item$price, _item$_extend7, _item$variant;
278
278
  var other = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.other;
279
- var price = Number((_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
279
+ var price = Number((_item$price = item === null || item === void 0 ? void 0 : item.price) !== null && _item$price !== void 0 ? _item$price : item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
280
280
 
281
281
  // 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
282
282
  if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant = item.variant) === null || _item$variant === void 0 ? void 0 : _item$variant.length) > 0) {
@@ -404,8 +404,8 @@ export var getSourceProductPrice = function getSourceProductPrice(item) {
404
404
 
405
405
  // 获取主商品价格 要增加option
406
406
  export var getMainProductSellingPrice = function getMainProductSellingPrice(item) {
407
- var _item$_extend27, _item$_extend$other, _item$_extend$other2, _item$_extend28;
408
- if (!isNumber((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.main_product_selling_price)) {
407
+ var _item$_extend27, _item$_extend28, _item$_extend$other, _item$_extend$other2, _item$_extend29;
408
+ if (!isNumber((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.main_product_selling_price) && !isString((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.main_product_selling_price)) {
409
409
  return undefined;
410
410
  }
411
411
  var optionPrice = new Decimal(0);
@@ -418,7 +418,7 @@ export var getMainProductSellingPrice = function getMainProductSellingPrice(item
418
418
  return accumulator.add(currentPrice.mul(currentNum));
419
419
  }, optionPrice);
420
420
  }
421
- return new Decimal((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.main_product_selling_price).add(optionPrice).toNumber();
421
+ return new Decimal((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.main_product_selling_price).add(optionPrice).toNumber();
422
422
  };
423
423
 
424
424
  /**
@@ -430,11 +430,11 @@ export var getMainProductSellingPrice = function getMainProductSellingPrice(item
430
430
  * @Date: 2024-12-07 14:21
431
431
  */
432
432
  var formatProducts = function formatProducts(item, quantity) {
433
- var _item$_extend29, _getMainProductSellin, _item$_extend30, _item$_extend31, _item$_extend32, _item$_extend33;
433
+ var _item$_extend30, _getMainProductSellin, _item$_extend31, _item$_extend32, _item$_extend33, _item$_extend34;
434
434
  var total = Number(item._extend.total);
435
435
  var origin_total = Number(item._extend.origin_total);
436
436
  var discount_amount = origin_total - total;
437
- var bundleDiscountList = getBundleDiscountList(((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 || (_item$_extend29 = _item$_extend29.other) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.bundle) || []);
437
+ var bundleDiscountList = getBundleDiscountList(((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 || (_item$_extend30 = _item$_extend30.other) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.bundle) || []);
438
438
  var discount_list = _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []);
439
439
  discount_list.push.apply(discount_list, _toConsumableArray(bundleDiscountList));
440
440
 
@@ -463,15 +463,15 @@ var formatProducts = function formatProducts(item, quantity) {
463
463
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
464
464
  "product_discount_reason": item._extend.discount_reason || '',
465
465
  "is_charge_tax": item.is_charge_tax,
466
- "note": ((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.note) || '',
466
+ "note": ((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.note) || '',
467
467
  "discountway": item._extend.discountway || "num",
468
468
  "discount_per": item._extend.discount_per,
469
469
  "discount_type": item._extend.discount_type || discount_type,
470
470
  "order_detail_id": item._extend.order_detail_id || 0,
471
- "product_bundle": formatProductBundle((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 || (_item$_extend31 = _item$_extend31.other) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.bundle),
471
+ "product_bundle": formatProductBundle((_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 || (_item$_extend32 = _item$_extend32.other) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.bundle),
472
472
  "bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
473
- "product_option_item": formatProductOption((_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 || (_item$_extend32 = _item$_extend32.other) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.option),
474
- "product_variant_id": ((_item$_extend33 = item._extend) === null || _item$_extend33 === void 0 || (_item$_extend33 = _item$_extend33.other) === null || _item$_extend33 === void 0 ? void 0 : _item$_extend33.product_variant_id) || 0,
473
+ "product_option_item": formatProductOption((_item$_extend33 = item._extend) === null || _item$_extend33 === void 0 || (_item$_extend33 = _item$_extend33.other) === null || _item$_extend33 === void 0 ? void 0 : _item$_extend33.option),
474
+ "product_variant_id": ((_item$_extend34 = item._extend) === null || _item$_extend34 === void 0 || (_item$_extend34 = _item$_extend34.other) === null || _item$_extend34 === void 0 ? void 0 : _item$_extend34.product_variant_id) || 0,
475
475
  "discount_list": notManualDiscount,
476
476
  metadata: formatProductMetadata(item),
477
477
  // checkout 需求新增字段
@@ -496,8 +496,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
496
496
 
497
497
  // 过滤出卡片中的普通商品
498
498
  var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
499
- var _item$_extend34;
500
- var holderId = (_item$_extend34 = item._extend) === null || _item$_extend34 === void 0 ? void 0 : _item$_extend34.holder_id;
499
+ var _item$_extend35;
500
+ var holderId = (_item$_extend35 = item._extend) === null || _item$_extend35 === void 0 ? void 0 : _item$_extend35.holder_id;
501
501
  var bookingHolderId = booking_item._extend.holder_id;
502
502
  var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
503
503
  return holderId && holderId === bookingHolderId && !isDayBookingProduct;
@@ -523,15 +523,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
523
523
 
524
524
  // 找出预约商品
525
525
  list = list.filter(function (item) {
526
- var _item$_extend35;
527
- return ((_item$_extend35 = item._extend) === null || _item$_extend35 === void 0 ? void 0 : _item$_extend35.holder_id) && !isNormalProductByDurationSchedule(item);
526
+ var _item$_extend36;
527
+ return ((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.holder_id) && !isNormalProductByDurationSchedule(item);
528
528
  });
529
529
 
530
530
  // 对预约商品列表根据holder_id进行分组
531
531
  var groupMap = new Map();
532
532
  list.forEach(function (item) {
533
- var _item$_extend36;
534
- var key = (_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.holder_id; // 分组键
533
+ var _item$_extend37;
534
+ var key = (_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.holder_id; // 分组键
535
535
  if (!groupMap.has(key)) {
536
536
  groupMap.set(key, []);
537
537
  }
@@ -593,7 +593,7 @@ var formatBookings = function formatBookings(data, values) {
593
593
  var bookings = [];
594
594
  var obj = {};
595
595
  list.forEach(function (item) {
596
- var _item$_extend41, _item$_extend42;
596
+ var _item$_extend42, _item$_extend43;
597
597
  // 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
598
598
  if (item.isCustomItem) {
599
599
  bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
@@ -614,9 +614,9 @@ var formatBookings = function formatBookings(data, values) {
614
614
 
615
615
  // 跨日预约下的普通商品
616
616
  if (isDay) {
617
- var _item$_extend37, _item$_extend38, _item$_extend39, _item$_extend40;
618
- var startDate = ((_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.startDate) || ((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.start_date);
619
- var endDate = ((_item$_extend39 = item._extend) === null || _item$_extend39 === void 0 ? void 0 : _item$_extend39.endDate) || ((_item$_extend40 = item._extend) === null || _item$_extend40 === void 0 ? void 0 : _item$_extend40.end_date);
617
+ var _item$_extend38, _item$_extend39, _item$_extend40, _item$_extend41;
618
+ var startDate = ((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.startDate) || ((_item$_extend39 = item._extend) === null || _item$_extend39 === void 0 ? void 0 : _item$_extend39.start_date);
619
+ var endDate = ((_item$_extend40 = item._extend) === null || _item$_extend40 === void 0 ? void 0 : _item$_extend40.endDate) || ((_item$_extend41 = item._extend) === null || _item$_extend41 === void 0 ? void 0 : _item$_extend41.end_date);
620
620
  var _formatDayTime = formatDayTime({
621
621
  startDate: startDate,
622
622
  endDate: endDate
@@ -638,7 +638,7 @@ var formatBookings = function formatBookings(data, values) {
638
638
  }
639
639
  }, 'minutes');
640
640
  }
641
- if (!((_item$_extend41 = item._extend) !== null && _item$_extend41 !== void 0 && _item$_extend41.unique_identification_number)) {
641
+ if (!((_item$_extend42 = item._extend) !== null && _item$_extend42 !== void 0 && _item$_extend42.unique_identification_number)) {
642
642
  var unique_identification_number = getUniqueId();
643
643
  item._extend.unique_identification_number = unique_identification_number;
644
644
  }
@@ -646,7 +646,7 @@ var formatBookings = function formatBookings(data, values) {
646
646
  // 跨日预约处理: 跨日预约所有数据都在list中, 每一组预约通过groupId进行分组
647
647
  // 通过obj 记录下每个GroupId第一次出现的时机, 第一次出现需要设置 metadata.multiDayPrices
648
648
  // 后续出现不需要设置 metadata.multiDayPrices. 节省体积
649
- var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend42 = item._extend) === null || _item$_extend42 === void 0 ? void 0 : _item$_extend42.groupId];
649
+ var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend43 = item._extend) === null || _item$_extend43 === void 0 ? void 0 : _item$_extend43.groupId];
650
650
  var booking = _objectSpread(_objectSpread({
651
651
  "product": formatProducts(item),
652
652
  "metadata": formatMetaData(item, !isSetGroupId),
@@ -720,16 +720,16 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
720
720
  var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
721
721
  // open items 下的商品
722
722
  list = list.filter(function (item) {
723
- var _item$_extend43;
723
+ var _item$_extend44;
724
724
  return (
725
725
  // 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
726
- type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend43 = item._extend) === null || _item$_extend43 === void 0 ? void 0 : _item$_extend43.holder_id) && appointmentTypes.includes(item.extension_type)
726
+ type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend44 = item._extend) === null || _item$_extend44 === void 0 ? void 0 : _item$_extend44.holder_id) && appointmentTypes.includes(item.extension_type)
727
727
  );
728
728
  });
729
729
  var relationProducts = [];
730
730
  relationProducts = list.map(function (item) {
731
- var _item$_extend44;
732
- if (!((_item$_extend44 = item._extend) !== null && _item$_extend44 !== void 0 && _item$_extend44.unique_identification_number)) {
731
+ var _item$_extend45;
732
+ if (!((_item$_extend45 = item._extend) !== null && _item$_extend45 !== void 0 && _item$_extend45.unique_identification_number)) {
733
733
  var unique_identification_number = getUniqueId();
734
734
  item._extend.unique_identification_number = unique_identification_number;
735
735
  }
@@ -748,8 +748,8 @@ var formatNormalProducts = function formatNormalProducts(data) {
748
748
  });
749
749
  var relationProducts = [];
750
750
  relationProducts = list.map(function (item) {
751
- var _item$_extend45;
752
- if (!((_item$_extend45 = item._extend) !== null && _item$_extend45 !== void 0 && _item$_extend45.unique_identification_number)) {
751
+ var _item$_extend46;
752
+ if (!((_item$_extend46 = item._extend) !== null && _item$_extend46 !== void 0 && _item$_extend46.unique_identification_number)) {
753
753
  var unique_identification_number = getUniqueId();
754
754
  item._extend.unique_identification_number = unique_identification_number;
755
755
  }
@@ -869,19 +869,19 @@ export var checkHolderIsError = function checkHolderIsError(state) {
869
869
  var _state$client;
870
870
  var errorRowKey = '';
871
871
  var holderError = state.service.value.some(function (item) {
872
- var _item$_extend47;
872
+ var _item$_extend48;
873
873
  // 普通商品不需要检测holder
874
874
  if (isNormalProductByDurationSchedule(item)) {
875
875
  return false;
876
876
  }
877
877
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
878
- var _item$_extend46;
879
- errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend46 = item._extend) === null || _item$_extend46 === void 0 || (_item$_extend46 = _item$_extend46.other) === null || _item$_extend46 === void 0 ? void 0 : _item$_extend46.rowKey);
878
+ var _item$_extend47;
879
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend47 = item._extend) === null || _item$_extend47 === void 0 || (_item$_extend47 = _item$_extend47.other) === null || _item$_extend47 === void 0 ? void 0 : _item$_extend47.rowKey);
880
880
  return true;
881
881
  }
882
- if (item._extend.quantity > 1 && ((_item$_extend47 = item._extend) === null || _item$_extend47 === void 0 || (_item$_extend47 = _item$_extend47.holder_id) === null || _item$_extend47 === void 0 ? void 0 : _item$_extend47.length) !== item._extend.quantity) {
883
- var _item$_extend48;
884
- errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend48 = item._extend) === null || _item$_extend48 === void 0 || (_item$_extend48 = _item$_extend48.other) === null || _item$_extend48 === void 0 ? void 0 : _item$_extend48.rowKey);
882
+ if (item._extend.quantity > 1 && ((_item$_extend48 = item._extend) === null || _item$_extend48 === void 0 || (_item$_extend48 = _item$_extend48.holder_id) === null || _item$_extend48 === void 0 ? void 0 : _item$_extend48.length) !== item._extend.quantity) {
883
+ var _item$_extend49;
884
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend49 = item._extend) === null || _item$_extend49 === void 0 || (_item$_extend49 = _item$_extend49.other) === null || _item$_extend49 === void 0 ? void 0 : _item$_extend49.rowKey);
885
885
  return true;
886
886
  }
887
887
  return false;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const VoucherCard: (props: any) => JSX.Element | null;
3
4
  export default VoucherCard;
@@ -70,6 +70,8 @@ var VoucherCard = function VoucherCard(props) {
70
70
  var shopDiscount = useShopDiscountModule();
71
71
  var _useActiveExecute = useActiveExecute(),
72
72
  executeIfActive = _useActiveExecute.executeIfActive;
73
+ var stateRef = useRef(state);
74
+ stateRef.current = state;
73
75
  services = state.service;
74
76
 
75
77
  // 将选中的客户数据传递给状态管理
@@ -169,7 +171,7 @@ var VoucherCard = function VoucherCard(props) {
169
171
  return;
170
172
  }
171
173
  if (isBooking4Shop) {
172
- var val = shopDiscount.calcDiscount([].concat(_toConsumableArray(state.service.value), _toConsumableArray(state.addons.value)));
174
+ var val = shopDiscount.calcDiscount([].concat(_toConsumableArray(stateRef.current.service.value), _toConsumableArray(stateRef.current.addons.value)));
173
175
  console.log('input: ', state.service.value);
174
176
  console.log('output: ', val);
175
177
  productListToValue(val.productList);
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const calculateTotalPrice: (data: any) => number;
2
3
  declare const useQuotation: (state: any, dispatch: any) => {
3
4
  dom: JSX.Element;
@@ -85,9 +85,12 @@ var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
85
85
  return item.id === bundle.id;
86
86
  });
87
87
  var optionPrice = calculateTotalPrice((selectBundleInfo === null || selectBundleInfo === void 0 ? void 0 : selectBundleInfo.option) || []);
88
+
89
+ // 编辑预约时使用折扣卡
90
+ var isEditDiscount = item.booking_id && (bundle.discount_list || []).length;
88
91
  return _objectSpread(_objectSpread({}, bundle), {}, {
89
92
  base_price: bundleItemMap[bundle.id].base_price,
90
- price: new Decimal(bundleItemMap[bundle.id].price || 0).add(optionPrice).toNumber()
93
+ price: isEditDiscount ? bundle.price : new Decimal(bundleItemMap[bundle.id].price || 0).add(optionPrice).toNumber()
91
94
  // product_price: bundleItemMap[item.id].product_price,
92
95
  });
93
96
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface VerticalClientProps {
4
+ globalState: any;
5
+ setGlobalState: any;
6
+ }
7
+ declare const VerticalClient: React.ForwardRefExoticComponent<VerticalClientProps & React.RefAttributes<unknown>>;
8
+ export default VerticalClient;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const header: ({ state, dispatch }: any) => JSX.Element;
3
4
  export default header;