@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
|
@@ -122,7 +122,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
122
122
|
} else {
|
|
123
123
|
const resources = ((_b = (_a = data == null ? void 0 : data.origin) == null ? void 0 : _a.product_resource) == null ? void 0 : _b.resources) || [];
|
|
124
124
|
const activeStatus = resources.find((item2) => item2.status === 1);
|
|
125
|
-
if (!activeStatus) {
|
|
125
|
+
if (!activeStatus && !appointmentBooking.isTargetNormalProduct(data == null ? void 0 : data.origin)) {
|
|
126
126
|
return (0, import_utils2.Toast)(
|
|
127
127
|
import_utils.locales.getText("pisell2.appointment.no.available.service")
|
|
128
128
|
);
|
|
@@ -69,10 +69,11 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
|
|
|
69
69
|
};
|
|
70
70
|
(0, import_react.useEffect)(() => {
|
|
71
71
|
var _a, _b, _c;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
let appoimentBookingProductCart = carts.filter((item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id));
|
|
73
|
+
if ((times == null ? void 0 : times.length) > 0 && (appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart.length) > 0) {
|
|
74
|
+
const startTime = ((_a = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
|
|
74
75
|
setSelectedResource(startTime);
|
|
75
|
-
if ((_c =
|
|
76
|
+
if ((_c = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _c.start_time) return;
|
|
76
77
|
getAutoSelect(times == null ? void 0 : times[0]);
|
|
77
78
|
}
|
|
78
79
|
}, [times, carts]);
|
|
@@ -95,6 +95,7 @@ var VoucherCard = (props) => {
|
|
|
95
95
|
var _a3, _b2;
|
|
96
96
|
return {
|
|
97
97
|
_id: item._id,
|
|
98
|
+
quantity: item.num,
|
|
98
99
|
bundle: item._bundleOrigin,
|
|
99
100
|
options: item._optionsOrigin,
|
|
100
101
|
product: {
|
|
@@ -120,6 +121,7 @@ var VoucherCard = (props) => {
|
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
pisellos.effects.on("appointmentBooking_cart:onAddItem", onCartChange);
|
|
124
|
+
pisellos.effects.on("appointmentBooking_cart:onUpdateQuotationPrice", onCartChange);
|
|
123
125
|
pisellos.effects.on("appointmentBooking_cart:onRemoveItem", onCartChange);
|
|
124
126
|
pisellos.effects.on(
|
|
125
127
|
ShopDiscountHooks.onDiscountListChange,
|
|
@@ -105,15 +105,19 @@ var AppointmentBookingProvider = ({
|
|
|
105
105
|
if (!(carts == null ? void 0 : carts.length) || !(resources == null ? void 0 : resources.length)) {
|
|
106
106
|
return setCurrentSelectedResources(null);
|
|
107
107
|
}
|
|
108
|
-
const currentSelectedResources2 =
|
|
109
|
-
|
|
108
|
+
const currentSelectedResources2 = [];
|
|
109
|
+
carts.forEach((item) => {
|
|
110
|
+
if (appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id)) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
currentSelectedResources2.push({
|
|
110
114
|
_id: item == null ? void 0 : item._id,
|
|
111
115
|
currentSelectedResource: (0, import_utils.getCartCurrentResourceData)(
|
|
112
116
|
item,
|
|
113
117
|
currentStepParams == null ? void 0 : currentStepParams.key,
|
|
114
118
|
resources
|
|
115
119
|
)
|
|
116
|
-
};
|
|
120
|
+
});
|
|
117
121
|
});
|
|
118
122
|
setCurrentSelectedResources(currentSelectedResources2);
|
|
119
123
|
appointmentBooking.setOtherData(
|
|
@@ -119,20 +119,78 @@ var useAppointmentBookingStep = () => {
|
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
121
|
const nextStep = () => {
|
|
122
|
-
var _a2, _b2, _c2, _d, _e;
|
|
122
|
+
var _a2, _b2, _c2, _d, _e, _f, _g;
|
|
123
123
|
let stepList2 = appointmentBooking.getStepList() || [];
|
|
124
124
|
const currentKey = currentStepParams == null ? void 0 : currentStepParams.key;
|
|
125
|
-
let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
|
|
126
125
|
const currentSelectedResources = appointmentBooking.getOtherData(
|
|
127
126
|
"current_selected_resources"
|
|
128
127
|
);
|
|
129
|
-
if (
|
|
128
|
+
if (!isRetailTemplate && currentKey === "select-service") {
|
|
129
|
+
const { bookingProcess } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
|
|
130
|
+
const isDateSelectedFirst = bookingProcess === "date_first";
|
|
131
|
+
const hasResourceStep = stepList2 == null ? void 0 : stepList2.find(
|
|
132
|
+
(item) => (item == null ? void 0 : item.key) === "select-resource"
|
|
133
|
+
);
|
|
134
|
+
const hasSelectGuestStep = (_b2 = stepList2 == null ? void 0 : stepList2.find(
|
|
135
|
+
(item) => (item == null ? void 0 : item.key) === "select-guest"
|
|
136
|
+
)) == null ? void 0 : _b2.key;
|
|
137
|
+
const isAllNormalProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts();
|
|
138
|
+
if (isAllNormalProduct) {
|
|
139
|
+
removeStep("select-resource");
|
|
140
|
+
removeStep("select-time");
|
|
141
|
+
removeStep("fill-form");
|
|
142
|
+
if (!isDateSelectedFirst) {
|
|
143
|
+
removeStep("select-date");
|
|
144
|
+
}
|
|
145
|
+
} else if (!hasResourceStep) {
|
|
146
|
+
let targetKey = hasSelectGuestStep ? hasSelectGuestStep : "select-service";
|
|
147
|
+
const isHasDurationProduct = appointmentBooking == null ? void 0 : appointmentBooking.isCartHasDurationProduct();
|
|
148
|
+
if (isHasDurationProduct) {
|
|
149
|
+
if (!isDateSelectedFirst) {
|
|
150
|
+
appointmentBooking.addStep(
|
|
151
|
+
{
|
|
152
|
+
key: "select-date",
|
|
153
|
+
description: import_utils.locales.getText("pisell2.appointment.select.date")
|
|
154
|
+
},
|
|
155
|
+
targetKey
|
|
156
|
+
);
|
|
157
|
+
targetKey = "select-date";
|
|
158
|
+
}
|
|
159
|
+
appointmentBooking.addStep(
|
|
160
|
+
{
|
|
161
|
+
key: "select-resource",
|
|
162
|
+
description: import_utils.locales.getText("pisell2.appointment.select.resource")
|
|
163
|
+
},
|
|
164
|
+
targetKey
|
|
165
|
+
);
|
|
166
|
+
targetKey = "select-resource";
|
|
167
|
+
appointmentBooking.addStep(
|
|
168
|
+
{
|
|
169
|
+
key: "select-time",
|
|
170
|
+
description: import_utils.locales.getText("pisell2.appointment.select.time")
|
|
171
|
+
},
|
|
172
|
+
targetKey
|
|
173
|
+
);
|
|
174
|
+
} else {
|
|
175
|
+
appointmentBooking.addStep(
|
|
176
|
+
{
|
|
177
|
+
key: "select-resource",
|
|
178
|
+
description: import_utils.locales.getText("pisell2.appointment.select.resource")
|
|
179
|
+
},
|
|
180
|
+
targetKey
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
stepList2 = (appointmentBooking == null ? void 0 : appointmentBooking.getStepList()) || [];
|
|
185
|
+
}
|
|
186
|
+
let nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
|
|
187
|
+
if (!isRetailTemplate && (nextStep2 == null ? void 0 : nextStep2.key) === "select-resource") {
|
|
130
188
|
const result = appointmentBooking.checkResourceListForDate();
|
|
131
189
|
if (!result) {
|
|
132
190
|
return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.date"));
|
|
133
191
|
}
|
|
134
192
|
}
|
|
135
|
-
if (currentKey == null ? void 0 : currentKey.startsWith("select-resource")) {
|
|
193
|
+
if (!isRetailTemplate && (currentKey == null ? void 0 : currentKey.startsWith("select-resource"))) {
|
|
136
194
|
const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(currentSelectedResources, appointmentBooking, utils);
|
|
137
195
|
if (hasError) {
|
|
138
196
|
setCurrentSelectedResources(updatedCartList);
|
|
@@ -155,9 +213,9 @@ var useAppointmentBookingStep = () => {
|
|
|
155
213
|
}
|
|
156
214
|
});
|
|
157
215
|
stepList2 = appointmentBooking.getStepList();
|
|
158
|
-
const selectedResource = (
|
|
216
|
+
const selectedResource = (_c2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _c2.currentSelectedResource;
|
|
159
217
|
if (selectedResource) {
|
|
160
|
-
const originRenderLists = ((
|
|
218
|
+
const originRenderLists = ((_d = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _d.originRenderLists) || [];
|
|
161
219
|
const currentResourceIndex = originRenderLists == null ? void 0 : originRenderLists.findIndex((item) => {
|
|
162
220
|
var _a3;
|
|
163
221
|
return item.id === ((_a3 = selectedResource == null ? void 0 : selectedResource.renderItem) == null ? void 0 : _a3.form_id);
|
|
@@ -165,7 +223,7 @@ var useAppointmentBookingStep = () => {
|
|
|
165
223
|
const nextResource = originRenderLists == null ? void 0 : originRenderLists[currentResourceIndex + 1];
|
|
166
224
|
const resourceKey = `select-resource_@${nextResource == null ? void 0 : nextResource.form_id}-${nextResource == null ? void 0 : nextResource.code}`;
|
|
167
225
|
if (nextResource) {
|
|
168
|
-
const beforeKey = (
|
|
226
|
+
const beforeKey = (_e = stepList2[stepList2.length - 2]) == null ? void 0 : _e.key;
|
|
169
227
|
appointmentBooking.addStep({ key: resourceKey, description: "" }, beforeKey);
|
|
170
228
|
} else {
|
|
171
229
|
appointmentBooking.removeStep(resourceKey);
|
|
@@ -174,15 +232,16 @@ var useAppointmentBookingStep = () => {
|
|
|
174
232
|
}
|
|
175
233
|
stepList2 = appointmentBooking.getStepList();
|
|
176
234
|
nextStep2 = stepList2[(currentStepParams == null ? void 0 : currentStepParams.index) + 1];
|
|
177
|
-
if (((
|
|
178
|
-
const selectedResource = ((
|
|
235
|
+
if (((_f = nextStep2 == null ? void 0 : nextStep2.key) == null ? void 0 : _f.startsWith("select-resource_")) || (nextStep2 == null ? void 0 : nextStep2.key) === "confirm-information") {
|
|
236
|
+
const selectedResource = ((_g = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _g.currentSelectedResource) || {};
|
|
179
237
|
const renderItem = (selectedResource == null ? void 0 : selectedResource.renderItem) || {};
|
|
180
238
|
const checkHolder = () => {
|
|
181
239
|
setLoading(false);
|
|
182
|
-
if (isRetailTemplate) {
|
|
240
|
+
if (isRetailTemplate || (appointmentBooking == null ? void 0 : appointmentBooking.isCartAllNormalProducts())) {
|
|
183
241
|
return appointmentBooking.next();
|
|
184
242
|
}
|
|
185
|
-
const
|
|
243
|
+
const appoimentCarts = carts.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
|
|
244
|
+
const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, appoimentCarts);
|
|
186
245
|
setIsErrorHolder(hasError);
|
|
187
246
|
if (hasError) {
|
|
188
247
|
return;
|
|
@@ -370,6 +370,7 @@ var getResourceTitle = (appointmentBooking, code, utils, originResource) => {
|
|
|
370
370
|
var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
|
|
371
371
|
try {
|
|
372
372
|
let hasError = false;
|
|
373
|
+
carts = carts.filter((n) => !appointmentBooking.isTargetCartIdNormalProduct(n._id));
|
|
373
374
|
const updatedCartList = carts == null ? void 0 : carts.map((cart) => {
|
|
374
375
|
const currentResource = cart == null ? void 0 : cart.currentSelectedResource;
|
|
375
376
|
if (!(currentResource == null ? void 0 : currentResource.renderItem)) {
|
|
@@ -394,6 +395,7 @@ var checkAndMarkCartRenderError = (carts, appointmentBooking, utils) => {
|
|
|
394
395
|
updatedCartList
|
|
395
396
|
};
|
|
396
397
|
} catch (error) {
|
|
398
|
+
console.error(error);
|
|
397
399
|
return {};
|
|
398
400
|
}
|
|
399
401
|
};
|
|
@@ -51,12 +51,13 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
51
51
|
var formatProducts = (values) => {
|
|
52
52
|
let arr = [];
|
|
53
53
|
arr = values.map((item) => {
|
|
54
|
-
var _a, _b, _c;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
55
|
return {
|
|
56
56
|
order_detail_id: item.order_detail_id || 0,
|
|
57
57
|
num: item._extend.quantity,
|
|
58
|
-
price: item
|
|
58
|
+
price: (0, import_utils.formatProductPrice)(item),
|
|
59
59
|
product_id: item.id,
|
|
60
|
+
discount_list: (item == null ? void 0 : item.discount_list) || [],
|
|
60
61
|
discount_amount: 0,
|
|
61
62
|
product_discount_reason: "",
|
|
62
63
|
is_charge_tax: item.is_charge_tax,
|
|
@@ -64,7 +65,9 @@ var formatProducts = (values) => {
|
|
|
64
65
|
discountway: "num",
|
|
65
66
|
discount_type: "discount",
|
|
66
67
|
bundle_edit: (_a = item._extend) == null ? void 0 : _a.bundle_edit,
|
|
67
|
-
product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle)
|
|
68
|
+
product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
|
|
69
|
+
"product_option_item": (0, import_utils.formatProductOption)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
|
|
70
|
+
"product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0
|
|
68
71
|
};
|
|
69
72
|
});
|
|
70
73
|
return arr;
|
|
@@ -93,7 +96,7 @@ var restoreProductOtherData = (data) => {
|
|
|
93
96
|
})
|
|
94
97
|
};
|
|
95
98
|
}),
|
|
96
|
-
product_variant_id: 0,
|
|
99
|
+
product_variant_id: detail.product_variant_id || 0,
|
|
97
100
|
quantity: Number(detail.product_quantity)
|
|
98
101
|
};
|
|
99
102
|
};
|
|
@@ -210,23 +213,23 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
210
213
|
const handleAddProduct = (item, type) => {
|
|
211
214
|
let _list = [...state.addons.value];
|
|
212
215
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
|
213
|
-
const isEject =
|
|
216
|
+
const isEject = (0, import_utils2.getIsEject)(item, type);
|
|
214
217
|
state.action({
|
|
215
218
|
type: "pisell1.handleOpenProductModal",
|
|
216
219
|
data: {
|
|
217
220
|
id: item.id,
|
|
218
221
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
219
222
|
showConfig: {
|
|
220
|
-
option:
|
|
223
|
+
option: true,
|
|
221
224
|
session: isSession,
|
|
222
|
-
variant:
|
|
223
|
-
package: true
|
|
225
|
+
variant: true,
|
|
226
|
+
package: true,
|
|
227
|
+
number: true
|
|
224
228
|
},
|
|
225
229
|
is_eject: isEject ? 1 : 0,
|
|
226
230
|
isOS: isSession
|
|
227
231
|
},
|
|
228
232
|
callback: (e, extension_type, detail) => {
|
|
229
|
-
console.log("e", e);
|
|
230
233
|
const _detail = detail || item;
|
|
231
234
|
let product = {
|
|
232
235
|
..._detail,
|
|
@@ -235,15 +238,15 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
235
238
|
_extend: {
|
|
236
239
|
price: _detail.price,
|
|
237
240
|
other: e,
|
|
238
|
-
quantity: 1
|
|
241
|
+
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
239
242
|
},
|
|
240
|
-
quantity: 1
|
|
243
|
+
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
241
244
|
};
|
|
242
245
|
let _total = (0, import_utils2.getProductTotalPrice)(product);
|
|
243
246
|
product._extend.total = _total;
|
|
244
|
-
let _item = _list.find((d) => d._extend.other.
|
|
247
|
+
let _item = _list.find((d) => d._extend.other.rowKey === e.rowKey);
|
|
245
248
|
if (_item) {
|
|
246
|
-
_item._extend.quantity = _item.quantity +
|
|
249
|
+
_item._extend.quantity = _item._extend.quantity + product.quantity;
|
|
247
250
|
} else {
|
|
248
251
|
_list.push(product);
|
|
249
252
|
}
|
|
@@ -264,7 +267,7 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
264
267
|
let quantity = e.target.value;
|
|
265
268
|
let _list = [...state.addons.value];
|
|
266
269
|
if (quantity == 0) {
|
|
267
|
-
_list = _list.filter((d) => d.
|
|
270
|
+
_list = _list.filter((d) => d._id !== item._id);
|
|
268
271
|
} else {
|
|
269
272
|
let _item = {
|
|
270
273
|
...item,
|
|
@@ -273,12 +276,10 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
273
276
|
quantity: Number(e.target.value)
|
|
274
277
|
}
|
|
275
278
|
};
|
|
276
|
-
let _total = (0, import_utils2.getProductTotalPrice)(_item);
|
|
277
|
-
_item._extend.total = _total;
|
|
278
279
|
if (((_a2 = _item._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
|
|
279
280
|
_item._extend.bundle_edit = 1;
|
|
280
281
|
}
|
|
281
|
-
_list = _list.map((d) => d.
|
|
282
|
+
_list = _list.map((d) => d._id === item._id ? _item : d);
|
|
282
283
|
}
|
|
283
284
|
dispatch({
|
|
284
285
|
type: "setAddons",
|
|
@@ -374,10 +375,11 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
374
375
|
id: item.id,
|
|
375
376
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
376
377
|
showConfig: {
|
|
377
|
-
option:
|
|
378
|
+
option: true,
|
|
378
379
|
session: isSession,
|
|
379
|
-
variant:
|
|
380
|
-
package: true
|
|
380
|
+
variant: true,
|
|
381
|
+
package: true,
|
|
382
|
+
number: true
|
|
381
383
|
},
|
|
382
384
|
value: item._extend.other,
|
|
383
385
|
isOS: isSession
|
|
@@ -386,10 +388,14 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
386
388
|
var _a2;
|
|
387
389
|
const _detail = detail || item;
|
|
388
390
|
let product = {
|
|
391
|
+
...item,
|
|
389
392
|
..._detail,
|
|
393
|
+
// 编辑商品时清除折扣信息
|
|
394
|
+
discount_list: [],
|
|
390
395
|
_extend: {
|
|
391
396
|
...item._extend,
|
|
392
|
-
other: e
|
|
397
|
+
other: e,
|
|
398
|
+
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
393
399
|
}
|
|
394
400
|
};
|
|
395
401
|
if (((_a2 = product._extend) == null ? void 0 : _a2.bundle_edit) !== void 0) {
|
|
@@ -44,7 +44,7 @@ var getProductAmount = (state, isEdit) => {
|
|
|
44
44
|
if (isEdit) {
|
|
45
45
|
if ((state == null ? void 0 : state.service) || (state == null ? void 0 : state.addons)) {
|
|
46
46
|
for (let item of state == null ? void 0 : state.service.value) {
|
|
47
|
-
if (isDay) {
|
|
47
|
+
if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item)) {
|
|
48
48
|
const quantity = item._extend.quantity || 1;
|
|
49
49
|
price += Number(item._extend.total) * Number(quantity);
|
|
50
50
|
const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? item._extend.duration : 0;
|
|
@@ -27,5 +27,14 @@ export interface ResourceItem {
|
|
|
27
27
|
* @Author: jinglin.tan
|
|
28
28
|
*/
|
|
29
29
|
export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
|
|
30
|
+
/**
|
|
31
|
+
* @title: 格式化商品单价
|
|
32
|
+
* @description:
|
|
33
|
+
* @param {any} item
|
|
34
|
+
* @return {*}
|
|
35
|
+
* @Author: WangHan
|
|
36
|
+
* @Date: 2024-12-23 12:05
|
|
37
|
+
*/
|
|
38
|
+
export declare const formatProductPrice: (item: any) => number;
|
|
30
39
|
export declare const formatValues: (state: any) => any;
|
|
31
40
|
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -33,6 +33,7 @@ __export(utils_exports, {
|
|
|
33
33
|
checkSubResourcesCapacity: () => checkSubResourcesCapacity,
|
|
34
34
|
formatProductBundle: () => formatProductBundle,
|
|
35
35
|
formatProductOption: () => formatProductOption,
|
|
36
|
+
formatProductPrice: () => formatProductPrice,
|
|
36
37
|
formatValues: () => formatValues
|
|
37
38
|
});
|
|
38
39
|
module.exports = __toCommonJS(utils_exports);
|
|
@@ -70,7 +71,7 @@ var formatProductOption = (option) => {
|
|
|
70
71
|
return option.map((d) => {
|
|
71
72
|
return {
|
|
72
73
|
"num": d.num,
|
|
73
|
-
"option_group_item_id": d.product_option_item_id,
|
|
74
|
+
"option_group_item_id": d.product_option_item_id || d.option_group_item_id,
|
|
74
75
|
"option_group_id": d.option_group_id
|
|
75
76
|
// "add_price": Number(d?.add_price),
|
|
76
77
|
};
|
|
@@ -280,6 +281,9 @@ var formatBookings = (data, values) => {
|
|
|
280
281
|
return (_a = d._extend) == null ? void 0 : _a.holder_id;
|
|
281
282
|
});
|
|
282
283
|
}
|
|
284
|
+
if (!isDay && !isEvent) {
|
|
285
|
+
list = list.filter((item) => !(0, import_utils4.isNormalProductByDurationSchedule)(item));
|
|
286
|
+
}
|
|
283
287
|
let dayParams = {};
|
|
284
288
|
const eventOtherParams = data.eventOtherParams;
|
|
285
289
|
let bookings = [];
|
|
@@ -343,6 +347,16 @@ var formatRelationProducts = (data) => {
|
|
|
343
347
|
});
|
|
344
348
|
return relationProducts || [];
|
|
345
349
|
};
|
|
350
|
+
var formatNormalProducts = (data) => {
|
|
351
|
+
var _a;
|
|
352
|
+
let list = ((_a = data.service) == null ? void 0 : _a.value) || [];
|
|
353
|
+
list = list.filter((item) => (0, import_utils4.isNormalProductByDurationSchedule)(item));
|
|
354
|
+
let relationProducts = [];
|
|
355
|
+
relationProducts = list.map((item) => {
|
|
356
|
+
return formatProducts(item);
|
|
357
|
+
});
|
|
358
|
+
return relationProducts || [];
|
|
359
|
+
};
|
|
346
360
|
var formatHolder = (state, values) => {
|
|
347
361
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
348
362
|
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
|
@@ -361,7 +375,7 @@ var formatHolder = (state, values) => {
|
|
|
361
375
|
return obj;
|
|
362
376
|
};
|
|
363
377
|
var formatValues = (state) => {
|
|
364
|
-
var _a, _b, _c, _d, _e;
|
|
378
|
+
var _a, _b, _c, _d, _e, _f;
|
|
365
379
|
let values = {
|
|
366
380
|
type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
|
|
367
381
|
platform: "shop",
|
|
@@ -391,11 +405,10 @@ var formatValues = (state) => {
|
|
|
391
405
|
...customer
|
|
392
406
|
};
|
|
393
407
|
values.holder = formatHolder(state, values);
|
|
394
|
-
if (isDay) {
|
|
395
|
-
values.relation_products = formatRelationProducts(state);
|
|
396
|
-
}
|
|
397
|
-
if (isEvent) {
|
|
408
|
+
if (isDay || isEvent) {
|
|
398
409
|
values.relation_products = formatRelationProducts(state);
|
|
410
|
+
} else {
|
|
411
|
+
values.relation_products = formatNormalProducts(state);
|
|
399
412
|
}
|
|
400
413
|
values.bookings = formatBookings(state, values);
|
|
401
414
|
if (((_c = (_b = values == null ? void 0 : values.bookings) == null ? void 0 : _b[0]) == null ? void 0 : _c.select_date) && !(state == null ? void 0 : state.bookingId)) {
|
|
@@ -406,12 +419,15 @@ var formatValues = (state) => {
|
|
|
406
419
|
if (isDay) {
|
|
407
420
|
values.metadata.is_multiday_appointment = 1;
|
|
408
421
|
}
|
|
422
|
+
if (!((_f = values == null ? void 0 : values.bookings) == null ? void 0 : _f.length)) {
|
|
423
|
+
values.type = "virtual";
|
|
424
|
+
}
|
|
409
425
|
return values;
|
|
410
426
|
};
|
|
411
427
|
var checkHolderIsError = (state) => {
|
|
412
428
|
var _a, _b;
|
|
413
429
|
const holderError = state.service.value.some((item) => {
|
|
414
|
-
return !item._extend.holder_id;
|
|
430
|
+
return !item._extend.holder_id && !(0, import_utils4.isNormalProductByDurationSchedule)(item);
|
|
415
431
|
});
|
|
416
432
|
const clientId = (_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id;
|
|
417
433
|
if (holderError && (!clientId || clientId === 0 || clientId === 1)) {
|
|
@@ -427,5 +443,6 @@ var checkHolderIsError = (state) => {
|
|
|
427
443
|
checkSubResourcesCapacity,
|
|
428
444
|
formatProductBundle,
|
|
429
445
|
formatProductOption,
|
|
446
|
+
formatProductPrice,
|
|
430
447
|
formatValues
|
|
431
448
|
});
|
|
@@ -228,7 +228,7 @@ var Info = (props) => {
|
|
|
228
228
|
const handleSelectProduct = (0, import_ahooks.useMemoizedFn)(
|
|
229
229
|
(item, type) => {
|
|
230
230
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
|
231
|
-
let isEject =
|
|
231
|
+
let isEject = (0, import_utils2.getIsEject)(item, type);
|
|
232
232
|
if (isDay) {
|
|
233
233
|
isEject = type === "detail" || item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0;
|
|
234
234
|
}
|
|
@@ -55,6 +55,9 @@ export declare const handleChangeHolder: (products: any[], currentItem: any, oth
|
|
|
55
55
|
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
|
|
56
56
|
export declare const formItems: (items: any[]) => any[];
|
|
57
57
|
export declare const getIsSubjectRequire: (state: any) => boolean;
|
|
58
|
+
export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
|
|
59
|
+
export declare const isAllNormalProduct: (items: any[]) => boolean;
|
|
60
|
+
export declare const isAllNormalProductByState: (state: any) => boolean;
|
|
58
61
|
/**
|
|
59
62
|
* @title: 格式化商品数据
|
|
60
63
|
* @description:
|
|
@@ -241,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
241
244
|
* @Author: WangHan
|
|
242
245
|
* @Date: 2024-12-24 11:32
|
|
243
246
|
*/
|
|
244
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
247
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -46,6 +46,8 @@ __export(utils_exports, {
|
|
|
46
46
|
handleChangeHolder: () => handleChangeHolder,
|
|
47
47
|
holderId: () => holderId,
|
|
48
48
|
initDate: () => initDate,
|
|
49
|
+
isAllNormalProduct: () => isAllNormalProduct,
|
|
50
|
+
isAllNormalProductByState: () => isAllNormalProductByState,
|
|
49
51
|
isAppointmentProduct: () => isAppointmentProduct,
|
|
50
52
|
isBookingProduct: () => isBookingProduct,
|
|
51
53
|
isDayBooking: () => isDayBooking,
|
|
@@ -53,6 +55,7 @@ __export(utils_exports, {
|
|
|
53
55
|
isDaysBooking: () => isDaysBooking,
|
|
54
56
|
isEventBooking: () => isEventBooking,
|
|
55
57
|
isHasDayAppointmentProduct: () => isHasDayAppointmentProduct,
|
|
58
|
+
isNormalProductByDurationSchedule: () => isNormalProductByDurationSchedule,
|
|
56
59
|
isOpenDeletePet: () => isOpenDeletePet,
|
|
57
60
|
isTerminalDayBooking: () => isTerminalDayBooking,
|
|
58
61
|
updateAppointmentServicePrice: () => updateAppointmentServicePrice,
|
|
@@ -440,6 +443,16 @@ var getIsSubjectRequire = (state) => {
|
|
|
440
443
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
441
444
|
return ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.type) === "form" && ((_g = (_f = (_e = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.subject_require) === "require";
|
|
442
445
|
};
|
|
446
|
+
var isNormalProductByDurationSchedule = (item) => {
|
|
447
|
+
var _a, _b;
|
|
448
|
+
return !(item == null ? void 0 : item.duration) && !((_a = item == null ? void 0 : item.schedules) == null ? void 0 : _a.length) && !((_b = item["schedule.ids"]) == null ? void 0 : _b.length);
|
|
449
|
+
};
|
|
450
|
+
var isAllNormalProduct = (items) => {
|
|
451
|
+
return items.every((item) => isNormalProductByDurationSchedule(item));
|
|
452
|
+
};
|
|
453
|
+
var isAllNormalProductByState = (state) => {
|
|
454
|
+
return isAllNormalProduct(state.service.value);
|
|
455
|
+
};
|
|
443
456
|
var getGeneralParams = (item, state, isParallelResource) => {
|
|
444
457
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
445
458
|
const { pet, service } = state;
|
|
@@ -489,12 +502,14 @@ var getGeneralParams = (item, state, isParallelResource) => {
|
|
|
489
502
|
}
|
|
490
503
|
];
|
|
491
504
|
}
|
|
505
|
+
const isNormalProduct = isNormalProductByDurationSchedule(item);
|
|
492
506
|
return {
|
|
493
507
|
format: ["HH:mm", "HH:mm"],
|
|
494
508
|
show_time: true,
|
|
495
509
|
duration_type: "minutes",
|
|
496
510
|
// 当前可选择holder列表
|
|
497
511
|
holders: formatHolders(holders),
|
|
512
|
+
isShowChangeHolder: !isNormalProduct,
|
|
498
513
|
isShowAction: (0, import_utils4.isShowAddTime)(state, item),
|
|
499
514
|
actionText: import_utils2.locales.getText("page.booking.text.add-time"),
|
|
500
515
|
isMultipleResource: true,
|
|
@@ -502,8 +517,8 @@ var getGeneralParams = (item, state, isParallelResource) => {
|
|
|
502
517
|
isErrorHolder: getIsSubjectRequire(state),
|
|
503
518
|
addHolderButtonText: ((_c = (_b = formData == null ? void 0 : formData[0]) == null ? void 0 : _b.form) == null ? void 0 : _c.title) || "",
|
|
504
519
|
holder_id: (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.holder_id,
|
|
505
|
-
start_date: (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate,
|
|
506
|
-
end_date: ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date),
|
|
520
|
+
start_date: !isNormalProduct ? (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate : "",
|
|
521
|
+
end_date: !isNormalProduct ? ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date) : "",
|
|
507
522
|
...parallelResourceOtherParams
|
|
508
523
|
};
|
|
509
524
|
};
|
|
@@ -528,6 +543,7 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
|
|
|
528
543
|
errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
|
|
529
544
|
}
|
|
530
545
|
const generalParams = isGeneral ? getGeneralParams(item, state, !!isParallelResource) : {};
|
|
546
|
+
console.log(isNormalProduct, "isNormalProduct");
|
|
531
547
|
return {
|
|
532
548
|
id: item == null ? void 0 : item.id,
|
|
533
549
|
_id: item == null ? void 0 : item._id,
|
|
@@ -961,6 +977,8 @@ var updateServicePrice = (state) => {
|
|
|
961
977
|
handleChangeHolder,
|
|
962
978
|
holderId,
|
|
963
979
|
initDate,
|
|
980
|
+
isAllNormalProduct,
|
|
981
|
+
isAllNormalProductByState,
|
|
964
982
|
isAppointmentProduct,
|
|
965
983
|
isBookingProduct,
|
|
966
984
|
isDayBooking,
|
|
@@ -968,6 +986,7 @@ var updateServicePrice = (state) => {
|
|
|
968
986
|
isDaysBooking,
|
|
969
987
|
isEventBooking,
|
|
970
988
|
isHasDayAppointmentProduct,
|
|
989
|
+
isNormalProductByDurationSchedule,
|
|
971
990
|
isOpenDeletePet,
|
|
972
991
|
isTerminalDayBooking,
|
|
973
992
|
updateAppointmentServicePrice,
|
|
@@ -104,7 +104,7 @@ var isBooking4Shop = (shopId, renderType) => {
|
|
|
104
104
|
if (renderType === "eventBooking") {
|
|
105
105
|
return false;
|
|
106
106
|
}
|
|
107
|
-
const booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782, 1285, 6124, 8727, 5538];
|
|
107
|
+
const booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988];
|
|
108
108
|
return booking4Shops.includes(shopId);
|
|
109
109
|
};
|
|
110
110
|
function generateDateRange(start, end) {
|
|
@@ -47,6 +47,7 @@ var import_utils2 = require("./utils");
|
|
|
47
47
|
var import_utils3 = require("../../../utils");
|
|
48
48
|
var import_utils4 = require("@pisell/utils");
|
|
49
49
|
var import_ahooks = require("ahooks");
|
|
50
|
+
var import_utils5 = require("../../../info/service2/utils");
|
|
50
51
|
var shopList = [
|
|
51
52
|
2886,
|
|
52
53
|
4422,
|
|
@@ -188,7 +189,7 @@ var Info = (props) => {
|
|
|
188
189
|
const handleSelectProduct = (item, type) => {
|
|
189
190
|
var _a2, _b2;
|
|
190
191
|
const isSession = (0, import_utils3.isSessionProduct)(item);
|
|
191
|
-
const isEject =
|
|
192
|
+
const isEject = (0, import_utils3.getIsEject)(item, type);
|
|
192
193
|
let lock = false;
|
|
193
194
|
state.action({
|
|
194
195
|
type: "pisell1.handleOpenProductModal",
|
|
@@ -196,10 +197,11 @@ var Info = (props) => {
|
|
|
196
197
|
id: item.id,
|
|
197
198
|
date: state.date.value.format("YYYY-MM-DD"),
|
|
198
199
|
showConfig: {
|
|
199
|
-
option:
|
|
200
|
+
option: true,
|
|
200
201
|
session: isSession,
|
|
201
|
-
variant:
|
|
202
|
-
package: true
|
|
202
|
+
variant: true,
|
|
203
|
+
package: true,
|
|
204
|
+
number: (0, import_utils5.isNormalProductByDurationSchedule)(item)
|
|
203
205
|
},
|
|
204
206
|
is_eject: isEject ? 1 : 0,
|
|
205
207
|
isOS: isSession,
|
|
@@ -224,13 +226,14 @@ var Info = (props) => {
|
|
|
224
226
|
_key: e.key,
|
|
225
227
|
_extend: {
|
|
226
228
|
start_date: state.date.value,
|
|
227
|
-
quantity: 1,
|
|
229
|
+
quantity: (e == null ? void 0 : e.quantity) || 1,
|
|
228
230
|
price: _detail.price,
|
|
229
231
|
product_name: item.title,
|
|
230
232
|
other
|
|
231
233
|
},
|
|
232
234
|
new: 1
|
|
233
235
|
};
|
|
236
|
+
console.log(cacheItem, "cacheItem", e);
|
|
234
237
|
let _total = (0, import_utils3.getProductTotalPrice)(cacheItem);
|
|
235
238
|
cacheItem._extend.total = _total;
|
|
236
239
|
cacheItem._extend.origin_total = _total;
|