@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
|
@@ -47,7 +47,8 @@ var SHOW_METHODS_CODE = [
|
|
|
47
47
|
"EFTPOS",
|
|
48
48
|
"EFTPOS_TYRO",
|
|
49
49
|
"EFTPOS_WINDCAVE",
|
|
50
|
-
"EFTPOS_PAYO"
|
|
50
|
+
"EFTPOS_PAYO",
|
|
51
|
+
"EFTPOS_HUIFU"
|
|
51
52
|
];
|
|
52
53
|
function PaymentOptionsModule({
|
|
53
54
|
amountSymbol,
|
|
@@ -76,7 +77,10 @@ function PaymentOptionsModule({
|
|
|
76
77
|
};
|
|
77
78
|
const displayTitle = typeof title === "string" ? title : title ? String(title) : getText("cards.and.digitals", "Cards & Digitals");
|
|
78
79
|
const filteredPaymentMethods = paymentMethods.filter(
|
|
79
|
-
(item) =>
|
|
80
|
+
(item) => {
|
|
81
|
+
var _a2;
|
|
82
|
+
return !(item.type === "app" && item.code === "EFTPOS_LINKLY") && ((_a2 = item.channel_application) == null ? void 0 : _a2.includes("pos")) && (["custom"].includes(item.type) || SHOW_METHODS_CODE.includes(item.code));
|
|
83
|
+
}
|
|
80
84
|
);
|
|
81
85
|
const { run: handlePaymentClick } = (0, import_ahooks.useDebounceFn)(
|
|
82
86
|
(method) => {
|
|
@@ -259,7 +259,6 @@ var GlobalToastManager = class {
|
|
|
259
259
|
if (config.mask) {
|
|
260
260
|
container.setAttribute("data-mask", "true");
|
|
261
261
|
}
|
|
262
|
-
debugger;
|
|
263
262
|
const dynamicBottomOffset = this.calculateAndCacheBottomOffset();
|
|
264
263
|
container.style.position = "fixed";
|
|
265
264
|
if (config.mask) {
|
|
@@ -153,8 +153,10 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
document.addEventListener("mousedown", handleClickOutside);
|
|
156
|
+
document.addEventListener("pointerup", handleClickOutside);
|
|
156
157
|
return () => {
|
|
157
158
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
159
|
+
document.removeEventListener("pointerup", handleClickOutside);
|
|
158
160
|
};
|
|
159
161
|
}, [clickOutsideToClose, visible, clearCountdown]);
|
|
160
162
|
const handleClose = (0, import_react.useCallback)(() => {
|
|
@@ -68,6 +68,7 @@ var WalletPassModule = (0, import_react.forwardRef)(
|
|
|
68
68
|
} = (0, import_useWalletPass.useWalletPass)({
|
|
69
69
|
onSelectChange,
|
|
70
70
|
customAmount,
|
|
71
|
+
totalAmount: Number(orderInfo == null ? void 0 : orderInfo.totalAmount) || 0,
|
|
71
72
|
clientId
|
|
72
73
|
});
|
|
73
74
|
const [expiredModalVisible, setExpiredModalVisible] = (0, import_react.useState)(false);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare type WalletPassDataType = Record<string, any>;
|
|
2
2
|
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => any;
|
|
3
3
|
export declare const voucherTime: (data: WalletPassDataType, key?: string) => any;
|
|
4
|
+
export declare const getVoucherAvailableStatus: (item: any) => boolean;
|
|
4
5
|
export declare const formatMachineCodeServer2CardList: (data: WalletPassDataType[], selectId?: number[], otherProps?: Record<string, any>) => any;
|
|
5
6
|
export declare const formatDiscountWalletData: (data: any, selectId?: number[]) => any;
|
|
6
7
|
export interface WalletPassUsageUnit {
|
|
@@ -33,6 +33,7 @@ __export(utils_exports, {
|
|
|
33
33
|
formatMachineCodeServer2CardList: () => formatMachineCodeServer2CardList,
|
|
34
34
|
getAvailableMaxAmount: () => getAvailableMaxAmount,
|
|
35
35
|
getPointCardAmount: () => getPointCardAmount,
|
|
36
|
+
getVoucherAvailableStatus: () => getVoucherAvailableStatus,
|
|
36
37
|
isSameContent: () => isSameContent,
|
|
37
38
|
voucherTime: () => voucherTime
|
|
38
39
|
});
|
|
@@ -43,6 +44,9 @@ var import_materials = require("@pisell/materials");
|
|
|
43
44
|
var import_decimal = __toESM(require("decimal.js"));
|
|
44
45
|
var Amount = import_materials.PisellText.Amount;
|
|
45
46
|
var getAvailableMaxAmount = (data) => {
|
|
47
|
+
if ((0, import_utils.isNumber)(data._available_max_amount)) {
|
|
48
|
+
return data._available_max_amount;
|
|
49
|
+
}
|
|
46
50
|
return data.tag !== "point_card" ? data.available_max_amount : data == null ? void 0 : data.recommended_usage_amount;
|
|
47
51
|
};
|
|
48
52
|
var voucherTime = (data, key = "expire_date") => {
|
|
@@ -55,9 +59,20 @@ var voucherTime = (data, key = "expire_date") => {
|
|
|
55
59
|
}
|
|
56
60
|
return import_utils.locales.getText("pisell2.text.walletPassPermanent");
|
|
57
61
|
};
|
|
62
|
+
var getVoucherAvailableStatus = (item) => {
|
|
63
|
+
return item.unified_available_status === 1 && ((0, import_utils.isNumber)(item._unified_available_status) ? !!item._unified_available_status : true);
|
|
64
|
+
};
|
|
58
65
|
var formatMachineCodeServer2CardList = (data, selectId = [], otherProps = {}) => {
|
|
59
66
|
return (data || []).map((item) => {
|
|
60
67
|
var _a, _b;
|
|
68
|
+
let disabled = false;
|
|
69
|
+
if (item.unified_available_status === 0) {
|
|
70
|
+
disabled = true;
|
|
71
|
+
} else {
|
|
72
|
+
if ((0, import_utils.isNumber)(item._unified_available_status)) {
|
|
73
|
+
disabled = !item._unified_available_status;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
61
76
|
return {
|
|
62
77
|
id: item.id,
|
|
63
78
|
name: item.product_name,
|
|
@@ -74,8 +89,8 @@ var formatMachineCodeServer2CardList = (data, selectId = [], otherProps = {}) =>
|
|
|
74
89
|
showQrCode: false,
|
|
75
90
|
showStatus: true,
|
|
76
91
|
code: item.code,
|
|
77
|
-
disabled
|
|
78
|
-
disabledReason: (_a = item.unified_messages) == null ? void 0 : _a.title,
|
|
92
|
+
disabled,
|
|
93
|
+
disabledReason: (0, import_utils.isNumber)(item._unified_available_status) && item._unified_available_status !== 1 ? item.reason : (_a = item.unified_messages) == null ? void 0 : _a.title,
|
|
79
94
|
cover: (_b = item.product) == null ? void 0 : _b.cover,
|
|
80
95
|
qrCode: item.code,
|
|
81
96
|
validDate: voucherTime(item),
|
|
@@ -153,6 +168,7 @@ var isSameContent = (arr1, arr2) => {
|
|
|
153
168
|
formatMachineCodeServer2CardList,
|
|
154
169
|
getAvailableMaxAmount,
|
|
155
170
|
getPointCardAmount,
|
|
171
|
+
getVoucherAvailableStatus,
|
|
156
172
|
isSameContent,
|
|
157
173
|
voucherTime
|
|
158
174
|
});
|
|
@@ -9,6 +9,7 @@ export declare const useWalletPass: (props: {
|
|
|
9
9
|
}[]) => void) | undefined;
|
|
10
10
|
customAmount?: string | undefined;
|
|
11
11
|
clientId?: number | undefined;
|
|
12
|
+
totalAmount?: number | undefined;
|
|
12
13
|
}) => {
|
|
13
14
|
walletRecommendList: any[];
|
|
14
15
|
userIdentificationCodes: any[];
|
|
@@ -17,7 +18,7 @@ export declare const useWalletPass: (props: {
|
|
|
17
18
|
cardData: any;
|
|
18
19
|
handleSelectWallet: (value: number[]) => void;
|
|
19
20
|
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any;
|
|
21
|
+
expiredWalletIds: any[];
|
|
21
22
|
expiredWalletData: any;
|
|
22
23
|
disabledWalletData: any[];
|
|
23
24
|
clearAllSelectedWallet: () => void;
|
|
@@ -29,7 +30,6 @@ export declare const useWalletPass: (props: {
|
|
|
29
30
|
selectedDiscountList: any;
|
|
30
31
|
handleSelectDiscount: (value: number[], option: any) => void;
|
|
31
32
|
customerName: any;
|
|
32
|
-
fetchWalletRecommendList: (params: any) => Promise<any>;
|
|
33
33
|
fetchUserIdentificationCodes: (params: any) => Promise<any>;
|
|
34
34
|
getCachedWalletRecommendList: () => any;
|
|
35
35
|
getCachedUserIdentificationCodes: () => any;
|
|
@@ -44,24 +44,27 @@ var import_utils3 = require("../../booking/utils");
|
|
|
44
44
|
var import_pisellos = require("../../ticketBooking/hooks/pisellos");
|
|
45
45
|
var import_useShopDiscountModule = require("../../ticketBooking/hooks/pisellos/useShopDiscountModule");
|
|
46
46
|
var useWalletPass = (props) => {
|
|
47
|
-
const { onSelectChange, customAmount, clientId } = props;
|
|
47
|
+
const { onSelectChange, customAmount, clientId, totalAmount } = props;
|
|
48
48
|
const logger = (0, import_usePaymentLogger.default)();
|
|
49
49
|
const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
|
|
50
50
|
const [walletRecommendList, setWalletRecommendList] = (0, import_react.useState)([]);
|
|
51
51
|
const [userIdentificationCodes, setUserIdentificationCodes] = (0, import_react.useState)(
|
|
52
52
|
[]
|
|
53
53
|
);
|
|
54
|
+
const [transformList, setTransformList] = (0, import_react.useState)([]);
|
|
55
|
+
const [noApplicableVoucher, setNoApplicableVoucher] = (0, import_react.useState)([]);
|
|
54
56
|
const initialOrderedDataRef = (0, import_react.useRef)([]);
|
|
55
57
|
const initialDiscountOrderRef = (0, import_react.useRef)([]);
|
|
56
58
|
const confirmedEditAmountIdsRef = (0, import_react.useRef)([]);
|
|
57
|
-
const timeoutRef = (0, import_react.useRef)(null);
|
|
58
59
|
const [searchIdentificationCodeList, setSearchIdentificationCodeList] = (0, import_react.useState)([]);
|
|
59
60
|
const [orderInfo, setOrderInfo] = (0, import_react.useState)({});
|
|
60
61
|
const [selectedWallet, setSelectedWallet] = (0, import_react.useState)([]);
|
|
61
62
|
const selectedWalletRef = (0, import_react.useRef)([]);
|
|
63
|
+
const [selectedVoucherIds, setSelectedVoucherIds] = (0, import_react.useState)([]);
|
|
62
64
|
const [disabledWalletData, setDisabledWalletData] = (0, import_react.useState)([]);
|
|
63
65
|
const notSetWalletSelectRef = (0, import_react.useRef)(false);
|
|
64
66
|
const showBestToastRef = (0, import_react.useRef)(false);
|
|
67
|
+
const [products, setProducts] = (0, import_react.useState)([]);
|
|
65
68
|
const selectedWalletIds = (0, import_react.useMemo)(() => {
|
|
66
69
|
return selectedWallet.map((item) => item.id);
|
|
67
70
|
}, [selectedWallet]);
|
|
@@ -73,6 +76,10 @@ var useWalletPass = (props) => {
|
|
|
73
76
|
const checkoutModule = pisellos.getModule("checkout");
|
|
74
77
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
75
78
|
const paymentModule = checkoutModule == null ? void 0 : checkoutModule.payment;
|
|
79
|
+
const walletPassEvaluator = (0, import_react.useMemo)(() => {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
return (_b = (_a = paymentModule == null ? void 0 : paymentModule.window) == null ? void 0 : _a.getWalletPassEvaluator) == null ? void 0 : _b.call(_a);
|
|
82
|
+
}, []);
|
|
76
83
|
const setWalletSelect = (0, import_ahooks.useMemoizedFn)((data2) => {
|
|
77
84
|
setSelectedWallet(data2);
|
|
78
85
|
selectedWalletRef.current = data2;
|
|
@@ -163,34 +170,61 @@ var useWalletPass = (props) => {
|
|
|
163
170
|
return orderedResult;
|
|
164
171
|
}
|
|
165
172
|
);
|
|
173
|
+
const allVouchersForCalculation = (0, import_react.useMemo)(() => {
|
|
174
|
+
return [...transformList || [], ...searchIdentificationCodeList || []];
|
|
175
|
+
}, [transformList, searchIdentificationCodeList]);
|
|
176
|
+
const selectedVouchers = (0, import_react.useMemo)(() => {
|
|
177
|
+
return selectedVoucherIds.map((id) => allVouchersForCalculation.find((v) => v.id === id)).filter(Boolean);
|
|
178
|
+
}, [selectedVoucherIds, allVouchersForCalculation]);
|
|
179
|
+
const { displayVouchers, displayOtherVouchers, selectedWithDetails, totalDeduction } = (0, import_react.useMemo)(() => {
|
|
180
|
+
if (!walletPassEvaluator || !allVouchersForCalculation.length || !totalAmount) {
|
|
181
|
+
return {
|
|
182
|
+
displayVouchers: [...transformList || [], ...noApplicableVoucher || []],
|
|
183
|
+
displayOtherVouchers: searchIdentificationCodeList || [],
|
|
184
|
+
selectedWithDetails: [],
|
|
185
|
+
totalDeduction: 0
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
const result = walletPassEvaluator.recalculateVouchers(
|
|
189
|
+
allVouchersForCalculation,
|
|
190
|
+
selectedVouchers,
|
|
191
|
+
totalAmount,
|
|
192
|
+
products || []
|
|
193
|
+
);
|
|
194
|
+
const currentCustomerVouchers = [];
|
|
195
|
+
const otherCustomerVouchers = [];
|
|
196
|
+
result.allWithUpdatedStatus.forEach((voucher) => {
|
|
197
|
+
const isSearchVoucher = searchIdentificationCodeList.some((item) => item.id === voucher.id);
|
|
198
|
+
if (isSearchVoucher) {
|
|
199
|
+
otherCustomerVouchers.push(voucher);
|
|
200
|
+
} else {
|
|
201
|
+
currentCustomerVouchers.push(voucher);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
return {
|
|
205
|
+
displayVouchers: [...currentCustomerVouchers, ...noApplicableVoucher || []],
|
|
206
|
+
displayOtherVouchers: otherCustomerVouchers,
|
|
207
|
+
selectedWithDetails: result.selectedWithDetails,
|
|
208
|
+
totalDeduction: result.selectedWithDetails.reduce((sum, v) => sum + (v.actualDeduction || 0), 0)
|
|
209
|
+
};
|
|
210
|
+
}, [selectedVouchers, allVouchersForCalculation, transformList, searchIdentificationCodeList, noApplicableVoucher, totalAmount, products]);
|
|
211
|
+
(0, import_ahooks.useUpdateEffect)(() => {
|
|
212
|
+
notifySelectChange(selectedWithDetails);
|
|
213
|
+
setLoading(false);
|
|
214
|
+
}, [selectedWithDetails]);
|
|
166
215
|
const data = (0, import_react.useMemo)(() => {
|
|
167
216
|
return (0, import_utils2.formatMachineCodeServer2CardList)(
|
|
168
217
|
(0, import_utils.uniqueByKey)(
|
|
169
218
|
mergeDataWithInitialOrder([
|
|
170
219
|
...selectedWallet,
|
|
171
|
-
...
|
|
220
|
+
...displayVouchers,
|
|
221
|
+
...displayOtherVouchers
|
|
172
222
|
]),
|
|
173
223
|
"id"
|
|
174
224
|
),
|
|
175
|
-
|
|
225
|
+
selectedVoucherIds
|
|
176
226
|
);
|
|
177
|
-
}, [
|
|
178
|
-
const fetchWalletRecommendList = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
|
179
|
-
setLoading(true);
|
|
180
|
-
setError(null);
|
|
181
|
-
try {
|
|
182
|
-
const result = await paymentModule.wallet.getWalletPassRecommendListAsync(
|
|
183
|
-
params
|
|
184
|
-
);
|
|
185
|
-
setWalletRecommendList(result);
|
|
186
|
-
return result;
|
|
187
|
-
} catch (err) {
|
|
188
|
-
setError(err instanceof Error ? err.message : "获取钱包推荐列表失败");
|
|
189
|
-
throw err;
|
|
190
|
-
} finally {
|
|
191
|
-
setLoading(false);
|
|
192
|
-
}
|
|
193
|
-
});
|
|
227
|
+
}, [displayVouchers, displayOtherVouchers, selectedVoucherIds, selectedWallet]);
|
|
194
228
|
const fetchUserIdentificationCodes = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
|
195
229
|
setLoading(true);
|
|
196
230
|
setError(null);
|
|
@@ -233,43 +267,75 @@ var useWalletPass = (props) => {
|
|
|
233
267
|
});
|
|
234
268
|
const handleSearchIdentificationCodeCompleted = (0, import_ahooks.useMemoizedFn)((data2) => {
|
|
235
269
|
const { currentSearchResults, cachedSearchResults } = data2;
|
|
270
|
+
let formattedResults = currentSearchResults;
|
|
271
|
+
if (walletPassEvaluator && currentSearchResults.length > 0 && totalAmount) {
|
|
272
|
+
formattedResults = walletPassEvaluator.searchVoucherFormat({
|
|
273
|
+
vouchers: currentSearchResults,
|
|
274
|
+
orderTotalAmount: totalAmount,
|
|
275
|
+
products: products || []
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
let formattedCachedResults = cachedSearchResults || [];
|
|
279
|
+
if (walletPassEvaluator && cachedSearchResults && cachedSearchResults.length > 0 && totalAmount) {
|
|
280
|
+
formattedCachedResults = walletPassEvaluator.searchVoucherFormat({
|
|
281
|
+
vouchers: cachedSearchResults,
|
|
282
|
+
orderTotalAmount: totalAmount,
|
|
283
|
+
products: products || []
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
const mergedSearchResults = (0, import_utils.uniqueByKey)(
|
|
287
|
+
[...formattedCachedResults || [], ...formattedResults],
|
|
288
|
+
"id"
|
|
289
|
+
);
|
|
236
290
|
let isAvailableData = [];
|
|
237
291
|
let isDisabledData = [];
|
|
238
|
-
if (
|
|
239
|
-
|
|
240
|
-
if (
|
|
292
|
+
if (formattedResults.length > 0) {
|
|
293
|
+
formattedResults.forEach((item) => {
|
|
294
|
+
if ((0, import_utils2.getVoucherAvailableStatus)(item)) {
|
|
241
295
|
isAvailableData.push(item);
|
|
242
296
|
} else {
|
|
243
297
|
isDisabledData.push(item);
|
|
244
298
|
}
|
|
245
299
|
});
|
|
246
300
|
}
|
|
247
|
-
|
|
301
|
+
const availableData = mergedSearchResults.filter((item) => (0, import_utils2.getVoucherAvailableStatus)(item));
|
|
302
|
+
const allDisabledData = mergedSearchResults.filter((item) => !(0, import_utils2.getVoucherAvailableStatus)(item));
|
|
303
|
+
setDisabledWalletData(allDisabledData);
|
|
248
304
|
let newValues = [...selectedWalletRef.current];
|
|
249
305
|
if (isAvailableData.length === 1) {
|
|
250
306
|
newValues = [...selectedWalletRef.current, ...isAvailableData];
|
|
251
307
|
}
|
|
252
|
-
setSearchIdentificationCodeList(
|
|
308
|
+
setSearchIdentificationCodeList(availableData);
|
|
309
|
+
setNoApplicableVoucher(allDisabledData);
|
|
253
310
|
setWalletSelect(newValues);
|
|
254
|
-
|
|
255
|
-
handleFetchUserIdentificationCodes(newValues.map((item) => item.id));
|
|
256
|
-
}, 200);
|
|
311
|
+
setSelectedVoucherIds(newValues.map((item) => item.id));
|
|
257
312
|
});
|
|
258
313
|
const onOrderCreated = (0, import_ahooks.useMemoizedFn)(() => {
|
|
314
|
+
var _a, _b;
|
|
259
315
|
const orderInfo2 = checkoutModule.getOrderOriginalData();
|
|
260
316
|
setOrderInfo(orderInfo2);
|
|
261
317
|
const recommendList = getCachedWalletRecommendList();
|
|
262
318
|
const userIdentificationCodes2 = getCachedUserIdentificationCodes();
|
|
319
|
+
const walletInitData = ((_b = (_a = paymentModule == null ? void 0 : paymentModule.wallet) == null ? void 0 : _a.getStoredWalletInitData) == null ? void 0 : _b.call(_a)) || {};
|
|
320
|
+
const transformListData = walletInitData.transformList || userIdentificationCodes2;
|
|
321
|
+
const noApplicableVoucherData = walletInitData.noApplicableVoucher || [];
|
|
322
|
+
const productsData = walletInitData.products || [];
|
|
263
323
|
const initialData = [...recommendList, ...userIdentificationCodes2];
|
|
264
324
|
setWalletRecommendList(recommendList);
|
|
265
|
-
setUserIdentificationCodes(
|
|
325
|
+
setUserIdentificationCodes(userIdentificationCodes2);
|
|
326
|
+
setTransformList(transformListData);
|
|
327
|
+
setNoApplicableVoucher(noApplicableVoucherData);
|
|
328
|
+
setProducts(productsData);
|
|
266
329
|
initialOrderedDataRef.current = initialData;
|
|
267
330
|
if (!notSetWalletSelectRef.current) {
|
|
268
331
|
setWalletSelect(recommendList);
|
|
332
|
+
setSelectedVoucherIds(recommendList.map((item) => item.id));
|
|
269
333
|
const select = paymentModule.wallet.formatWalletPassList2PreparePayments(recommendList).map((item) => ({
|
|
270
334
|
code: item.tag,
|
|
271
335
|
voucher_id: item.voucher_id,
|
|
272
|
-
amount: item.amount || 0
|
|
336
|
+
amount: item.amount || 0,
|
|
337
|
+
wallet_pass_usage_unit: item.wallet_pass_usage_unit,
|
|
338
|
+
wallet_pass_use_value: item.wallet_pass_use_value
|
|
273
339
|
}));
|
|
274
340
|
logger == null ? void 0 : logger.addLog({
|
|
275
341
|
type: "info",
|
|
@@ -279,6 +345,7 @@ var useWalletPass = (props) => {
|
|
|
279
345
|
onSelectChange == null ? void 0 : onSelectChange(select);
|
|
280
346
|
} else {
|
|
281
347
|
setWalletSelect([]);
|
|
348
|
+
setSelectedVoucherIds([]);
|
|
282
349
|
notSetWalletSelectRef.current = false;
|
|
283
350
|
onSelectChange == null ? void 0 : onSelectChange([]);
|
|
284
351
|
}
|
|
@@ -316,7 +383,7 @@ var useWalletPass = (props) => {
|
|
|
316
383
|
});
|
|
317
384
|
const handlePaymentStarted = (0, import_ahooks.useMemoizedFn)(
|
|
318
385
|
async (params) => {
|
|
319
|
-
if (params.paymentMethodCode !== "VOUCHER_BATCH") {
|
|
386
|
+
if (params.paymentMethodCode !== "VOUCHER_BATCH" && Number(customAmount || 0) > 0) {
|
|
320
387
|
notSetWalletSelectRef.current = true;
|
|
321
388
|
await checkoutModule.initWalletData({
|
|
322
389
|
order_wait_pay_amount: Number(customAmount)
|
|
@@ -398,14 +465,6 @@ var useWalletPass = (props) => {
|
|
|
398
465
|
);
|
|
399
466
|
};
|
|
400
467
|
}, [paymentModule]);
|
|
401
|
-
(0, import_react.useEffect)(() => {
|
|
402
|
-
return () => {
|
|
403
|
-
if (timeoutRef.current) {
|
|
404
|
-
clearTimeout(timeoutRef.current);
|
|
405
|
-
timeoutRef.current = null;
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
}, []);
|
|
409
468
|
const allList = (0, import_react.useMemo)(() => {
|
|
410
469
|
const reversedSearchData = [...searchIdentificationCodeList].reverse();
|
|
411
470
|
return [
|
|
@@ -425,31 +484,22 @@ var useWalletPass = (props) => {
|
|
|
425
484
|
)
|
|
426
485
|
).map((item) => item.code);
|
|
427
486
|
});
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
onSelectChange == null ? void 0 : onSelectChange(select);
|
|
445
|
-
fetchUserIdentificationCodes({
|
|
446
|
-
prepare_payments,
|
|
447
|
-
available: 2,
|
|
448
|
-
filter_prepare_wallet_pass: 1,
|
|
449
|
-
other_exact_codes: getOtherExactCodes()
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
);
|
|
487
|
+
const notifySelectChange = (0, import_ahooks.useMemoizedFn)((selectedDetails) => {
|
|
488
|
+
const prepare_payments = paymentModule.wallet.formatWalletPassList2PreparePayments(selectedDetails);
|
|
489
|
+
const select = prepare_payments.map((item) => ({
|
|
490
|
+
voucher_id: item.voucher_id,
|
|
491
|
+
amount: item.amount,
|
|
492
|
+
code: item.tag,
|
|
493
|
+
wallet_pass_usage_unit: item.wallet_pass_usage_unit,
|
|
494
|
+
wallet_pass_use_value: item.wallet_pass_use_value
|
|
495
|
+
}));
|
|
496
|
+
logger == null ? void 0 : logger.addLog({
|
|
497
|
+
type: "info",
|
|
498
|
+
title: "useWalletPass_notifySelectChange 通知外部选择变化",
|
|
499
|
+
metadata: { selectedDetails, select }
|
|
500
|
+
});
|
|
501
|
+
onSelectChange == null ? void 0 : onSelectChange(select);
|
|
502
|
+
});
|
|
453
503
|
const handleSearchIdentificationCode = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
454
504
|
return paymentModule.wallet.searchIdentificationCodeAsync({
|
|
455
505
|
code: value,
|
|
@@ -459,11 +509,27 @@ var useWalletPass = (props) => {
|
|
|
459
509
|
});
|
|
460
510
|
});
|
|
461
511
|
const handleSelectWallet = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
462
|
-
|
|
512
|
+
setLoading(true);
|
|
513
|
+
const deselectedIds = selectedVoucherIds.filter(
|
|
514
|
+
(id) => !value.includes(id)
|
|
515
|
+
);
|
|
516
|
+
if (deselectedIds.length > 0) {
|
|
517
|
+
const needResetIds = deselectedIds.filter((id) => {
|
|
518
|
+
const voucher = allVouchersForCalculation.find((v) => v.id === id);
|
|
519
|
+
return (voucher == null ? void 0 : voucher.edit_current_amount) !== void 0;
|
|
520
|
+
});
|
|
521
|
+
if (needResetIds.length > 0) {
|
|
522
|
+
updateWalletDataById(needResetIds, { edit_current_amount: void 0 });
|
|
523
|
+
confirmedEditAmountIdsRef.current = confirmedEditAmountIdsRef.current.filter(
|
|
524
|
+
(id) => !needResetIds.includes(id)
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
setSelectedVoucherIds(value);
|
|
529
|
+
const val = allVouchersForCalculation.filter(
|
|
463
530
|
(item) => value.includes(item.id)
|
|
464
531
|
);
|
|
465
532
|
setWalletSelect(val);
|
|
466
|
-
handleFetchUserIdentificationCodes(value);
|
|
467
533
|
});
|
|
468
534
|
const expiredWalletIds = (0, import_react.useMemo)(() => {
|
|
469
535
|
return (0, import_utils.uniqueByKey)(allList, "id").filter(
|
|
@@ -481,12 +547,12 @@ var useWalletPass = (props) => {
|
|
|
481
547
|
}, [allList]);
|
|
482
548
|
const clearAllSelectedWallet = (0, import_ahooks.useMemoizedFn)(() => {
|
|
483
549
|
var _a;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
550
|
+
if (confirmedEditAmountIdsRef.current.length > 0) {
|
|
551
|
+
updateWalletDataById(confirmedEditAmountIdsRef.current, {
|
|
552
|
+
edit_current_amount: void 0
|
|
553
|
+
});
|
|
554
|
+
confirmedEditAmountIdsRef.current = [];
|
|
555
|
+
}
|
|
490
556
|
if (selectedWalletIds.length === 0 && selectedDiscountList.length === 0) {
|
|
491
557
|
return;
|
|
492
558
|
}
|
|
@@ -510,7 +576,14 @@ var useWalletPass = (props) => {
|
|
|
510
576
|
return;
|
|
511
577
|
}
|
|
512
578
|
setWalletSelect([]);
|
|
513
|
-
|
|
579
|
+
setSelectedVoucherIds([]);
|
|
580
|
+
logger == null ? void 0 : logger.addLog({
|
|
581
|
+
type: "info",
|
|
582
|
+
title: "useWalletPass_clearAllSelectedWallet 立即通知外部清空",
|
|
583
|
+
metadata: {}
|
|
584
|
+
});
|
|
585
|
+
onSelectChange == null ? void 0 : onSelectChange([]);
|
|
586
|
+
setLoading(false);
|
|
514
587
|
});
|
|
515
588
|
const isCurrentSelectionBest = (0, import_ahooks.useMemoizedFn)(() => {
|
|
516
589
|
if (walletRecommendList.length === 0) return true;
|
|
@@ -557,12 +630,9 @@ var useWalletPass = (props) => {
|
|
|
557
630
|
import_utils.locales.getText("wallet-pass-module-already-best-combination")
|
|
558
631
|
);
|
|
559
632
|
} else {
|
|
560
|
-
const select = searchIdentificationCodeList.filter((item) =>
|
|
633
|
+
const select = searchIdentificationCodeList.filter((item) => (0, import_utils2.getVoucherAvailableStatus)(item));
|
|
561
634
|
setWalletSelect(select);
|
|
562
|
-
|
|
563
|
-
select.map((item) => item.id),
|
|
564
|
-
select
|
|
565
|
-
);
|
|
635
|
+
setSelectedVoucherIds(select.map((item) => item.id));
|
|
566
636
|
if (select.length) {
|
|
567
637
|
Toast == null ? void 0 : Toast.success(
|
|
568
638
|
import_utils.locales.getText("wallet-pass-module-best-combination-selected")
|
|
@@ -591,14 +661,12 @@ var useWalletPass = (props) => {
|
|
|
591
661
|
} else {
|
|
592
662
|
if (hasGoodPass && !isBestDiscount) return;
|
|
593
663
|
setWalletSelect(newWalletRecommendList);
|
|
594
|
-
|
|
595
|
-
newWalletRecommendList.map((item) => item.id),
|
|
596
|
-
newWalletRecommendList
|
|
597
|
-
);
|
|
664
|
+
setSelectedVoucherIds(newWalletRecommendList.map((item) => item.id));
|
|
598
665
|
Toast == null ? void 0 : Toast.success(
|
|
599
666
|
import_utils.locales.getText("wallet-pass-module-best-combination-selected")
|
|
600
667
|
);
|
|
601
668
|
}
|
|
669
|
+
setLoading(false);
|
|
602
670
|
});
|
|
603
671
|
const handleSelectDiscount = (0, import_ahooks.useMemoizedFn)((value, option) => {
|
|
604
672
|
var _a, _b, _c;
|
|
@@ -645,6 +713,12 @@ var useWalletPass = (props) => {
|
|
|
645
713
|
updateData
|
|
646
714
|
);
|
|
647
715
|
setUserIdentificationCodes(newUserIdentificationCodes);
|
|
716
|
+
const newTransformList = updateArrayItemById(
|
|
717
|
+
transformList,
|
|
718
|
+
targetId,
|
|
719
|
+
updateData
|
|
720
|
+
);
|
|
721
|
+
setTransformList(newTransformList);
|
|
648
722
|
const newSearchIdentificationCodeList = updateArrayItemById(
|
|
649
723
|
searchIdentificationCodeList,
|
|
650
724
|
targetId,
|
|
@@ -660,6 +734,7 @@ var useWalletPass = (props) => {
|
|
|
660
734
|
return {
|
|
661
735
|
newWalletRecommendList,
|
|
662
736
|
newUserIdentificationCodes,
|
|
737
|
+
newTransformList,
|
|
663
738
|
newSearchIdentificationCodeList,
|
|
664
739
|
newSelectedWallet
|
|
665
740
|
};
|
|
@@ -668,44 +743,21 @@ var useWalletPass = (props) => {
|
|
|
668
743
|
const handleConfirmEditAmount = (0, import_ahooks.useMemoizedFn)(
|
|
669
744
|
(value, id, data2) => {
|
|
670
745
|
if (value === 0) {
|
|
671
|
-
const filteredIds =
|
|
746
|
+
const filteredIds = selectedVoucherIds.filter(
|
|
672
747
|
(walletId) => walletId !== data2.id
|
|
673
748
|
);
|
|
674
749
|
handleSelectWallet(filteredIds);
|
|
675
750
|
return;
|
|
676
751
|
}
|
|
752
|
+
setLoading(true);
|
|
677
753
|
if (!confirmedEditAmountIdsRef.current.includes(data2.id)) {
|
|
678
754
|
confirmedEditAmountIdsRef.current.push(data2.id);
|
|
679
755
|
}
|
|
680
756
|
updateWalletDataById(data2.id, { edit_current_amount: value });
|
|
681
|
-
if (timeoutRef.current) {
|
|
682
|
-
clearTimeout(timeoutRef.current);
|
|
683
|
-
}
|
|
684
|
-
timeoutRef.current = setTimeout(() => {
|
|
685
|
-
handleFetchUserIdentificationCodes(selectedWalletIds);
|
|
686
|
-
timeoutRef.current = null;
|
|
687
|
-
});
|
|
688
757
|
}
|
|
689
758
|
);
|
|
690
759
|
const handleBeforeEditAmount = (0, import_ahooks.useMemoizedFn)(
|
|
691
760
|
async (value, index, data2) => {
|
|
692
|
-
const result = await paymentModule.wallet.searchIdentificationCodeAsync(
|
|
693
|
-
{
|
|
694
|
-
code: data2.code,
|
|
695
|
-
prepare_payments: paymentModule.wallet.formatWalletPassList2PreparePayments(
|
|
696
|
-
selectedWalletRef.current.filter(
|
|
697
|
-
(item) => item.id !== data2.id
|
|
698
|
-
)
|
|
699
|
-
)
|
|
700
|
-
},
|
|
701
|
-
{ noCache: true }
|
|
702
|
-
);
|
|
703
|
-
if (result.data && result.data.length > 0) {
|
|
704
|
-
const resultItem = result.data.find((item) => item.id === data2.id);
|
|
705
|
-
if (resultItem) {
|
|
706
|
-
updateWalletDataById(data2.id, resultItem);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
761
|
return true;
|
|
710
762
|
}
|
|
711
763
|
);
|
|
@@ -730,7 +782,6 @@ var useWalletPass = (props) => {
|
|
|
730
782
|
selectedDiscountList,
|
|
731
783
|
handleSelectDiscount,
|
|
732
784
|
customerName,
|
|
733
|
-
fetchWalletRecommendList,
|
|
734
785
|
fetchUserIdentificationCodes,
|
|
735
786
|
getCachedWalletRecommendList,
|
|
736
787
|
getCachedUserIdentificationCodes,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
.payment-modal-modal {
|
|
2
|
+
width: 880px!important;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.payment-modal-wrapper {
|
|
2
6
|
.pisell-lowcode-modal-close {
|
|
3
7
|
display: none;
|
|
@@ -42,10 +46,12 @@
|
|
|
42
46
|
overflow: hidden;
|
|
43
47
|
display: flex;
|
|
44
48
|
flex-direction: column;
|
|
49
|
+
width: 100%!important;
|
|
45
50
|
|
|
46
51
|
.pisell-lowcode-modal-body {
|
|
47
52
|
// JavaScript设置: maxHeight: '100%' (基于父元素)
|
|
48
53
|
overflow-y: auto;
|
|
54
|
+
width: 100%!important;
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
}
|