@pisell/private-materials 6.7.7 → 6.7.8

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 (345) 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 +2 -2
  6. package/build/lowcode/preview.js +17 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Voucher/index.js +1 -2
  12. package/es/components/booking/addons/index.js +17 -25
  13. package/es/components/booking/components/footer/amount.d.ts +0 -1
  14. package/es/components/booking/components/footer/amount.js +84 -548
  15. package/es/components/booking/components/footer/index.js +56 -77
  16. package/es/components/booking/components/footer/utils.d.ts +0 -19
  17. package/es/components/booking/components/footer/utils.js +73 -194
  18. package/es/components/booking/components/voucher/index.js +7 -23
  19. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  20. package/es/components/booking/hooks/useQuotation.js +1 -4
  21. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  22. package/es/components/booking/info/service2/utils.js +0 -1
  23. package/es/components/booking/info2/cartClientCard/index.js +6 -30
  24. package/es/components/booking/info2/index.js +1 -1
  25. package/es/components/booking/info2/service/addService/index.js +3 -2
  26. package/es/components/booking/info2/service/editNormalService/index.js +0 -6
  27. package/es/components/booking/info2/service/editService/index.js +6 -16
  28. package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
  29. package/es/components/booking/info2/service/editService/utils.js +0 -66
  30. package/es/components/booking/utils.d.ts +0 -1
  31. package/es/components/booking/utils.js +3 -16
  32. package/es/components/checkout/PaymentModal.d.ts +5 -13
  33. package/es/components/checkout/PaymentModal.js +252 -304
  34. package/es/components/checkout/PaymentPlugin.d.ts +3 -0
  35. package/es/components/{systemSettings/registry/components/GroupModal.js → checkout/PaymentPlugin.js} +171 -132
  36. package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  37. package/es/components/checkout/components/AdditionalModule/index.js +12 -52
  38. package/es/components/checkout/components/AmountSummary/index.js +76 -9
  39. package/es/components/checkout/components/AmountSummary/index.less +6 -5
  40. package/es/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  41. package/es/components/checkout/components/CashPaymentModule/index.js +2 -5
  42. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  43. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  44. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -6
  45. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  46. package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -2
  47. package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  48. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  49. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +8 -31
  50. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  51. package/es/components/checkout/components/PaymentResultToast/index.less +33 -94
  52. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  53. package/es/components/checkout/index.less +1 -1
  54. package/es/components/checkout/locales.d.ts +0 -6
  55. package/es/components/checkout/locales.js +0 -6
  56. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  57. package/es/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  58. package/es/components/eftpos/hooks.d.ts +0 -1
  59. package/es/components/eftposPay/hooks.d.ts +1 -1
  60. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -14
  61. package/es/components/eftposPay/payo/config.js +32 -70
  62. package/es/components/eftposPay/store/index.d.ts +4 -4
  63. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  64. package/es/components/eftposPay/tyro/index.js +0 -12
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  67. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  68. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  69. package/es/components/index.d.ts +1 -2
  70. package/es/components/index.js +1 -2
  71. package/es/components/list/List.js +40 -56
  72. package/es/components/list/hooks/useListState.d.ts +3 -5
  73. package/es/components/list/hooks/useListState.js +2 -17
  74. package/es/components/list/styles/header.less +3 -3
  75. package/es/components/list/utils/index.d.ts +1 -13
  76. package/es/components/list/utils/index.js +1 -43
  77. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  81. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  82. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  83. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +0 -2
  84. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  85. package/es/components/pay/toC/index.js +4 -7
  86. package/es/components/pay/toC/locales.d.ts +0 -3
  87. package/es/components/pay/toC/locales.js +3 -6
  88. package/es/components/pay/toC/status.d.ts +0 -1
  89. package/es/components/pay/toC/status.js +0 -3
  90. package/es/components/schedules/utils.d.ts +1 -1
  91. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  92. package/es/components/subTotal/index.js +1 -1
  93. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  94. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  95. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +36 -139
  96. package/es/components/ticketBooking/components/addServiceVariant/addService.js +86 -2
  97. package/es/components/ticketBooking/components/menuBar/index.js +12 -109
  98. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  99. package/es/components/ticketBooking/components/timeBar/index.js +7 -112
  100. package/es/components/ticketBooking/components/timeBar/index.less +0 -59
  101. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -29
  102. package/es/components/ticketBooking/locales.d.ts +0 -6
  103. package/es/components/ticketBooking/locales.js +3 -9
  104. package/es/components/ticketBooking/utils/index.d.ts +0 -3
  105. package/es/components/ticketBooking/utils/index.js +13 -36
  106. package/es/components/wallet/Detail/index.js +2 -34
  107. package/es/components/wallet/Detail/index.less +0 -11
  108. package/es/components/wallet/Detail/locales.d.ts +0 -6
  109. package/es/components/wallet/Detail/locales.js +2 -14
  110. package/es/components/wallet/Voucher/index.js +10 -11
  111. package/es/components/wallet/components/WalletCard.js +1 -5
  112. package/es/components/wallet/index.js +2 -4
  113. package/es/components/wallet/serve.d.ts +0 -7
  114. package/es/hooks/usePaymentLogger.d.ts +0 -1
  115. package/es/index.d.ts +0 -4
  116. package/es/index.js +1 -5
  117. package/es/plus/clientCard/locales.js +3 -3
  118. package/es/plus/clinetSearch/index.js +30 -28
  119. package/es/plus/clinetSearch/locales.d.ts +0 -3
  120. package/es/plus/clinetSearch/locales.js +4 -7
  121. package/es/plus/clinetSearch/types.d.ts +0 -12
  122. package/es/plus/walletPassGallery/components/footerButton/index.js +4 -2
  123. package/es/plus/walletPassGallery/components/footerButton/index.less +59 -14
  124. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  125. package/es/plus/walletPassGallery/components/passDetail/index.js +31 -84
  126. package/es/plus/walletPassGallery/components/passDetail/index.less +0 -4
  127. package/es/plus/walletPassGallery/components/recharge/index.js +8 -19
  128. package/es/plus/walletPassGallery/index.js +3 -7
  129. package/es/plus/walletPassGallery/serve.d.ts +0 -3
  130. package/es/plus/walletPassGallery/serve.js +2 -4
  131. package/es/pro/Login2.0/index.less +8 -15
  132. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  133. package/es/pro/comprehensiveSearch/locales.js +1 -1
  134. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -45
  135. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  136. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +2 -4
  137. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  138. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -10
  139. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  140. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  141. package/es/pro/priceKeyboard/components/shortcuts/index.js +2 -5
  142. package/es/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  143. package/es/utils/index.d.ts +1 -1
  144. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -2
  145. package/lib/components/booking/addons/index.js +7 -15
  146. package/lib/components/booking/components/footer/amount.d.ts +0 -1
  147. package/lib/components/booking/components/footer/amount.js +41 -293
  148. package/lib/components/booking/components/footer/index.js +11 -30
  149. package/lib/components/booking/components/footer/utils.d.ts +0 -19
  150. package/lib/components/booking/components/footer/utils.js +41 -138
  151. package/lib/components/booking/components/voucher/index.js +9 -25
  152. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  153. package/lib/components/booking/hooks/useQuotation.js +1 -2
  154. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  155. package/lib/components/booking/info/service2/utils.js +0 -1
  156. package/lib/components/booking/info2/cartClientCard/index.js +5 -25
  157. package/lib/components/booking/info2/index.js +2 -7
  158. package/lib/components/booking/info2/service/addService/index.js +2 -1
  159. package/lib/components/booking/info2/service/editNormalService/index.js +0 -6
  160. package/lib/components/booking/info2/service/editService/index.js +3 -12
  161. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
  162. package/lib/components/booking/info2/service/editService/utils.js +3 -40
  163. package/lib/components/booking/utils.d.ts +0 -1
  164. package/lib/components/booking/utils.js +0 -11
  165. package/lib/components/checkout/PaymentModal.d.ts +5 -13
  166. package/lib/components/checkout/PaymentModal.js +147 -190
  167. package/lib/components/checkout/PaymentPlugin.d.ts +3 -0
  168. package/lib/components/checkout/PaymentPlugin.js +181 -0
  169. package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  170. package/lib/components/checkout/components/AdditionalModule/index.js +11 -52
  171. package/lib/components/checkout/components/AmountSummary/index.js +46 -5
  172. package/lib/components/checkout/components/AmountSummary/index.less +6 -5
  173. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  174. package/lib/components/checkout/components/CashPaymentModule/index.js +2 -5
  175. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  176. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  177. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -5
  178. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  179. package/lib/components/checkout/components/PaymentOptionsModule/index.js +0 -6
  180. package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  181. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  182. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +5 -23
  183. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  184. package/lib/components/checkout/components/PaymentResultToast/index.less +33 -94
  185. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  186. package/lib/components/checkout/index.less +1 -1
  187. package/lib/components/checkout/locales.d.ts +0 -6
  188. package/lib/components/checkout/locales.js +0 -6
  189. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  190. package/lib/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  191. package/lib/components/eftpos/hooks.d.ts +0 -1
  192. package/lib/components/eftposPay/hooks.d.ts +1 -1
  193. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -12
  194. package/lib/components/eftposPay/payo/config.js +73 -98
  195. package/lib/components/eftposPay/store/index.d.ts +4 -4
  196. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  197. package/lib/components/eftposPay/tyro/index.js +0 -12
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  200. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  202. package/lib/components/index.d.ts +1 -2
  203. package/lib/components/index.js +0 -3
  204. package/lib/components/list/List.js +16 -34
  205. package/lib/components/list/hooks/useListState.d.ts +3 -5
  206. package/lib/components/list/hooks/useListState.js +1 -14
  207. package/lib/components/list/styles/header.less +3 -3
  208. package/lib/components/list/utils/index.d.ts +1 -13
  209. package/lib/components/list/utils/index.js +0 -27
  210. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  212. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  213. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  214. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  215. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  216. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  217. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  218. package/lib/components/pay/toC/index.js +1 -4
  219. package/lib/components/pay/toC/locales.d.ts +0 -3
  220. package/lib/components/pay/toC/locales.js +3 -6
  221. package/lib/components/pay/toC/status.d.ts +0 -1
  222. package/lib/components/pay/toC/status.js +0 -5
  223. package/lib/components/schedules/utils.d.ts +1 -1
  224. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  225. package/lib/components/subTotal/index.js +1 -1
  226. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  227. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  228. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +24 -84
  229. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
  230. package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
  231. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  232. package/lib/components/ticketBooking/components/timeBar/index.js +4 -105
  233. package/lib/components/ticketBooking/components/timeBar/index.less +0 -59
  234. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +13 -17
  235. package/lib/components/ticketBooking/locales.d.ts +0 -6
  236. package/lib/components/ticketBooking/locales.js +3 -9
  237. package/lib/components/ticketBooking/utils/index.d.ts +0 -3
  238. package/lib/components/ticketBooking/utils/index.js +6 -20
  239. package/lib/components/wallet/Detail/index.js +3 -31
  240. package/lib/components/wallet/Detail/index.less +0 -11
  241. package/lib/components/wallet/Detail/locales.d.ts +0 -6
  242. package/lib/components/wallet/Detail/locales.js +2 -14
  243. package/lib/components/wallet/Voucher/index.js +8 -8
  244. package/lib/components/wallet/components/WalletCard.js +0 -4
  245. package/lib/components/wallet/index.js +2 -2
  246. package/lib/components/wallet/serve.d.ts +0 -7
  247. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  248. package/lib/index.d.ts +0 -4
  249. package/lib/index.js +0 -12
  250. package/lib/plus/clientCard/locales.js +3 -3
  251. package/lib/plus/clinetSearch/index.js +8 -17
  252. package/lib/plus/clinetSearch/locales.d.ts +0 -3
  253. package/lib/plus/clinetSearch/locales.js +4 -7
  254. package/lib/plus/clinetSearch/types.d.ts +0 -12
  255. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  256. package/lib/plus/walletPassGallery/components/footerButton/index.less +59 -14
  257. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  258. package/lib/plus/walletPassGallery/components/passDetail/index.js +15 -54
  259. package/lib/plus/walletPassGallery/components/passDetail/index.less +0 -4
  260. package/lib/plus/walletPassGallery/components/recharge/index.js +1 -7
  261. package/lib/plus/walletPassGallery/index.js +3 -7
  262. package/lib/plus/walletPassGallery/serve.d.ts +0 -3
  263. package/lib/plus/walletPassGallery/serve.js +2 -3
  264. package/lib/pro/Login2.0/index.less +8 -15
  265. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  266. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  267. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +43 -42
  268. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  269. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +2 -3
  270. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  271. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -8
  272. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  273. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  274. package/lib/pro/priceKeyboard/components/shortcuts/index.js +2 -3
  275. package/lib/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  276. package/lib/utils/index.d.ts +1 -1
  277. package/package.json +4 -4
  278. package/es/components/checkout/plugin.d.ts +0 -2
  279. package/es/components/checkout/plugin.js +0 -303
  280. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  281. package/es/components/eftposPay/payo/payment.js +0 -579
  282. package/es/components/eftposPay/utils/log/index.d.ts +0 -110
  283. package/es/components/eftposPay/utils/log/index.js +0 -371
  284. package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  285. package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  286. package/es/components/systemSettings/registry/components/ItemModal.js +0 -547
  287. package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  288. package/es/components/systemSettings/registry/components/ModuleList.js +0 -54
  289. package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  290. package/es/components/systemSettings/registry/components/SectionList.js +0 -174
  291. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  292. package/es/components/systemSettings/registry/components/SettingsTable.js +0 -765
  293. package/es/components/systemSettings/registry/components/index.d.ts +0 -4
  294. package/es/components/systemSettings/registry/components/index.js +0 -4
  295. package/es/components/systemSettings/registry/index.d.ts +0 -5
  296. package/es/components/systemSettings/registry/index.js +0 -1059
  297. package/es/components/systemSettings/registry/index.less +0 -410
  298. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  299. package/es/components/systemSettings/registry/locales.js +0 -300
  300. package/es/components/systemSettings/registry/services.d.ts +0 -77
  301. package/es/components/systemSettings/registry/services.js +0 -472
  302. package/es/components/systemSettings/registry/types.d.ts +0 -126
  303. package/es/components/systemSettings/registry/types.js +0 -1
  304. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  305. package/es/components/systemSettings/registry/utils/typeValidation.js +0 -284
  306. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  307. package/es/components/systemSettings/registry/utils/validators.js +0 -44
  308. package/es/components/wallet/utils.d.ts +0 -48
  309. package/es/components/wallet/utils.js +0 -342
  310. package/lib/components/checkout/plugin.d.ts +0 -2
  311. package/lib/components/checkout/plugin.js +0 -263
  312. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  313. package/lib/components/eftposPay/payo/payment.js +0 -357
  314. package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
  315. package/lib/components/eftposPay/utils/log/index.js +0 -294
  316. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  317. package/lib/components/systemSettings/registry/components/GroupModal.js +0 -177
  318. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  319. package/lib/components/systemSettings/registry/components/ItemModal.js +0 -508
  320. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  321. package/lib/components/systemSettings/registry/components/ModuleList.js +0 -71
  322. package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  323. package/lib/components/systemSettings/registry/components/SectionList.js +0 -181
  324. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  325. package/lib/components/systemSettings/registry/components/SettingsTable.js +0 -575
  326. package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
  327. package/lib/components/systemSettings/registry/components/index.js +0 -48
  328. package/lib/components/systemSettings/registry/index.d.ts +0 -5
  329. package/lib/components/systemSettings/registry/index.js +0 -529
  330. package/lib/components/systemSettings/registry/index.less +0 -410
  331. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  332. package/lib/components/systemSettings/registry/locales.js +0 -324
  333. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  334. package/lib/components/systemSettings/registry/services.js +0 -290
  335. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  336. package/lib/components/systemSettings/registry/types.js +0 -17
  337. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  338. package/lib/components/systemSettings/registry/utils/typeValidation.js +0 -228
  339. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  340. package/lib/components/systemSettings/registry/utils/validators.js +0 -54
  341. package/lib/components/wallet/utils.d.ts +0 -48
  342. package/lib/components/wallet/utils.js +0 -287
  343. package/lowcode/payment-modal/meta.ts +0 -135
  344. package/lowcode/settings-registry/meta.ts +0 -29
  345. package/lowcode/wallet-pass-detail/meta.ts +0 -89
@@ -1,12 +1,4 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
7
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -42,7 +34,7 @@ export var getRelationDetailsTotal = function getRelationDetailsTotal(relation_d
42
34
  * @param state
43
35
  * @returns
44
36
  */
45
- var getProductExpectAmount = function getProductExpectAmount(state, isEdit, isOriginTotal) {
37
+ var getProductExpectAmount = function getProductExpectAmount(state, isEdit) {
46
38
  var price = new Decimal(0);
47
39
  var duration = new Decimal(0);
48
40
  // 是否是跨日预约
@@ -62,8 +54,7 @@ var getProductExpectAmount = function getProductExpectAmount(state, isEdit, isOr
62
54
  if (isDay || isNormalProductByDurationSchedule(item)) {
63
55
  var quantity = new Decimal(item._extend.quantity || 1);
64
56
  var itemTotal = new Decimal(item._extend.total || 0);
65
- var itemOriginTotal = new Decimal(item._extend.origin_total || 0);
66
- price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
57
+ price = price.add(itemTotal.mul(quantity));
67
58
 
68
59
  // 普通商品不能加到时长上
69
60
  var _duration = isDayBookingProduct(item, state) ? new Decimal(item._extend.duration || 0) : new Decimal(0);
@@ -71,8 +62,7 @@ var getProductExpectAmount = function getProductExpectAmount(state, isEdit, isOr
71
62
  } else {
72
63
  var _quantity = new Decimal(item._extend.quantity || 1);
73
64
  var _itemTotal = new Decimal(item._extend.total || 0);
74
- var _itemOriginTotal = new Decimal(item._extend.origin_total || 0);
75
- price = price.add((isOriginTotal ? _itemOriginTotal : _itemTotal).mul(_quantity));
65
+ price = price.add(_itemTotal.mul(_quantity));
76
66
 
77
67
  // 附加商品
78
68
  var relationTotal = new Decimal(getRelationDetailsTotal(item._extend.relation_details || []));
@@ -97,8 +87,7 @@ var getProductExpectAmount = function getProductExpectAmount(state, isEdit, isOr
97
87
  var _item = _step3.value;
98
88
  var _quantity2 = new Decimal(_item._extend.quantity || 1);
99
89
  var _itemTotal2 = new Decimal(_item._extend.total || 0);
100
- var _itemOriginTotal2 = new Decimal(_item._extend.origin_total || 0);
101
- price = price.add((isOriginTotal ? _itemOriginTotal2 : _itemTotal2).mul(_quantity2));
90
+ price = price.add(_itemTotal2.mul(_quantity2));
102
91
  }
103
92
  } catch (err) {
104
93
  _iterator3.e(err);
@@ -175,52 +164,7 @@ var getProductItemTax = function getProductItemTax(item, state, options) {
175
164
  }
176
165
 
177
166
  // 结果 = 单个商品税费 × 数量
178
- return singleItemTax.times(quantity).toDecimalPlaces(2, Decimal.ROUND_HALF_UP);
179
- };
180
-
181
- /**
182
- * 计算商品附加费 包含子商品的总附加费
183
- */
184
- var getProductSurchargeFee = function getProductSurchargeFee(product) {
185
- var _extend = product._extend;
186
- if (!_extend) {
187
- return 0;
188
- }
189
- var surcharge_fee = _extend.surcharge_fee,
190
- relation_details = _extend.relation_details,
191
- other = _extend.other,
192
- surcharge_rounding_remainder = _extend.surcharge_rounding_remainder;
193
- var totalSurchargeFee = new Decimal(0);
194
- if (surcharge_fee) {
195
- totalSurchargeFee = totalSurchargeFee.plus(surcharge_fee);
196
- }
197
- if (surcharge_rounding_remainder) {
198
- totalSurchargeFee = totalSurchargeFee.plus(surcharge_rounding_remainder);
199
- }
200
- if (relation_details) {
201
- var _iterator4 = _createForOfIteratorHelper(relation_details),
202
- _step4;
203
- try {
204
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
205
- var item = _step4.value;
206
- totalSurchargeFee = totalSurchargeFee.plus(getProductSurchargeFee(item));
207
- }
208
- } catch (err) {
209
- _iterator4.e(err);
210
- } finally {
211
- _iterator4.f();
212
- }
213
- }
214
- if (other !== null && other !== void 0 && other.bundle) {
215
- totalSurchargeFee = totalSurchargeFee.plus(other.bundle.reduce(function (total, item) {
216
- var surchargeFee = new Decimal(item.surcharge_fee || 0).times(item.num || item.quantity || 1);
217
- if (item.surcharge_rounding_remainder) {
218
- surchargeFee = surchargeFee.plus(item.surcharge_rounding_remainder);
219
- }
220
- return total.plus(surchargeFee);
221
- }, new Decimal(0)));
222
- }
223
- return totalSurchargeFee.toNumber();
167
+ return singleItemTax.times(quantity);
224
168
  };
225
169
 
226
170
  /**
@@ -239,21 +183,17 @@ var processItemsTax = function processItemsTax(items, state, options) {
239
183
  productExpectAmount = computed.productExpectAmount;
240
184
  var originTax = new Decimal(0);
241
185
  var tax = new Decimal(0);
242
- var _iterator5 = _createForOfIteratorHelper(items),
243
- _step5;
186
+ var _iterator4 = _createForOfIteratorHelper(items),
187
+ _step4;
244
188
  try {
245
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
246
- var _item$_extend, _item$_extend2, _item$_extend$other;
247
- var item = _step5.value;
189
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
190
+ var item = _step4.value;
248
191
  var quantity = new Decimal(item._extend.quantity || 1);
249
192
  var unitPrice = new Decimal(item._extend.total || 0);
250
- var mainProductPrice = new Decimal(getMainProductTotal(item) || 0);
251
-
252
- // const surchargeFee = getProductSurchargeFee(item);
253
193
 
254
194
  // 计算原始税费(折扣前)- 单个商品
255
195
  var originalTaxPerItem = getProductItemTax(_objectSpread(_objectSpread({}, item), {}, {
256
- total: mainProductPrice.add(((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.surcharge_fee) || 0).toNumber(),
196
+ total: unitPrice.toNumber(),
257
197
  quantity: 1
258
198
  }), state, {
259
199
  tax_rate: tax_rate,
@@ -266,31 +206,12 @@ var processItemsTax = function processItemsTax(items, state, options) {
266
206
  itemDiscount = unitPrice.dividedBy(productExpectAmount).times(shopDiscount);
267
207
  }
268
208
 
269
- // // 商品折后单价 = 商品单价 - 商品折后单价
270
- // const itemDiscountedUnitPrice = unitPrice.minus(itemDiscount).add(surchargeFee);
271
-
272
- // // 计算折后税费(折扣后)- 单个商品 加子商品的税费
273
- // const discountedTaxPerItem = getProductItemTax(
274
- // {
275
- // ...item,
276
- // total: itemDiscountedUnitPrice.toNumber(),
277
- // price: item._extend.total,
278
- // quantity: 1,
279
- // },
280
- // state,
281
- // { tax_rate, is_price_include_tax }
282
- // );
209
+ // 商品折后单价 = 商品单价 - 商品折后单价
210
+ var itemDiscountedUnitPrice = unitPrice.minus(itemDiscount);
283
211
 
284
- // 按比例计算主商品应分摊的折扣
285
- var mainItemDiscount = new Decimal(0);
286
- if (unitPrice.greaterThan(0)) {
287
- mainItemDiscount = mainProductPrice.dividedBy(productExpectAmount).times(shopDiscount);
288
- }
289
- var mainItemDiscountedUnitPrice = mainProductPrice.minus(mainItemDiscount).add(((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.surcharge_fee) || 0);
290
-
291
- // 计算折后税费(折扣后)- 主商品的税费
292
- var maxDiscountedTaxPerItem = getProductItemTax(_objectSpread(_objectSpread({}, item), {}, {
293
- total: mainItemDiscountedUnitPrice.toNumber(),
212
+ // 计算折后税费(折扣后)- 单个商品
213
+ var discountedTaxPerItem = getProductItemTax(_objectSpread(_objectSpread({}, item), {}, {
214
+ total: itemDiscountedUnitPrice.toNumber(),
294
215
  price: item._extend.total,
295
216
  quantity: 1
296
217
  }), state, {
@@ -298,20 +219,18 @@ var processItemsTax = function processItemsTax(items, state, options) {
298
219
  is_price_include_tax: is_price_include_tax
299
220
  });
300
221
 
301
- // item._extend.payment_price = itemDiscountedUnitPrice;
302
- // 保存到商品扩展信息中(保留两位小数)
303
- // item._extend.original_tax_fee = originalTaxPerItem.toNumber();
304
- // item._extend.tax_fee = discountedTaxPerItem.toNumber();
305
- item._extend.main_product_attached_bundle_tax_fee = maxDiscountedTaxPerItem.toNumber();
222
+ // 保存到商品扩展信息中
223
+ item._extend.original_tax_fee = originalTaxPerItem.toNumber();
224
+ item._extend.tax_fee = discountedTaxPerItem.toNumber();
306
225
 
307
226
  // 注意:加时商品独立计算,不考虑主商品数量
308
227
  var addTimeTotalTax = new Decimal(0);
309
228
  if (Array.isArray(item._extend.relation_details)) {
310
- var _iterator6 = _createForOfIteratorHelper(item._extend.relation_details),
311
- _step6;
229
+ var _iterator5 = _createForOfIteratorHelper(item._extend.relation_details),
230
+ _step5;
312
231
  try {
313
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
314
- var atItem = _step6.value;
232
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
233
+ var atItem = _step5.value;
315
234
  // 计算单件加时商品折扣后价格
316
235
  var _originTotal = new Decimal(atItem.selling_price || atItem.price || 0);
317
236
  var _discountedTotal = _originTotal;
@@ -319,7 +238,8 @@ var processItemsTax = function processItemsTax(items, state, options) {
319
238
  _discountedTotal = _originTotal.minus(_originTotal.dividedBy(productExpectAmount).times(shopDiscount));
320
239
  }
321
240
  var addTimeTaxPerItem = getProductItemTax(_objectSpread(_objectSpread({}, atItem), {}, {
322
- total: _discountedTotal.add((atItem === null || atItem === void 0 ? void 0 : atItem.surcharge_fee) || 0).toNumber(),
241
+ total: _discountedTotal,
242
+ // 可能包含原有数据,或前端临时数据
323
243
  quantity: atItem.product_quantity || atItem.num || 1
324
244
  }), state, {
325
245
  tax_rate: tax_rate,
@@ -328,84 +248,20 @@ var processItemsTax = function processItemsTax(items, state, options) {
328
248
  addTimeTotalTax = addTimeTotalTax.plus(addTimeTaxPerItem);
329
249
  }
330
250
  } catch (err) {
331
- _iterator6.e(err);
251
+ _iterator5.e(err);
332
252
  } finally {
333
- _iterator6.f();
253
+ _iterator5.f();
334
254
  }
335
255
  }
336
256
 
337
- // 处理 bundle 子商品(仅原价子商品)
338
- var bundleTotalOriginTax = new Decimal(0);
339
- var bundleTotalTax = new Decimal(0);
340
- if (Array.isArray((_item$_extend$other = item._extend.other) === null || _item$_extend$other === void 0 ? void 0 : _item$_extend$other.bundle)) {
341
- var _iterator7 = _createForOfIteratorHelper(item._extend.other.bundle),
342
- _step7;
343
- try {
344
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
345
- var bundleItem = _step7.value;
346
- // 只处理原价的子商品
347
- if (getBundleItemIsOriginalPrice(bundleItem)) {
348
- var _ref2, _bundleItem$bundle_se;
349
- var bundleQuantity = new Decimal(bundleItem.quantity || 1);
350
- var bundleUnitPrice = new Decimal((_ref2 = (_bundleItem$bundle_se = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se !== void 0 ? _bundleItem$bundle_se : bundleItem.price) !== null && _ref2 !== void 0 ? _ref2 : 0);
351
-
352
- // 计算原始税费(折扣前)- 单个商品
353
- var bundleOriginalTaxPerItem = getProductItemTax(_objectSpread(_objectSpread({}, bundleItem), {}, {
354
- total: bundleUnitPrice.add((bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.surcharge_fee) || 0).toNumber(),
355
- quantity: 1
356
- }), state, {
357
- tax_rate: tax_rate,
358
- is_price_include_tax: is_price_include_tax
359
- });
360
-
361
- // 计算平摊到该bundle商品的折扣
362
- var bundleItemDiscount = new Decimal(0);
363
- if (productExpectAmount > 0) {
364
- bundleItemDiscount = bundleUnitPrice.dividedBy(productExpectAmount).times(shopDiscount);
365
- }
366
-
367
- // bundle商品折后单价
368
- var bundleDiscountedUnitPrice = bundleUnitPrice.minus(bundleItemDiscount).add((bundleItem === null || bundleItem === void 0 ? void 0 : bundleItem.surcharge_fee) || 0);
369
-
370
- // 计算折后税费(折扣后)- 单个商品
371
- var bundleDiscountedTaxPerItem = getProductItemTax(_objectSpread(_objectSpread({}, bundleItem), {}, {
372
- total: bundleDiscountedUnitPrice.toNumber(),
373
- quantity: 1
374
- }), state, {
375
- tax_rate: tax_rate,
376
- is_price_include_tax: is_price_include_tax
377
- });
378
-
379
- // bundle商品折后单价
380
- // bundleItem.bundle_payment_price = bundleDiscountedUnitPrice;
381
- // 保存到bundle商品上(单个商品的税费,保留两位小数)
382
- bundleItem.original_tax_fee = new Decimal(bundleOriginalTaxPerItem).toNumber();
383
- bundleItem.tax_fee = new Decimal(bundleDiscountedTaxPerItem).toNumber();
384
-
385
- // 累加bundle税费(需要乘以bundle数量和主商品数量)
386
- bundleTotalOriginTax = bundleTotalOriginTax.plus(bundleOriginalTaxPerItem.times(bundleQuantity));
387
- bundleTotalTax = bundleTotalTax.plus(bundleDiscountedTaxPerItem.times(bundleQuantity));
388
- }
389
- }
390
- } catch (err) {
391
- _iterator7.e(err);
392
- } finally {
393
- _iterator7.f();
394
- }
395
- }
396
- var original_tax_fee = originalTaxPerItem.add(bundleTotalOriginTax);
397
- var tax_fee = maxDiscountedTaxPerItem.add(bundleTotalTax);
398
- item._extend.original_tax_fee = original_tax_fee.toNumber();
399
- item._extend.tax_fee = tax_fee.toNumber();
400
-
401
257
  // 累加到总税费(乘以数量)
402
- originTax = originTax.plus(original_tax_fee.times(quantity)).plus(addTimeTotalTax);
403
- tax = tax.plus(tax_fee.times(quantity)).plus(addTimeTotalTax);
258
+ originTax = originTax.plus(originalTaxPerItem.times(quantity)).plus(addTimeTotalTax);
259
+ tax = tax.plus(discountedTaxPerItem.times(quantity)).plus(addTimeTotalTax);
404
260
  }
405
261
  } catch (err) {
406
- _iterator5.e(err);
262
+ _iterator4.e(err);
407
263
  } finally {
408
- _iterator5.f();
264
+ _iterator4.f();
409
265
  }
410
266
  return {
411
267
  originTax: originTax,
@@ -505,9 +361,10 @@ var isProductMatchSurchargeCondition = function isProductMatchSurchargeCondition
505
361
  var surchargeConfig = options.surchargeConfig,
506
362
  _options$scheduleById = options.scheduleById,
507
363
  scheduleById = _options$scheduleById === void 0 ? {} : _options$scheduleById;
508
- var startDate = item.startDate,
509
- product_id = item.product_id,
510
- isCustomItem = item.isCustomItem;
364
+ var _item$_extend = item._extend,
365
+ startDate = _item$_extend.startDate,
366
+ other = _item$_extend.other,
367
+ isCustomItem = _item$_extend.isCustomItem;
511
368
  var _surchargeConfig$open = surchargeConfig.open_product,
512
369
  open_product = _surchargeConfig$open === void 0 ? 0 : _surchargeConfig$open,
513
370
  _surchargeConfig$is_a = surchargeConfig.is_all,
@@ -538,6 +395,7 @@ var isProductMatchSurchargeCondition = function isProductMatchSurchargeCondition
538
395
  isProductMatch = false;
539
396
  } else {
540
397
  // 普通商品:检查是否在指定商品列表中
398
+ var product_id = other === null || other === void 0 ? void 0 : other.product_id;
541
399
  isProductMatch = available_product_ids.includes(product_id);
542
400
  }
543
401
  }
@@ -576,148 +434,6 @@ var isProductMatchSurchargeCondition = function isProductMatchSurchargeCondition
576
434
  return isProductMatch && isScheduleMatch;
577
435
  };
578
436
 
579
- // bundle商品是否是原价
580
- var getBundleItemIsOriginalPrice = function getBundleItemIsOriginalPrice(item) {
581
- return (item === null || item === void 0 ? void 0 : item.price_type) === 'markup' && (item === null || item === void 0 ? void 0 : item.price_type_ext) === 'product_price';
582
- };
583
-
584
- // bundle商品是否是加价
585
- var getBundleItemIsMarkupPrice = function getBundleItemIsMarkupPrice(item) {
586
- return (item === null || item === void 0 ? void 0 : item.price_type) === 'markup' && ((item === null || item === void 0 ? void 0 : item.price_type_ext) === '' || !(item !== null && item !== void 0 && item.price_type_ext));
587
- };
588
-
589
- // bundle商品是否是减价
590
- var getBundleItemIsDiscountPrice = function getBundleItemIsDiscountPrice(item) {
591
- return (item === null || item === void 0 ? void 0 : item.price_type) === 'markdown' && ((item === null || item === void 0 ? void 0 : item.price_type_ext) === '' || !(item !== null && item !== void 0 && item.price_type_ext));
592
- };
593
-
594
- // bundle商品是否是加价或减价
595
- var getBundleItemIsMarkupOrDiscountPrice = function getBundleItemIsMarkupOrDiscountPrice(item) {
596
- return getBundleItemIsMarkupPrice(item) || getBundleItemIsDiscountPrice(item);
597
- };
598
- var getDiscountAmount = function getDiscountAmount(discounts) {
599
- return (discounts || []).reduce(function (total, discount) {
600
- return total.add(new Decimal(discount.amount || 0));
601
- }, new Decimal(0)).toNumber();
602
- };
603
-
604
- /**
605
- * 获取主商品加价减价后的总价 (主商品价格 + 子商品加价减价)
606
- */
607
- var getMainProductTotal = function getMainProductTotal(item) {
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);
610
-
611
- // 单规格
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)) {
613
- var _item$_extend$other4;
614
- total = total.add((_item$_extend$other4 = item._extend.other) === null || _item$_extend$other4 === void 0 ? void 0 : _item$_extend$other4.option.reduce(function (t, option) {
615
- return t.add(new Decimal(option.price || 0).mul(option.num || 1));
616
- }, new Decimal(0)));
617
- }
618
- var _iterator8 = _createForOfIteratorHelper(((_item$_extend$other5 = item._extend.other) === null || _item$_extend$other5 === void 0 ? void 0 : _item$_extend$other5.bundle) || []),
619
- _step8;
620
- try {
621
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
622
- var bundleItem = _step8.value;
623
- if (getBundleItemIsMarkupOrDiscountPrice(bundleItem)) {
624
- var _ref5, _bundleItem$bundle_se2;
625
- // 子商品折扣金额
626
- var discountAmount = getDiscountAmount(bundleItem.discount_list);
627
- // 子商品价格
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);
629
- // todo: 套餐子商品后不需要处理 子商品价格 - 子商品折扣金额
630
- var bundleItemTotal = bundleItemPrice.minus(discountAmount);
631
- total = total.add(bundleItemTotal);
632
- }
633
- }
634
- } catch (err) {
635
- _iterator8.e(err);
636
- } finally {
637
- _iterator8.f();
638
- }
639
- return total.toNumber();
640
- };
641
-
642
- /**
643
- * 清除附加费
644
- */
645
- var clearSurchargeFee = function clearSurchargeFee(state) {
646
- var service = state.service,
647
- addons = state.addons;
648
- if (Array.isArray(service === null || service === void 0 ? void 0 : service.value)) {
649
- var _iterator9 = _createForOfIteratorHelper(service.value),
650
- _step9;
651
- try {
652
- for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
653
- var _item$_extend$other6;
654
- var item = _step9.value;
655
- item._extend.surcharge_fee = 0;
656
- item._extend.relation_surcharge_ids = [];
657
- var _iterator10 = _createForOfIteratorHelper(((_item$_extend$other6 = item._extend.other) === null || _item$_extend$other6 === void 0 ? void 0 : _item$_extend$other6.bundle) || []),
658
- _step10;
659
- try {
660
- for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
661
- var bundleItem = _step10.value;
662
- bundleItem.surcharge_fee = 0;
663
- bundleItem.relation_surcharge_ids = [];
664
- }
665
- } catch (err) {
666
- _iterator10.e(err);
667
- } finally {
668
- _iterator10.f();
669
- }
670
- var _iterator11 = _createForOfIteratorHelper(item._extend.relation_details || []),
671
- _step11;
672
- try {
673
- for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
674
- var relationDetail = _step11.value;
675
- relationDetail.surcharge_fee = 0;
676
- relationDetail.relation_surcharge_ids = [];
677
- }
678
- } catch (err) {
679
- _iterator11.e(err);
680
- } finally {
681
- _iterator11.f();
682
- }
683
- }
684
- } catch (err) {
685
- _iterator9.e(err);
686
- } finally {
687
- _iterator9.f();
688
- }
689
- }
690
- if (Array.isArray(addons === null || addons === void 0 ? void 0 : addons.value)) {
691
- var _iterator12 = _createForOfIteratorHelper(addons.value),
692
- _step12;
693
- try {
694
- for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
695
- var _item2$_extend$other;
696
- var _item2 = _step12.value;
697
- _item2._extend.surcharge_fee = 0;
698
- _item2._extend.relation_surcharge_ids = [];
699
- var _iterator13 = _createForOfIteratorHelper(((_item2$_extend$other = _item2._extend.other) === null || _item2$_extend$other === void 0 ? void 0 : _item2$_extend$other.bundle) || []),
700
- _step13;
701
- try {
702
- for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
703
- var _bundleItem = _step13.value;
704
- _bundleItem.surcharge_fee = 0;
705
- _bundleItem.relation_surcharge_ids = [];
706
- }
707
- } catch (err) {
708
- _iterator13.e(err);
709
- } finally {
710
- _iterator13.f();
711
- }
712
- }
713
- } catch (err) {
714
- _iterator12.e(err);
715
- } finally {
716
- _iterator12.f();
717
- }
718
- }
719
- };
720
-
721
437
  /**
722
438
  * 订单附加费各项信息
723
439
  * @param state
@@ -754,8 +470,6 @@ var getSurcharge = function getSurcharge(state, options) {
754
470
  }
755
471
  return [];
756
472
  }
757
- // 清除附加费
758
- clearSurchargeFee(state);
759
473
 
760
474
  // 新增状态
761
475
  var service = state.service,
@@ -775,252 +489,93 @@ var getSurcharge = function getSurcharge(state, options) {
775
489
  fixed = _surchargeConfig$fixe === void 0 ? '0' : _surchargeConfig$fixe,
776
490
  id = surchargeConfig.id,
777
491
  type = surchargeConfig.type,
778
- description = surchargeConfig.description,
779
- open_product = surchargeConfig.open_product;
492
+ description = surchargeConfig.description;
780
493
 
781
494
  // 收集所有符合条件的商品
782
495
  var matchedItems = [];
783
496
 
784
497
  // 检查service中符合条件的商品
785
498
  if (Array.isArray(service === null || service === void 0 ? void 0 : service.value)) {
786
- var _iterator14 = _createForOfIteratorHelper(service.value),
787
- _step14;
499
+ var _iterator6 = _createForOfIteratorHelper(service.value),
500
+ _step6;
788
501
  try {
789
- for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
790
- var _item$_extend$other7;
791
- var item = _step14.value;
792
- // 主商品符合附加费条件
793
- if (isProductMatchSurchargeCondition({
794
- isCustomItem: item.isCustomItem,
795
- startDate: item._extend.startDate,
796
- product_id: item.product_id
797
- }, {
502
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
503
+ var item = _step6.value;
504
+ if (isProductMatchSurchargeCondition(item, {
798
505
  surchargeConfig: surchargeConfig,
799
506
  scheduleById: scheduleById || {},
800
507
  ScheduleModule: ScheduleModule
801
508
  })) {
802
- // 主商品加价减价后的总价
803
- var total = getMainProductTotal(item);
804
- var mainQuantity = item._extend.quantity || 1;
805
509
  matchedItems.push({
806
- total: total,
807
- // addTimeTotal: getRelationDetailsTotal(
808
- // item._extend.relation_details || []
809
- // ),
810
- isMain: true,
811
- quantity: mainQuantity,
812
- item: item,
813
- mainQuantity: mainQuantity // 主商品的mainQuantity等于自己的quantity
510
+ total: Number(item._extend.total),
511
+ addTimeTotal: getRelationDetailsTotal(item._extend.relation_details || []),
512
+ quantity: item._extend.quantity || 1
814
513
  });
815
514
  }
816
- // 遍历子商品 原价商品符合附加费条件
817
- var _iterator15 = _createForOfIteratorHelper(((_item$_extend$other7 = item._extend.other) === null || _item$_extend$other7 === void 0 ? void 0 : _item$_extend$other7.bundle) || []),
818
- _step15;
819
- try {
820
- for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
821
- var bundleItem = _step15.value;
822
- // bundle商品是原价且符合附加费条件
823
- if (getBundleItemIsOriginalPrice(bundleItem) && isProductMatchSurchargeCondition({
824
- isCustomItem: false,
825
- startDate: item._extend.startDate,
826
- product_id: bundleItem._bundle_product_id
827
- }, {
828
- surchargeConfig: surchargeConfig,
829
- scheduleById: scheduleById || {},
830
- ScheduleModule: ScheduleModule
831
- })) {
832
- var _ref6, _bundleItem$bundle_se3;
833
- var _mainQuantity = item._extend.quantity || 1;
834
- matchedItems.push({
835
- isMain: false,
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),
837
- quantity: bundleItem.num || bundleItem.quantity || 1,
838
- item: bundleItem,
839
- mainQuantity: _mainQuantity // 子商品的mainQuantity是所属主商品的quantity
840
- });
841
- }
842
- }
843
-
844
- // 加时商品符合附加费条件
845
- } catch (err) {
846
- _iterator15.e(err);
847
- } finally {
848
- _iterator15.f();
849
- }
850
- var _iterator16 = _createForOfIteratorHelper(item._extend.relation_details || []),
851
- _step16;
852
- try {
853
- for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
854
- var relationDetail = _step16.value;
855
- if (isProductMatchSurchargeCondition({
856
- isCustomItem: false,
857
- startDate: item._extend.startDate,
858
- product_id: relationDetail.product_id
859
- }, {
860
- surchargeConfig: surchargeConfig,
861
- scheduleById: scheduleById || {},
862
- ScheduleModule: ScheduleModule
863
- })) {
864
- var _relationDetail$metad;
865
- matchedItems.push({
866
- isMain: false,
867
- total: Number((relationDetail === null || relationDetail === void 0 ? void 0 : relationDetail.price) || (relationDetail === null || relationDetail === void 0 || (_relationDetail$metad = relationDetail.metadata) === null || _relationDetail$metad === void 0 ? void 0 : _relationDetail$metad.main_product_attached_bundle_selling_price)),
868
- quantity: relationDetail.num || relationDetail.quantity || 1,
869
- item: relationDetail,
870
- mainQuantity: 1 // 加时商品不受主商品数量影响
871
- });
872
- }
873
- }
874
- } catch (err) {
875
- _iterator16.e(err);
876
- } finally {
877
- _iterator16.f();
878
- }
879
515
  }
880
516
  } catch (err) {
881
- _iterator14.e(err);
517
+ _iterator6.e(err);
882
518
  } finally {
883
- _iterator14.f();
519
+ _iterator6.f();
884
520
  }
885
521
  }
886
522
 
887
523
  // 检查addons中符合条件的商品
888
524
  if (Array.isArray(addons === null || addons === void 0 ? void 0 : addons.value)) {
889
- var _iterator17 = _createForOfIteratorHelper(addons.value),
890
- _step17;
525
+ var _iterator7 = _createForOfIteratorHelper(addons.value),
526
+ _step7;
891
527
  try {
892
- for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
893
- var _item3 = _step17.value;
894
- if (isProductMatchSurchargeCondition(_item3, {
528
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
529
+ var _item2 = _step7.value;
530
+ if (isProductMatchSurchargeCondition(_item2, {
895
531
  surchargeConfig: surchargeConfig,
896
532
  scheduleById: scheduleById || {},
897
533
  ScheduleModule: ScheduleModule
898
534
  })) {
899
535
  matchedItems.push({
900
- isMain: true,
901
- total: Number(_item3._extend.total),
902
- quantity: _item3._extend.quantity || 1,
903
- item: _item3,
904
- mainQuantity: 1 // addons独立商品,mainQuantity为1
536
+ total: Number(_item2._extend.total),
537
+ quantity: _item2._extend.quantity || 1
905
538
  });
906
539
  }
907
540
  }
908
541
  } catch (err) {
909
- _iterator17.e(err);
542
+ _iterator7.e(err);
910
543
  } finally {
911
- _iterator17.f();
544
+ _iterator7.f();
912
545
  }
913
546
  }
914
547
  var finalAmount = 0;
915
-
916
- // 计算商品总数:主商品和addons按quantity计算,子商品(bundle item)需要乘以主商品数量
917
- var productCount = matchedItems.reduce(function (total, item) {
918
- if (item.isMain) {
919
- // 主商品和addons商品
920
- return total + (item.quantity || 1);
921
- } else {
922
- // 子商品(bundle item)和加时商品
923
- // 加时商品的 mainQuantity = 1,所以不受影响
924
- // bundle item 的 mainQuantity = 主商品数量,需要乘以实际数量
925
- return total + (item.quantity || 1) * (item.mainQuantity || 1);
926
- }
927
- }, 0);
928
-
929
- // 追加进入的固定附加费总值
930
- var fixedTotal = new Decimal(0);
931
- // 追加到商品的附加费总值 用于追加抹平字段
932
- var productTotalSurcharge = new Decimal(0);
933
548
  if (matchedItems.length > 0) {
934
549
  // 基于每个商品计算附加费:max(0, 商品价格) * rate + fixed
935
550
  var configTotal = new Decimal(0);
936
551
 
937
- // 计算固定附加费 - 只加一次
938
- if (fixed && new Decimal(fixed).gt(0)) {
939
- configTotal = configTotal.plus(fixed);
940
- }
941
-
942
552
  // 计算百分比附加费 - 对每个商品单独计算
943
- if (percentage && new Decimal(percentage).gt(0) || fixed) {
553
+ if (percentage && new Decimal(percentage).gt(0)) {
944
554
  var percentageRate = new Decimal(percentage);
945
- var _iterator18 = _createForOfIteratorHelper(matchedItems.entries()),
946
- _step18;
555
+ var _iterator8 = _createForOfIteratorHelper(matchedItems),
556
+ _step8;
947
557
  try {
948
- for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
949
- var _step18$value = _slicedToArray(_step18.value, 2),
950
- index = _step18$value[0],
951
- _item4 = _step18$value[1];
952
- var isLast = index === matchedItems.length - 1;
558
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
559
+ var _item3 = _step8.value;
953
560
  // 对每个商品:max(0, 价格) * 数量 * 费率
954
- var itemPrice = new Decimal(Math.max(0, _item4.total || 0));
955
- var itemQuantity = new Decimal(_item4.isMain ? _item4.quantity || 1 : _item4.quantity * _item4.mainQuantity || 1);
956
- var addTimeTotal = new Decimal(_item4.addTimeTotal || 0);
957
- // 单个商品总附加费
958
- var itemTotalSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
959
- configTotal = configTotal.plus(itemTotalSurcharge);
960
-
961
- // 单个商品单数量附加费
962
- var itemSurcharge = itemPrice.times(percentageRate);
963
-
964
- // 固定附加费 = 1 / 商品数量 * 固定附加费(向下取整保留两位小数)
965
- var fixedSurcharge = new Decimal(1).div(productCount).times(fixed).times(100).floor().div(100).toFixed(2);
966
- var quantity = _item4.isMain ? _item4.quantity : _item4.quantity * _item4.mainQuantity;
967
- fixedTotal = fixedTotal.plus(new Decimal(fixedSurcharge).times(quantity).toNumber());
968
-
969
- // 如果是最后一个商品 判断fixed - fixedTotal 是否有剩余小数 如果有的话,追加抹平字段
970
- if (isLast && fixedTotal.gt(0)) {
971
- var remaining = new Decimal(fixed).minus(fixedTotal).toNumber();
972
- if (remaining > 0) {
973
- productTotalSurcharge = productTotalSurcharge.plus(remaining);
974
- if (_item4.isMain) {
975
- _item4.item._extend.surcharge_rounding_remainder = remaining;
976
- } else {
977
- _item4.item.surcharge_rounding_remainder = remaining;
978
- }
979
- }
980
- }
981
- // 只有当 open_product !== 0 时,才将附加费追加到商品身上
982
- // open_product === 0 表示商品未开启该附加费,只在订单级别累加
983
- if (open_product !== 0) {
984
- if (_item4.isMain) {
985
- var _item4$item$_extend;
986
- var originSurchargeFee = new Decimal(_item4.item._extend.surcharge_fee || 0);
987
- // 保留两位小数
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;
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]);
992
- } else {
993
- var _item4$item;
994
- var _originSurchargeFee = new Decimal(_item4.item.surcharge_fee || 0);
995
- // 保留两位小数
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;
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]);
1000
- }
1001
- }
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
- }
561
+ var itemPrice = new Decimal(Math.max(0, _item3.total || 0));
562
+ var itemQuantity = new Decimal(_item3.quantity || 1);
563
+ var addTimeTotal = new Decimal(_item3.addTimeTotal || 0);
564
+ var itemSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
565
+ configTotal = configTotal.plus(itemSurcharge);
1016
566
  }
1017
567
  } catch (err) {
1018
- _iterator18.e(err);
568
+ _iterator8.e(err);
1019
569
  } finally {
1020
- _iterator18.f();
570
+ _iterator8.f();
1021
571
  }
1022
572
  }
1023
573
 
574
+ // 计算固定附加费 - 只加一次
575
+ if (fixed && new Decimal(fixed).gt(0)) {
576
+ configTotal = configTotal.plus(fixed);
577
+ }
578
+
1024
579
  // 如果该配置有金额,则添加到结果中
1025
580
  finalAmount = configTotal.toDecimalPlaces(2, Decimal.ROUND_HALF_UP).toNumber();
1026
581
  }
@@ -1039,10 +594,7 @@ var getSurcharge = function getSurcharge(state, options) {
1039
594
  type: 'default',
1040
595
  fixed: fixed,
1041
596
  amount: finalAmount,
1042
- percentage: percentage,
1043
- metadata: {
1044
- open_product: open_product
1045
- }
597
+ percentage: percentage
1046
598
  });
1047
599
  }
1048
600
  return surchargeWithAmount;
@@ -1113,13 +665,13 @@ export var getIsPriceIncludeTax = function getIsPriceIncludeTax(state) {
1113
665
  var _state$bookingDetail$, _state$bookingDetail6;
1114
666
  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;
1115
667
  };
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;
668
+ var getExpectAmount = function getExpectAmount(_ref2) {
669
+ var price = _ref2.price,
670
+ tax = _ref2.tax,
671
+ surchargeAmount = _ref2.surchargeAmount,
672
+ shopDiscount = _ref2.shopDiscount,
673
+ state = _ref2.state,
674
+ options = _ref2.options;
1123
675
  var _tax = tax;
1124
676
  // 如果价格含税, 则将税费改为0
1125
677
  if (getIsPriceIncludeTax(state) || options !== null && options !== void 0 && options.is_price_include_tax) {
@@ -1141,9 +693,9 @@ var getRoundingAmount = function getRoundingAmount(state) {
1141
693
  var _state$bookingDetail9;
1142
694
  return Number(state === null || state === void 0 || (_state$bookingDetail9 = state.bookingDetail) === null || _state$bookingDetail9 === void 0 ? void 0 : _state$bookingDetail9.rounding_amount) || 0;
1143
695
  };
1144
- var getSumTotalAmount = function getSumTotalAmount(_ref8) {
1145
- var expectAmount = _ref8.expectAmount,
1146
- roundingAmount = _ref8.roundingAmount;
696
+ var getSumTotalAmount = function getSumTotalAmount(_ref3) {
697
+ var expectAmount = _ref3.expectAmount,
698
+ roundingAmount = _ref3.roundingAmount;
1147
699
  return expectAmount + roundingAmount;
1148
700
  };
1149
701
 
@@ -1215,20 +767,6 @@ export var getSumTotal = function getSumTotal(state, options) {
1215
767
  options: options
1216
768
  });
1217
769
 
1218
- // 商品原价 不包含折扣
1219
- var _getProductExpectAmou2 = getProductExpectAmount(state, options.isEdit, true),
1220
- productExpectAmountWithoutDiscount = _getProductExpectAmou2.productExpectAmount;
1221
-
1222
- // 订单原价 不包含整单折扣 不包含商品券折扣卡抵扣
1223
- var originExpectAmountWithoutDiscount = getExpectAmount({
1224
- price: productExpectAmountWithoutDiscount,
1225
- tax: originTax,
1226
- surchargeAmount: surchargeAmount,
1227
- shopDiscount: 0,
1228
- state: state,
1229
- options: options
1230
- });
1231
-
1232
770
  // 总支付金额 总计
1233
771
  var sumTotalAmount = getSumTotalAmount({
1234
772
  expectAmount: expectAmount,
@@ -1265,8 +803,6 @@ export var getSumTotal = function getSumTotal(state, options) {
1265
803
  totalRefundAmount: totalRefundAmount,
1266
804
  dueAmount: dueAmount,
1267
805
  roundingAmount: roundingAmount,
1268
- originExpectAmount: originExpectAmount,
1269
- // 订单原价 不包含整单折扣 不包含商品券折扣卡抵扣
1270
- originExpectAmountWithoutDiscount: originExpectAmountWithoutDiscount
806
+ originExpectAmount: originExpectAmount
1271
807
  };
1272
808
  };