@pisell/private-materials 6.8.28 → 6.8.30

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 (291) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +8 -8
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/locales.d.ts +363 -0
  11. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
  12. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  13. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  14. package/es/components/booking/components/footer/amount.d.ts +37 -0
  15. package/es/components/booking/components/footer/index.js +43 -44
  16. package/es/components/booking/components/footer/utils.js +2 -2
  17. package/es/components/booking/deposit/index.d.ts +1 -0
  18. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  19. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  20. package/es/components/booking/forms/single/index.d.ts +1 -0
  21. package/es/components/booking/info/client/index.d.ts +4 -0
  22. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  23. package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
  24. package/es/components/booking/info/notes/index.d.ts +1 -0
  25. package/es/components/booking/info/service/Lists.d.ts +1 -0
  26. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  27. package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  28. package/es/components/booking/info/service/serve.d.ts +34 -0
  29. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  30. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  31. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  32. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  33. package/es/components/booking/info/service2/utils.d.ts +219 -0
  34. package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
  35. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  36. package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
  37. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  38. package/es/components/booking/info2/service/editNormalService/index.js +4 -4
  39. package/es/components/booking/info2/service/editService/index.js +3 -3
  40. package/es/components/booking/info2/service/editService/utils.js +6 -1
  41. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  42. package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
  43. package/es/components/booking/locales.d.ts +951 -0
  44. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  45. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  46. package/es/components/booking/utils/confirmHolderModal.js +3 -4
  47. package/es/components/booking/utils.d.ts +182 -0
  48. package/es/components/booking/utils.js +7 -1
  49. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  50. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  51. package/es/components/checkout/types.d.ts +130 -0
  52. package/es/components/checkout/utils.d.ts +3 -0
  53. package/es/components/eftposPay/app.d.ts +10 -0
  54. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  55. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  56. package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
  57. package/es/components/eftposPay/const.d.ts +190 -0
  58. package/es/components/eftposPay/device.d.ts +25 -0
  59. package/es/components/eftposPay/hooks.d.ts +35 -0
  60. package/es/components/eftposPay/index.d.ts +4 -0
  61. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  62. package/es/components/eftposPay/locales.d.ts +330 -0
  63. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  64. package/es/components/eftposPay/pay.d.ts +20 -0
  65. package/es/components/eftposPay/payo/config.d.ts +12 -0
  66. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  67. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  68. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  69. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  74. package/es/components/list/hooks/index.d.ts +5 -0
  75. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  76. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  77. package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
  78. package/es/components/pay/toB/locales.d.ts +54 -0
  79. package/es/components/pay/toB/store/context.d.ts +3 -0
  80. package/es/components/pay/toB/store/hooks.d.ts +15 -0
  81. package/es/components/pay/toB/store/index.d.ts +3 -0
  82. package/es/components/pay/toB/store/provider.d.ts +4 -0
  83. package/es/components/pay/toB/store/utils.d.ts +13 -0
  84. package/es/components/pay/toB/types/index.d.ts +72 -0
  85. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  87. package/es/components/pay/toC/model.d.ts +32 -0
  88. package/es/components/pay/toC/utils.d.ts +57 -0
  89. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  90. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  91. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  92. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  93. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  95. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  96. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  97. package/es/components/productExtension/index.d.ts +1 -0
  98. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  99. package/es/components/ruleSetting/locales.d.ts +48 -0
  100. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  101. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  102. package/es/components/shoppingCart/index.d.ts +1 -0
  103. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  104. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  105. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
  106. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
  107. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
  108. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  109. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  110. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  111. package/es/components/ticketBooking/utils/index.d.ts +101 -0
  112. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  113. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  114. package/es/hooks/useWindowSize.d.ts +5 -0
  115. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  116. package/es/plus/clinetSearch/locales.d.ts +105 -0
  117. package/es/plus/clinetSearch/types.d.ts +61 -0
  118. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  119. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  120. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  121. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  122. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  123. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  124. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  125. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  126. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  127. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  128. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  129. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  130. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  131. package/es/plus/webPosLogin/locales.d.ts +49 -0
  132. package/es/plus/webPosLogin/types.d.ts +286 -0
  133. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  134. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  135. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  136. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  137. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  138. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  139. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  140. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  141. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  142. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  143. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  144. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  145. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  146. package/es/pro/skuDetailModal/index.js +17 -2
  147. package/es/pro/skuDetailModal/index.less +1 -1
  148. package/es/test/setup.d.ts +1 -0
  149. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  150. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  151. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
  152. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  153. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  154. package/lib/components/booking/components/footer/amount.d.ts +37 -0
  155. package/lib/components/booking/components/footer/index.js +9 -12
  156. package/lib/components/booking/components/footer/utils.js +2 -2
  157. package/lib/components/booking/deposit/index.d.ts +1 -0
  158. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  159. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  160. package/lib/components/booking/forms/single/index.d.ts +1 -0
  161. package/lib/components/booking/info/client/index.d.ts +4 -0
  162. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  163. package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
  164. package/lib/components/booking/info/notes/index.d.ts +1 -0
  165. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  166. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  167. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  168. package/lib/components/booking/info/service/serve.d.ts +34 -0
  169. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  170. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  171. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  172. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  173. package/lib/components/booking/info/service2/utils.d.ts +219 -0
  174. package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
  175. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  176. package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
  177. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  178. package/lib/components/booking/info2/service/editNormalService/index.js +4 -4
  179. package/lib/components/booking/info2/service/editService/index.js +4 -4
  180. package/lib/components/booking/info2/service/editService/utils.js +4 -1
  181. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  182. package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
  183. package/lib/components/booking/locales.d.ts +951 -0
  184. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  185. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  186. package/lib/components/booking/utils/confirmHolderModal.js +0 -1
  187. package/lib/components/booking/utils.d.ts +182 -0
  188. package/lib/components/booking/utils.js +5 -1
  189. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  190. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  191. package/lib/components/checkout/types.d.ts +130 -0
  192. package/lib/components/checkout/utils.d.ts +3 -0
  193. package/lib/components/eftposPay/app.d.ts +10 -0
  194. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  195. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  196. package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
  197. package/lib/components/eftposPay/const.d.ts +190 -0
  198. package/lib/components/eftposPay/device.d.ts +25 -0
  199. package/lib/components/eftposPay/hooks.d.ts +35 -0
  200. package/lib/components/eftposPay/index.d.ts +4 -0
  201. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  202. package/lib/components/eftposPay/locales.d.ts +330 -0
  203. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  204. package/lib/components/eftposPay/pay.d.ts +20 -0
  205. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  206. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  207. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  208. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  209. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  210. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  211. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  212. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  213. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  214. package/lib/components/list/hooks/index.d.ts +5 -0
  215. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  216. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  217. package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
  218. package/lib/components/pay/toB/locales.d.ts +54 -0
  219. package/lib/components/pay/toB/store/context.d.ts +3 -0
  220. package/lib/components/pay/toB/store/hooks.d.ts +15 -0
  221. package/lib/components/pay/toB/store/index.d.ts +3 -0
  222. package/lib/components/pay/toB/store/provider.d.ts +4 -0
  223. package/lib/components/pay/toB/store/utils.d.ts +13 -0
  224. package/lib/components/pay/toB/types/index.d.ts +72 -0
  225. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  226. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  227. package/lib/components/pay/toC/model.d.ts +32 -0
  228. package/lib/components/pay/toC/utils.d.ts +57 -0
  229. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  230. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  231. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  232. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  233. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  234. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  235. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  236. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  237. package/lib/components/productExtension/index.d.ts +1 -0
  238. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  239. package/lib/components/ruleSetting/locales.d.ts +48 -0
  240. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  241. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  242. package/lib/components/shoppingCart/index.d.ts +1 -0
  243. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  244. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
  245. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
  246. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
  247. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
  248. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  249. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
  250. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
  251. package/lib/components/ticketBooking/utils/index.d.ts +101 -0
  252. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  253. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  254. package/lib/hooks/useWindowSize.d.ts +5 -0
  255. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  256. package/lib/plus/clinetSearch/locales.d.ts +105 -0
  257. package/lib/plus/clinetSearch/types.d.ts +61 -0
  258. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  259. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  260. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  261. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  262. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  263. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
  264. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  265. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  266. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  267. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  268. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  269. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  270. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  271. package/lib/plus/webPosLogin/locales.d.ts +49 -0
  272. package/lib/plus/webPosLogin/types.d.ts +286 -0
  273. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  274. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  275. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  276. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  277. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  278. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  279. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  280. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  281. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  282. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  283. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  284. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  285. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
  286. package/lib/pro/skuDetailModal/index.js +13 -2
  287. package/lib/pro/skuDetailModal/index.less +1 -1
  288. package/lib/test/setup.d.ts +1 -0
  289. package/package.json +3 -3
  290. package/es/components/checkout/plugin.d.ts +0 -2
  291. package/lib/components/checkout/plugin.d.ts +0 -2
@@ -0,0 +1,12 @@
1
+ export interface ResourceItem {
2
+ [key: string]: any;
3
+ }
4
+ /**
5
+ * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
6
+ * @description:
7
+ * @param {object} resource
8
+ * @return {*}
9
+ * @Author: jinglin.tan
10
+ */
11
+ export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
12
+ export declare const formatValues: (data: any, values: any) => any;
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
+ export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -35,7 +35,6 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
35
35
  return isOpenAddTime(state);
36
36
  }, [state, appointment_card.quick_time]);
37
37
  var handleEdit = useMemoizedFn(function (cacheItem, type) {
38
- debugger;
39
38
  var isNoSpecAndPackage = getIsNoSpecAndPackage(cacheItem);
40
39
  if (isNoSpecAndPackage) {
41
40
  var _editNormalServiceRef;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Notes: () => JSX.Element | null;
2
3
  export default Notes;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource, isShowDelete, isShowAmountFooter }: any) => JSX.Element;
2
3
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @title: 根据商品生成加时列表
3
+ * @description:
4
+ * @param {any} config
5
+ * @param {number} price
6
+ * @return {*}
7
+ * @Author: zhiwei.Wang
8
+ * @Date: 2024-07-01 09:34
9
+ */
10
+ export declare const getAddTimeSplits: (product: any, cacheItem: any, currentResourceTimeEndDate: any) => {
11
+ label: any;
12
+ value: any;
13
+ price: any;
14
+ }[];
15
+ /**
16
+ * @title: 判断当前商品是否可用
17
+ * @description:
18
+ * @param {any} relationProduct
19
+ * @param {any} currentItem
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-07-01 09:33
23
+ */
24
+ export declare const isUsableProduct: (addTime: any, currentItem: any) => any;
25
+ export declare const addTimeRowKey: {
26
+ create: (product_id: number, time: number) => string;
27
+ getValue: (str: string) => {
28
+ product_id: number;
29
+ time: number | string;
30
+ };
31
+ };
@@ -0,0 +1,34 @@
1
+ export declare const getProductDetail: (id: string, params: any) => Promise<any>;
2
+ /**
3
+ * @title: 跨日预约获取预约商品报价单
4
+ * @description:
5
+ * @param {string} id
6
+ * @param {any} params
7
+ * @return {*}
8
+ * @Author: WangHan
9
+ * @Date: 2024-12-23 17:06
10
+ */
11
+ export declare const postMultiDay: (id: string, params: any) => Promise<any>;
12
+ /**
13
+ * 批量查询指定商品的最新价格
14
+ * @param params
15
+ */
16
+ export declare const getProductPrice: (params: {
17
+ ids: number[];
18
+ customer_id: number;
19
+ schedule_date: string;
20
+ }) => Promise<any>;
21
+ declare type MultiDayProductPriceParams = {
22
+ customer_id: number;
23
+ data: {
24
+ product_id: number;
25
+ schedule_date: string;
26
+ }[];
27
+ };
28
+ /**
29
+ * 获取普通商品和跨日预约的价格
30
+ * @param params
31
+ * @returns
32
+ */
33
+ export declare const getNormalAndMultiDayProductPrice: (params: MultiDayProductPriceParams) => Promise<any>;
34
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -0,0 +1,20 @@
1
+ export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
2
+ renderMode?: any;
3
+ onEdit?: any;
4
+ state?: any;
5
+ dispatch?: any;
6
+ }) => {
7
+ createBookingData: ({ product }: any) => Promise<any>;
8
+ editBookingData: ({ changeValues }: {
9
+ changeValues: any;
10
+ }) => Promise<any>;
11
+ createBooking: ({ booking }: {
12
+ booking: any;
13
+ }) => Promise<void>;
14
+ editBooking: ({ booking }: {
15
+ booking: any;
16
+ }) => Promise<void>;
17
+ goEditPanel: ({ booking }: {
18
+ booking: any;
19
+ }) => void;
20
+ };
@@ -0,0 +1,14 @@
1
+ export declare const getGroupTotalPrice: (items: any[]) => any;
2
+ /**
3
+ * @title: 创建一个虚拟的组
4
+ * @description:
5
+ * @param {any} items
6
+ * @return {*}
7
+ * @Author: zhiwei.Wang
8
+ */
9
+ export declare const concatBookings: (items: any[]) => any;
10
+ export declare const createBookingItemsByGroup: (item: any, isBatchEdit?: any) => any[];
11
+ export declare const isGroupBooking: (_id: any) => boolean;
12
+ export declare const getProductByGroupId: (groupId: string, items: any[]) => any[];
13
+ export declare const getGroupBooking: (groupId: string, items: any[]) => any;
14
+ export declare const filterItemByGroupId: (groupId: string, items: any[]) => any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -0,0 +1,219 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
+ /**
4
+ * @title: 获取资源名称
5
+ * @description:
6
+ * @param {any} id
7
+ * @param {any} state
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-11-29 18:02
11
+ */
12
+ export declare const getResourceItem: (id: any, state: any) => any;
13
+ /**
14
+ * @title: 错误提示
15
+ * @description:
16
+ * @param {any} service
17
+ * @param {any} resourceItem
18
+ * @return {*}
19
+ * @Author: WangHan
20
+ * @Date: 2024-11-29 18:41
21
+ */
22
+ export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
+ /**
24
+ * @title: 格式化主体列表
25
+ * @description:
26
+ * @param {any} lists
27
+ * @param {boolean} isOpenGroup
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-04 11:27
31
+ */
32
+ export declare const formatHolderLists: (lists: any) => any;
33
+ export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
+ /**
35
+ * @title: 是否是预约商品
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: WangHan
39
+ * @Date: 2024-12-06 11:24
40
+ */
41
+ export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
+ export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
43
+ /**
44
+ * @title: 更新商品数据
45
+ * @description:
46
+ * @param {any} state
47
+ * @param currentItem
48
+ * @param {string} type
49
+ * @param {any} other
50
+ * @param actions
51
+ * @return {*}
52
+ * @Author: WangHan
53
+ * @Date: 2025-01-03 15:00
54
+ */
55
+ export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
+ export declare const formItems: (items: any[]) => any[];
57
+ export declare const getIsSubjectRequire: (state: any) => boolean;
58
+ export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
+ export declare const isAllNormalProduct: (items: any[]) => boolean;
60
+ export declare const isAllNormalProductByState: (state: any) => boolean;
61
+ export declare const genRowKey: (key: string) => string;
62
+ /**
63
+ * @title: 格式化商品数据
64
+ * @description:
65
+ * @param {any} lists
66
+ * @return {*}
67
+ * @Author: WangHan
68
+ * @Date: 2024-11-29 17:36
69
+ */
70
+ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => any[];
71
+ /**
72
+ * @title: 禁用日期
73
+ * @description:
74
+ * @param {any} current
75
+ * @param {string} position
76
+ * @param {any} startDate
77
+ * @return {*}
78
+ * @Author: WangHan
79
+ * @Date: 2024-12-03 17:51
80
+ */
81
+ export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
82
+ /**
83
+ * @title: 是否是跨日预约
84
+ * @description:
85
+ * @param {any} state
86
+ * @return {*}
87
+ * @Author: WangHan
88
+ * @Date: 2024-12-04 09:49
89
+ */
90
+ export declare const isDayBooking: (state: any) => boolean;
91
+ export declare const isDaysBooking: (state: any) => boolean;
92
+ export declare const isEventBooking: (state: any) => boolean;
93
+ export declare const isAppointmentProduct: (item: any) => boolean;
94
+ /**
95
+ * @title: 是否是terminal上的跨日预约
96
+ * @description:
97
+ * @param {any} state
98
+ * @return {*}
99
+ * @Author: WangHan
100
+ * @Date: 2024-12-04 15:31
101
+ */
102
+ export declare const isTerminalDayBooking: (state: any) => any;
103
+ export declare const formatDayDate: (_extend: any) => any;
104
+ /**
105
+ * @title: 根据营业日时间格式化时间
106
+ * @description:
107
+ * @param {any} state
108
+ * @return {*}
109
+ * @Author: WangHan
110
+ * @Date: 2024-12-04 12:07
111
+ */
112
+ export declare const formatDayTime: ({ startDate, endDate }: any) => {
113
+ startDateTime: dayjs.Dayjs;
114
+ endDateTime: dayjs.Dayjs;
115
+ };
116
+ export declare const formatDateTime: (start_date: any, end_date: any) => {
117
+ value: dayjs.Dayjs;
118
+ end_date: dayjs.Dayjs;
119
+ };
120
+ /**
121
+ * @title: 初始化日期
122
+ * @description:
123
+ * @return {*}
124
+ * @Author: WangHan
125
+ * @Date: 2024-12-06 17:24
126
+ */
127
+ export declare const initDate: () => {
128
+ value: dayjs.Dayjs;
129
+ end_date: dayjs.Dayjs;
130
+ };
131
+ /**
132
+ * @title: 是否有预约商品
133
+ * @description:
134
+ * @return {*}
135
+ * @Author: WangHan
136
+ * @Date: 2024-12-12 15:47
137
+ */
138
+ export declare const isHasDayAppointmentProduct: (state: any) => boolean;
139
+ /**
140
+ * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
141
+ * @description:
142
+ * @param {any} lists
143
+ * @return {*}
144
+ * @Author: WangHan
145
+ * @Date: 2024-12-13 16:44
146
+ */
147
+ export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
148
+ /**
149
+ * @title: 格式化表单数据
150
+ * @description:
151
+ * @param {any} state
152
+ * @return {*}
153
+ * @Author: WangHan
154
+ * @Date: 2024-12-30 22:19
155
+ */
156
+ export declare const getPets: (state: any) => any;
157
+ /**
158
+ * @title: 得出预约商品
159
+ * @description:
160
+ * @param {any} state
161
+ * @return {*}
162
+ * @Author: WangHan
163
+ * @Date: 2024-12-30 22:26
164
+ */
165
+ export declare const getAppointmentService: (state: any) => any;
166
+ /**
167
+ * @title: 判断是否打开删除宠物弹窗
168
+ * @description:
169
+ * @param {any} state
170
+ * @param {any} newVal
171
+ * @return {*}
172
+ * @Author: WangHan
173
+ * @Date: 2024-12-16 16:12
174
+ */
175
+ export declare const isOpenDeletePet: (state: any, newVal: any) => {
176
+ ids: any;
177
+ lists: any;
178
+ };
179
+ /**
180
+ * @title: 当前选中的表单id
181
+ * @description:
182
+ * @param {any} state
183
+ * @return {*}
184
+ * @Author: WangHan
185
+ * @Date: 2024-12-17 14:40
186
+ */
187
+ export declare const holderId: (state: any) => number;
188
+ /**
189
+ * @title: 更新套餐的价格
190
+ * @description:
191
+ * @param {any} currentValue
192
+ * @param {any} newBundleData
193
+ * @return {*}
194
+ * @Author: WangHan
195
+ * @Date: 2024-12-31 15:16
196
+ */
197
+ export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
198
+ /**
199
+ * @title: 更新预约商品报价单
200
+ * @description:
201
+ * @param {any} state
202
+ * @param {any} cacheItem
203
+ * @return {*}
204
+ * @Author: WangHan
205
+ * @Date: 2024-12-25 16:41
206
+ */
207
+ export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
208
+ multiDayPrices: any;
209
+ price: number;
210
+ }>;
211
+ /**
212
+ * @title: 更新普通商品报价单价格
213
+ * @description:
214
+ * @param {any} state
215
+ * @return {*}
216
+ * @Author: WangHan
217
+ * @Date: 2024-12-24 11:32
218
+ */
219
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -0,0 +1,18 @@
1
+ import type { ClientData as ClientCardData, ClientCardProps } from '../../../../plus/clientCard/types';
2
+ import type { ClientData as ClientSearchData } from '../../../../plus/clinetSearch/types';
3
+ export interface ClientData extends ClientCardData {
4
+ latest_wallet_detail?: any;
5
+ }
6
+ export interface CartClientCardState {
7
+ clientData?: ClientData;
8
+ searchModalVisible: boolean;
9
+ }
10
+ export declare type ClientDataConverter = (searchData: ClientSearchData) => ClientData;
11
+ export declare type ClientCardRef = {
12
+ handleSetClient: (record: ClientData) => void;
13
+ };
14
+ export interface CartClientCardProps {
15
+ clientCardProps?: ClientCardProps;
16
+ beforeSwitchModalOpen?: () => void | boolean | Promise<undefined | boolean>;
17
+ onClientChange?: (newClient: ClientData, originClient?: ClientData | null) => void;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { ClientData } from "./types";
2
+ export declare const setHandleSetClient: (fn: ((customer: ClientData | null, options?: any) => void) | null) => void;
3
+ export declare const getHandleSetClient: () => ((customer: ClientData | null, options?: any) => void) | null;
@@ -0,0 +1,106 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const getUsableTime: (cacheItem: any) => any;
3
+ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
+ startDate: dayjs.Dayjs;
5
+ usableTime: any;
6
+ duration: string | number | {
7
+ type: string;
8
+ value: number;
9
+ };
10
+ locale: any;
11
+ slice: any;
12
+ selectProps: {
13
+ size: string;
14
+ };
15
+ };
16
+ /**
17
+ * @title: 灵活时长选项
18
+ * @description:
19
+ * @param {*} useMemo
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-02-23 10:10
23
+ */
24
+ export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
+ label: any;
26
+ value: any;
27
+ } | null;
28
+ export declare const getTimeSlices: ({ state }: any) => {
29
+ timeSlices: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
34
+ /**
35
+ * @title: 时间切片
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: zhiwei.Wang
39
+ * @Date: 2024-01-09 13:37
40
+ */
41
+ export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
+ timeSlices: {
43
+ label: string;
44
+ value: string;
45
+ }[];
46
+ durationSlicesBasedOnTime: {
47
+ label: string;
48
+ value: number;
49
+ }[];
50
+ };
51
+ /**
52
+ * @title: 获取资源列表
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: zhiwei.Wang
56
+ * @Date: 2024-01-09 13:38
57
+ */
58
+ export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
+ list: any;
60
+ maps: any;
61
+ };
62
+ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
+ /**
64
+ * @title: 设置默认容量
65
+ * @description:
66
+ * @param {any} param1
67
+ * @return {*}
68
+ * @Author: zhiwei.Wang
69
+ * @Date: 2024-09-19 20:26
70
+ */
71
+ export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
+ /**
73
+ * @title: 将商品内关联的资源id还原成数据
74
+ * @description:
75
+ * @param {any} resourcesOriginMap
76
+ * @param {any} cacheItem
77
+ * @return {*}
78
+ * @Author: zhiwei.Wang
79
+ * @Date: 2024-09-19 20:23
80
+ */
81
+ export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
+ /**
83
+ * @title: 是否是跨日商品
84
+ * @description:
85
+ * @param {any} cacheItem
86
+ * @return {*}
87
+ */
88
+ export declare const isMultiDayProduct: (product: any) => boolean;
89
+ export declare const getMultiDay: ({ start_date, end_date, state, cacheItem, }: any) => Promise<any>;
90
+ /**
91
+ * @title: 预生成服务的 extend
92
+ * @description:
93
+ * @param {any} param1
94
+ * @return {*}
95
+ * @Author: zhiwei.Wang
96
+ * @Date: 2024-06-01 13:25
97
+ */
98
+ export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
99
+ /**
100
+ * @title: 格式化服务列表
101
+ * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
102
+ * 使用with resourceRelation后 返回的resource_relation是实时数据
103
+ * 这里做一次转换
104
+ * @param list
105
+ */
106
+ export declare const transServiceList: (list: any[]) => any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const ContactInfoMode: () => JSX.Element;
2
3
  export default ContactInfoMode;
@@ -100,12 +100,12 @@ var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
100
100
  }
101
101
  var newProducts = (_ref3 = (state === null || state === void 0 || (_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.value) || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item) {
102
102
  if (item._id == data._id) {
103
- var _data$_extend, _data$_extend2, _data$_extend3;
103
+ var _data$_extend$priceOv, _data$_extend, _data$_extend2, _data$_extend3, _data$_extend4;
104
104
  data = setProductPrice(data, {
105
- newTotal: (_data$_extend = data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.total,
106
- origin_total: (_data$_extend2 = data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.origin_total
105
+ newTotal: (_data$_extend$priceOv = (_data$_extend = data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.priceOverride) !== null && _data$_extend$priceOv !== void 0 ? _data$_extend$priceOv : (_data$_extend2 = data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.total,
106
+ origin_total: (_data$_extend3 = data._extend) === null || _data$_extend3 === void 0 ? void 0 : _data$_extend3.origin_total
107
107
  });
108
- data.note = (_data$_extend3 = data._extend) === null || _data$_extend3 === void 0 ? void 0 : _data$_extend3.note;
108
+ data.note = (_data$_extend4 = data._extend) === null || _data$_extend4 === void 0 ? void 0 : _data$_extend4.note;
109
109
  return data;
110
110
  }
111
111
  return item;
@@ -592,7 +592,7 @@ var Info = function Info(_, ref) {
592
592
  };
593
593
  }
594
594
  var callback = function callback(e, extension_type, detail) {
595
- var _cacheItem$_extend;
595
+ var _detail$_extend, _cacheItem$_extend;
596
596
  var _detail = detail || item;
597
597
  var other = JSON.parse(JSON.stringify(e));
598
598
  other.session = e.session;
@@ -605,7 +605,8 @@ var Info = function Info(_, ref) {
605
605
  _extend: _objectSpread(_objectSpread(_objectSpread({}, item._extend), values), {}, {
606
606
  quantity: (e === null || e === void 0 ? void 0 : e.quantity) || (values === null || values === void 0 ? void 0 : values.quantity) || 1,
607
607
  // 覆盖选择的规格和套餐
608
- other: other
608
+ other: other,
609
+ priceOverride: (_detail$_extend = _detail._extend) === null || _detail$_extend === void 0 ? void 0 : _detail$_extend.priceOverride
609
610
  }),
610
611
  new: 0
611
612
  });
@@ -909,7 +910,6 @@ var Info = function Info(_, ref) {
909
910
  rules: [{
910
911
  required: (state === null || state === void 0 || (_state$bookingConfig7 = state.bookingConfig) === null || _state$bookingConfig7 === void 0 || (_state$bookingConfig7 = _state$bookingConfig7.config) === null || _state$bookingConfig7 === void 0 || (_state$bookingConfig7 = _state$bookingConfig7.basic) === null || _state$bookingConfig7 === void 0 ? void 0 : _state$bookingConfig7.subject_require) === 'require',
911
912
  validator: function validator(rule, value, callback) {
912
- debugger;
913
913
  if (showExtra) {
914
914
  callback(locales.getText('page.booking.text.holder.length-error'));
915
915
  } else {
@@ -68,7 +68,7 @@ export var setAutoAllocationStorage = function setAutoAllocationStorage(data) {
68
68
  * @param origin_total - 原始总价
69
69
  */
70
70
  export var setProductPrice = function setProductPrice(cacheItem, _ref2) {
71
- var _cacheItem$_extend$ot, _cacheItem$_extend$ot2, _cacheItem$_extend$ot4, _cacheItem$_extend$ot5;
71
+ var _cacheItem$_extend$ot, _cacheItem$_extend$ot2, _cacheItem$_extend$ot4, _cacheItem$_extend$ot5, _cacheItem$_extend;
72
72
  var newTotal = _ref2.newTotal,
73
73
  origin_total = _ref2.origin_total;
74
74
  // 计算折扣比例
@@ -117,5 +117,10 @@ export var setProductPrice = function setProductPrice(cacheItem, _ref2) {
117
117
 
118
118
  // 主商品价格 = newTotal - 子商品总价(让主商品吸收精度误差,确保总价精确)
119
119
  cacheItem._extend.price = new Decimal(newTotal).sub(subTotal).toNumber();
120
+ // 如果有 priceOverride,则强制使用 priceOverride,不受规则约束
121
+ if ((_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && _cacheItem$_extend.priceOverride) {
122
+ var _cacheItem$_extend2;
123
+ cacheItem._extend.total = new Decimal(((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.priceOverride) || 0).toNumber();
124
+ }
120
125
  return cacheItem;
121
126
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -0,0 +1,36 @@
1
+ export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
+ export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
3
+ /**
4
+ * @title: 查找是否有可用的time
5
+ * @description:
6
+ * @param {any} resourceItem
7
+ * @return {*}
8
+ * @Author: zhiwei.Wang
9
+ * @Date: 2024-01-09 13:57
10
+ */
11
+ export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
+ export declare const getErrorList: (resource: any, cacheItem: any) => {
13
+ label: any;
14
+ type: string;
15
+ }[];
16
+ /**
17
+ * @title: 格式化资源, 添加自定义参数
18
+ * @description:
19
+ * @param {any} resourceItem
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-01-09 13:40
23
+ */
24
+ export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
+ export declare const getAppointmentTimingPreference: (state: any) => any;
26
+ /**
27
+ * @title: 创建服务的开始时间和结束时间
28
+ * @description:
29
+ * @param {any} state
30
+ * @param {any} item
31
+ * @return {*}
32
+ * @Author: zhiwei.Wang
33
+ * @Date: 2024-01-26 14:09
34
+ */
35
+ export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
36
+ export declare const getIsNoSpecAndPackage: (product: any) => boolean;