@pisell/private-materials 6.2.24 → 6.2.26
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/index.js +1 -1
- package/build/lowcode/meta.js +9 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +4 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/actionButtons/index.js +395 -0
- package/es/components/booking/components/actionButtons/index.less +148 -0
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/clearCartModal/index.js +50 -0
- package/es/components/booking/components/clearCartModal/index.less +109 -0
- package/es/components/booking/components/customSelect/index.js +1 -0
- package/es/components/booking/components/customiseItemModal/index.js +294 -0
- package/es/components/booking/components/customiseItemModal/index.less +606 -0
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +15 -3
- package/es/components/booking/components/footer/index.js +106 -39
- package/es/components/booking/components/footer/utils.js +52 -24
- package/es/components/booking/components/tabPane/index.js +86 -5
- package/es/components/booking/components/tabPane/index.less +75 -1
- package/es/components/booking/components/voucher/index.js +19 -8
- package/es/components/booking/components/voucher/index.less +1 -1
- package/es/components/booking/dashboard/index.js +10 -3
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/hooks/useQuotation.js +17 -7
- package/es/components/booking/info/client/index.js +3 -2
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +15 -7
- package/es/components/booking/info/index.less +18 -2
- package/es/components/booking/info/main.js +14 -15
- package/es/components/booking/info/service/Lists.js +41 -28
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.js +3 -0
- package/es/components/booking/info/service/editService/index.js +15 -10
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.js +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +4 -0
- package/es/components/booking/info/service2/utils.js +32 -23
- package/es/components/booking/info2/cartClientCard/index.js +343 -0
- package/es/components/booking/info2/cartClientCard/index.less +6 -0
- package/es/components/booking/info2/cartClientCard/locales.js +26 -0
- package/es/components/booking/info2/cartClientCard/types.js +1 -0
- package/es/components/booking/info2/cartClientCard/utils.js +7 -0
- package/es/components/booking/info2/index.js +41 -18
- package/es/components/booking/info2/service/addService/utils.js +6 -3
- package/es/components/booking/info2/service/addTimeModal/index.js +5 -1
- package/es/components/booking/info2/service/editNormalService/index.js +67 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/index.js +267 -171
- package/es/components/booking/info2/service/index.js +27 -18
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +26 -3
- package/es/components/booking/locales.js +99 -3
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.js +52 -32
- package/es/components/booking/notes/addNote/index.less +53 -0
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +62 -41
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +309 -351
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
- package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +208 -33
- package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +79 -68
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
- package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
- package/es/components/ticketBooking/index.js +21 -3
- package/es/components/ticketBooking/locales.js +6 -3
- package/es/components/ticketBooking/serve.js +11 -11
- package/es/components/ticketBooking/utils/index.d.ts +39 -2
- package/es/components/ticketBooking/utils/index.js +104 -11
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useToast.js +9 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/index.js +452 -0
- package/es/plus/clientCard/index.less +539 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.js +17 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.js +212 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.js +214 -0
- package/es/plus/clinetSearch/index.less +91 -0
- package/es/plus/clinetSearch/locales.js +101 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/noteModal/AddTempModal.js +64 -0
- package/es/plus/noteModal/index.js +199 -0
- package/es/plus/noteModal/index.less +168 -0
- package/es/plus/noteModal/locales.js +32 -0
- package/es/plus/noteModal/types.js +1 -0
- package/es/pro/comprehensiveSearch/camera.svg +4 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.js +342 -0
- package/es/pro/comprehensiveSearch/index.less +323 -0
- package/es/pro/comprehensiveSearch/locales.js +17 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.js +231 -0
- package/es/pro/pisellNumberSelector/index.less +193 -0
- package/es/pro/pisellPhoneKeyboard/index.js +211 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
- package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
- package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
- package/es/pro/pisellPriceRadio/index.js +113 -0
- package/es/pro/pisellPriceRadio/index.less +158 -0
- package/es/pro/skuDetailModal/index.js +352 -0
- package/es/pro/skuDetailModal/index.less +236 -0
- package/es/pro/skuDetailModal/locales.js +47 -0
- package/es/pro/skuDetailModal/types.js +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +4 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/actionButtons/index.js +325 -0
- package/lib/components/booking/components/actionButtons/index.less +148 -0
- package/lib/components/booking/components/clearCartModal/index.js +80 -0
- package/lib/components/booking/components/clearCartModal/index.less +109 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/customiseItemModal/index.js +279 -0
- package/lib/components/booking/components/customiseItemModal/index.less +606 -0
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +5 -3
- package/lib/components/booking/components/footer/index.js +93 -23
- package/lib/components/booking/components/footer/utils.js +38 -13
- package/lib/components/booking/components/tabPane/index.js +78 -4
- package/lib/components/booking/components/tabPane/index.less +75 -1
- package/lib/components/booking/components/voucher/index.js +18 -7
- package/lib/components/booking/components/voucher/index.less +1 -1
- package/lib/components/booking/dashboard/index.js +7 -2
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/hooks/useQuotation.js +3 -1
- package/lib/components/booking/info/client/index.js +5 -4
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/lib/components/booking/info/index.less +18 -2
- package/lib/components/booking/info/main.js +12 -5
- package/lib/components/booking/info/service/Lists.js +41 -25
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.js +31 -0
- package/lib/components/booking/info/service/editService/index.js +7 -1
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +4 -0
- package/lib/components/booking/info/service2/utils.js +31 -19
- package/lib/components/booking/info2/cartClientCard/index.js +298 -0
- package/lib/components/booking/info2/cartClientCard/index.less +6 -0
- package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
- package/lib/components/booking/info2/cartClientCard/types.js +17 -0
- package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
- package/lib/components/booking/info2/index.js +30 -9
- package/lib/components/booking/info2/service/addService/utils.js +4 -2
- package/lib/components/booking/info2/service/addTimeModal/index.js +4 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/index.js +139 -74
- package/lib/components/booking/info2/service/index.js +16 -12
- package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +23 -4
- package/lib/components/booking/locales.js +93 -3
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.js +41 -23
- package/lib/components/booking/notes/addNote/index.less +53 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +42 -21
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +176 -248
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
- package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +228 -80
- package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +100 -86
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
- package/lib/components/ticketBooking/index.js +31 -4
- package/lib/components/ticketBooking/locales.js +6 -3
- package/lib/components/ticketBooking/serve.js +11 -11
- package/lib/components/ticketBooking/utils/index.d.ts +39 -2
- package/lib/components/ticketBooking/utils/index.js +71 -10
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useToast.js +42 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/index.js +442 -0
- package/lib/plus/clientCard/index.less +539 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.js +41 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.js +243 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.js +205 -0
- package/lib/plus/clinetSearch/index.less +91 -0
- package/lib/plus/clinetSearch/locales.js +125 -0
- package/lib/plus/clinetSearch/serve.js +33 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/noteModal/AddTempModal.js +95 -0
- package/lib/plus/noteModal/index.js +199 -0
- package/lib/plus/noteModal/index.less +168 -0
- package/lib/plus/noteModal/locales.js +56 -0
- package/lib/plus/noteModal/types.js +17 -0
- package/lib/pro/comprehensiveSearch/camera.svg +4 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.js +259 -0
- package/lib/pro/comprehensiveSearch/index.less +323 -0
- package/lib/pro/comprehensiveSearch/locales.js +41 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.js +260 -0
- package/lib/pro/pisellNumberSelector/index.less +193 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
- package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
- package/lib/pro/pisellPriceRadio/index.js +130 -0
- package/lib/pro/pisellPriceRadio/index.less +158 -0
- package/lib/pro/skuDetailModal/index.js +311 -0
- package/lib/pro/skuDetailModal/index.less +236 -0
- package/lib/pro/skuDetailModal/locales.js +71 -0
- package/lib/pro/skuDetailModal/types.js +17 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +337 -0
- package/lowcode/comprehensive-search/meta.ts +261 -0
- package/package.json +26 -26
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/booking/addons/index.d.ts +0 -17
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/dashboard/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -3
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -3
- package/es/components/booking/locales.d.ts +0 -828
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/ticketBooking/locales.d.ts +0 -174
- package/es/components/ticketBooking/serve.d.ts +0 -287
- package/es/index.d.ts +0 -47
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/booking/addons/index.d.ts +0 -17
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/dashboard/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -3
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -3
- package/lib/components/booking/locales.d.ts +0 -828
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/ticketBooking/locales.d.ts +0 -174
- package/lib/components/ticketBooking/serve.d.ts +0 -287
- package/lib/index.d.ts +0 -47
@@ -7,10 +7,14 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
7
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
8
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
10
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
11
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
12
10
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
13
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
12
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
13
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
15
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
16
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
14
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
15
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
16
20
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -18,22 +22,31 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
18
22
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
19
23
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
20
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
21
|
-
import React, { useEffect, useRef } from 'react';
|
25
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
22
26
|
import { locales } from '@pisell/utils';
|
23
27
|
import { message } from 'antd';
|
28
|
+
import { Iconfont } from '@pisell/materials';
|
24
29
|
import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices, voidAppointment } from "../../serve";
|
25
30
|
import * as apis from "../../serve";
|
26
31
|
import dayjs from 'dayjs';
|
27
32
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
28
33
|
import { useStore } from "../../miniRedux";
|
29
34
|
import BookingInfo from "../../../../components/booking/info";
|
30
|
-
import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOtherData } from "../../utils";
|
35
|
+
import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOtherData, getIsParallelResourcesBooking, formatHolder } from "../../utils";
|
31
36
|
import AddServiceVariant from "../addServiceVariant";
|
32
37
|
import TimeBar from "../timeBar";
|
33
|
-
import "./index.less";
|
34
38
|
import { formatProducts } from "../../../booking/info/service2/utils";
|
35
39
|
import { getSumTotal } from "../../../booking/components/footer/amount";
|
36
40
|
import formatProductMessage from "../../utils/formatProductMessage";
|
41
|
+
import PisellFloatingPanel from "../bookingDataPanel/pisellFloatingPanel";
|
42
|
+
import FloatButtons from "../floatButtons";
|
43
|
+
import useScanGlobal from "../../hooks/pisellos/useScanGlobal";
|
44
|
+
import useScanGlobalHandle from "../../hooks/pisellos/useScanGlobalHandle";
|
45
|
+
import { useBookingTicket } from "../../hooks/pisellos/bookingTicket";
|
46
|
+
import "./index.less";
|
47
|
+
import { getBookingType } from "../bookingDataPanel/bookingList/utils";
|
48
|
+
import { useCustomer } from "../../hooks/pisellos";
|
49
|
+
import { useMemoizedFn } from "ahooks";
|
37
50
|
export var _formatBookingDetail = function _formatBookingDetail(data, modalState) {
|
38
51
|
var _bookings$list, _bookings$list2;
|
39
52
|
var customer_id = data.customer_id,
|
@@ -47,7 +60,9 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
47
60
|
note = data.note,
|
48
61
|
payment_status = data.payment_status,
|
49
62
|
is_other_entrance_edited = data.is_other_entrance_edited,
|
50
|
-
shop_discount = data.shop_discount
|
63
|
+
shop_discount = data.shop_discount,
|
64
|
+
_data$relation_detail = data.relation_details,
|
65
|
+
relation_details = _data$relation_detail === void 0 ? [] : _data$relation_detail;
|
51
66
|
var clientValue = {
|
52
67
|
name: ((customer === null || customer === void 0 ? void 0 : customer.display_name) || '').trim() || ((customer === null || customer === void 0 ? void 0 : customer.nickname) || '').trim() || '',
|
53
68
|
id: customer_id || (customer === null || customer === void 0 ? void 0 : customer.id) || (customer === null || customer === void 0 ? void 0 : customer.customer_id) || 1,
|
@@ -93,7 +108,10 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
93
108
|
return _objectSpread(_objectSpread({
|
94
109
|
_id: (Math.random() + '').replace(/\D/g, '').substring(0, 11)
|
95
110
|
}, _detail), {}, {
|
111
|
+
duration: (_detail === null || _detail === void 0 ? void 0 : _detail.duration) || (product === null || product === void 0 ? void 0 : product.duration),
|
112
|
+
'schedule.ids': (_detail === null || _detail === void 0 ? void 0 : _detail['schedule.ids']) || (product === null || product === void 0 ? void 0 : product['schedule.ids']),
|
96
113
|
booking_id: resetD.id,
|
114
|
+
isEditBooking: true,
|
97
115
|
id: _detail.product_id,
|
98
116
|
title: _detail.product_title,
|
99
117
|
quantity: Number(_detail.product_quantity),
|
@@ -109,6 +127,8 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
109
127
|
start_date: start_date,
|
110
128
|
endDate: end_date,
|
111
129
|
end_date: end_date,
|
130
|
+
holder_id: formatHolder(resetD),
|
131
|
+
note: _detail.note,
|
112
132
|
// 商品本身的价格
|
113
133
|
price: Number(_detail.source_product_price),
|
114
134
|
product_name: _detail.product_title,
|
@@ -131,6 +151,7 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
131
151
|
})
|
132
152
|
});
|
133
153
|
});
|
154
|
+
serviceValue = [].concat(_toConsumableArray(serviceValue), _toConsumableArray(formatProductValues(relation_details)));
|
134
155
|
var disabledEdit = getDisabledEdit(data);
|
135
156
|
var channelDisabledEdit = !!is_other_entrance_edited;
|
136
157
|
return _objectSpread(_objectSpread({}, modalState), {}, {
|
@@ -163,8 +184,40 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
|
|
163
184
|
appointment_status: bookings === null || bookings === void 0 ? void 0 : bookings.appointment_status
|
164
185
|
});
|
165
186
|
};
|
187
|
+
var formatProductValues = function formatProductValues(data) {
|
188
|
+
return data.map(function (d) {
|
189
|
+
return _objectSpread(_objectSpread({}, d), {}, {
|
190
|
+
_id: (Math.random() + '').replace(/\D/g, '').substring(0, 11),
|
191
|
+
id: d.product_id,
|
192
|
+
title: d.product_title,
|
193
|
+
quantity: d.product_quantity,
|
194
|
+
cover: d.product_cover,
|
195
|
+
price: Number(d.source_product_price),
|
196
|
+
isEditBooking: true,
|
197
|
+
_extend: {
|
198
|
+
discount_reason: d.product_discount_reason,
|
199
|
+
order_detail_id: d.order_detail_id,
|
200
|
+
discount_per: d.discount_per,
|
201
|
+
discount_type: d.discount_type,
|
202
|
+
discountway: d.discountway,
|
203
|
+
product_name: d.product_title,
|
204
|
+
total: Number(d.selling_price),
|
205
|
+
origin_total: Number(d.original_price),
|
206
|
+
payment_price: Number(d.payment_price),
|
207
|
+
price: Number(d.source_product_price),
|
208
|
+
quantity: d.product_quantity,
|
209
|
+
bundle_edit: 0,
|
210
|
+
other: restoreProductOtherData(d),
|
211
|
+
startDate: dayjs(),
|
212
|
+
endDate: dayjs(),
|
213
|
+
note: d.note
|
214
|
+
},
|
215
|
+
payment_price: Number(d.payment_price)
|
216
|
+
});
|
217
|
+
});
|
218
|
+
};
|
166
219
|
var TicketBooking = function TicketBooking() {
|
167
|
-
var _engineContext$appHel2, _state$modalState2;
|
220
|
+
var _engineContext$appHel2, _state$modalState2, _state$modalState4;
|
168
221
|
var _useStore = useStore(),
|
169
222
|
_useStore2 = _slicedToArray(_useStore, 2),
|
170
223
|
state = _useStore2[0],
|
@@ -186,8 +239,32 @@ var TicketBooking = function TicketBooking() {
|
|
186
239
|
var _listTimerRef = useRef();
|
187
240
|
var _timerRef = useRef();
|
188
241
|
var _callbackFnRef = useRef();
|
242
|
+
var _useState = useState(0),
|
243
|
+
_useState2 = _slicedToArray(_useState, 2),
|
244
|
+
activeBookingId = _useState2[0],
|
245
|
+
setActiveBookingId = _useState2[1];
|
246
|
+
var pisellFloatingPanelRef = useRef(null);
|
247
|
+
var closeRef = useRef(null);
|
248
|
+
var bookingTicket = useBookingTicket();
|
249
|
+
var _useScanGlobal = useScanGlobal(),
|
250
|
+
openScan = _useScanGlobal.openScan,
|
251
|
+
closeScan = _useScanGlobal.closeScan;
|
252
|
+
var handleScan = useScanGlobalHandle();
|
253
|
+
var changeCustomerToGlobalState = useMemoizedFn(function () {});
|
254
|
+
var _useCustomer = useCustomer({
|
255
|
+
changeCustomerToGlobalState: changeCustomerToGlobalState
|
256
|
+
}),
|
257
|
+
selectCustomer = _useCustomer.selectCustomer;
|
258
|
+
useMemo(function () {
|
259
|
+
openScan(function (data) {
|
260
|
+
handleScan(data);
|
261
|
+
});
|
262
|
+
return function () {
|
263
|
+
closeScan();
|
264
|
+
};
|
265
|
+
}, []);
|
189
266
|
useEffect(function () {
|
190
|
-
var
|
267
|
+
var _store$getState, _interaction$utils, _interaction$utils2;
|
191
268
|
_persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
|
192
269
|
if (lowcodeRef) {
|
193
270
|
lowcodeRef.onReady(_this);
|
@@ -196,11 +273,17 @@ var TicketBooking = function TicketBooking() {
|
|
196
273
|
action({
|
197
274
|
type: 'pisell1.registerPlugin',
|
198
275
|
data: {
|
199
|
-
pluginList: ['ProductDetailPlugin']
|
276
|
+
pluginList: ['ProductDetailPlugin', 'BookingPlugin3']
|
200
277
|
}
|
201
278
|
});
|
202
279
|
}
|
203
|
-
|
280
|
+
|
281
|
+
// interaction?.utils?.mountFunction(
|
282
|
+
// 'booking',
|
283
|
+
// 'scanBookingDetailResult',
|
284
|
+
// _scanBookingDetailResult
|
285
|
+
// );
|
286
|
+
|
204
287
|
var off = _addVisibilityListener(function () {
|
205
288
|
setState({
|
206
289
|
verticalAddServiceKey: state.verticalAddServiceKey + 1
|
@@ -214,14 +297,15 @@ var TicketBooking = function TicketBooking() {
|
|
214
297
|
});
|
215
298
|
_setShopOpeningHours();
|
216
299
|
_setIntervalTime(true);
|
217
|
-
interaction === null || interaction === void 0 || (_interaction$
|
218
|
-
|
300
|
+
interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || _interaction$utils.mountFunction('bookingTicket', 'clearAllCart', function (type, orderId) {
|
301
|
+
console.log('bookingTicket.clearAllCart');
|
219
302
|
// 支付成功后清空状态
|
220
303
|
_initFn(function () {});
|
304
|
+
selectCustomer(null);
|
221
305
|
});
|
222
306
|
|
223
307
|
// 作废预约
|
224
|
-
interaction === null || interaction === void 0 || (_interaction$
|
308
|
+
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'voidBooking', function (orderId) {
|
225
309
|
voidAppointment(orderId);
|
226
310
|
});
|
227
311
|
return function () {
|
@@ -262,11 +346,11 @@ var TicketBooking = function TicketBooking() {
|
|
262
346
|
|
263
347
|
// 商品加购信息发生变化时,需要发送至native端
|
264
348
|
useEffect(function () {
|
265
|
-
var _state$modalState, _locales$getText, _interaction$
|
349
|
+
var _state$modalState, _locales$getText, _interaction$utils4, _interaction$utils4$p;
|
266
350
|
var cartItems = state === null || state === void 0 || (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.service) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
|
267
351
|
if (!Array.isArray(cartItems) || cartItems.length === 0) {
|
268
|
-
var _interaction$
|
269
|
-
interaction === null || interaction === void 0 || (_interaction$
|
352
|
+
var _interaction$utils3, _interaction$utils3$p;
|
353
|
+
interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || (_interaction$utils3$p = _interaction$utils3.postMessageToApp) === null || _interaction$utils3$p === void 0 || _interaction$utils3$p.call(_interaction$utils3, {
|
270
354
|
module: 'cds',
|
271
355
|
key: 'cartUpdate',
|
272
356
|
data: {
|
@@ -360,7 +444,7 @@ var TicketBooking = function TicketBooking() {
|
|
360
444
|
fees: fees
|
361
445
|
}
|
362
446
|
});
|
363
|
-
interaction === null || interaction === void 0 || (_interaction$
|
447
|
+
interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || (_interaction$utils4$p = _interaction$utils4.postMessageToApp) === null || _interaction$utils4$p === void 0 || _interaction$utils4$p.call(_interaction$utils4, {
|
364
448
|
module: 'cds',
|
365
449
|
key: 'cartUpdate',
|
366
450
|
data: {
|
@@ -584,7 +668,8 @@ var TicketBooking = function TicketBooking() {
|
|
584
668
|
list: state.list,
|
585
669
|
intervalSetTime: state.intervalSetTime,
|
586
670
|
createCount: state.createCount,
|
587
|
-
bookingFunctions: state.bookingFunctions
|
671
|
+
bookingFunctions: state.bookingFunctions,
|
672
|
+
isParallelResourcesBooking: state.isParallelResourcesBooking
|
588
673
|
});
|
589
674
|
|
590
675
|
// 格式化
|
@@ -689,7 +774,9 @@ var TicketBooking = function TicketBooking() {
|
|
689
774
|
eventBookingServiceParams = _ref4.eventBookingServiceParams,
|
690
775
|
_ref4$renderType = _ref4.renderType,
|
691
776
|
renderType = _ref4$renderType === void 0 ? 'booking' : _ref4$renderType,
|
692
|
-
openRebook = _ref4.openRebook
|
777
|
+
openRebook = _ref4.openRebook,
|
778
|
+
_ref4$isParallelResou = _ref4.isParallelResourcesBooking,
|
779
|
+
isParallelResourcesBooking = _ref4$isParallelResou === void 0 ? true : _ref4$isParallelResou;
|
693
780
|
setState({
|
694
781
|
isShowInfo: false
|
695
782
|
});
|
@@ -711,7 +798,7 @@ var TicketBooking = function TicketBooking() {
|
|
711
798
|
}
|
712
799
|
};
|
713
800
|
var isOpen = state.open;
|
714
|
-
setState(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, renderType === 'eventBooking' ? 'eventOpen' : 'open', true), "bookingId", bookingId || 0), "renderType", renderType), "openRebook", openRebook), "disableEventBookingEdit", eventBookingServiceParams === null || eventBookingServiceParams === void 0 ? void 0 : eventBookingServiceParams.disableEventBookingEdit), "modalState", _objectSpread(_objectSpread({}, state.modalState), {}, {
|
801
|
+
setState(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, renderType === 'eventBooking' ? 'eventOpen' : 'open', true), "bookingId", bookingId || 0), "renderType", renderType), "openRebook", openRebook), "isParallelResourcesBooking", isParallelResourcesBooking), "disableEventBookingEdit", eventBookingServiceParams === null || eventBookingServiceParams === void 0 ? void 0 : eventBookingServiceParams.disableEventBookingEdit), "modalState", _objectSpread(_objectSpread({}, state.modalState), {}, {
|
715
802
|
eventOtherParams: eventBookingServiceParams
|
716
803
|
})), "isShowInfo", !_isTerminal), "persistent", storage.get("drawer-booking") === 'true' ? true : _isTerminal), function () {
|
717
804
|
console.log(isOpen, 'isOpen');
|
@@ -806,8 +893,10 @@ var TicketBooking = function TicketBooking() {
|
|
806
893
|
list: state.list,
|
807
894
|
intervalSetTime: state.intervalSetTime,
|
808
895
|
createCount: state.createCount,
|
809
|
-
bookingFunctions: state.bookingFunctions
|
896
|
+
bookingFunctions: state.bookingFunctions,
|
897
|
+
isParallelResourcesBooking: state.isParallelResourcesBooking
|
810
898
|
})), {}, {
|
899
|
+
shop_discount: '0',
|
811
900
|
loading: false,
|
812
901
|
open: open !== null && open !== void 0 ? open : false,
|
813
902
|
eventOpen: false,
|
@@ -820,6 +909,7 @@ var TicketBooking = function TicketBooking() {
|
|
820
909
|
|
821
910
|
// 新建完成之后的回调
|
822
911
|
var _callback = function _callback(data, type) {
|
912
|
+
var _pisellFloatingPanelR;
|
823
913
|
// 结账时
|
824
914
|
if (isTerminal() && type === 'checkout') {
|
825
915
|
return;
|
@@ -848,6 +938,10 @@ var TicketBooking = function TicketBooking() {
|
|
848
938
|
if (!bookingId) {
|
849
939
|
_setIntervalTime(true);
|
850
940
|
}
|
941
|
+
if ((_pisellFloatingPanelR = pisellFloatingPanelRef.current) !== null && _pisellFloatingPanelR !== void 0 && _pisellFloatingPanelR.getIsOpen()) {
|
942
|
+
var _pisellFloatingPanelR2;
|
943
|
+
(_pisellFloatingPanelR2 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR2 === void 0 || _pisellFloatingPanelR2.refresh();
|
944
|
+
}
|
851
945
|
_initFn(cb);
|
852
946
|
};
|
853
947
|
var _refreshData = function _refreshData() {
|
@@ -862,18 +956,86 @@ var TicketBooking = function TicketBooking() {
|
|
862
956
|
modalState: _getInitState().modalState
|
863
957
|
});
|
864
958
|
};
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
959
|
+
var currentDate = useMemo(function () {
|
960
|
+
var _state$modalState3;
|
961
|
+
return (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.value) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.format('YYYY-MM-DD');
|
962
|
+
}, [(_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value]);
|
963
|
+
var floatButtons = useMemo(function () {
|
964
|
+
return [{
|
965
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
966
|
+
type: "pisell2-person"
|
967
|
+
}),
|
968
|
+
key: 'dashboard',
|
969
|
+
onClick: function onClick() {
|
970
|
+
var _pisellFloatingPanelR3;
|
971
|
+
(_pisellFloatingPanelR3 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR3 === void 0 || _pisellFloatingPanelR3.open();
|
972
|
+
}
|
973
|
+
}];
|
974
|
+
}, []);
|
975
|
+
var onMaskClick = function onMaskClick() {
|
976
|
+
setActiveBookingId(0);
|
977
|
+
// _setIntervalTime(true);
|
978
|
+
// _openModal({});
|
979
|
+
};
|
980
|
+
var handleCreateClick = function handleCreateClick() {
|
981
|
+
var _pisellFloatingPanelR4;
|
982
|
+
onMaskClick();
|
983
|
+
(_pisellFloatingPanelR4 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR4 === void 0 || _pisellFloatingPanelR4.close();
|
984
|
+
};
|
985
|
+
var handleBookingClick = function handleBookingClick(booking) {
|
986
|
+
// _setIntervalTime(false);
|
987
|
+
if (activeBookingId) {
|
988
|
+
var _closeRef$current;
|
989
|
+
onMaskClick();
|
990
|
+
(_closeRef$current = closeRef.current) === null || _closeRef$current === void 0 || _closeRef$current.call(closeRef, 'pisell2');
|
991
|
+
} else {
|
992
|
+
var _booking$order, _booking$order2;
|
993
|
+
setTimeout(function () {
|
994
|
+
setActiveBookingId(booking.order.id);
|
995
|
+
});
|
996
|
+
var time = new Date();
|
997
|
+
var close = action({
|
998
|
+
type: 'pisell1.bookingDetail',
|
999
|
+
data: {
|
1000
|
+
component_type: getBookingType(booking),
|
1001
|
+
booking_id: booking.order.id,
|
1002
|
+
type: booking.parent_id === 0 ? 'list' : 'detail',
|
1003
|
+
id: booking.id,
|
1004
|
+
isParallelResourcesBooking: getIsParallelResourcesBooking(booking),
|
1005
|
+
preliminaryBookingDetail: {
|
1006
|
+
customer: booking === null || booking === void 0 || (_booking$order = booking.order) === null || _booking$order === void 0 ? void 0 : _booking$order.customer,
|
1007
|
+
id: booking.order.id,
|
1008
|
+
order_sales_channel: booking === null || booking === void 0 || (_booking$order2 = booking.order) === null || _booking$order2 === void 0 ? void 0 : _booking$order2.order_sales_channel,
|
1009
|
+
bookings: {
|
1010
|
+
booking_id: booking === null || booking === void 0 ? void 0 : booking.booking_id,
|
1011
|
+
appointment_status: booking === null || booking === void 0 ? void 0 : booking.appointment_status,
|
1012
|
+
list: [{
|
1013
|
+
start_date: booking === null || booking === void 0 ? void 0 : booking.start_date,
|
1014
|
+
start_time: booking === null || booking === void 0 ? void 0 : booking.start_time
|
1015
|
+
}]
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
},
|
1019
|
+
callback: function callback(params) {
|
1020
|
+
var calllbackTime = new Date();
|
1021
|
+
if (calllbackTime.getTime() - time.getTime() < 500) return;
|
1022
|
+
if (params.type === 'close') {
|
1023
|
+
_clearAllValue();
|
1024
|
+
onMaskClick();
|
1025
|
+
}
|
1026
|
+
if (params.type === 'refresh') {
|
1027
|
+
var _pisellFloatingPanelR5;
|
1028
|
+
(_pisellFloatingPanelR5 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR5 === void 0 || _pisellFloatingPanelR5.refresh();
|
1029
|
+
}
|
1030
|
+
}
|
1031
|
+
});
|
1032
|
+
closeRef.current = close;
|
871
1033
|
}
|
1034
|
+
};
|
1035
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
1036
|
+
className: "ticket-booking-left-panel"
|
872
1037
|
}, /*#__PURE__*/React.createElement("div", {
|
873
|
-
|
874
|
-
flex: 1,
|
875
|
-
overflow: 'hidden'
|
876
|
-
}
|
1038
|
+
className: "ticket-booking-left-panel-content"
|
877
1039
|
}, /*#__PURE__*/React.createElement(AddServiceVariant, {
|
878
1040
|
globalState: _objectSpread(_objectSpread({}, state.modalState), {}, {
|
879
1041
|
amountSymbol: state.amountSymbol,
|
@@ -896,7 +1058,10 @@ var TicketBooking = function TicketBooking() {
|
|
896
1058
|
isBookingTicket2: true
|
897
1059
|
}),
|
898
1060
|
setGlobalState: _setModalState
|
1061
|
+
}), /*#__PURE__*/React.createElement(FloatButtons, {
|
1062
|
+
items: floatButtons
|
899
1063
|
})), /*#__PURE__*/React.createElement(TimeBar, {
|
1064
|
+
onCreateClick: handleCreateClick,
|
900
1065
|
setGlobalState: setState,
|
901
1066
|
globalState: state,
|
902
1067
|
onDateChange: function onDateChange() {
|
@@ -938,7 +1103,12 @@ var TicketBooking = function TicketBooking() {
|
|
938
1103
|
setActiveTab: _setActiveTab,
|
939
1104
|
clearAllValue: _clearAllValue,
|
940
1105
|
drawerMask: true,
|
941
|
-
isBookingTicket2: true
|
1106
|
+
isBookingTicket2: true,
|
1107
|
+
isParallelResourcesBooking: state.isParallelResourcesBooking,
|
1108
|
+
onQrCodeClick: function onQrCodeClick() {
|
1109
|
+
console.log('onQrCodeClick');
|
1110
|
+
bookingTicket === null || bookingTicket === void 0 || bookingTicket.activateCamera();
|
1111
|
+
}
|
942
1112
|
}),
|
943
1113
|
setGlobalState: _setModalState,
|
944
1114
|
setState: setState,
|
@@ -949,6 +1119,11 @@ var TicketBooking = function TicketBooking() {
|
|
949
1119
|
holder: 1,
|
950
1120
|
note: 1
|
951
1121
|
}
|
952
|
-
}))
|
1122
|
+
})), /*#__PURE__*/React.createElement(PisellFloatingPanel, {
|
1123
|
+
bookingId: activeBookingId,
|
1124
|
+
ref: pisellFloatingPanelRef,
|
1125
|
+
currentDate: currentDate,
|
1126
|
+
onBookingClick: handleBookingClick
|
1127
|
+
}));
|
953
1128
|
};
|
954
1129
|
export default TicketBooking;
|
@@ -1,10 +1,38 @@
|
|
1
1
|
.pisell-ticket-booking-wrapper {
|
2
|
+
.ticket-booking-left-panel {
|
3
|
+
flex: 1;
|
4
|
+
overflow: hidden;
|
5
|
+
display: flex;
|
6
|
+
flex-direction: column;
|
7
|
+
.ticket-booking-left-panel-content {
|
8
|
+
flex: 1;
|
9
|
+
overflow: hidden;
|
10
|
+
position: relative;
|
11
|
+
}
|
12
|
+
}
|
2
13
|
.pisell-lowcode__booking-tab-pane-footer {
|
3
14
|
padding: 16px;
|
4
15
|
}
|
5
16
|
.create-booking-page-info-wrap-create {
|
6
17
|
background-color: #1b1b1b;
|
7
18
|
.booking-info {
|
19
|
+
height: 100%;
|
20
|
+
padding-top: 10px;
|
21
|
+
display: flex;
|
22
|
+
flex-direction: column;
|
23
|
+
|
24
|
+
.pisell-lowcode__booking-service-wrap {
|
25
|
+
flex: 1;
|
26
|
+
overflow-y: auto;
|
27
|
+
/* 隐藏滚动条 */
|
28
|
+
scrollbar-width: none; /* Firefox */
|
29
|
+
-ms-overflow-style: none; /* IE and Edge */
|
30
|
+
|
31
|
+
&::-webkit-scrollbar {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
8
36
|
.booking-info-create-new,
|
9
37
|
.pisell-lowcode__booking-field-title,
|
10
38
|
.pisell-lowcode__shopping-cart-empty,
|
@@ -7,6 +7,7 @@ interface ITimeBarProps {
|
|
7
7
|
onDateTimeChange: (date: Dayjs, timeString: string) => void;
|
8
8
|
setIntervalTime: (value: boolean) => void;
|
9
9
|
locale: string;
|
10
|
+
onCreateClick: () => void;
|
10
11
|
}
|
11
12
|
declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
|
12
13
|
export default TimeBar;
|