@pisell/private-materials 6.9.2 → 6.9.4
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/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.js +5 -4
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +3 -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/deposit/components/PolicyModal/index.d.ts +1 -0
- 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/addons/model.d.ts +10 -1
- 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 +142 -82
- 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/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.js +32 -10
- package/es/components/booking/info/client/index.js +16 -6
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- 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/utils.d.ts +1 -1
- 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/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- 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 +10 -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 +14 -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 +15 -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 +14 -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 +17 -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 +9 -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 +13 -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 +3 -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/eftpos/surcharge/index.d.ts +0 -1
- 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/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- 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.js +5 -1
- 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.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +12 -5
- package/es/components/eftposPay/tyro/index.js +97 -4
- package/es/components/eventBooking/components/ErrorTip/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/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/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/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -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/components/scheduleCalendar/components/ScheduleTimeItem/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/Content/Header.d.ts +0 -1
- 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/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- 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/components/WalletUseList/index.d.ts +1 -0
- 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 +10 -1
- 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/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/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/productSelect/components/productGroup/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- 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/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.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/taxSelect/index.d.ts +0 -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 +1 -0
- package/es/components/ticketBooking/index.js +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +7 -2
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/index.d.ts +7 -4
- package/es/index.js +7 -4
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- 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 +5 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +7 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +6 -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/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- 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/saasCreateOrganization/index.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/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/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -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/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/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.js +2 -4
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- 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 +3 -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/deposit/components/PolicyModal/index.d.ts +1 -0
- 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/addons/model.d.ts +10 -1
- 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 +58 -21
- 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/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.js +65 -21
- package/lib/components/booking/info/client/index.js +16 -8
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- 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/utils.d.ts +1 -1
- 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/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- 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 +10 -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 +14 -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 +15 -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 +14 -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 +17 -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 +9 -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 +13 -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 +3 -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/eftpos/surcharge/index.d.ts +0 -1
- 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/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- 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.js +5 -1
- 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.js +3 -2
- package/lib/components/eftposPay/store/index.d.ts +12 -5
- package/lib/components/eftposPay/tyro/index.js +64 -7
- package/lib/components/eventBooking/components/ErrorTip/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/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/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/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -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/components/scheduleCalendar/components/ScheduleTimeItem/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/Content/Header.d.ts +0 -1
- 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/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- 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/components/WalletUseList/index.d.ts +1 -0
- 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 +10 -1
- 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/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/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/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- 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/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.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/taxSelect/index.d.ts +0 -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 +1 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +5 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/index.d.ts +7 -4
- package/lib/index.js +15 -6
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- 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 +5 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +7 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +6 -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/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- 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/saasCreateOrganization/index.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/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/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -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/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
|
@@ -260,7 +260,7 @@ export var CartProvider = function CartProvider(_ref) {
|
|
|
260
260
|
var createCartItemData = function createCartItemData() {
|
|
261
261
|
var _cartData = getCurrentData().cartData;
|
|
262
262
|
if (_cartData.currentCartItem) {
|
|
263
|
-
var _eventDetail$bookingO, _eventItem$eventDetai, _startDateInfo$times, _eventItem$eventDetai2, _endDateInfo$times, _eventItem$eventDetai3;
|
|
263
|
+
var _eventDetail$bookingO, _eventItem$eventDetai, _startDateInfo$times, _eventItem$eventDetai2, _endDateInfo$times, _eventItem$eventDetai3, _eventDetail$productD, _eventDetail$productD2, _eventDetail$productD3, _eventDetail$productD4;
|
|
264
264
|
var _ref2 = _cartData.currentCartItem || {},
|
|
265
265
|
_id = _ref2._id,
|
|
266
266
|
_ref2$eventItem = _ref2.eventItem,
|
|
@@ -278,15 +278,26 @@ export var CartProvider = function CartProvider(_ref) {
|
|
|
278
278
|
var endTime = endDateInfo === null || endDateInfo === void 0 || (_endDateInfo$times = endDateInfo.times) === null || _endDateInfo$times === void 0 || (_endDateInfo$times = _endDateInfo$times.slice(-1)) === null || _endDateInfo$times === void 0 || (_endDateInfo$times = _endDateInfo$times[0]) === null || _endDateInfo$times === void 0 ? void 0 : _endDateInfo$times.end_at;
|
|
279
279
|
var num = 1;
|
|
280
280
|
var _handleProductInfo = handleProductInfo(eventDetail, num),
|
|
281
|
+
price = _handleProductInfo.price,
|
|
281
282
|
totalPrice = _handleProductInfo.totalPrice,
|
|
282
283
|
originTotal = _handleProductInfo.originTotal,
|
|
283
284
|
is_charge_tax = _handleProductInfo.is_charge_tax;
|
|
285
|
+
var transformProduct = function transformProduct(_temp) {
|
|
286
|
+
var _temp$variant;
|
|
287
|
+
if (!(_temp !== null && _temp !== void 0 && (_temp$variant = _temp.variant) !== null && _temp$variant !== void 0 && _temp$variant.length)) {
|
|
288
|
+
return _objectSpread(_objectSpread({}, _temp || {}), {}, {
|
|
289
|
+
variant: []
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
return _temp;
|
|
293
|
+
};
|
|
284
294
|
var newCartItem = {
|
|
285
295
|
_id: _id,
|
|
286
296
|
id: _eventItem.id,
|
|
287
297
|
name: _eventItem.title,
|
|
288
|
-
price:
|
|
298
|
+
price: price,
|
|
289
299
|
// eventBooking中售价和总价保持一致,因为数量为1
|
|
300
|
+
origin_price: price,
|
|
290
301
|
total: totalPrice,
|
|
291
302
|
// 排除原始价格为0的场景
|
|
292
303
|
origin_total: isNaN(originTotal) || originTotal === 0 ? undefined : originTotal,
|
|
@@ -307,6 +318,10 @@ export var CartProvider = function CartProvider(_ref) {
|
|
|
307
318
|
end_time: endTime ? dayjs(endTime || '').format('HH:mm') : '',
|
|
308
319
|
custom_day_count: (_eventItem === null || _eventItem === void 0 || (_eventItem$eventDetai3 = _eventItem.eventDetail) === null || _eventItem$eventDetai3 === void 0 || (_eventItem$eventDetai3 = _eventItem$eventDetai3.selectDate) === null || _eventItem$eventDetai3 === void 0 || (_eventItem$eventDetai3 = _eventItem$eventDetai3.dates) === null || _eventItem$eventDetai3 === void 0 ? void 0 : _eventItem$eventDetai3.length) || 0,
|
|
309
320
|
is_charge_tax: is_charge_tax,
|
|
321
|
+
selectedBundle: eventDetail === null || eventDetail === void 0 || (_eventDetail$productD = eventDetail.productDetail) === null || _eventDetail$productD === void 0 ? void 0 : _eventDetail$productD.bundle,
|
|
322
|
+
selectedOptions: eventDetail === null || eventDetail === void 0 || (_eventDetail$productD2 = eventDetail.productDetail) === null || _eventDetail$productD2 === void 0 ? void 0 : _eventDetail$productD2.options,
|
|
323
|
+
isNormalProduct: true,
|
|
324
|
+
// 是否是普通商品,eventBooking中接入的都是普通商品
|
|
310
325
|
_originData: _objectSpread(_objectSpread({}, _cartData.currentCartItem._originData), {}, {
|
|
311
326
|
product: {
|
|
312
327
|
num: 1,
|
|
@@ -327,7 +342,9 @@ export var CartProvider = function CartProvider(_ref) {
|
|
|
327
342
|
},
|
|
328
343
|
event_unique_identifier: _id // 传递给接口用于商品可用性检测的比对
|
|
329
344
|
}),
|
|
330
|
-
_productDetail: eventDetail.productDetail
|
|
345
|
+
_productDetail: eventDetail.productDetail,
|
|
346
|
+
_productOrigin: transformProduct((eventDetail === null || eventDetail === void 0 || (_eventDetail$productD3 = eventDetail.productDetail) === null || _eventDetail$productD3 === void 0 ? void 0 : _eventDetail$productD3.origin) || bookingOptionData),
|
|
347
|
+
_productInit: transformProduct((eventDetail === null || eventDetail === void 0 || (_eventDetail$productD4 = eventDetail.productDetail) === null || _eventDetail$productD4 === void 0 ? void 0 : _eventDetail$productD4.origin) || bookingOptionData)
|
|
331
348
|
};
|
|
332
349
|
|
|
333
350
|
// 处理定金
|
|
@@ -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
|
|
@@ -9,6 +9,7 @@ export var handleProductInfo = function handleProductInfo(eventDetail, num) {
|
|
|
9
9
|
var productDetail = eventDetail.productDetail,
|
|
10
10
|
bookingOptionItem = eventDetail.bookingOptionItem;
|
|
11
11
|
var normalProduct = bookingOptionItem === null || bookingOptionItem === void 0 ? void 0 : bookingOptionItem._originData;
|
|
12
|
+
var price = Number((normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.price) || 0);
|
|
12
13
|
var totalPrice = Number((normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.price) || '');
|
|
13
14
|
var originTotal = Number((normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.original_price) || '');
|
|
14
15
|
var is_charge_tax = normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.is_charge_tax;
|
|
@@ -34,16 +35,31 @@ export var handleProductInfo = function handleProductInfo(eventDetail, num) {
|
|
|
34
35
|
options: options,
|
|
35
36
|
num: num
|
|
36
37
|
};
|
|
38
|
+
price = getPrice(params);
|
|
37
39
|
totalPrice = getTotalPrice(params);
|
|
38
40
|
originTotal = getOriginTotalPrice(params);
|
|
39
41
|
}
|
|
40
42
|
return {
|
|
43
|
+
price: price,
|
|
41
44
|
totalPrice: totalPrice,
|
|
42
45
|
originTotal: originTotal,
|
|
43
46
|
is_charge_tax: is_charge_tax
|
|
44
47
|
};
|
|
45
48
|
};
|
|
46
49
|
|
|
50
|
+
/**
|
|
51
|
+
* 获取商品价格
|
|
52
|
+
*/
|
|
53
|
+
export var getPrice = function getPrice(params) {
|
|
54
|
+
var product = params.product,
|
|
55
|
+
variant = params.variant;
|
|
56
|
+
var price = Number(product.price);
|
|
57
|
+
if (variant) {
|
|
58
|
+
price = Number(variant === null || variant === void 0 ? void 0 : variant.price);
|
|
59
|
+
}
|
|
60
|
+
return price;
|
|
61
|
+
};
|
|
62
|
+
|
|
47
63
|
/**
|
|
48
64
|
* 获取商品总价
|
|
49
65
|
* @description 当前总价计算基于商品数量为1
|
|
@@ -9,9 +9,10 @@ export var calculateSubtotal = function calculateSubtotal(items) {
|
|
|
9
9
|
return '0.00';
|
|
10
10
|
}
|
|
11
11
|
var subtotal = items.reduce(function (sum, item) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return sum.plus(price.times(quantity));
|
|
12
|
+
// const price = new Decimal(item.price || 0);
|
|
13
|
+
// const quantity = new Decimal(item.quantity || 1);
|
|
14
|
+
// return sum.plus(price.times(quantity));
|
|
15
|
+
return sum.plus(item.total || 0);
|
|
15
16
|
}, new Decimal(0));
|
|
16
17
|
return subtotal.toFixed(2);
|
|
17
18
|
};
|
|
@@ -33,7 +34,7 @@ export var calculateTaxFee = function calculateTaxFee(shopInfo, items) {
|
|
|
33
34
|
tax_rate = _ref.tax_rate;
|
|
34
35
|
console.log('shopInfo>>>', is_price_include_tax, tax_rate);
|
|
35
36
|
var totalTaxFee = items.reduce(function (sum, item) {
|
|
36
|
-
var price = new Decimal(item.
|
|
37
|
+
var price = new Decimal(item.total || 0);
|
|
37
38
|
var taxRate = new Decimal(tax_rate || 0).div(100);
|
|
38
39
|
var productTaxRate = price.times(taxRate).times((item === null || item === void 0 ? void 0 : item.is_charge_tax) || 0).div(taxRate.times(is_price_include_tax || 0).plus(1));
|
|
39
40
|
return sum.plus(productTaxRate);
|
|
@@ -71,7 +71,7 @@ var Header = function Header() {
|
|
|
71
71
|
var handleBack = /*#__PURE__*/function () {
|
|
72
72
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
73
73
|
var _currentStep$step4;
|
|
74
|
-
var key, types, form_key, booking_form, prevStepData, currentStepData, _key;
|
|
74
|
+
var key, types, form_key, booking_form, prevStepData, currentStepData, _key, isServiceStep, isResourceStep;
|
|
75
75
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
76
76
|
while (1) switch (_context.prev = _context.next) {
|
|
77
77
|
case 0:
|
|
@@ -130,9 +130,9 @@ var Header = function Header() {
|
|
|
130
130
|
isSkip: false
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
// 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
|
|
135
|
-
if (
|
|
133
|
+
isServiceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-service';
|
|
134
|
+
isResourceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-resource'; // 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
|
|
135
|
+
if (isServiceStep || isResourceStep) {
|
|
136
136
|
stepList.forEach(function (item) {
|
|
137
137
|
if (item.key.startsWith('select-resource_') || item.key.startsWith('fill-form_')) {
|
|
138
138
|
removeStep(item.key);
|
|
@@ -141,13 +141,13 @@ var Header = function Header() {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// 如果前一步是选择资源,则清空表单步骤,不然表单步骤会累加
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
144
|
+
// if (prevStepData?.key === 'select-resource') {
|
|
145
|
+
// stepList.forEach((item: any) => {
|
|
146
|
+
// if (item.key.startsWith('fill-form_')) {
|
|
147
|
+
// removeStep(item.key);
|
|
148
|
+
// }
|
|
149
|
+
// });
|
|
150
|
+
// }
|
|
151
151
|
|
|
152
152
|
// 再次将步骤更新为false, 增加这个判断为了跳过那一步没有设置holder,但是直接后退了
|
|
153
153
|
// if (
|
|
@@ -160,7 +160,7 @@ var Header = function Header() {
|
|
|
160
160
|
// isSkip: false,
|
|
161
161
|
// });
|
|
162
162
|
// }
|
|
163
|
-
case
|
|
163
|
+
case 14:
|
|
164
164
|
case "end":
|
|
165
165
|
return _context.stop();
|
|
166
166
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import { useAppointmentBooking } from "../../../hooks";
|
|
9
|
+
import { useAppointmentBookingContext } from "../../../context";
|
|
10
|
+
import useComponents from "../../../../../hooks/useComponents";
|
|
11
|
+
import { processResourceList, getResourceTitle } from "../../../utils";
|
|
12
|
+
import { contextUtils } from "../../../hooks";
|
|
13
|
+
import { clearDataByStepKey } from "../../../utils";
|
|
14
|
+
var SelectDate = function SelectDate(props) {
|
|
15
|
+
var onDateChange = props.onDateChange,
|
|
16
|
+
times = props.times,
|
|
17
|
+
currentDate = props.currentDate;
|
|
18
|
+
var appointmentBooking = useAppointmentBooking();
|
|
19
|
+
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
20
|
+
currentSelectedResources = _useAppointmentBookin.currentSelectedResources,
|
|
21
|
+
setTimes = _useAppointmentBookin.setTimes;
|
|
22
|
+
var utils = contextUtils();
|
|
23
|
+
var _useComponents = useComponents({
|
|
24
|
+
components: ['SelectDateOS']
|
|
25
|
+
}),
|
|
26
|
+
_useComponents2 = _slicedToArray(_useComponents, 1),
|
|
27
|
+
SelectDateOS = _useComponents2[0];
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @description: 获取资源代码
|
|
31
|
+
* @param {*}
|
|
32
|
+
* @return {*}
|
|
33
|
+
*/
|
|
34
|
+
var resourceCode = useMemo(function () {
|
|
35
|
+
var _ref = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
|
|
36
|
+
resourceSort = _ref.resourceSort;
|
|
37
|
+
var resources = appointmentBooking.getResourcesList();
|
|
38
|
+
var _processResourceList = processResourceList(resources, resourceSort),
|
|
39
|
+
resourceCodes = _processResourceList.resourceCodes;
|
|
40
|
+
return (resourceCodes === null || resourceCodes === void 0 ? void 0 : resourceCodes[0]) || '';
|
|
41
|
+
}, []);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @description: 获取资源名称
|
|
45
|
+
* @param {*} useMemo
|
|
46
|
+
* @return {*}
|
|
47
|
+
*/
|
|
48
|
+
var currentResourceName = useMemo(function () {
|
|
49
|
+
var _currentSelectedResou;
|
|
50
|
+
var currentResource = currentSelectedResources === null || currentSelectedResources === void 0 || (_currentSelectedResou = currentSelectedResources[0]) === null || _currentSelectedResou === void 0 ? void 0 : _currentSelectedResou.currentSelectedResource;
|
|
51
|
+
var resourceItem = (currentResource === null || currentResource === void 0 ? void 0 : currentResource.resourceItem) || {};
|
|
52
|
+
var name = getResourceTitle(appointmentBooking, resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.code, utils, resourceItem);
|
|
53
|
+
return name;
|
|
54
|
+
}, [currentSelectedResources]);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @description: 跳转到服务步骤
|
|
58
|
+
* @param {any} step
|
|
59
|
+
* @return {*}
|
|
60
|
+
*/
|
|
61
|
+
var onStepChange = function onStepChange() {
|
|
62
|
+
// 清空数据
|
|
63
|
+
clearDataByStepKey('select-service', appointmentBooking, setTimes);
|
|
64
|
+
|
|
65
|
+
// 跳转到服务步骤
|
|
66
|
+
var stepLists = appointmentBooking.getStepList();
|
|
67
|
+
var serviceIndex = stepLists.findIndex(function (item) {
|
|
68
|
+
return (item === null || item === void 0 ? void 0 : item.key) === 'select-service';
|
|
69
|
+
});
|
|
70
|
+
appointmentBooking.gotoStep(serviceIndex);
|
|
71
|
+
};
|
|
72
|
+
return SelectDateOS ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SelectDateOS, {
|
|
73
|
+
isTimeSlicing: true,
|
|
74
|
+
currentDate: currentDate,
|
|
75
|
+
resourceCode: resourceCode,
|
|
76
|
+
resourceName: currentResourceName,
|
|
77
|
+
onDateChange: onDateChange,
|
|
78
|
+
onStepChange: onStepChange,
|
|
79
|
+
times: times
|
|
80
|
+
})) : null;
|
|
81
|
+
};
|
|
82
|
+
export default SelectDate;
|
|
@@ -9,12 +9,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
9
|
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; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
12
|
-
import { Iconfont
|
|
12
|
+
import { Iconfont } from '@pisell/materials';
|
|
13
13
|
import { locales } from '@pisell/utils';
|
|
14
14
|
import { useAppointmentBookingContext } from "../../context";
|
|
15
15
|
import { scrollToFirstErrorCard } from "../Resource/utils";
|
|
16
16
|
import { useAppointmentBookingResource, useAppointmentBookingStep } from "../../hooks";
|
|
17
17
|
import { Toast } from "../../utils";
|
|
18
|
+
import SelectDate from "./components/SelectDateOS";
|
|
18
19
|
import "./index.less";
|
|
19
20
|
var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
20
21
|
var _useState = useState(''),
|
|
@@ -32,6 +33,10 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32
33
|
getResourceList = _useAppointmentBookin.getResourceList;
|
|
33
34
|
var _useAppointmentBookin2 = useAppointmentBookingStep(),
|
|
34
35
|
nextStep = _useAppointmentBookin2.nextStep;
|
|
36
|
+
var _useState3 = useState(undefined),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
currentDate = _useState4[0],
|
|
39
|
+
setCurrentDate = _useState4[1];
|
|
35
40
|
useImperativeHandle(ref, function () {
|
|
36
41
|
return {
|
|
37
42
|
next: function next() {
|
|
@@ -102,7 +107,45 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
102
107
|
return _ref3.apply(this, arguments);
|
|
103
108
|
};
|
|
104
109
|
}();
|
|
105
|
-
|
|
110
|
+
useEffect(function () {
|
|
111
|
+
var getCurrentDate = /*#__PURE__*/function () {
|
|
112
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
113
|
+
var _res$;
|
|
114
|
+
var res, date;
|
|
115
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
116
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
117
|
+
case 0:
|
|
118
|
+
_context3.next = 2;
|
|
119
|
+
return appointmentBooking.getDateRange();
|
|
120
|
+
case 2:
|
|
121
|
+
res = _context3.sent;
|
|
122
|
+
date = res === null || res === void 0 || (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.date;
|
|
123
|
+
setCurrentDate(date);
|
|
124
|
+
case 5:
|
|
125
|
+
case "end":
|
|
126
|
+
return _context3.stop();
|
|
127
|
+
}
|
|
128
|
+
}, _callee3);
|
|
129
|
+
}));
|
|
130
|
+
return function getCurrentDate() {
|
|
131
|
+
return _ref4.apply(this, arguments);
|
|
132
|
+
};
|
|
133
|
+
}();
|
|
134
|
+
getCurrentDate();
|
|
135
|
+
}, []);
|
|
136
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectDate, {
|
|
137
|
+
onDateChange: function onDateChange(currentData) {
|
|
138
|
+
if ((times === null || times === void 0 ? void 0 : times.length) > 0) {
|
|
139
|
+
// 如果已经选择了日期,再触发选择,则清空上次选择的时间
|
|
140
|
+
appointmentBooking.deleteCartItemInfo('time');
|
|
141
|
+
}
|
|
142
|
+
setCurrentDate(currentData === null || currentData === void 0 ? void 0 : currentData.date);
|
|
143
|
+
appointmentBooking.setDateRange([currentData]);
|
|
144
|
+
getResourceTimeSlot();
|
|
145
|
+
},
|
|
146
|
+
times: times,
|
|
147
|
+
currentDate: currentDate
|
|
148
|
+
}), (times === null || times === void 0 ? void 0 : times.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
106
149
|
className: 'appointment-time-slicing-wrap'
|
|
107
150
|
}, times.map(function (item, index) {
|
|
108
151
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -115,8 +158,6 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
115
158
|
type: "pisell2-chevron-right",
|
|
116
159
|
className: "icon"
|
|
117
160
|
}));
|
|
118
|
-
})) :
|
|
119
|
-
description: locales.getText('pisell2.appointment.unselect.time')
|
|
120
|
-
});
|
|
161
|
+
})) : null);
|
|
121
162
|
});
|
|
122
163
|
export default TimeSlicing;
|
|
@@ -28,6 +28,8 @@ import { PisellInput, PisellGoodPassCard, PisellText, PisellToast } from '@pisel
|
|
|
28
28
|
import { useAppointmentBooking, useShopDiscount, useAppointmentBookingLogin, useAppointmentBookingAccount } from "../../hooks";
|
|
29
29
|
import "../../../booking/components/voucher/index.less";
|
|
30
30
|
import "./index.less";
|
|
31
|
+
import { useDebounceFn } from 'ahooks';
|
|
32
|
+
import { useAppointmentBookingContext } from "../../context";
|
|
31
33
|
var ShopDiscountHooks = {
|
|
32
34
|
onInited: 'shopDiscount:onInited',
|
|
33
35
|
onDestroy: 'shopDiscount:onDestroy',
|
|
@@ -69,11 +71,19 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
69
71
|
openLoginModal = _useAppointmentBookin.openLoginModal;
|
|
70
72
|
var _useAppointmentBookin2 = useAppointmentBookingAccount(),
|
|
71
73
|
accountLists = _useAppointmentBookin2.accountLists;
|
|
74
|
+
var _useAppointmentBookin3 = useAppointmentBookingContext(),
|
|
75
|
+
summary = _useAppointmentBookin3.summary;
|
|
76
|
+
var originTotal = summary.originTotal,
|
|
77
|
+
total = summary.total;
|
|
72
78
|
var cart = appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.cart;
|
|
73
79
|
var isUserLoggedIn = useMemo(function () {
|
|
74
80
|
var _utils$token, _utils$token$get;
|
|
75
81
|
return !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token)) || false;
|
|
76
82
|
}, [store]);
|
|
83
|
+
useEffect(function () {
|
|
84
|
+
var shopDiscount = pisellos.getModule('shopDiscount');
|
|
85
|
+
shopDiscount.setOriginTotalAmount(originTotal);
|
|
86
|
+
}, [originTotal]);
|
|
77
87
|
var availableData = useMemo(function () {
|
|
78
88
|
return discountList.filter(function (item) {
|
|
79
89
|
return !!item.isAvailable;
|
|
@@ -95,6 +105,12 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
95
105
|
useEffect(function () {
|
|
96
106
|
shopDiscount.setProductList(products);
|
|
97
107
|
}, [products]);
|
|
108
|
+
var _useDebounceFn = useDebounceFn(function () {
|
|
109
|
+
onCartChangeFn();
|
|
110
|
+
}, {
|
|
111
|
+
wait: 300
|
|
112
|
+
}),
|
|
113
|
+
onCartChange = _useDebounceFn.run;
|
|
98
114
|
var batchUpdateCart = function batchUpdateCart(productList) {
|
|
99
115
|
var _appointmentBooking$b;
|
|
100
116
|
var items = productList.map(function (item) {
|
|
@@ -110,10 +126,13 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
110
126
|
});
|
|
111
127
|
appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$b = appointmentBooking.batchUpdateCart) === null || _appointmentBooking$b === void 0 || _appointmentBooking$b.call(appointmentBooking, items);
|
|
112
128
|
};
|
|
113
|
-
var
|
|
114
|
-
var _shopDiscount$setBook, _appointmentBooking$o;
|
|
129
|
+
var onCartChangeFn = function onCartChangeFn() {
|
|
130
|
+
var _shopDiscount$setBook, _appointmentBooking$o, _shopDiscount$getDisc;
|
|
115
131
|
var products = cart === null || cart === void 0 ? void 0 : cart.getItems();
|
|
116
132
|
shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setBook = shopDiscount.setBookingSubject) === null || _shopDiscount$setBook === void 0 || _shopDiscount$setBook.call(shopDiscount, appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 || (_appointmentBooking$o = _appointmentBooking$o.bookingSetting) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.bookingSubject);
|
|
133
|
+
if (Array.isArray(shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$getDisc = shopDiscount.getDiscountList) === null || _shopDiscount$getDisc === void 0 ? void 0 : _shopDiscount$getDisc.call(shopDiscount)) && !(shopDiscount !== null && shopDiscount !== void 0 && shopDiscount.getDiscountList().length)) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
117
136
|
var val = shopDiscount.calcDiscount(products);
|
|
118
137
|
batchUpdateCart(val.productList);
|
|
119
138
|
};
|
|
@@ -153,7 +172,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
153
172
|
// // apply code
|
|
154
173
|
var onScanCode = /*#__PURE__*/function () {
|
|
155
174
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
156
|
-
var customerId, val;
|
|
175
|
+
var customerId, val, content;
|
|
157
176
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
158
177
|
while (1) switch (_context.prev = _context.next) {
|
|
159
178
|
case 0:
|
|
@@ -166,8 +185,11 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
166
185
|
batchUpdateCart(val.productList);
|
|
167
186
|
setCode('');
|
|
168
187
|
} else {
|
|
188
|
+
content = {
|
|
189
|
+
time_limit: locales.getText('pisell2.text.goodpass.code-invalid-expired')
|
|
190
|
+
};
|
|
169
191
|
PisellToast({
|
|
170
|
-
content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : locales.getText('pisell2.text.goodpass.code-invalid-cart')
|
|
192
|
+
content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : content[val === null || val === void 0 ? void 0 : val.unavailableReason] || locales.getText('pisell2.text.goodpass.code-invalid-cart')
|
|
171
193
|
});
|
|
172
194
|
}
|
|
173
195
|
case 5:
|
|
@@ -199,7 +221,6 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
199
221
|
// const user = utils.store?.getState()?.global?.userInfo;
|
|
200
222
|
// const currentUser = formatCustomer(user);
|
|
201
223
|
// const meAccount = accountLists?.find((d: any) => !d?.isGuest);
|
|
202
|
-
|
|
203
224
|
// if (status === 'success') {
|
|
204
225
|
// // appointmentBooking.setLoginAccount(
|
|
205
226
|
// // meAccount?.id,
|
|
@@ -72,7 +72,7 @@ export declare const useAppointmentBookingAccount: () => {
|
|
|
72
72
|
export declare const useAppointmentBookingResource: () => {
|
|
73
73
|
getResourceTimeSlot: (index?: number) => Promise<void>;
|
|
74
74
|
getResourceList: () => {
|
|
75
|
-
resources: any;
|
|
75
|
+
resources: any[];
|
|
76
76
|
resourceCodes: any;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
@@ -17,7 +17,7 @@ import { useState, useEffect, useMemo } from 'react';
|
|
|
17
17
|
import { locales } from '@pisell/utils';
|
|
18
18
|
import { usePisellOS } from "../../hooks/useEngineContext";
|
|
19
19
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
20
|
-
import {
|
|
20
|
+
import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
|
|
21
21
|
import { useAppointmentBookingContext } from "./context";
|
|
22
22
|
import { scrollToFirstErrorCard } from "./components/Resource/utils";
|
|
23
23
|
export var useAppointmentBooking = function useAppointmentBooking() {
|
|
@@ -809,20 +809,13 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
809
809
|
|
|
810
810
|
// 设置资源列表
|
|
811
811
|
var getResourceList = function getResourceList() {
|
|
812
|
-
var _resources2;
|
|
813
812
|
var resources = appointmentBooking.getResourcesList();
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
});
|
|
819
|
-
var _resources = ((_resources2 = resources) === null || _resources2 === void 0 || (_resources2 = _resources2[0]) === null || _resources2 === void 0 ? void 0 : _resources2.resources) || [];
|
|
820
|
-
var resourceCodes = _resources.map(function (item) {
|
|
821
|
-
return item.code;
|
|
822
|
-
});
|
|
823
|
-
setResources(resources || []);
|
|
813
|
+
var _processResourceList = processResourceList(resources, resourceSort),
|
|
814
|
+
processedResources = _processResourceList.resources,
|
|
815
|
+
resourceCodes = _processResourceList.resourceCodes;
|
|
816
|
+
setResources(processedResources || []);
|
|
824
817
|
return {
|
|
825
|
-
resources:
|
|
818
|
+
resources: processedResources,
|
|
826
819
|
resourceCodes: resourceCodes
|
|
827
820
|
};
|
|
828
821
|
};
|
|
@@ -115,6 +115,7 @@ declare const _default: {
|
|
|
115
115
|
'pisell2.text.goodpass.enter-code': string;
|
|
116
116
|
'pisell2.text.goodpass.code-invalid': string;
|
|
117
117
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
118
|
+
'pisell2.text.goodpass.code-invalid-expired': string;
|
|
118
119
|
'pisell2.text.goodpass.login': string;
|
|
119
120
|
'pisell2.text.goodpass.login-tip': string;
|
|
120
121
|
'pisell2.text.contact-info.title': string;
|
|
@@ -235,6 +236,7 @@ declare const _default: {
|
|
|
235
236
|
'pisell2.text.goodpass.enter-code': string;
|
|
236
237
|
'pisell2.text.goodpass.code-invalid': string;
|
|
237
238
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
239
|
+
'pisell2.text.goodpass.code-invalid-expired': string;
|
|
238
240
|
'pisell2.text.goodpass.login': string;
|
|
239
241
|
'pisell2.text.goodpass.login-tip': string;
|
|
240
242
|
'pisell2.text.contact-info.title': string;
|
|
@@ -355,6 +357,7 @@ declare const _default: {
|
|
|
355
357
|
'pisell2.text.goodpass.enter-code': string;
|
|
356
358
|
'pisell2.text.goodpass.code-invalid': string;
|
|
357
359
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
360
|
+
'pisell2.text.goodpass.code-invalid-expired': string;
|
|
358
361
|
'pisell2.text.goodpass.login': string;
|
|
359
362
|
'pisell2.text.goodpass.login-tip': string;
|
|
360
363
|
'pisell2.text.contact-info.title': string;
|
|
@@ -133,6 +133,7 @@ export default {
|
|
|
133
133
|
'pisell2.text.goodpass.enter-code': 'Enter Code',
|
|
134
134
|
'pisell2.text.goodpass.code-invalid': 'Current code is invalid',
|
|
135
135
|
'pisell2.text.goodpass.code-invalid-cart': 'No eligible items in the cart',
|
|
136
|
+
'pisell2.text.goodpass.code-invalid-expired': 'Current coupon is not valid in use',
|
|
136
137
|
'pisell2.text.goodpass.login': 'Login',
|
|
137
138
|
'pisell2.text.goodpass.login-tip': ' for member benefit Or use account credit',
|
|
138
139
|
'pisell2.text.contact-info.title': 'Contact info'
|
|
@@ -271,6 +272,7 @@ export default {
|
|
|
271
272
|
'pisell2.text.goodpass.enter-code': '请输入券码',
|
|
272
273
|
'pisell2.text.goodpass.code-invalid': '当前券码不可用',
|
|
273
274
|
'pisell2.text.goodpass.code-invalid-cart': '当前购物车中无可用商品',
|
|
275
|
+
'pisell2.text.goodpass.code-invalid-expired': '当前优惠券不在使用期限内',
|
|
274
276
|
'pisell2.text.goodpass.login': '登录',
|
|
275
277
|
'pisell2.text.goodpass.login-tip': '以获取会员福利或使用账户积分',
|
|
276
278
|
'pisell2.text.contact-info.title': '联系信息'
|
|
@@ -409,6 +411,7 @@ export default {
|
|
|
409
411
|
'pisell2.text.goodpass.enter-code': '請輸入券碼',
|
|
410
412
|
'pisell2.text.goodpass.code-invalid': '當前券碼不可用',
|
|
411
413
|
'pisell2.text.goodpass.code-invalid-cart': '當前購物車中無可用商品',
|
|
414
|
+
'pisell2.text.goodpass.code-invalid-expired': '當前優惠券不在使用期限內',
|
|
412
415
|
'pisell2.text.goodpass.login': '登錄',
|
|
413
416
|
'pisell2.text.goodpass.login-tip': '以獲取會員福利或使用賬戶積分',
|
|
414
417
|
'pisell2.text.contact-info.title': '聯繫信息'
|
|
@@ -39,6 +39,19 @@ export declare const formatCarts: (data: any[], resources: any[], utils: any, ac
|
|
|
39
39
|
* @Date: 2025-04-14 11:16
|
|
40
40
|
*/
|
|
41
41
|
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* @title: 处理资源列表并提取资源代码
|
|
44
|
+
* @description: 对资源列表进行排序,并提取 resourceCodes
|
|
45
|
+
* @param {any[]} resources - 原始资源列表
|
|
46
|
+
* @param {any[]} resourceSort - 资源排序配置
|
|
47
|
+
* @return {*} 返回处理后的资源列表和资源代码数组
|
|
48
|
+
* @Author: WangHan
|
|
49
|
+
* @Date: 2025-11-21 15:33
|
|
50
|
+
*/
|
|
51
|
+
export declare const processResourceList: (resources: any[], resourceSort: any[]) => {
|
|
52
|
+
resources: any[];
|
|
53
|
+
resourceCodes: any;
|
|
54
|
+
};
|
|
42
55
|
export declare const getMeAccount: (val: any[]) => any;
|
|
43
56
|
export declare const getCustomer: (utils: any) => any;
|
|
44
57
|
export declare const formatCustomer: (val: any) => {
|
|
@@ -201,3 +214,13 @@ export declare const currentRenderLists: (resources: any[], code: any) => any;
|
|
|
201
214
|
* @Date: 2025-05-25 23:17
|
|
202
215
|
*/
|
|
203
216
|
export declare const updateCartResources: (item: any, value?: any, currentSelectedResources?: any) => any;
|
|
217
|
+
/**
|
|
218
|
+
* @title: 根据步骤key清空数据
|
|
219
|
+
* @param {string} key - 当前步骤的key
|
|
220
|
+
* @param {any} appointmentBooking - 预约预订实例
|
|
221
|
+
* @param {(times: any[]) => void} setTimes - 设置时间列表的回调函数
|
|
222
|
+
* @return {string[]} 返回需要清空的数据类型数组
|
|
223
|
+
* @Author: WangHan
|
|
224
|
+
* @Date: 2025-11-21 15:40
|
|
225
|
+
*/
|
|
226
|
+
export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => string[] | undefined;
|