@pisell/private-materials 3.3.46 → 3.3.48
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/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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/es/components/appointmentBooking/components/Resource/index.js +19 -7
- package/es/components/appointmentBooking/components/Services/index.js +1 -1
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -4
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -0
- package/es/components/appointmentBooking/context.js +7 -3
- package/es/components/appointmentBooking/hooks.js +126 -67
- package/es/components/appointmentBooking/utils.js +6 -1
- package/es/components/booking/addons/index.js +31 -26
- package/es/components/booking/components/footer/amount.js +2 -2
- package/es/components/booking/components/footer/utils.d.ts +9 -0
- package/es/components/booking/components/footer/utils.js +32 -10
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service2/utils.d.ts +4 -1
- package/es/components/booking/info/service2/utils.js +21 -2
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +9 -6
- package/es/components/booking/info2/service/editService/index.js +56 -18
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +5 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +75 -26
- package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
- package/es/components/ticketBooking/index.js +1 -1
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/serve.js +98 -92
- package/es/components/ticketBooking/utils/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.js +33 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +7 -4
- package/lib/components/appointmentBooking/components/Services/index.js +1 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +4 -3
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -0
- package/lib/components/appointmentBooking/context.js +7 -3
- package/lib/components/appointmentBooking/hooks.js +70 -11
- package/lib/components/appointmentBooking/utils.js +2 -0
- package/lib/components/booking/addons/index.js +27 -21
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/utils.d.ts +9 -0
- package/lib/components/booking/components/footer/utils.js +24 -7
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +4 -1
- package/lib/components/booking/info/service2/utils.js +21 -2
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/addService/index.js +8 -5
- package/lib/components/booking/info2/service/editService/index.js +59 -23
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +6 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +74 -20
- package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/serve.js +6 -2
- package/lib/components/ticketBooking/utils/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.js +33 -0
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -3
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/types.d.ts +0 -31
- package/es/components/Sales/Cart/utils.d.ts +0 -23
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/utils.d.ts +0 -35
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Event/Detail.d.ts +0 -29
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -39
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Init/index.d.ts +0 -25
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Step/index.d.ts +0 -39
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/appointmentBooking/locales.d.ts +0 -354
- package/es/components/appointmentBooking/mock.d.ts +0 -627
- package/es/components/appointmentBooking/status.d.ts +0 -21
- package/es/components/appointmentBooking/type.d.ts +0 -17
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/forms/sendModal/index.d.ts +0 -27
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
- package/es/components/booking/forms/single/index.d.ts +0 -10
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/index.d.ts +0 -4
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/locales.d.ts +0 -813
- package/es/components/booking/materiels/contacts/index.d.ts +0 -15
- package/es/components/booking/materiels/holder/index.d.ts +0 -6
- package/es/components/booking/model.d.ts +0 -115
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/payments/index.d.ts +0 -9
- package/es/components/eftpos/index.d.ts +0 -46
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/locales.d.ts +0 -330
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
- package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -222
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/index.d.ts +0 -18
- package/es/components/login/index.d.ts +0 -8
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentList/index.d.ts +0 -19
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -286
- package/es/components/pay/toC/model.d.ts +0 -39
- package/es/components/pay/toC/serve.d.ts +0 -57
- package/es/components/pay/toC/utils.d.ts +0 -51
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -15
- package/es/components/productExtension/index.d.ts +0 -7
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/productSelect/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/ruleSetting/index.d.ts +0 -9
- package/es/components/ruleSetting/server.d.ts +0 -4
- package/es/components/schedules/index.d.ts +0 -3
- package/es/components/schedules/schedules/utils.d.ts +0 -72
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/subTotal/index.d.ts +0 -22
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/taxSelect/index.d.ts +0 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/locales.d.ts +0 -96
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/index.d.ts +0 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/walletList/index.d.ts +0 -28
- package/es/components/walletList/model.d.ts +0 -6
- package/es/components/walletList/serve.d.ts +0 -12
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useLoginUser.d.ts +0 -2
- package/es/index.d.ts +0 -45
- package/es/utils/date.d.ts +0 -11
- package/es/utils/index.d.ts +0 -23
- package/es/utils/locales.d.ts +0 -1
- package/es/utils/tasks/index.d.ts +0 -16
- package/es/utils/tasks/type.d.ts +0 -4
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -3
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/types.d.ts +0 -31
- package/lib/components/Sales/Cart/utils.d.ts +0 -23
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/utils.d.ts +0 -35
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Event/Detail.d.ts +0 -29
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -39
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Init/index.d.ts +0 -25
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Step/index.d.ts +0 -39
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.d.ts +0 -354
- package/lib/components/appointmentBooking/mock.d.ts +0 -627
- package/lib/components/appointmentBooking/status.d.ts +0 -21
- package/lib/components/appointmentBooking/type.d.ts +0 -17
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -9
- package/lib/components/booking/forms/single/index.d.ts +0 -10
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/index.d.ts +0 -4
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/locales.d.ts +0 -813
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
- package/lib/components/booking/materiels/holder/index.d.ts +0 -6
- package/lib/components/booking/model.d.ts +0 -115
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/payments/index.d.ts +0 -9
- package/lib/components/eftpos/index.d.ts +0 -46
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/locales.d.ts +0 -330
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -3
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -222
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/index.d.ts +0 -18
- package/lib/components/login/index.d.ts +0 -8
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentList/index.d.ts +0 -19
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -18
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +0 -16
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +0 -17
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -7
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +0 -21
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -286
- package/lib/components/pay/toC/model.d.ts +0 -39
- package/lib/components/pay/toC/serve.d.ts +0 -57
- package/lib/components/pay/toC/utils.d.ts +0 -51
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -15
- package/lib/components/productExtension/index.d.ts +0 -7
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/ruleSetting/index.d.ts +0 -9
- package/lib/components/ruleSetting/server.d.ts +0 -4
- package/lib/components/schedules/index.d.ts +0 -3
- package/lib/components/schedules/schedules/utils.d.ts +0 -72
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/subTotal/index.d.ts +0 -22
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/taxSelect/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/locales.d.ts +0 -96
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/index.d.ts +0 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/components/walletList/model.d.ts +0 -6
- package/lib/components/walletList/serve.d.ts +0 -12
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useLoginUser.d.ts +0 -2
- package/lib/index.d.ts +0 -45
- package/lib/utils/date.d.ts +0 -11
- package/lib/utils/index.d.ts +0 -23
- package/lib/utils/locales.d.ts +0 -1
- package/lib/utils/tasks/index.d.ts +0 -16
- package/lib/utils/tasks/type.d.ts +0 -4
- /package/es/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
- /package/lib/components/{booking/components/footer/AppointmentProductModal → ticketBooking/components/notAvailable}/index.d.ts +0 -0
|
@@ -197,6 +197,9 @@ var CartItem = function CartItem(_ref) {
|
|
|
197
197
|
};
|
|
198
198
|
var products = useMemo(function () {
|
|
199
199
|
if (!(carts !== null && carts !== void 0 && carts.length)) return [];
|
|
200
|
+
carts.forEach(function (item) {
|
|
201
|
+
item.isShowChangeHolder = !appointmentBooking.isTargetCartIdNormalProduct(item === null || item === void 0 ? void 0 : item._id);
|
|
202
|
+
});
|
|
200
203
|
if ((currentSelectedResources === null || currentSelectedResources === void 0 ? void 0 : currentSelectedResources.length) > 0) {
|
|
201
204
|
var newCarts = carts.map(function (item) {
|
|
202
205
|
var currentResourceData = currentSelectedResources.find(function (resource) {
|
|
@@ -125,8 +125,11 @@ var Resource = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
125
125
|
return currentAppointmentBoard(currentStepParams.key, resources, appointmentBooking);
|
|
126
126
|
}, [currentStepParams.key, resources]);
|
|
127
127
|
var renderLists = useMemo(function () {
|
|
128
|
-
//
|
|
129
|
-
|
|
128
|
+
// 如果购物车有多个预约类商品,则不显示左侧内容
|
|
129
|
+
var appointmentCarts = carts.filter(function (n) {
|
|
130
|
+
return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
|
|
131
|
+
});
|
|
132
|
+
if (appointmentCarts.length > 1 || !(appointmentCarts !== null && appointmentCarts !== void 0 && appointmentCarts.length)) {
|
|
130
133
|
return [];
|
|
131
134
|
}
|
|
132
135
|
return currentRenderLists(resources, appointmentBoard === null || appointmentBoard === void 0 ? void 0 : appointmentBoard.form_code);
|
|
@@ -190,16 +193,25 @@ var Resource = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
190
193
|
var _onClick = function onClick(e) {
|
|
191
194
|
setSelectedResource(e.id);
|
|
192
195
|
if (e.id) {
|
|
193
|
-
var _carts
|
|
196
|
+
var _carts$index;
|
|
197
|
+
// 能够被点击的情况
|
|
198
|
+
// 1. 购物车里只有一个预约类商品
|
|
199
|
+
// 2. 购物车里有多个商品,但只有一个预约类商品
|
|
200
|
+
var index = carts.findIndex(function (n) {
|
|
201
|
+
return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
|
|
202
|
+
});
|
|
194
203
|
return appointmentBooking.updateCart({
|
|
195
|
-
_id: carts === null || carts === void 0 || (_carts$ = carts[
|
|
196
|
-
resources: updateCartResources(carts === null || carts === void 0 ? void 0 : carts[
|
|
204
|
+
_id: carts === null || carts === void 0 || (_carts$index = carts[index]) === null || _carts$index === void 0 ? void 0 : _carts$index._id,
|
|
205
|
+
resources: updateCartResources(carts === null || carts === void 0 ? void 0 : carts[index], e)
|
|
197
206
|
});
|
|
198
207
|
}
|
|
199
208
|
};
|
|
200
209
|
useEffect(function () {
|
|
201
|
-
var _carts$
|
|
202
|
-
var
|
|
210
|
+
var _carts$index2;
|
|
211
|
+
var index = carts.findIndex(function (n) {
|
|
212
|
+
return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
|
|
213
|
+
});
|
|
214
|
+
var selectedResource = carts === null || carts === void 0 || (_carts$index2 = carts[index]) === null || _carts$index2 === void 0 || (_carts$index2 = _carts$index2._origin) === null || _carts$index2 === void 0 || (_carts$index2 = _carts$index2.resources) === null || _carts$index2 === void 0 ? void 0 : _carts$index2.find(function (item) {
|
|
203
215
|
return (item === null || item === void 0 ? void 0 : item.form_id) === (appointmentBoard === null || appointmentBoard === void 0 ? void 0 : appointmentBoard.form_id);
|
|
204
216
|
});
|
|
205
217
|
setSelectedResource((selectedResource === null || selectedResource === void 0 ? void 0 : selectedResource.id) || 0);
|
|
@@ -162,7 +162,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
162
162
|
activeStatus = resources.find(function (item) {
|
|
163
163
|
return item.status === 1;
|
|
164
164
|
});
|
|
165
|
-
if (activeStatus) {
|
|
165
|
+
if (!(!activeStatus && !appointmentBooking.isTargetNormalProduct(data === null || data === void 0 ? void 0 : data.origin))) {
|
|
166
166
|
_context.next = 24;
|
|
167
167
|
break;
|
|
168
168
|
}
|
|
@@ -68,11 +68,14 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
68
68
|
};
|
|
69
69
|
}();
|
|
70
70
|
useEffect(function () {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
var appoimentBookingProductCart = carts.filter(function (item) {
|
|
72
|
+
return !appointmentBooking.isTargetCartIdNormalProduct(item === null || item === void 0 ? void 0 : item._id);
|
|
73
|
+
});
|
|
74
|
+
if ((times === null || times === void 0 ? void 0 : times.length) > 0 && (appoimentBookingProductCart === null || appoimentBookingProductCart === void 0 ? void 0 : appoimentBookingProductCart.length) > 0) {
|
|
75
|
+
var _appoimentBookingProd, _times$, _appoimentBookingProd2;
|
|
76
|
+
var startTime = (appoimentBookingProductCart === null || appoimentBookingProductCart === void 0 || (_appoimentBookingProd = appoimentBookingProductCart[0]) === null || _appoimentBookingProd === void 0 ? void 0 : _appoimentBookingProd.start_time) || (times === null || times === void 0 || (_times$ = times[0]) === null || _times$ === void 0 ? void 0 : _times$.start_time);
|
|
74
77
|
setSelectedResource(startTime);
|
|
75
|
-
if (
|
|
78
|
+
if (appoimentBookingProductCart !== null && appoimentBookingProductCart !== void 0 && (_appoimentBookingProd2 = appoimentBookingProductCart[0]) !== null && _appoimentBookingProd2 !== void 0 && _appoimentBookingProd2.start_time) return;
|
|
76
79
|
|
|
77
80
|
// 如果没有选择时间,则默认选中第一个时间
|
|
78
81
|
getAutoSelect(times === null || times === void 0 ? void 0 : times[0]);
|
|
@@ -97,6 +97,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
97
97
|
var _item$_origin;
|
|
98
98
|
return {
|
|
99
99
|
_id: item._id,
|
|
100
|
+
quantity: item.num,
|
|
100
101
|
bundle: item._bundleOrigin,
|
|
101
102
|
options: item._optionsOrigin,
|
|
102
103
|
product: _objectSpread({}, item._productOrigin),
|
|
@@ -119,6 +120,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
119
120
|
batchUpdateCart(result.productList);
|
|
120
121
|
});
|
|
121
122
|
pisellos.effects.on('appointmentBooking_cart:onAddItem', onCartChange);
|
|
123
|
+
pisellos.effects.on('appointmentBooking_cart:onUpdateQuotationPrice', onCartChange);
|
|
122
124
|
pisellos.effects.on('appointmentBooking_cart:onRemoveItem', onCartChange);
|
|
123
125
|
pisellos.effects.on(ShopDiscountHooks.onDiscountListChange, function (discount) {
|
|
124
126
|
console.log(discount, 'discountChange');
|
|
@@ -166,11 +166,15 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
|
|
|
166
166
|
if (!(carts !== null && carts !== void 0 && carts.length) || !(resources !== null && resources !== void 0 && resources.length)) {
|
|
167
167
|
return setCurrentSelectedResources(null);
|
|
168
168
|
}
|
|
169
|
-
var _currentSelectedResources =
|
|
170
|
-
|
|
169
|
+
var _currentSelectedResources = [];
|
|
170
|
+
carts.forEach(function (item) {
|
|
171
|
+
if (appointmentBooking.isTargetCartIdNormalProduct(item === null || item === void 0 ? void 0 : item._id)) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
_currentSelectedResources.push({
|
|
171
175
|
_id: item === null || item === void 0 ? void 0 : item._id,
|
|
172
176
|
currentSelectedResource: getCartCurrentResourceData(item, currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.key, resources)
|
|
173
|
-
};
|
|
177
|
+
});
|
|
174
178
|
});
|
|
175
179
|
setCurrentSelectedResources(_currentSelectedResources);
|
|
176
180
|
|
|
@@ -140,17 +140,74 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
140
140
|
var _nextStep, _nextStep2, _nextStep3;
|
|
141
141
|
var stepList = appointmentBooking.getStepList() || [];
|
|
142
142
|
var currentKey = currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.key;
|
|
143
|
-
var nextStep = stepList[(currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.index) + 1];
|
|
144
143
|
var currentSelectedResources = appointmentBooking.getOtherData('current_selected_resources');
|
|
145
144
|
|
|
145
|
+
// 先确定点击时的步骤,如果当前步骤是选择服务
|
|
146
|
+
if (!isRetailTemplate && currentKey === "select-service") {
|
|
147
|
+
var _appointmentBooking$o, _stepList, _stepList2;
|
|
148
|
+
var _ref3 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.productModuleParams) || {},
|
|
149
|
+
bookingProcess = _ref3.bookingProcess;
|
|
150
|
+
var isDateSelectedFirst = bookingProcess === "date_first";
|
|
151
|
+
var hasResourceStep = (_stepList = stepList) === null || _stepList === void 0 ? void 0 : _stepList.find(function (item) {
|
|
152
|
+
return (item === null || item === void 0 ? void 0 : item.key) === "select-resource";
|
|
153
|
+
});
|
|
154
|
+
var hasSelectGuestStep = (_stepList2 = stepList) === null || _stepList2 === void 0 || (_stepList2 = _stepList2.find(function (item) {
|
|
155
|
+
return (item === null || item === void 0 ? void 0 : item.key) === "select-guest";
|
|
156
|
+
})) === null || _stepList2 === void 0 ? void 0 : _stepList2.key;
|
|
157
|
+
// 判断购物车里是否全是是普通商品
|
|
158
|
+
var isAllNormalProduct = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.isCartAllNormalProducts();
|
|
159
|
+
if (isAllNormalProduct) {
|
|
160
|
+
removeStep("select-resource");
|
|
161
|
+
removeStep("select-time");
|
|
162
|
+
removeStep('fill-form');
|
|
163
|
+
if (!isDateSelectedFirst) {
|
|
164
|
+
removeStep("select-date");
|
|
165
|
+
}
|
|
166
|
+
} else if (!hasResourceStep) {
|
|
167
|
+
// 如果不全是普通商品,并且还没有选择资源步骤,证明之前被删除过,要给她加回来
|
|
168
|
+
// 判断当前步骤里有没有添加预约人,如果有的话则应该是在添加预约人之后添加步骤
|
|
169
|
+
var targetKey = hasSelectGuestStep ? hasSelectGuestStep : "select-service";
|
|
170
|
+
var isHasDurationProduct = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.isCartHasDurationProduct();
|
|
171
|
+
// 如果购物车里有 duration 商品(目前来说,只能是纯 duration 商品)
|
|
172
|
+
if (isHasDurationProduct) {
|
|
173
|
+
// 如果是先选商品,则添加日期、资源、时间步骤
|
|
174
|
+
if (!isDateSelectedFirst) {
|
|
175
|
+
appointmentBooking.addStep({
|
|
176
|
+
key: "select-date",
|
|
177
|
+
description: locales.getText("pisell2.appointment.select.date")
|
|
178
|
+
}, targetKey);
|
|
179
|
+
targetKey = "select-date";
|
|
180
|
+
}
|
|
181
|
+
// 如果是先选日期,则添加资源、时间
|
|
182
|
+
appointmentBooking.addStep({
|
|
183
|
+
key: "select-resource",
|
|
184
|
+
description: locales.getText("pisell2.appointment.select.resource")
|
|
185
|
+
}, targetKey);
|
|
186
|
+
targetKey = "select-resource";
|
|
187
|
+
appointmentBooking.addStep({
|
|
188
|
+
key: "select-time",
|
|
189
|
+
description: locales.getText("pisell2.appointment.select.time")
|
|
190
|
+
}, targetKey);
|
|
191
|
+
} else {
|
|
192
|
+
// 如果购物车里是session 商品,则只添加选择资源步骤
|
|
193
|
+
appointmentBooking.addStep({
|
|
194
|
+
key: "select-resource",
|
|
195
|
+
description: locales.getText("pisell2.appointment.select.resource")
|
|
196
|
+
}, targetKey);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
stepList = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.getStepList()) || [];
|
|
200
|
+
}
|
|
201
|
+
var nextStep = stepList[(currentStepParams === null || currentStepParams === void 0 ? void 0 : currentStepParams.index) + 1];
|
|
202
|
+
|
|
146
203
|
// 判断选定的日期是否存在可用的预约
|
|
147
|
-
if (((_nextStep = nextStep) === null || _nextStep === void 0 ? void 0 : _nextStep.key) === 'select-resource') {
|
|
204
|
+
if (!isRetailTemplate && ((_nextStep = nextStep) === null || _nextStep === void 0 ? void 0 : _nextStep.key) === 'select-resource') {
|
|
148
205
|
var result = appointmentBooking.checkResourceListForDate();
|
|
149
206
|
if (!result) {
|
|
150
207
|
return Toast(locales.getText('pisell2.appointment.unuse.date'));
|
|
151
208
|
}
|
|
152
209
|
}
|
|
153
|
-
if (currentKey !== null && currentKey !== void 0 && currentKey.startsWith('select-resource')) {
|
|
210
|
+
if (!isRetailTemplate && currentKey !== null && currentKey !== void 0 && currentKey.startsWith('select-resource')) {
|
|
154
211
|
var _currentSelectedResou;
|
|
155
212
|
// 1. 检测购物车中是否选择了资源
|
|
156
213
|
var _checkAndMarkCartRend = checkAndMarkCartRenderError(currentSelectedResources, appointmentBooking, utils),
|
|
@@ -161,7 +218,6 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
161
218
|
scrollToFirstErrorCard();
|
|
162
219
|
return;
|
|
163
220
|
}
|
|
164
|
-
|
|
165
221
|
// 2. 插入表单步骤
|
|
166
222
|
currentSelectedResources === null || currentSelectedResources === void 0 || currentSelectedResources.forEach(function (cart) {
|
|
167
223
|
var _selectedResource$ren, _selectedResource$ren2;
|
|
@@ -199,8 +255,8 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
199
255
|
|
|
200
256
|
// 如果有下一个资源数据,则插入下一个资源步骤
|
|
201
257
|
if (nextResource) {
|
|
202
|
-
var
|
|
203
|
-
var beforeKey = (
|
|
258
|
+
var _stepList3;
|
|
259
|
+
var beforeKey = (_stepList3 = stepList[stepList.length - 2]) === null || _stepList3 === void 0 ? void 0 : _stepList3.key;
|
|
204
260
|
appointmentBooking.addStep({
|
|
205
261
|
key: resourceKey,
|
|
206
262
|
description: ''
|
|
@@ -224,10 +280,13 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
224
280
|
setLoading(false);
|
|
225
281
|
|
|
226
282
|
// 零售订单不需要验证holder
|
|
227
|
-
if (isRetailTemplate) {
|
|
283
|
+
if (isRetailTemplate || appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isCartAllNormalProducts()) {
|
|
228
284
|
return appointmentBooking.next();
|
|
229
285
|
}
|
|
230
|
-
var
|
|
286
|
+
var appoimentCarts = carts.filter(function (n) {
|
|
287
|
+
return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
|
|
288
|
+
});
|
|
289
|
+
var _checkAndGoNext = checkAndGoNext(isFormSubject, checkAccount, appoimentCarts),
|
|
231
290
|
hasError = _checkAndGoNext.hasError;
|
|
232
291
|
setIsErrorHolder(hasError);
|
|
233
292
|
if (hasError) {
|
|
@@ -246,7 +305,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
246
305
|
|
|
247
306
|
// 检测是否登录
|
|
248
307
|
var checkLogin = /*#__PURE__*/function () {
|
|
249
|
-
var
|
|
308
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
250
309
|
var accountLists;
|
|
251
310
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
252
311
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -290,7 +349,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
290
349
|
}, _callee2);
|
|
291
350
|
}));
|
|
292
351
|
return function checkLogin() {
|
|
293
|
-
return
|
|
352
|
+
return _ref4.apply(this, arguments);
|
|
294
353
|
};
|
|
295
354
|
}();
|
|
296
355
|
|
|
@@ -334,17 +393,17 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
334
393
|
* @Date: 2025-04-15 11:12
|
|
335
394
|
*/
|
|
336
395
|
export var useAppointmentBookingProduct = function useAppointmentBookingProduct() {
|
|
337
|
-
var
|
|
338
|
-
appointmentBooking =
|
|
339
|
-
var
|
|
340
|
-
productModuleParams =
|
|
341
|
-
var
|
|
342
|
-
bookingProcess =
|
|
396
|
+
var _ref5 = useAppointmentBookingContext(),
|
|
397
|
+
appointmentBooking = _ref5.appointmentBooking;
|
|
398
|
+
var _ref6 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
|
|
399
|
+
productModuleParams = _ref6.productModuleParams;
|
|
400
|
+
var _ref7 = productModuleParams || {},
|
|
401
|
+
bookingProcess = _ref7.bookingProcess;
|
|
343
402
|
|
|
344
403
|
// 获取商品列表
|
|
345
404
|
var getProducts = /*#__PURE__*/function () {
|
|
346
|
-
var
|
|
347
|
-
var _dates$, dates,
|
|
405
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
406
|
+
var _dates$, dates, _ref9, _productModuleParams, _productList, _ref10, productModuleParams, productList;
|
|
348
407
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
349
408
|
while (1) switch (_context3.prev = _context3.next) {
|
|
350
409
|
case 0:
|
|
@@ -362,7 +421,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
|
|
|
362
421
|
}
|
|
363
422
|
return _context3.abrupt("return");
|
|
364
423
|
case 6:
|
|
365
|
-
|
|
424
|
+
_ref9 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, _productModuleParams = _ref9.productModuleParams;
|
|
366
425
|
_context3.next = 9;
|
|
367
426
|
return appointmentBooking.loadProductByScheduleDate(_objectSpread({
|
|
368
427
|
date: (_dates$ = dates[0]) === null || _dates$ === void 0 ? void 0 : _dates$.date
|
|
@@ -372,7 +431,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
|
|
|
372
431
|
return _context3.abrupt("return", _productList);
|
|
373
432
|
case 11:
|
|
374
433
|
// 先选商品
|
|
375
|
-
|
|
434
|
+
_ref10 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {}, productModuleParams = _ref10.productModuleParams;
|
|
376
435
|
_context3.next = 14;
|
|
377
436
|
return appointmentBooking.loadProducts(productModuleParams);
|
|
378
437
|
case 14:
|
|
@@ -385,13 +444,13 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
|
|
|
385
444
|
}, _callee3);
|
|
386
445
|
}));
|
|
387
446
|
return function getProducts() {
|
|
388
|
-
return
|
|
447
|
+
return _ref8.apply(this, arguments);
|
|
389
448
|
};
|
|
390
449
|
}();
|
|
391
450
|
|
|
392
451
|
// 检测商品类型
|
|
393
452
|
var checkProductType = /*#__PURE__*/function () {
|
|
394
|
-
var
|
|
453
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(productId) {
|
|
395
454
|
var result;
|
|
396
455
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
397
456
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -408,7 +467,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
|
|
|
408
467
|
}, _callee4);
|
|
409
468
|
}));
|
|
410
469
|
return function checkProductType(_x2) {
|
|
411
|
-
return
|
|
470
|
+
return _ref11.apply(this, arguments);
|
|
412
471
|
};
|
|
413
472
|
}();
|
|
414
473
|
return {
|
|
@@ -425,18 +484,18 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
|
|
|
425
484
|
* @Date: 2025-04-15 11:12
|
|
426
485
|
*/
|
|
427
486
|
export var useAppointmentBookingCart = function useAppointmentBookingCart() {
|
|
428
|
-
var _appointmentBooking$
|
|
487
|
+
var _appointmentBooking$o2;
|
|
429
488
|
var pisellOS = usePisellOS();
|
|
430
489
|
var utils = contextUtils();
|
|
431
|
-
var
|
|
432
|
-
appointmentBooking =
|
|
433
|
-
setCarts =
|
|
434
|
-
setSummary =
|
|
435
|
-
setIsAgreeDepositPolicy =
|
|
436
|
-
var
|
|
437
|
-
bookingSubject =
|
|
490
|
+
var _ref12 = useAppointmentBookingContext(),
|
|
491
|
+
appointmentBooking = _ref12.appointmentBooking,
|
|
492
|
+
setCarts = _ref12.setCarts,
|
|
493
|
+
setSummary = _ref12.setSummary,
|
|
494
|
+
setIsAgreeDepositPolicy = _ref12.setIsAgreeDepositPolicy;
|
|
495
|
+
var _ref13 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
|
|
496
|
+
bookingSubject = _ref13.bookingSubject;
|
|
438
497
|
var getCartAndSummary = /*#__PURE__*/function () {
|
|
439
|
-
var
|
|
498
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
440
499
|
var _utils$storage2;
|
|
441
500
|
var locale, symbol, carts, accountLists, newCarts, summary;
|
|
442
501
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -485,7 +544,7 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
|
|
|
485
544
|
}, _callee5);
|
|
486
545
|
}));
|
|
487
546
|
return function getCartAndSummary() {
|
|
488
|
-
return
|
|
547
|
+
return _ref14.apply(this, arguments);
|
|
489
548
|
};
|
|
490
549
|
}();
|
|
491
550
|
useEffect(function () {
|
|
@@ -516,8 +575,8 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
|
|
|
516
575
|
var utils = contextUtils();
|
|
517
576
|
var isLogin = !!(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));
|
|
518
577
|
var openLoginModal = function openLoginModal(params) {
|
|
519
|
-
var
|
|
520
|
-
callback =
|
|
578
|
+
var _ref16 = params || {},
|
|
579
|
+
callback = _ref16.callback;
|
|
521
580
|
utils.action({
|
|
522
581
|
type: 'pisell1.login',
|
|
523
582
|
data: {
|
|
@@ -540,7 +599,7 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
|
|
|
540
599
|
* @Date: 2025-04-15 11:15
|
|
541
600
|
*/
|
|
542
601
|
export var useAppointmentBookingAccount = function useAppointmentBookingAccount() {
|
|
543
|
-
var _appointmentBooking$
|
|
602
|
+
var _appointmentBooking$o3;
|
|
544
603
|
var utils = contextUtils();
|
|
545
604
|
var pisellOS = usePisellOS();
|
|
546
605
|
var appointmentBooking = useAppointmentBooking();
|
|
@@ -548,13 +607,13 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
548
607
|
_useState2 = _slicedToArray(_useState, 2),
|
|
549
608
|
accountLists = _useState2[0],
|
|
550
609
|
setAccountLists = _useState2[1];
|
|
551
|
-
var
|
|
552
|
-
bookingSubject =
|
|
610
|
+
var _ref17 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {},
|
|
611
|
+
bookingSubject = _ref17.bookingSubject;
|
|
553
612
|
var form_id = bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.form_id;
|
|
554
613
|
|
|
555
614
|
// 获取账户列表数据
|
|
556
615
|
var getAccountLists = /*#__PURE__*/function () {
|
|
557
|
-
var
|
|
616
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
558
617
|
var data;
|
|
559
618
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
560
619
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -571,13 +630,13 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
571
630
|
}, _callee7);
|
|
572
631
|
}));
|
|
573
632
|
return function getAccountLists() {
|
|
574
|
-
return
|
|
633
|
+
return _ref18.apply(this, arguments);
|
|
575
634
|
};
|
|
576
635
|
}();
|
|
577
636
|
useEffect(function () {
|
|
578
637
|
getAccountLists();
|
|
579
638
|
pisellOS.effects.on('appointmentBooking_accountList:changed', /*#__PURE__*/function () {
|
|
580
|
-
var
|
|
639
|
+
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(res) {
|
|
581
640
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
582
641
|
while (1) switch (_context8.prev = _context8.next) {
|
|
583
642
|
case 0:
|
|
@@ -591,14 +650,14 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
591
650
|
}, _callee8);
|
|
592
651
|
}));
|
|
593
652
|
return function (_x3) {
|
|
594
|
-
return
|
|
653
|
+
return _ref19.apply(this, arguments);
|
|
595
654
|
};
|
|
596
655
|
}());
|
|
597
656
|
}, []);
|
|
598
657
|
|
|
599
658
|
// 获取表单数据
|
|
600
659
|
var getHolders = /*#__PURE__*/function () {
|
|
601
|
-
var
|
|
660
|
+
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
602
661
|
var _utils$getStore$getSt;
|
|
603
662
|
var shop_id, customer, params, data, newData;
|
|
604
663
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
@@ -638,13 +697,13 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
638
697
|
}, _callee9);
|
|
639
698
|
}));
|
|
640
699
|
return function getHolders() {
|
|
641
|
-
return
|
|
700
|
+
return _ref20.apply(this, arguments);
|
|
642
701
|
};
|
|
643
702
|
}();
|
|
644
703
|
|
|
645
704
|
// 添加账户
|
|
646
705
|
var addAccount = /*#__PURE__*/function () {
|
|
647
|
-
var
|
|
706
|
+
var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(val, type) {
|
|
648
707
|
var customer, result;
|
|
649
708
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
650
709
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -665,7 +724,7 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
665
724
|
}, _callee10);
|
|
666
725
|
}));
|
|
667
726
|
return function addAccount(_x4, _x5) {
|
|
668
|
-
return
|
|
727
|
+
return _ref21.apply(this, arguments);
|
|
669
728
|
};
|
|
670
729
|
}();
|
|
671
730
|
|
|
@@ -690,12 +749,12 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
690
749
|
* @Date: 2025-04-15 11:29
|
|
691
750
|
*/
|
|
692
751
|
export var useAppointmentBookingResource = function useAppointmentBookingResource() {
|
|
693
|
-
var
|
|
694
|
-
appointmentBooking =
|
|
695
|
-
setResources =
|
|
696
|
-
setTimes =
|
|
697
|
-
var
|
|
698
|
-
resourceSort =
|
|
752
|
+
var _ref22 = useAppointmentBookingContext(),
|
|
753
|
+
appointmentBooking = _ref22.appointmentBooking,
|
|
754
|
+
setResources = _ref22.setResources,
|
|
755
|
+
setTimes = _ref22.setTimes;
|
|
756
|
+
var _ref23 = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
|
|
757
|
+
resourceSort = _ref23.resourceSort;
|
|
699
758
|
|
|
700
759
|
// 设置资源列表
|
|
701
760
|
var getResourceList = function getResourceList() {
|
|
@@ -719,7 +778,7 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
719
778
|
|
|
720
779
|
// 设置时间切片
|
|
721
780
|
var getResourceTimeSlot = /*#__PURE__*/function () {
|
|
722
|
-
var
|
|
781
|
+
var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(index) {
|
|
723
782
|
var _getResourceList, resourceCodes, code, data;
|
|
724
783
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
725
784
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -738,7 +797,7 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
738
797
|
}, _callee11);
|
|
739
798
|
}));
|
|
740
799
|
return function getResourceTimeSlot(_x6) {
|
|
741
|
-
return
|
|
800
|
+
return _ref24.apply(this, arguments);
|
|
742
801
|
};
|
|
743
802
|
}();
|
|
744
803
|
return {
|
|
@@ -755,8 +814,8 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
755
814
|
* @Date: 2025-04-21 11:47
|
|
756
815
|
*/
|
|
757
816
|
export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
758
|
-
var
|
|
759
|
-
currentStepParams =
|
|
817
|
+
var _ref25 = useAppointmentBookingContext(),
|
|
818
|
+
currentStepParams = _ref25.currentStepParams;
|
|
760
819
|
var _useAppointmentBookin5 = useAppointmentBookingResource(),
|
|
761
820
|
getResourceList = _useAppointmentBookin5.getResourceList;
|
|
762
821
|
var _useAppointmentBookin6 = useAppointmentBookingSetting(),
|
|
@@ -765,7 +824,7 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
765
824
|
var _useAppointmentBookin7 = useAppointmentBookingStep(),
|
|
766
825
|
nextStep = _useAppointmentBookin7.nextStep;
|
|
767
826
|
var checkSkipResourceStep = /*#__PURE__*/function () {
|
|
768
|
-
var
|
|
827
|
+
var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
769
828
|
var _getResourceList2, resources, accountLists, _currentAppointmentBo, isSystem, isSkip, form_code, renderLists, _isSkip;
|
|
770
829
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
771
830
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -821,7 +880,7 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
821
880
|
}, _callee12, null, [[0, 22]]);
|
|
822
881
|
}));
|
|
823
882
|
return function checkSkipResourceStep() {
|
|
824
|
-
return
|
|
883
|
+
return _ref26.apply(this, arguments);
|
|
825
884
|
};
|
|
826
885
|
}();
|
|
827
886
|
return {
|
|
@@ -837,15 +896,15 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
837
896
|
* @Date: 2025-04-24 18:15
|
|
838
897
|
*/
|
|
839
898
|
export var useAppointmentBookingSetting = function useAppointmentBookingSetting() {
|
|
840
|
-
var _appointmentBooking$
|
|
899
|
+
var _appointmentBooking$o4, _appointmentBooking$o5;
|
|
841
900
|
var utils = contextUtils();
|
|
842
|
-
var
|
|
843
|
-
appointmentBooking =
|
|
844
|
-
var
|
|
845
|
-
bookingProcess =
|
|
846
|
-
bookingSubject =
|
|
847
|
-
customPageId =
|
|
848
|
-
channel =
|
|
901
|
+
var _ref27 = useAppointmentBookingContext(),
|
|
902
|
+
appointmentBooking = _ref27.appointmentBooking;
|
|
903
|
+
var _ref28 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o4 = appointmentBooking.otherParams) === null || _appointmentBooking$o4 === void 0 ? void 0 : _appointmentBooking$o4.productModuleParams) || {},
|
|
904
|
+
bookingProcess = _ref28.bookingProcess,
|
|
905
|
+
bookingSubject = _ref28.bookingSubject,
|
|
906
|
+
customPageId = _ref28.customPageId,
|
|
907
|
+
channel = _ref28.channel;
|
|
849
908
|
|
|
850
909
|
// 设置缓存
|
|
851
910
|
var setOtherData = function setOtherData(key, val) {
|
|
@@ -865,7 +924,7 @@ export var useAppointmentBookingSetting = function useAppointmentBookingSetting(
|
|
|
865
924
|
// 主体是否是表单
|
|
866
925
|
isFormSubject: (bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.type) === 'form',
|
|
867
926
|
// 是否是零售模版
|
|
868
|
-
isRetailTemplate: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$
|
|
927
|
+
isRetailTemplate: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o5 = appointmentBooking.otherParams) === null || _appointmentBooking$o5 === void 0 ? void 0 : _appointmentBooking$o5.isRetailTemplate) || false,
|
|
869
928
|
customPageId: customPageId,
|
|
870
929
|
channel: channel,
|
|
871
930
|
bookingSubject: bookingSubject,
|
|
@@ -600,8 +600,12 @@ export var getResourceTitle = function getResourceTitle(appointmentBooking, code
|
|
|
600
600
|
*/
|
|
601
601
|
export var checkAndMarkCartRenderError = function checkAndMarkCartRenderError(carts, appointmentBooking, utils) {
|
|
602
602
|
try {
|
|
603
|
+
var _carts;
|
|
603
604
|
var hasError = false;
|
|
604
|
-
|
|
605
|
+
carts = carts.filter(function (n) {
|
|
606
|
+
return !appointmentBooking.isTargetCartIdNormalProduct(n._id);
|
|
607
|
+
});
|
|
608
|
+
var updatedCartList = (_carts = carts) === null || _carts === void 0 ? void 0 : _carts.map(function (cart) {
|
|
605
609
|
var currentResource = cart === null || cart === void 0 ? void 0 : cart.currentSelectedResource;
|
|
606
610
|
if (!(currentResource !== null && currentResource !== void 0 && currentResource.renderItem)) {
|
|
607
611
|
hasError = true;
|
|
@@ -623,6 +627,7 @@ export var checkAndMarkCartRenderError = function checkAndMarkCartRenderError(ca
|
|
|
623
627
|
updatedCartList: updatedCartList
|
|
624
628
|
};
|
|
625
629
|
} catch (error) {
|
|
630
|
+
console.error(error);
|
|
626
631
|
return {};
|
|
627
632
|
}
|
|
628
633
|
};
|