@pisell/private-materials 6.9.2 → 6.9.3
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.
- package/README.md +5 -1
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +150 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.js +20 -3
- package/es/components/Sales/Cart/utils.d.ts +5 -0
- package/es/components/Sales/Cart/utils.js +16 -0
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/Sales/Summary/utils.js +5 -4
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
- package/es/components/appointmentBooking/components/Voucher/index.js +26 -5
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +6 -13
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +3 -0
- package/es/components/appointmentBooking/utils.d.ts +23 -0
- package/es/components/appointmentBooking/utils.js +159 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/actionButtons/index.js +10 -0
- package/es/components/booking/components/customiseItemModal/index.js +4 -7
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +358 -165
- package/es/components/booking/components/footer/index.js +496 -170
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +134 -78
- package/es/components/booking/components/voucher/index.js +15 -6
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/dashboard/index.js +78 -92
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/dashboard/serve.js +22 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.js +32 -10
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/client/index.js +16 -6
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +45 -41
- package/es/components/booking/info2/cartClientCard/index.js +16 -10
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +21 -18
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/info2/service/editService/utils.js +9 -5
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +172 -65
- package/es/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +3 -2
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/es/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +324 -198
- package/es/components/checkout/index.less +6 -0
- package/es/components/checkout/plugin.js +59 -12
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/es/components/ecocup/components/CustomerCard/index.js +34 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/es/components/ecocup/components/PageHeader/index.js +37 -0
- package/es/components/ecocup/components/PageHeader/index.less +19 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/es/components/ecocup/components/SearchBar/index.js +218 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/cupList/const.d.ts +133 -0
- package/es/components/ecocup/cupList/const.js +306 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/es/{plus/myTeamLogin/index.js → components/ecocup/cupList/hooks/useCupApi.js} +129 -259
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
- package/es/components/ecocup/cupList/index.d.ts +6 -0
- package/es/components/ecocup/cupList/index.js +220 -0
- package/es/components/ecocup/cupList/index.less +113 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/cupProject/const.js +27 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +103 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.d.ts +49 -0
- package/es/components/ecocup/hooks.js +151 -0
- package/es/components/ecocup/locales.d.ts +339 -0
- package/es/components/ecocup/locales.js +372 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftposPay/EFTPos.js +15 -6
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +9 -2
- package/es/components/eftposPay/tyro/index.js +97 -4
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
- package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/es/components/eventBooking/components/Voucher/index.js +266 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +268 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/components/MX51/index.js +2 -1
- package/es/components/pay/toB/paymentMethods/index.js +2 -1
- package/es/components/pay/toB/types/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +54 -5
- package/es/components/pay/toC/PaymentList/index.less +58 -1
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +22 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/es/components/pay/toC/PaymentList/utils.js +188 -6
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +68 -28
- package/es/components/pay/toC/locales.d.ts +6 -0
- package/es/components/pay/toC/locales.js +9 -3
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +5 -8
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +142 -63
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +18 -4
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +12 -2
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +14 -11
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +69 -10
- package/es/components/ticketBooking/index.d.ts +2 -0
- package/es/components/ticketBooking/index.js +2 -1
- package/es/components/walletList/index.js +7 -2
- package/es/index.d.ts +7 -4
- package/es/index.js +7 -4
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +27 -5
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +6 -3
- package/es/plus/clinetSearch/types.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +861 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +4 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +6 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +5 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +152 -0
- package/es/plus/orderList/config.js +785 -0
- package/es/plus/orderList/index.d.ts +9 -0
- package/es/plus/orderList/index.js +128 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +372 -0
- package/es/plus/orderList/locales.js +459 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.js +12 -3
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/es/plus/productSelect/ProductList/gridComponents.js +30 -10
- package/es/plus/productSelect/index.d.ts +3 -1
- package/es/plus/productSelect/index.js +85 -14
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +8 -0
- package/es/plus/walletPassGallery/serve.js +78 -50
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +7 -2
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/es/plus/webPosLogin/service.js +2 -1
- package/es/pro/Login2.0/AuthModal.js +12 -4
- package/es/pro/Login2.0/Login2.js +7 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/index.less +15 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/NumericStepper/index.d.ts +27 -1
- package/es/pro/NumericStepper/index.js +84 -68
- package/es/pro/NumericStepper/index.less +261 -136
- package/es/pro/Selector/Selector.js +17 -10
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +4 -2
- package/es/pro/Selector/types.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/es/pro/skuDetailModal/index.js +57 -55
- package/es/pro/skuDetailModal/index.less +46 -4
- package/es/pro/skuDetailModal/types.d.ts +7 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.js +25 -7
- package/lib/components/Sales/Cart/utils.d.ts +5 -0
- package/lib/components/Sales/Cart/utils.js +13 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.js +2 -4
- package/lib/components/appointmentBooking/components/Header/index.js +3 -8
- package/lib/components/appointmentBooking/components/Services/index.js +5 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
- package/lib/components/appointmentBooking/components/Voucher/index.js +37 -6
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +6 -11
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +3 -0
- package/lib/components/appointmentBooking/utils.d.ts +23 -0
- package/lib/components/appointmentBooking/utils.js +103 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/actionButtons/index.js +10 -0
- package/lib/components/booking/components/customiseItemModal/index.js +4 -5
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +122 -25
- package/lib/components/booking/components/footer/index.js +243 -5
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +52 -18
- package/lib/components/booking/components/voucher/index.js +18 -4
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/dashboard/index.js +38 -59
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.js +8 -2
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.js +65 -21
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.js +16 -8
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +6 -2
- package/lib/components/booking/info2/cartClientCard/index.js +17 -11
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +20 -17
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/info2/service/editService/utils.js +7 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +105 -31
- package/lib/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -2
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/lib/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +160 -109
- package/lib/components/checkout/index.less +6 -0
- package/lib/components/checkout/plugin.js +195 -150
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
- package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/lib/components/ecocup/components/PageHeader/index.js +59 -0
- package/lib/components/ecocup/components/PageHeader/index.less +19 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SearchBar/const.js +50 -0
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/lib/components/ecocup/components/SearchBar/index.js +213 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/cupList/const.d.ts +133 -0
- package/lib/components/ecocup/cupList/const.js +326 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +39 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
- package/lib/components/ecocup/cupList/index.d.ts +6 -0
- package/lib/components/ecocup/cupList/index.js +208 -0
- package/lib/components/ecocup/cupList/index.less +113 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/cupProject/const.js +58 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +126 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/index.js +32 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.d.ts +49 -0
- package/lib/components/ecocup/hooks.js +155 -0
- package/lib/components/ecocup/locales.d.ts +339 -0
- package/lib/components/ecocup/locales.js +389 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftposPay/EFTPos.js +11 -7
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/store/index.d.ts +9 -2
- package/lib/components/eftposPay/tyro/index.js +64 -7
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
- package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Voucher/index.js +197 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/components/MX51/index.js +2 -1
- package/lib/components/pay/toB/paymentMethods/index.js +2 -1
- package/lib/components/pay/toB/types/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +36 -5
- package/lib/components/pay/toC/PaymentList/index.less +58 -1
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +21 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/lib/components/pay/toC/PaymentList/utils.js +156 -7
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +53 -11
- package/lib/components/pay/toC/locales.d.ts +6 -0
- package/lib/components/pay/toC/locales.js +9 -3
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +3 -7
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -16
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.js +20 -6
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +13 -3
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +3 -2
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +59 -0
- package/lib/components/ticketBooking/index.d.ts +2 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/walletList/index.js +5 -1
- package/lib/index.d.ts +7 -4
- package/lib/index.js +15 -6
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +31 -7
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +6 -3
- package/lib/plus/clinetSearch/types.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +584 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +4 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +6 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +5 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +152 -0
- package/lib/plus/orderList/config.js +763 -0
- package/lib/plus/orderList/index.d.ts +9 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +372 -0
- package/lib/plus/orderList/locales.js +471 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/lib/plus/productSelect/ProductList/gridComponents.js +7 -1
- package/lib/plus/productSelect/index.d.ts +3 -1
- package/lib/plus/productSelect/index.js +56 -11
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +8 -0
- package/lib/plus/walletPassGallery/serve.js +23 -8
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +7 -2
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/lib/plus/webPosLogin/service.js +2 -1
- package/lib/pro/Login2.0/AuthModal.js +15 -7
- package/lib/pro/Login2.0/Login2.js +7 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/index.less +15 -3
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/NumericStepper/index.d.ts +27 -1
- package/lib/pro/NumericStepper/index.js +73 -70
- package/lib/pro/NumericStepper/index.less +261 -136
- package/lib/pro/Selector/Selector.js +11 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +4 -2
- package/lib/pro/Selector/types.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/lib/pro/skuDetailModal/index.js +114 -64
- package/lib/pro/skuDetailModal/index.less +46 -4
- package/lib/pro/skuDetailModal/types.d.ts +7 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/lowcode/login2/meta.ts +15 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/package.json +8 -23
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +0 -157
- package/es/plus/myTeamLogin/index.d.ts +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +0 -156
- package/lib/plus/myTeamLogin/index.d.ts +0 -11
- package/lib/plus/myTeamLogin/index.js +0 -198
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lowcode/my-team-login/meta.ts +0 -71
|
@@ -300,7 +300,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
|
|
|
300
300
|
padding: 16
|
|
301
301
|
},
|
|
302
302
|
bottomContent: renderBottomContent(),
|
|
303
|
-
preventBlurElements: [uniqueKeyboardId]
|
|
303
|
+
preventBlurElements: [uniqueKeyboardId],
|
|
304
|
+
selected: firstInputStatus.payment && !!internalPaymentValue
|
|
304
305
|
});
|
|
305
306
|
};
|
|
306
307
|
var renderSurchargeDisplay = function renderSurchargeDisplay() {
|
|
@@ -327,7 +328,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
|
|
|
327
328
|
onFocus: function onFocus() {
|
|
328
329
|
return setFocusedInput(KEYS.PERCENT);
|
|
329
330
|
},
|
|
330
|
-
preventBlurElements: [uniqueKeyboardId]
|
|
331
|
+
preventBlurElements: [uniqueKeyboardId],
|
|
332
|
+
selected: firstInputStatus.percent && !!(internalSurchargeValue !== null && internalSurchargeValue !== void 0 && internalSurchargeValue.percent) && focusedInput !== KEYS.FIXED
|
|
331
333
|
}), /*#__PURE__*/React.createElement("div", {
|
|
332
334
|
style: {
|
|
333
335
|
color: '#667085',
|
|
@@ -349,7 +351,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
|
|
|
349
351
|
onFocus: function onFocus() {
|
|
350
352
|
return setFocusedInput(KEYS.FIXED);
|
|
351
353
|
},
|
|
352
|
-
preventBlurElements: [uniqueKeyboardId]
|
|
354
|
+
preventBlurElements: [uniqueKeyboardId],
|
|
355
|
+
selected: firstInputStatus.fixed && !!(internalSurchargeValue !== null && internalSurchargeValue !== void 0 && internalSurchargeValue.fixed) && focusedInput === KEYS.FIXED
|
|
353
356
|
}));
|
|
354
357
|
};
|
|
355
358
|
var customDisplay = function customDisplay() {
|
|
@@ -20,7 +20,7 @@ import { locales } from '@pisell/utils';
|
|
|
20
20
|
import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
|
|
21
21
|
import localeTexts from "./locales";
|
|
22
22
|
import "./index.less";
|
|
23
|
-
import
|
|
23
|
+
import NumericStepper from "../NumericStepper";
|
|
24
24
|
import NoteModal from "../../plus/noteModal";
|
|
25
25
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
26
26
|
import { DiscountKeyboard } from "../priceKeyboard";
|
|
@@ -201,8 +201,8 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
201
201
|
return {
|
|
202
202
|
open: function () {
|
|
203
203
|
var _open = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
|
|
204
|
-
var _data$_extend, _data$_extend2, _data$_extend3, _data$_extend4, _data$_extend5
|
|
205
|
-
var _ref5, _is_eject, _hydratedData$_extend, open_deposit, productDetail, apiData, basePrice, hydratedData, isEject, hydratedAny, _initialHasSkuOptions, _data, dataAny, initialHasSkuOptions;
|
|
204
|
+
var _data$_extend, _data$_extend2, _data$_extend3, _data$_extend4, _data$_extend5;
|
|
205
|
+
var _ref5, _is_eject, _hydratedData$_extend, open_deposit, productDetail, apiData, basePrice, hydratedData, isEject, hydratedAny, _initialHasSkuOptions, _data, recordSkuValue, dataAny, initialHasSkuOptions;
|
|
206
206
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
207
207
|
while (1) switch (_context2.prev = _context2.next) {
|
|
208
208
|
case 0:
|
|
@@ -300,26 +300,16 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
300
300
|
setNote((_data === null || _data === void 0 || (_data$_extend = _data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.note) || '');
|
|
301
301
|
setQuantity((_data === null || _data === void 0 || (_data$_extend2 = _data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.quantity) || 1);
|
|
302
302
|
setDiscounts((_data === null || _data === void 0 ? void 0 : _data.discount_list) || []);
|
|
303
|
-
|
|
303
|
+
recordSkuValue = (_data === null || _data === void 0 || (_data$_extend3 = _data._extend) === null || _data$_extend3 === void 0 ? void 0 : _data$_extend3._skuValue) || (_data === null || _data === void 0 || (_data$_extend4 = _data._extend) === null || _data$_extend4 === void 0 ? void 0 : _data$_extend4.other) || {
|
|
304
304
|
product_id: _data === null || _data === void 0 ? void 0 : _data.product_id,
|
|
305
|
-
product_variant_id:
|
|
306
|
-
bundle:
|
|
307
|
-
option:
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
option: (_data === null || _data === void 0 || (_data$_extend8 = _data._extend) === null || _data$_extend8 === void 0 || (_data$_extend8 = _data$_extend8.other) === null || _data$_extend8 === void 0 ? void 0 : _data$_extend8.option) || []
|
|
314
|
-
});
|
|
315
|
-
setSkuDefaultValue({
|
|
316
|
-
product_id: _data === null || _data === void 0 ? void 0 : _data.product_id,
|
|
317
|
-
product_variant_id: (_data === null || _data === void 0 || (_data$_extend9 = _data._extend) === null || _data$_extend9 === void 0 || (_data$_extend9 = _data$_extend9.other) === null || _data$_extend9 === void 0 ? void 0 : _data$_extend9.product_variant_id) || 0,
|
|
318
|
-
price: (_data === null || _data === void 0 || (_data$_extend10 = _data._extend) === null || _data$_extend10 === void 0 ? void 0 : _data$_extend10.price) || 0,
|
|
319
|
-
bundle: (_data === null || _data === void 0 || (_data$_extend11 = _data._extend) === null || _data$_extend11 === void 0 || (_data$_extend11 = _data$_extend11.other) === null || _data$_extend11 === void 0 ? void 0 : _data$_extend11.bundle) || [],
|
|
320
|
-
option: (_data === null || _data === void 0 || (_data$_extend12 = _data._extend) === null || _data$_extend12 === void 0 || (_data$_extend12 = _data$_extend12.other) === null || _data$_extend12 === void 0 ? void 0 : _data$_extend12.option) || []
|
|
321
|
-
});
|
|
322
|
-
setPriceOverride((_data === null || _data === void 0 || (_data$_extend13 = _data._extend) === null || _data$_extend13 === void 0 ? void 0 : _data$_extend13.priceOverride) || undefined);
|
|
305
|
+
product_variant_id: 0,
|
|
306
|
+
bundle: [],
|
|
307
|
+
option: []
|
|
308
|
+
};
|
|
309
|
+
console.log(recordSkuValue, 'skuValue');
|
|
310
|
+
setSkuValue(recordSkuValue);
|
|
311
|
+
setSkuDefaultValue(recordSkuValue);
|
|
312
|
+
setPriceOverride((_data === null || _data === void 0 || (_data$_extend5 = _data._extend) === null || _data$_extend5 === void 0 ? void 0 : _data$_extend5.priceOverride) || null);
|
|
323
313
|
// setPriceOverride(getInitialPriceOverrideFromProductData({ productData: _data }))
|
|
324
314
|
setShowPriceAdjustModal(false);
|
|
325
315
|
// 默认进入:有 SKU 选择则从 step1 开始;否则从 step0(详情)开始
|
|
@@ -334,7 +324,7 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
334
324
|
});
|
|
335
325
|
setOpen(true);
|
|
336
326
|
}, 0);
|
|
337
|
-
case
|
|
327
|
+
case 49:
|
|
338
328
|
case "end":
|
|
339
329
|
return _context2.stop();
|
|
340
330
|
}
|
|
@@ -502,7 +492,7 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
502
492
|
var handleConfirm = /*#__PURE__*/function () {
|
|
503
493
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
504
494
|
var _bookingState$booking;
|
|
505
|
-
var _procedureRef$current, _procedureRef$current2, requiredOptionValidation, shouldValidate, _skuOptionsSelectionR, _skuOptionsSelectionR2, isValid, _skuOptionsSelectionR3, _skuOptionsSelectionR4, _bookingState$booking2, _bookingState$booking3, _bookingState$booking4, _bookingState$booking5, _bookingState$booking6, _bookingState$booking7, latestSkuValue, updatedData, stockValidation, allowAddToCartWhenOutStock, enableDontShowAgainToday, hasStock, productId, shouldSkipAlert;
|
|
495
|
+
var _procedureRef$current, _procedureRef$current2, requiredOptionValidation, shouldValidate, _skuOptionsSelectionR, _skuOptionsSelectionR2, isValid, _skuOptionsSelectionR3, _skuOptionsSelectionR4, _updatedData$_extend, _bookingState$booking2, _bookingState$booking3, _bookingState$booking4, _bookingState$booking5, _bookingState$booking6, _bookingState$booking7, latestSkuValue, originTotal, updatedData, stockValidation, allowAddToCartWhenOutStock, enableDontShowAgainToday, hasStock, productId, shouldSkipAlert;
|
|
506
496
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
507
497
|
while (1) switch (_context3.prev = _context3.next) {
|
|
508
498
|
case 0:
|
|
@@ -548,13 +538,14 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
548
538
|
return _context3.abrupt("return");
|
|
549
539
|
case 19:
|
|
550
540
|
if (!(productData && onConfirm)) {
|
|
551
|
-
_context3.next =
|
|
541
|
+
_context3.next = 42;
|
|
552
542
|
break;
|
|
553
543
|
}
|
|
554
544
|
/**
|
|
555
545
|
* @description 优先从 SKUOptionsSelection ref 读取最新转换后的值
|
|
556
546
|
*/
|
|
557
547
|
latestSkuValue = ((_skuOptionsSelectionR3 = skuOptionsSelectionRef.current) === null || _skuOptionsSelectionR3 === void 0 || (_skuOptionsSelectionR4 = _skuOptionsSelectionR3.getTransformValues) === null || _skuOptionsSelectionR4 === void 0 ? void 0 : _skuOptionsSelectionR4.call(_skuOptionsSelectionR3)) || skuValue || skuDefaultValue;
|
|
548
|
+
originTotal = new Decimal(unitPrice !== null && unitPrice !== void 0 ? unitPrice : 0).toNumber();
|
|
558
549
|
updatedData = _objectSpread(_objectSpread({}, productData), {}, {
|
|
559
550
|
discount_list: discounts || [],
|
|
560
551
|
_extend: _objectSpread(_objectSpread({}, (productData === null || productData === void 0 ? void 0 : productData._extend) || {}), {}, {
|
|
@@ -568,11 +559,14 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
568
559
|
skuValue: getOtherFromSkuValue({
|
|
569
560
|
productData: productData,
|
|
570
561
|
skuValue: latestSkuValue
|
|
571
|
-
})
|
|
562
|
+
}),
|
|
563
|
+
origin_total: originTotal
|
|
572
564
|
}, priceOverride !== null && typeof priceOverride !== 'undefined' ? {
|
|
573
565
|
priceOverride: priceOverride
|
|
574
566
|
} : {})
|
|
575
567
|
});
|
|
568
|
+
console.log('updatedData>>>>>>', updatedData, updatedData === null || updatedData === void 0 || (_updatedData$_extend = updatedData._extend) === null || _updatedData$_extend === void 0 ? void 0 : _updatedData$_extend.origin_total);
|
|
569
|
+
|
|
576
570
|
/**
|
|
577
571
|
* @description 库存校验(受全局配置控制)
|
|
578
572
|
* - stock_validation === 1:启用库存校验
|
|
@@ -582,7 +576,7 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
582
576
|
allowAddToCartWhenOutStock = Number((_bookingState$booking4 = bookingState === null || bookingState === void 0 || (_bookingState$booking5 = bookingState.bookingConfig) === null || _bookingState$booking5 === void 0 || (_bookingState$booking5 = _bookingState$booking5.config) === null || _bookingState$booking5 === void 0 || (_bookingState$booking5 = _bookingState$booking5.stock_setting) === null || _bookingState$booking5 === void 0 ? void 0 : _bookingState$booking5.allow_add_to_cart_when_out_stock) !== null && _bookingState$booking4 !== void 0 ? _bookingState$booking4 : 0);
|
|
583
577
|
enableDontShowAgainToday = Number((_bookingState$booking6 = bookingState === null || bookingState === void 0 || (_bookingState$booking7 = bookingState.bookingConfig) === null || _bookingState$booking7 === void 0 || (_bookingState$booking7 = _bookingState$booking7.config) === null || _bookingState$booking7 === void 0 || (_bookingState$booking7 = _bookingState$booking7.stock_setting) === null || _bookingState$booking7 === void 0 ? void 0 : _bookingState$booking7.do_not_show_again_today) !== null && _bookingState$booking6 !== void 0 ? _bookingState$booking6 : 0);
|
|
584
578
|
if (!(stockValidation === 1)) {
|
|
585
|
-
_context3.next =
|
|
579
|
+
_context3.next = 40;
|
|
586
580
|
break;
|
|
587
581
|
}
|
|
588
582
|
hasStock = handleCheckStock({
|
|
@@ -590,33 +584,33 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
590
584
|
data: productData
|
|
591
585
|
});
|
|
592
586
|
if (hasStock) {
|
|
593
|
-
_context3.next =
|
|
587
|
+
_context3.next = 40;
|
|
594
588
|
break;
|
|
595
589
|
}
|
|
596
590
|
if (!(allowAddToCartWhenOutStock !== 1)) {
|
|
597
|
-
_context3.next =
|
|
591
|
+
_context3.next = 33;
|
|
598
592
|
break;
|
|
599
593
|
}
|
|
600
594
|
Toast === null || Toast === void 0 || Toast.fail(locales.getText('pisell2.skuOptionsSelection.variantItemCard.soldOut'));
|
|
601
595
|
return _context3.abrupt("return");
|
|
602
|
-
case
|
|
596
|
+
case 33:
|
|
603
597
|
// 缺货允许加入购物车:命中「今天不再提示」则直接提交
|
|
604
598
|
productId = Number((productData === null || productData === void 0 ? void 0 : productData.product_id) || 0);
|
|
605
599
|
shouldSkipAlert = enableDontShowAgainToday === 1 && hasHiddenStockAlertForToday({
|
|
606
600
|
productId: productId
|
|
607
601
|
});
|
|
608
602
|
if (shouldSkipAlert) {
|
|
609
|
-
_context3.next =
|
|
603
|
+
_context3.next = 40;
|
|
610
604
|
break;
|
|
611
605
|
}
|
|
612
606
|
pendingConfirmDataRef.current = updatedData;
|
|
613
607
|
setStockAlertDontShowAgainChecked(false);
|
|
614
608
|
setStockAlertOpen(true);
|
|
615
609
|
return _context3.abrupt("return");
|
|
616
|
-
case
|
|
610
|
+
case 40:
|
|
617
611
|
onConfirm(updatedData);
|
|
618
612
|
modalCloseAction();
|
|
619
|
-
case
|
|
613
|
+
case 42:
|
|
620
614
|
case "end":
|
|
621
615
|
return _context3.stop();
|
|
622
616
|
}
|
|
@@ -760,8 +754,6 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
760
754
|
}, currentStep === 0 && /*#__PURE__*/React.createElement("div", {
|
|
761
755
|
className: "sku-detail-right-content-detail"
|
|
762
756
|
}, /*#__PURE__*/React.createElement("div", {
|
|
763
|
-
className: "sku-detail-right-content-detail-title"
|
|
764
|
-
}, (productData === null || productData === void 0 ? void 0 : productData.title) || ''), /*#__PURE__*/React.createElement("div", {
|
|
765
757
|
className: "sku-detail-right-content-detail-description"
|
|
766
758
|
}, productData !== null && productData !== void 0 && productData.subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
767
759
|
className: "sku-detail-right-content-detail-subtitle"
|
|
@@ -770,7 +762,14 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
770
762
|
dangerouslySetInnerHTML: {
|
|
771
763
|
__html: productData.description
|
|
772
764
|
}
|
|
773
|
-
}) : null
|
|
765
|
+
}) : null, (productData === null || productData === void 0 ? void 0 : productData.description) === '' && !hasSkuOptions && /*#__PURE__*/React.createElement("div", {
|
|
766
|
+
className: "sku-detail-right-content-detail-placeholder"
|
|
767
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
768
|
+
width: 300,
|
|
769
|
+
height: 300,
|
|
770
|
+
src: "https://static.pisellcdn.com/sku_empty.png",
|
|
771
|
+
alt: "placeholder"
|
|
772
|
+
}), /*#__PURE__*/React.createElement("p", null, "No additional options for this item")))), currentStep === 1 && hasSkuOptions && /*#__PURE__*/React.createElement(SKUOptionsSelection, {
|
|
774
773
|
ref: skuOptionsSelectionRef,
|
|
775
774
|
dataSource: productData,
|
|
776
775
|
value: skuDefaultValue,
|
|
@@ -782,6 +781,9 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
782
781
|
lineClamp: 1
|
|
783
782
|
}
|
|
784
783
|
},
|
|
784
|
+
customConfig: {
|
|
785
|
+
modalWidth: '680px'
|
|
786
|
+
},
|
|
785
787
|
onChange: function onChange(v) {
|
|
786
788
|
console.log('SKUOptionsSelectionOnChange', v);
|
|
787
789
|
setSkuValue(v);
|
|
@@ -832,13 +834,14 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
832
834
|
onCancel: handleCancel,
|
|
833
835
|
closable: false,
|
|
834
836
|
destroyOnClose: true,
|
|
835
|
-
width:
|
|
837
|
+
width: "80%",
|
|
836
838
|
className: "pisell-sku-detail-modal"
|
|
837
839
|
}, /*#__PURE__*/React.createElement(PisellProcedure, {
|
|
838
840
|
ref: procedureRef,
|
|
839
841
|
className: "pisell-sku-procedure",
|
|
840
842
|
mode: "modal",
|
|
841
843
|
defaultCurrent: currentStep,
|
|
844
|
+
layoutMode: "ratio",
|
|
842
845
|
onStepsChange: function onStepsChange(result) {
|
|
843
846
|
// 动态 steps 情况下,保护 currentStep 不越界
|
|
844
847
|
var nextStep = Math.min(Number(result.currentStep || 0), maxStepIndex);
|
|
@@ -875,15 +878,12 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
875
878
|
className: "quantity-section"
|
|
876
879
|
}, /*#__PURE__*/React.createElement("div", {
|
|
877
880
|
className: "quantity-section-title"
|
|
878
|
-
}, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(
|
|
881
|
+
}, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(NumericStepper, {
|
|
882
|
+
variant: "capsule",
|
|
879
883
|
value: quantity,
|
|
880
|
-
width: "120px",
|
|
881
884
|
onChange: handleQuantityChange,
|
|
882
885
|
min: 1,
|
|
883
|
-
max: 99999
|
|
884
|
-
step: 1,
|
|
885
|
-
size: "middle",
|
|
886
|
-
enablePriceAdjust: true
|
|
886
|
+
max: 99999
|
|
887
887
|
})),
|
|
888
888
|
actions: /*#__PURE__*/React.createElement("div", {
|
|
889
889
|
className: "sku-detail-content-footer"
|
|
@@ -940,11 +940,11 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
|
|
|
940
940
|
// 允许一口价超出原价
|
|
941
941
|
,
|
|
942
942
|
enableExceedMaxAmount: true,
|
|
943
|
-
originalValue:
|
|
943
|
+
originalValue: subtotal.toNumber() || 0,
|
|
944
944
|
defaultValue: displayUnitPrice || 0,
|
|
945
945
|
onEnter: function onEnter(discountAmount) {
|
|
946
946
|
// 将折扣值转化为最终“单价”
|
|
947
|
-
var nextUnitPrice =
|
|
947
|
+
var nextUnitPrice = subtotal.minus(discountAmount).toNumber();
|
|
948
948
|
handlePriceAdjustConfirm(nextUnitPrice);
|
|
949
949
|
},
|
|
950
950
|
selectType: "dark"
|
|
@@ -1065,15 +1065,16 @@ function getSelectedUnitPrice(params) {
|
|
|
1065
1065
|
return Number(item === null || item === void 0 ? void 0 : item.id) === Number(skuValue.product_variant_id);
|
|
1066
1066
|
});
|
|
1067
1067
|
if (variantItem) {
|
|
1068
|
-
var _ref8, _variantItem$
|
|
1069
|
-
price = new Decimal((_ref8 = (_variantItem$
|
|
1068
|
+
var _ref8, _variantItem$base_pri;
|
|
1069
|
+
price = new Decimal((_ref8 = (_variantItem$base_pri = variantItem === null || variantItem === void 0 ? void 0 : variantItem.base_price) !== null && _variantItem$base_pri !== void 0 ? _variantItem$base_pri : variantItem === null || variantItem === void 0 ? void 0 : variantItem.original_price) !== null && _ref8 !== void 0 ? _ref8 : 0);
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
// bundle(套餐)
|
|
1074
1074
|
if (Array.isArray(skuValue === null || skuValue === void 0 ? void 0 : skuValue.bundle) && skuValue.bundle.length > 0) {
|
|
1075
1075
|
price = skuValue.bundle.reduce(function (accumulator, currentValue) {
|
|
1076
|
-
var
|
|
1076
|
+
var _ref9, _currentValue$origina;
|
|
1077
|
+
var currentPrice = new Decimal((_ref9 = (_currentValue$origina = currentValue === null || currentValue === void 0 ? void 0 : currentValue.original_price) !== null && _currentValue$origina !== void 0 ? _currentValue$origina : currentValue === null || currentValue === void 0 ? void 0 : currentValue.price) !== null && _ref9 !== void 0 ? _ref9 : 0);
|
|
1077
1078
|
var currentNum = new Decimal((currentValue === null || currentValue === void 0 ? void 0 : currentValue.num) || 0);
|
|
1078
1079
|
return accumulator.add(currentPrice.mul(currentNum));
|
|
1079
1080
|
}, price);
|
|
@@ -1082,7 +1083,8 @@ function getSelectedUnitPrice(params) {
|
|
|
1082
1083
|
// option(单规格)
|
|
1083
1084
|
if (Array.isArray(skuValue === null || skuValue === void 0 ? void 0 : skuValue.option) && skuValue.option.length > 0) {
|
|
1084
1085
|
price = skuValue.option.reduce(function (accumulator, currentValue) {
|
|
1085
|
-
var
|
|
1086
|
+
var _ref10, _currentValue$origina2;
|
|
1087
|
+
var currentPrice = new Decimal((_ref10 = (_currentValue$origina2 = currentValue === null || currentValue === void 0 ? void 0 : currentValue.original_price) !== null && _currentValue$origina2 !== void 0 ? _currentValue$origina2 : currentValue === null || currentValue === void 0 ? void 0 : currentValue.price) !== null && _ref10 !== void 0 ? _ref10 : 0);
|
|
1086
1088
|
var currentNum = new Decimal((currentValue === null || currentValue === void 0 ? void 0 : currentValue.num) || 0);
|
|
1087
1089
|
return accumulator.add(currentPrice.mul(currentNum));
|
|
1088
1090
|
}, price);
|
|
@@ -1097,19 +1099,19 @@ function getSelectedUnitPrice(params) {
|
|
|
1097
1099
|
function getOtherFromSkuValue(params) {
|
|
1098
1100
|
var productData = params.productData,
|
|
1099
1101
|
skuValue = params.skuValue;
|
|
1100
|
-
var other = {
|
|
1102
|
+
var other = _objectSpread(_objectSpread({}, skuValue || {}), {}, {
|
|
1101
1103
|
product_variant_id: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.product_variant_id) || 0,
|
|
1102
1104
|
bundle: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.bundle) || [],
|
|
1103
1105
|
option: (skuValue === null || skuValue === void 0 ? void 0 : skuValue.option) || []
|
|
1104
|
-
};
|
|
1106
|
+
});
|
|
1105
1107
|
if (other.product_variant_id && productData) {
|
|
1106
1108
|
var _variant3;
|
|
1107
1109
|
var variantItem = productData === null || productData === void 0 || (_variant3 = productData.variant) === null || _variant3 === void 0 ? void 0 : _variant3.find(function (item) {
|
|
1108
1110
|
return Number(item === null || item === void 0 ? void 0 : item.id) === Number(other.product_variant_id);
|
|
1109
1111
|
});
|
|
1110
1112
|
if (variantItem) {
|
|
1111
|
-
var
|
|
1112
|
-
other.price = Number((
|
|
1113
|
+
var _ref11, _variantItem$price;
|
|
1114
|
+
other.price = Number((_ref11 = (_variantItem$price = variantItem === null || variantItem === void 0 ? void 0 : variantItem.price) !== null && _variantItem$price !== void 0 ? _variantItem$price : variantItem === null || variantItem === void 0 ? void 0 : variantItem.base_price) !== null && _ref11 !== void 0 ? _ref11 : 0);
|
|
1113
1115
|
}
|
|
1114
1116
|
}
|
|
1115
1117
|
return other;
|
|
@@ -1122,12 +1124,12 @@ function getOtherFromSkuValue(params) {
|
|
|
1122
1124
|
* - 否则返回 null(表示未设置手动改价)
|
|
1123
1125
|
*/
|
|
1124
1126
|
function getInitialPriceOverrideFromProductData(params) {
|
|
1125
|
-
var _extend, _extend2,
|
|
1127
|
+
var _extend, _extend2, _ref12, _extend$price, _extend3;
|
|
1126
1128
|
var data = params.productData;
|
|
1127
1129
|
if (!data) return null;
|
|
1128
1130
|
var total = Number(data === null || data === void 0 || (_extend = data._extend) === null || _extend === void 0 ? void 0 : _extend.total);
|
|
1129
1131
|
var originTotal = Number(data === null || data === void 0 || (_extend2 = data._extend) === null || _extend2 === void 0 ? void 0 : _extend2.origin_total);
|
|
1130
|
-
var basePrice = Number((
|
|
1132
|
+
var basePrice = Number((_ref12 = (_extend$price = data === null || data === void 0 || (_extend3 = data._extend) === null || _extend3 === void 0 ? void 0 : _extend3.price) !== null && _extend$price !== void 0 ? _extend$price : data === null || data === void 0 ? void 0 : data.price) !== null && _ref12 !== void 0 ? _ref12 : 0);
|
|
1131
1133
|
if (!Number.isFinite(total)) return null;
|
|
1132
1134
|
if (Number.isFinite(originTotal) && total !== originTotal) return total;
|
|
1133
1135
|
if (Number.isFinite(basePrice) && total !== basePrice) return total;
|
|
@@ -3,16 +3,43 @@
|
|
|
3
3
|
* 固定弹窗高度,确保内部滚动容器有“可计算的最大高度”
|
|
4
4
|
* 否则内容会把 modal 撑开,overflow-y: auto 无法生效(看起来就“滚不动”)
|
|
5
5
|
*/
|
|
6
|
-
height:
|
|
6
|
+
height: 884px;
|
|
7
|
+
width: 80%!important;
|
|
7
8
|
|
|
8
9
|
// PisellModal(PC)内容容器:固定高度,内部 body 使用 flex 占满剩余空间
|
|
9
10
|
.pisell-lowcode-modal-content {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
width: 100% !important;
|
|
12
|
+
height: 884px;
|
|
13
|
+
max-height: 884px!important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @description 矮屏设备适配(例如 1366×763)
|
|
18
|
+
* - 当屏幕高度本身低于 884px 时,整体弹窗高度下调,避免弹窗显示不全
|
|
19
|
+
* - 同步调整右侧滚动容器最大高度,确保滚动区域可用
|
|
20
|
+
*/
|
|
21
|
+
@media screen and (max-height: 883px) {
|
|
22
|
+
height: 720px;
|
|
23
|
+
|
|
24
|
+
.pisell-lowcode-modal-content {
|
|
25
|
+
height: 720px;
|
|
26
|
+
max-height: 720px !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sku-detail-right-content {
|
|
30
|
+
/**
|
|
31
|
+
* @description
|
|
32
|
+
* 同文件下方存在 `.sku-detail-right-content { max-height: 730px; }`
|
|
33
|
+
* 且位置更靠后(同等优先级会覆盖本规则)。
|
|
34
|
+
* 这里加 `!important` 确保矮屏媒体查询命中时右侧滚动容器高度能够正确收缩。
|
|
35
|
+
*/
|
|
36
|
+
max-height: 566px !important;
|
|
37
|
+
}
|
|
12
38
|
}
|
|
13
39
|
|
|
14
40
|
// SkuDetailModal 内部使用自定义滚动容器(右侧内容区),避免整块 modal body 滚动
|
|
15
41
|
.pisell-lowcode-modal-body {
|
|
42
|
+
width: 100% !important;
|
|
16
43
|
overflow: hidden !important;
|
|
17
44
|
min-height: 0;
|
|
18
45
|
}
|
|
@@ -37,7 +64,7 @@
|
|
|
37
64
|
flex: 1;
|
|
38
65
|
min-height: 0;
|
|
39
66
|
overflow-y: auto;
|
|
40
|
-
max-height:
|
|
67
|
+
max-height: 730px;
|
|
41
68
|
/**
|
|
42
69
|
* @description
|
|
43
70
|
* 让滚动条不要贴着内容(尤其是 macOS overlay scrollbar 会覆盖内容)
|
|
@@ -427,3 +454,18 @@
|
|
|
427
454
|
position: relative;
|
|
428
455
|
z-index: 10000; // 确保键盘在遮罩之上
|
|
429
456
|
}
|
|
457
|
+
|
|
458
|
+
.sku-detail-right-content-detail-placeholder {
|
|
459
|
+
display: flex;
|
|
460
|
+
flex-direction: column;
|
|
461
|
+
align-items: center;
|
|
462
|
+
justify-content: center;
|
|
463
|
+
gap: 8px;
|
|
464
|
+
color: #667085;
|
|
465
|
+
|
|
466
|
+
p {
|
|
467
|
+
margin: 0;
|
|
468
|
+
text-align: center;
|
|
469
|
+
font-size: 16px;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
@@ -247,6 +247,13 @@ export interface ExtendData {
|
|
|
247
247
|
};
|
|
248
248
|
}>>;
|
|
249
249
|
note?: string;
|
|
250
|
+
_skuValue?: {
|
|
251
|
+
bundle: any[];
|
|
252
|
+
option: any[];
|
|
253
|
+
product_id: number;
|
|
254
|
+
product_variant_id: number;
|
|
255
|
+
};
|
|
256
|
+
priceOverride?: number;
|
|
250
257
|
}
|
|
251
258
|
export interface TimeObj {
|
|
252
259
|
timeSlices: TimeSlice[];
|
|
@@ -225,7 +225,7 @@ var CartProvider = ({ children }) => {
|
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
227
|
const createCartItemData = () => {
|
|
228
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
228
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
229
229
|
const _cartData = getCurrentData().cartData;
|
|
230
230
|
if (_cartData.currentCartItem) {
|
|
231
231
|
const {
|
|
@@ -241,16 +241,24 @@ var CartProvider = ({ children }) => {
|
|
|
241
241
|
const endDateInfo = (_g = (_f = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _f.selectDate) == null ? void 0 : _g.endDateInfo;
|
|
242
242
|
const endTime = (_j = (_i = (_h = endDateInfo == null ? void 0 : endDateInfo.times) == null ? void 0 : _h.slice(-1)) == null ? void 0 : _i[0]) == null ? void 0 : _j.end_at;
|
|
243
243
|
const num = 1;
|
|
244
|
-
const { totalPrice, originTotal, is_charge_tax } = (0, import_utils3.handleProductInfo)(
|
|
244
|
+
const { price, totalPrice, originTotal, is_charge_tax } = (0, import_utils3.handleProductInfo)(
|
|
245
245
|
eventDetail,
|
|
246
246
|
num
|
|
247
247
|
);
|
|
248
|
+
const transformProduct = (_temp) => {
|
|
249
|
+
var _a2;
|
|
250
|
+
if (!((_a2 = _temp == null ? void 0 : _temp.variant) == null ? void 0 : _a2.length)) {
|
|
251
|
+
return { ..._temp || {}, variant: [] };
|
|
252
|
+
}
|
|
253
|
+
return _temp;
|
|
254
|
+
};
|
|
248
255
|
const newCartItem = {
|
|
249
256
|
_id,
|
|
250
257
|
id: eventItem.id,
|
|
251
258
|
name: eventItem.title,
|
|
252
|
-
price
|
|
259
|
+
price,
|
|
253
260
|
// eventBooking中售价和总价保持一致,因为数量为1
|
|
261
|
+
origin_price: price,
|
|
254
262
|
total: totalPrice,
|
|
255
263
|
// 排除原始价格为0的场景
|
|
256
264
|
origin_total: isNaN(originTotal) || originTotal === 0 ? void 0 : originTotal,
|
|
@@ -271,6 +279,10 @@ var CartProvider = ({ children }) => {
|
|
|
271
279
|
end_time: endTime ? (0, import_dayjs.default)(endTime || "").format("HH:mm") : "",
|
|
272
280
|
custom_day_count: ((_m = (_l = (_k = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _k.selectDate) == null ? void 0 : _l.dates) == null ? void 0 : _m.length) || 0,
|
|
273
281
|
is_charge_tax,
|
|
282
|
+
selectedBundle: (_n = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _n.bundle,
|
|
283
|
+
selectedOptions: (_o = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _o.options,
|
|
284
|
+
isNormalProduct: true,
|
|
285
|
+
// 是否是普通商品,eventBooking中接入的都是普通商品
|
|
274
286
|
_originData: {
|
|
275
287
|
..._cartData.currentCartItem._originData,
|
|
276
288
|
product: {
|
|
@@ -293,16 +305,22 @@ var CartProvider = ({ children }) => {
|
|
|
293
305
|
event_unique_identifier: _id
|
|
294
306
|
// 传递给接口用于商品可用性检测的比对
|
|
295
307
|
},
|
|
296
|
-
_productDetail: eventDetail.productDetail
|
|
308
|
+
_productDetail: eventDetail.productDetail,
|
|
309
|
+
_productOrigin: transformProduct(
|
|
310
|
+
((_p = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _p.origin) || bookingOptionData
|
|
311
|
+
),
|
|
312
|
+
_productInit: transformProduct(
|
|
313
|
+
((_q = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _q.origin) || bookingOptionData
|
|
314
|
+
)
|
|
297
315
|
};
|
|
298
316
|
newCartItem.deposit = (0, import_utils3.handleProductDeposit)(newCartItem, eventDetail, num);
|
|
299
317
|
const originData = (0, import_utils3.handleCartItemOrigin)(newCartItem, eventDetail);
|
|
300
318
|
newCartItem._originData = originData;
|
|
301
319
|
if (holderItem == null ? void 0 : holderItem._originData) {
|
|
302
320
|
newCartItem._originData.holder = {
|
|
303
|
-
customer_id: (
|
|
304
|
-
form_id: (
|
|
305
|
-
form_record: ((
|
|
321
|
+
customer_id: (_r = getUserInfo()) == null ? void 0 : _r.id,
|
|
322
|
+
form_id: (_s = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _s.form_id,
|
|
323
|
+
form_record: ((_t = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _t.form_record_id) ? [(_u = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _u.form_record_id] : null
|
|
306
324
|
};
|
|
307
325
|
}
|
|
308
326
|
return newCartItem;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import Decimal from 'decimal.js';
|
|
2
2
|
import { ICalculatePriceParams } from './types';
|
|
3
3
|
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
4
|
+
price: number;
|
|
4
5
|
totalPrice: number;
|
|
5
6
|
originTotal: any;
|
|
6
7
|
is_charge_tax: any;
|
|
7
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* 获取商品价格
|
|
11
|
+
*/
|
|
12
|
+
export declare const getPrice: (params: ICalculatePriceParams) => number;
|
|
8
13
|
/**
|
|
9
14
|
* 获取商品总价
|
|
10
15
|
* @description 当前总价计算基于商品数量为1
|
|
@@ -33,6 +33,7 @@ __export(utils_exports, {
|
|
|
33
33
|
formatBundleToOrigin: () => formatBundleToOrigin,
|
|
34
34
|
formatOptionsToOrigin: () => formatOptionsToOrigin,
|
|
35
35
|
getOriginTotalPrice: () => getOriginTotalPrice,
|
|
36
|
+
getPrice: () => getPrice,
|
|
36
37
|
getProductDeposit: () => getProductDeposit,
|
|
37
38
|
getTotalPrice: () => getTotalPrice,
|
|
38
39
|
handleCartItemOrigin: () => handleCartItemOrigin,
|
|
@@ -45,6 +46,7 @@ var handleProductInfo = (eventDetail, num) => {
|
|
|
45
46
|
var _a;
|
|
46
47
|
const { productDetail, bookingOptionItem } = eventDetail;
|
|
47
48
|
const normalProduct = bookingOptionItem == null ? void 0 : bookingOptionItem._originData;
|
|
49
|
+
let price = Number((normalProduct == null ? void 0 : normalProduct.price) || 0);
|
|
48
50
|
let totalPrice = Number((normalProduct == null ? void 0 : normalProduct.price) || "");
|
|
49
51
|
let originTotal = Number((normalProduct == null ? void 0 : normalProduct.original_price) || "");
|
|
50
52
|
let is_charge_tax = normalProduct == null ? void 0 : normalProduct.is_charge_tax;
|
|
@@ -58,10 +60,19 @@ var handleProductInfo = (eventDetail, num) => {
|
|
|
58
60
|
is_charge_tax = variant == null ? void 0 : variant.is_charge_tax;
|
|
59
61
|
}
|
|
60
62
|
const params = { product: origin, variant, bundle, options, num };
|
|
63
|
+
price = getPrice(params);
|
|
61
64
|
totalPrice = getTotalPrice(params);
|
|
62
65
|
originTotal = getOriginTotalPrice(params);
|
|
63
66
|
}
|
|
64
|
-
return { totalPrice, originTotal, is_charge_tax };
|
|
67
|
+
return { price, totalPrice, originTotal, is_charge_tax };
|
|
68
|
+
};
|
|
69
|
+
var getPrice = (params) => {
|
|
70
|
+
const { product, variant } = params;
|
|
71
|
+
let price = Number(product.price);
|
|
72
|
+
if (variant) {
|
|
73
|
+
price = Number(variant == null ? void 0 : variant.price);
|
|
74
|
+
}
|
|
75
|
+
return price;
|
|
65
76
|
};
|
|
66
77
|
var getTotalPrice = (params) => {
|
|
67
78
|
const { product, bundle, options, variant } = params;
|
|
@@ -270,6 +281,7 @@ var calculateProductDeposit = (params) => {
|
|
|
270
281
|
formatBundleToOrigin,
|
|
271
282
|
formatOptionsToOrigin,
|
|
272
283
|
getOriginTotalPrice,
|
|
284
|
+
getPrice,
|
|
273
285
|
getProductDeposit,
|
|
274
286
|
getTotalPrice,
|
|
275
287
|
handleCartItemOrigin,
|
|
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
|
30
30
|
* @return {*}
|
|
31
31
|
* @Author: xiangfeng.xue
|
|
32
32
|
*/
|
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
|
34
34
|
/**
|
|
35
35
|
* 计算所有价格明细
|
|
36
36
|
* @param items - 购物车商品数组
|
|
@@ -41,9 +41,7 @@ var calculateSubtotal = (items) => {
|
|
|
41
41
|
return "0.00";
|
|
42
42
|
}
|
|
43
43
|
const subtotal = items.reduce((sum, item) => {
|
|
44
|
-
|
|
45
|
-
const quantity = new import_decimal.default(item.quantity || 1);
|
|
46
|
-
return sum.plus(price.times(quantity));
|
|
44
|
+
return sum.plus(item.total || 0);
|
|
47
45
|
}, new import_decimal.default(0));
|
|
48
46
|
return subtotal.toFixed(2);
|
|
49
47
|
};
|
|
@@ -54,7 +52,7 @@ var calculateTaxFee = (shopInfo, items) => {
|
|
|
54
52
|
const { is_price_include_tax, tax_rate } = shopInfo || {};
|
|
55
53
|
console.log("shopInfo>>>", is_price_include_tax, tax_rate);
|
|
56
54
|
const totalTaxFee = items.reduce((sum, item) => {
|
|
57
|
-
const price = new import_decimal.default(item.
|
|
55
|
+
const price = new import_decimal.default(item.total || 0);
|
|
58
56
|
const taxRate = new import_decimal.default(tax_rate || 0).div(100);
|
|
59
57
|
const productTaxRate = price.times(taxRate).times((item == null ? void 0 : item.is_charge_tax) || 0).div(taxRate.times(is_price_include_tax || 0).plus(1));
|
|
60
58
|
return sum.plus(productTaxRate);
|
|
@@ -114,20 +114,15 @@ var Header = () => {
|
|
|
114
114
|
isSkip: false
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
const isServiceStep = (prevStepData == null ? void 0 : prevStepData.key) === "select-service";
|
|
118
|
+
const isResourceStep = (prevStepData == null ? void 0 : prevStepData.key) === "select-resource";
|
|
119
|
+
if (isServiceStep || isResourceStep) {
|
|
118
120
|
stepList.forEach((item) => {
|
|
119
121
|
if (item.key.startsWith("select-resource_") || item.key.startsWith("fill-form_")) {
|
|
120
122
|
removeStep(item.key);
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
}
|
|
124
|
-
if ((prevStepData == null ? void 0 : prevStepData.key) === "select-resource") {
|
|
125
|
-
stepList.forEach((item) => {
|
|
126
|
-
if (item.key.startsWith("fill-form_")) {
|
|
127
|
-
removeStep(item.key);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
126
|
};
|
|
132
127
|
const handleClose = () => {
|
|
133
128
|
var _a2, _b;
|
|
@@ -84,7 +84,11 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
84
84
|
type: "pisell1.productDetail",
|
|
85
85
|
data: {
|
|
86
86
|
detail: { ...item, open_deposit: 1 },
|
|
87
|
-
setting: {
|
|
87
|
+
setting: {
|
|
88
|
+
can_input: true,
|
|
89
|
+
item_max_length: isShowProductDetailStepper,
|
|
90
|
+
is_detail_open: clickType === "cover"
|
|
91
|
+
}
|
|
88
92
|
},
|
|
89
93
|
callback: async (data) => {
|
|
90
94
|
var _a, _b;
|