@pisell/private-materials 6.2.23 → 6.2.25
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/appointmentBooking/deposit/components/PolicyModal/index.js +1 -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.d.ts +29 -0
- 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.d.ts +10 -0
- 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/customiseItemModal/index.d.ts +28 -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.d.ts +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/useQuotation.js +17 -7
- 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 +12 -3
- 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 +5 -2
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- 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 +5 -1
- package/es/components/booking/info/service2/utils.js +12 -2
- package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
- 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.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/locales.js +26 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/es/components/booking/info2/cartClientCard/types.js +1 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/cartClientCard/utils.js +7 -0
- package/es/components/booking/info2/index.js +40 -18
- package/es/components/booking/info2/service/addTimeModal/index.js +2 -1
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/editNormalService/index.js +67 -0
- package/es/components/booking/info2/service/editService/index.js +3 -2
- package/es/components/booking/info2/service/index.js +11 -5
- 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.d.ts +75 -0
- package/es/components/booking/locales.js +99 -3
- 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.d.ts +1 -1
- 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 +20 -3
- 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/shoppingCart/type.d.ts +1 -0
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +155 -217
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -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.d.ts +12 -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.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -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.d.ts +14 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -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 +10 -3
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -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.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
- package/es/components/ticketBooking/index.js +21 -3
- package/es/components/ticketBooking/locales.d.ts +6 -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.d.ts +2 -0
- package/es/hooks/useToast.js +9 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +452 -0
- package/es/plus/clientCard/index.less +539 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/locales.js +17 -0
- package/es/plus/clientCard/types.d.ts +126 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clientName/index.d.ts +5 -0
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -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.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +214 -0
- package/es/plus/clinetSearch/index.less +91 -0
- package/es/plus/clinetSearch/locales.d.ts +102 -0
- package/es/plus/clinetSearch/locales.js +101 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +49 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/noteModal/AddTempModal.d.ts +7 -0
- package/es/plus/noteModal/AddTempModal.js +64 -0
- package/es/plus/noteModal/index.d.ts +4 -0
- package/es/plus/noteModal/index.js +199 -0
- package/es/plus/noteModal/index.less +168 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/locales.js +32 -0
- package/es/plus/noteModal/types.d.ts +17 -0
- package/es/plus/noteModal/types.js +1 -0
- package/es/pro/comprehensiveSearch/camera.svg +4 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +9 -0
- package/es/pro/comprehensiveSearch/index.js +342 -0
- package/es/pro/comprehensiveSearch/index.less +323 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/es/pro/comprehensiveSearch/locales.js +17 -0
- package/es/pro/comprehensiveSearch/types.d.ts +31 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.d.ts +26 -0
- package/es/pro/pisellNumberSelector/index.js +231 -0
- package/es/pro/pisellNumberSelector/index.less +193 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/index.js +211 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
- package/es/pro/pisellPriceRadio/index.d.ts +26 -0
- package/es/pro/pisellPriceRadio/index.js +113 -0
- package/es/pro/pisellPriceRadio/index.less +158 -0
- package/es/pro/skuDetailModal/index.d.ts +5 -0
- package/es/pro/skuDetailModal/index.js +352 -0
- package/es/pro/skuDetailModal/index.less +236 -0
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/locales.js +47 -0
- package/es/pro/skuDetailModal/types.d.ts +347 -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/appointmentBooking/deposit/components/PolicyModal/index.js +1 -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.d.ts +29 -0
- 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.d.ts +10 -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/customiseItemModal/index.d.ts +28 -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.d.ts +1 -1
- package/lib/components/booking/dashboard/index.js +7 -2
- package/lib/components/booking/hooks/useQuotation.js +3 -1
- 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 +11 -3
- 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 +6 -2
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -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 +5 -1
- package/lib/components/booking/info/service2/utils.js +14 -2
- package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
- 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.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/lib/components/booking/info2/cartClientCard/types.js +17 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -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/addTimeModal/index.js +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
- package/lib/components/booking/info2/service/editService/index.js +2 -1
- package/lib/components/booking/info2/service/index.js +5 -5
- 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.d.ts +75 -0
- package/lib/components/booking/locales.js +93 -3
- package/lib/components/booking/notes/addNote/index.d.ts +1 -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 +20 -3
- 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/shoppingCart/type.d.ts +1 -0
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +41 -131
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -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.d.ts +12 -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.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -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.d.ts +14 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -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 +12 -2
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -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.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
- package/lib/components/ticketBooking/index.js +31 -4
- package/lib/components/ticketBooking/locales.d.ts +6 -3
- 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.d.ts +2 -0
- package/lib/hooks/useToast.js +42 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +442 -0
- package/lib/plus/clientCard/index.less +539 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/locales.js +41 -0
- package/lib/plus/clientCard/types.d.ts +126 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clientName/index.d.ts +5 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -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.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +205 -0
- package/lib/plus/clinetSearch/index.less +91 -0
- package/lib/plus/clinetSearch/locales.d.ts +102 -0
- package/lib/plus/clinetSearch/locales.js +125 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/serve.js +33 -0
- package/lib/plus/clinetSearch/types.d.ts +49 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
- package/lib/plus/noteModal/AddTempModal.js +95 -0
- package/lib/plus/noteModal/index.d.ts +4 -0
- package/lib/plus/noteModal/index.js +199 -0
- package/lib/plus/noteModal/index.less +168 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/locales.js +56 -0
- package/lib/plus/noteModal/types.d.ts +17 -0
- package/lib/plus/noteModal/types.js +17 -0
- package/lib/pro/comprehensiveSearch/camera.svg +4 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/index.js +259 -0
- package/lib/pro/comprehensiveSearch/index.less +323 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/lib/pro/comprehensiveSearch/locales.js +41 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
- package/lib/pro/pisellNumberSelector/index.js +260 -0
- package/lib/pro/pisellNumberSelector/index.less +193 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
- package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
- package/lib/pro/pisellPriceRadio/index.js +130 -0
- package/lib/pro/pisellPriceRadio/index.less +158 -0
- package/lib/pro/skuDetailModal/index.d.ts +5 -0
- package/lib/pro/skuDetailModal/index.js +311 -0
- package/lib/pro/skuDetailModal/index.less +236 -0
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/locales.js +71 -0
- package/lib/pro/skuDetailModal/types.d.ts +347 -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
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ClientData } from '../../../booking/info2/cartClientCard/types';
|
2
|
+
export declare const useCustomer: (props: {
|
3
|
+
changeCustomerToGlobalState?: ((value: ClientData) => void) | undefined;
|
4
|
+
}) => {
|
5
|
+
customers: never[];
|
6
|
+
selectedCustomer: ClientData | null;
|
7
|
+
loading: boolean;
|
8
|
+
error: null;
|
9
|
+
pagination: {
|
10
|
+
page: number;
|
11
|
+
pageSize: number;
|
12
|
+
total: number;
|
13
|
+
};
|
14
|
+
loadCustomers: (params?: {
|
15
|
+
skip?: number;
|
16
|
+
num?: number;
|
17
|
+
search?: string;
|
18
|
+
}) => Promise<void>;
|
19
|
+
changePage: (page: number, pageSize: number) => Promise<void>;
|
20
|
+
selectCustomer: (customer: ClientData | null) => void;
|
21
|
+
addCustomerToFirst: (customer: ClientData) => void;
|
22
|
+
initLoad: (this: any, keyword?: any) => Promise<void>;
|
23
|
+
hasMore: boolean;
|
24
|
+
loadMore: () => Promise<void>;
|
25
|
+
};
|
@@ -0,0 +1,144 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
|
19
|
+
// src/components/ticketBooking/hooks/pisellos/useCustomer.ts
|
20
|
+
var useCustomer_exports = {};
|
21
|
+
__export(useCustomer_exports, {
|
22
|
+
useCustomer: () => useCustomer
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(useCustomer_exports);
|
25
|
+
var import_react = require("react");
|
26
|
+
var import_bookingTicket = require("./bookingTicket");
|
27
|
+
var import_useEngineContext = require("../../../../hooks/useEngineContext");
|
28
|
+
var import_ahooks = require("ahooks");
|
29
|
+
var useCustomer = (props) => {
|
30
|
+
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
31
|
+
const pisellos = (0, import_useEngineContext.usePisellOS)();
|
32
|
+
const [customers, setCustomers] = (0, import_react.useState)([]);
|
33
|
+
const [selectedCustomer, setSelectedCustomer] = (0, import_react.useState)(null);
|
34
|
+
const [loading, setLoading] = (0, import_react.useState)(false);
|
35
|
+
const [error, setError] = (0, import_react.useState)(null);
|
36
|
+
const [pagination, setPagination] = (0, import_react.useState)({
|
37
|
+
page: 1,
|
38
|
+
pageSize: 20,
|
39
|
+
total: 0
|
40
|
+
});
|
41
|
+
const [hasMore, setHasMore] = (0, import_react.useState)(false);
|
42
|
+
const [loadingMore, setLoadingMore] = (0, import_react.useState)(false);
|
43
|
+
(0, import_react.useEffect)(() => {
|
44
|
+
if (!pisellos) {
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
pisellos.effects.on("customer:onUpdate", (state) => {
|
48
|
+
setCustomers(state.customerList);
|
49
|
+
setHasMore(state.hasMore);
|
50
|
+
setPagination((prev) => ({
|
51
|
+
...prev,
|
52
|
+
total: state.total,
|
53
|
+
page: state.currentPage,
|
54
|
+
pageSize: state.pageSize
|
55
|
+
}));
|
56
|
+
});
|
57
|
+
pisellos.effects.on("customer:onSelected", (customer) => {
|
58
|
+
var _a;
|
59
|
+
setSelectedCustomer(customer);
|
60
|
+
(_a = props.changeCustomerToGlobalState) == null ? void 0 : _a.call(props, customer);
|
61
|
+
});
|
62
|
+
pisellos.effects.on("customer:onPaginationChange", (paginationInfo) => {
|
63
|
+
setPagination(paginationInfo);
|
64
|
+
});
|
65
|
+
return () => {
|
66
|
+
pisellos.effects.off("customer:onUpdate");
|
67
|
+
pisellos.effects.off("customer:onSelected");
|
68
|
+
pisellos.effects.off("customer:onPaginationChange");
|
69
|
+
};
|
70
|
+
}, [bookingTicket]);
|
71
|
+
const loadCustomers = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
72
|
+
try {
|
73
|
+
setLoading(true);
|
74
|
+
await bookingTicket.getCustomerList(params);
|
75
|
+
} catch (err) {
|
76
|
+
setError(err == null ? void 0 : err.message);
|
77
|
+
}
|
78
|
+
setLoading(false);
|
79
|
+
});
|
80
|
+
const initLoad = (0, import_ahooks.useMemoizedFn)(async (keyword = "") => {
|
81
|
+
try {
|
82
|
+
await bookingTicket.resetAndLoadCustomers({
|
83
|
+
search: keyword || void 0
|
84
|
+
});
|
85
|
+
} catch (error2) {
|
86
|
+
console.error("初始化加载失败:", error2);
|
87
|
+
}
|
88
|
+
});
|
89
|
+
const loadMore = (0, import_ahooks.useMemoizedFn)(async () => {
|
90
|
+
if (!hasMore || loadingMore) return;
|
91
|
+
setLoadingMore(true);
|
92
|
+
try {
|
93
|
+
await bookingTicket.loadMoreCustomers();
|
94
|
+
} catch (error2) {
|
95
|
+
console.error("加载更多失败:", error2);
|
96
|
+
}
|
97
|
+
setLoadingMore(false);
|
98
|
+
});
|
99
|
+
const changePage = (0, import_ahooks.useMemoizedFn)(async (page, pageSize) => {
|
100
|
+
try {
|
101
|
+
setLoading(true);
|
102
|
+
await bookingTicket.changeCustomerPage(page, pageSize);
|
103
|
+
} catch (err) {
|
104
|
+
setError(err.message);
|
105
|
+
}
|
106
|
+
setLoading(false);
|
107
|
+
});
|
108
|
+
const selectCustomer = (0, import_ahooks.useMemoizedFn)((customer) => {
|
109
|
+
bookingTicket.setActiveCustomer(customer);
|
110
|
+
});
|
111
|
+
const addCustomerToFirst = (0, import_ahooks.useMemoizedFn)((customer) => {
|
112
|
+
bookingTicket.addCustomerToFirst(customer);
|
113
|
+
});
|
114
|
+
return {
|
115
|
+
// 客户列表
|
116
|
+
customers,
|
117
|
+
// 选中的客户
|
118
|
+
selectedCustomer,
|
119
|
+
// 加载状态
|
120
|
+
loading,
|
121
|
+
// 错误信息
|
122
|
+
error,
|
123
|
+
// 分页信息
|
124
|
+
pagination,
|
125
|
+
// 加载客户列表
|
126
|
+
loadCustomers,
|
127
|
+
// 切换分页
|
128
|
+
changePage,
|
129
|
+
// 选择客户
|
130
|
+
selectCustomer,
|
131
|
+
// 新增客户到第一个
|
132
|
+
addCustomerToFirst,
|
133
|
+
// 初始化滚动加载
|
134
|
+
initLoad,
|
135
|
+
// 更多数据
|
136
|
+
hasMore,
|
137
|
+
// 加载更多
|
138
|
+
loadMore
|
139
|
+
};
|
140
|
+
};
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
142
|
+
0 && (module.exports = {
|
143
|
+
useCustomer
|
144
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
interface IGetProductsParams {
|
2
|
+
schedule_date?: string;
|
3
|
+
customer_id?: number;
|
4
|
+
menu_list_ids?: number[];
|
5
|
+
schedule_datetime?: string;
|
6
|
+
}
|
7
|
+
export declare const useProducts: () => {
|
8
|
+
getProducts: (params?: IGetProductsParams) => Promise<void>;
|
9
|
+
products: any[];
|
10
|
+
loading: boolean;
|
11
|
+
};
|
12
|
+
export {};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
|
19
|
+
// src/components/ticketBooking/hooks/pisellos/useProducts.ts
|
20
|
+
var useProducts_exports = {};
|
21
|
+
__export(useProducts_exports, {
|
22
|
+
useProducts: () => useProducts
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(useProducts_exports);
|
25
|
+
var import_ahooks = require("ahooks");
|
26
|
+
var import_bookingTicket = require("./bookingTicket");
|
27
|
+
var import_react = require("react");
|
28
|
+
var useProducts = () => {
|
29
|
+
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
30
|
+
const [products, setProducts] = (0, import_react.useState)([]);
|
31
|
+
const [loading, setLoading] = (0, import_react.useState)(true);
|
32
|
+
const getProducts = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
33
|
+
setLoading(true);
|
34
|
+
const products2 = await bookingTicket.loadProducts(params);
|
35
|
+
setProducts(products2);
|
36
|
+
setLoading(false);
|
37
|
+
});
|
38
|
+
return {
|
39
|
+
getProducts,
|
40
|
+
products,
|
41
|
+
loading
|
42
|
+
};
|
43
|
+
};
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
45
|
+
0 && (module.exports = {
|
46
|
+
useProducts
|
47
|
+
});
|
@@ -0,0 +1,64 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/components/ticketBooking/hooks/pisellos/useScanCustomer.ts
|
30
|
+
var useScanCustomer_exports = {};
|
31
|
+
__export(useScanCustomer_exports, {
|
32
|
+
default: () => useScanCustomer_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(useScanCustomer_exports);
|
35
|
+
var import_react = require("react");
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import_bookingTicket = require("./bookingTicket");
|
38
|
+
var import_utils2 = require("../../utils");
|
39
|
+
var import_useToast = __toESM(require("../../../../hooks/useToast"));
|
40
|
+
var useScanCustomer = () => {
|
41
|
+
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
42
|
+
const scanRef = (0, import_react.useRef)(null);
|
43
|
+
const Toast = (0, import_useToast.default)();
|
44
|
+
const handleScanCustomer = (callback) => {
|
45
|
+
console.log("handleScanCustomer>>>>>>>", callback);
|
46
|
+
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanCustomerListener((data) => {
|
47
|
+
console.log("scanCustomerListener>>>>>>>", data);
|
48
|
+
if (data.status === "failed") {
|
49
|
+
Toast.fail(import_utils.locales.getText("pisell2.text.scan-global-failed"));
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
const customer = (0, import_utils2.formatScanCustomer)(data);
|
53
|
+
callback(customer);
|
54
|
+
});
|
55
|
+
};
|
56
|
+
return {
|
57
|
+
openScan: handleScanCustomer,
|
58
|
+
closeScan: () => {
|
59
|
+
var _a, _b;
|
60
|
+
(_b = (_a = scanRef.current) == null ? void 0 : _a.remove) == null ? void 0 : _b.call(_a);
|
61
|
+
}
|
62
|
+
};
|
63
|
+
};
|
64
|
+
var useScanCustomer_default = useScanCustomer;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/components/ticketBooking/hooks/pisellos/useScanGlobal.ts
|
30
|
+
var useScanGlobal_exports = {};
|
31
|
+
__export(useScanGlobal_exports, {
|
32
|
+
default: () => useScanGlobal_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(useScanGlobal_exports);
|
35
|
+
var import_react = require("react");
|
36
|
+
var import_bookingTicket = require("./bookingTicket");
|
37
|
+
var import_utils = require("../../utils");
|
38
|
+
var import_useToast = __toESM(require("../../../../hooks/useToast"));
|
39
|
+
var import_utils2 = require("@pisell/utils");
|
40
|
+
var useScanGlobal = () => {
|
41
|
+
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
42
|
+
const scanRef = (0, import_react.useRef)(null);
|
43
|
+
const Toast = (0, import_useToast.default)();
|
44
|
+
const handleScanGlobal = (callback) => {
|
45
|
+
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanGlobalListener(
|
46
|
+
(data) => {
|
47
|
+
console.log("scanGlobalListener>>>>>>>", data);
|
48
|
+
if (data.status === "failed") {
|
49
|
+
Toast.fail(import_utils2.locales.getText("pisell2.text.scan-global-failed"));
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
const result = (0, import_utils.formatScanGlobal)(data);
|
53
|
+
callback(result);
|
54
|
+
}
|
55
|
+
);
|
56
|
+
};
|
57
|
+
return {
|
58
|
+
openScan: handleScanGlobal,
|
59
|
+
closeScan: () => {
|
60
|
+
var _a, _b;
|
61
|
+
(_b = (_a = scanRef.current) == null ? void 0 : _a.remove) == null ? void 0 : _b.call(_a);
|
62
|
+
}
|
63
|
+
};
|
64
|
+
};
|
65
|
+
var useScanGlobal_default = useScanGlobal;
|
@@ -0,0 +1,83 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.ts
|
30
|
+
var useScanGlobalHandle_exports = {};
|
31
|
+
__export(useScanGlobalHandle_exports, {
|
32
|
+
default: () => useScanGlobalHandle_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(useScanGlobalHandle_exports);
|
35
|
+
var import_utils = require("@pisell/utils");
|
36
|
+
var import_utils2 = require("../../../booking/info2/cartClientCard/utils");
|
37
|
+
var import_utils3 = require("../../components/addServiceVariant/utils");
|
38
|
+
var import_useToast = __toESM(require("../../../../hooks/useToast"));
|
39
|
+
var useScanGlobalHandle = () => {
|
40
|
+
const Toast = (0, import_useToast.default)();
|
41
|
+
const walletHandle = (data) => {
|
42
|
+
const handleSetClient = (0, import_utils2.getHandleSetClient)();
|
43
|
+
if (!data.data) {
|
44
|
+
Toast.fail(import_utils.locales.getText("pisell2.text.scan-global-failed"));
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
if (handleSetClient && data.data) {
|
48
|
+
handleSetClient(data.data);
|
49
|
+
}
|
50
|
+
};
|
51
|
+
const walletPassHandle = (data) => {
|
52
|
+
const handleSetClient = (0, import_utils2.getHandleSetClient)();
|
53
|
+
if (!data.data) {
|
54
|
+
Toast.fail(import_utils.locales.getText("pisell2.text.scan-global-failed"));
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
if (handleSetClient && data.data) {
|
58
|
+
handleSetClient(data.data);
|
59
|
+
}
|
60
|
+
};
|
61
|
+
const productHandle = (data) => {
|
62
|
+
var _a, _b;
|
63
|
+
const handleSetService = (0, import_utils3.getHandleSetService)();
|
64
|
+
if (!((_a = data.data) == null ? void 0 : _a.list)) {
|
65
|
+
Toast.fail(import_utils.locales.getText("pisell2.text.scan-global-failed"));
|
66
|
+
return;
|
67
|
+
}
|
68
|
+
if (handleSetService && ((_b = data == null ? void 0 : data.data) == null ? void 0 : _b.list)) {
|
69
|
+
handleSetService(data.data.list, data.scanCode);
|
70
|
+
}
|
71
|
+
};
|
72
|
+
const handleScan = (data) => {
|
73
|
+
if (data.searchType === "wallet") {
|
74
|
+
walletHandle(data);
|
75
|
+
} else if (data.searchType === "walletPass") {
|
76
|
+
walletPassHandle(data);
|
77
|
+
} else if (data.searchType === "product" || data.searchType === "local_product") {
|
78
|
+
productHandle(data);
|
79
|
+
}
|
80
|
+
};
|
81
|
+
return handleScan;
|
82
|
+
};
|
83
|
+
var useScanGlobalHandle_default = useScanGlobalHandle;
|
@@ -173,23 +173,50 @@ var initialState = {
|
|
173
173
|
bookingConfigParams: {
|
174
174
|
item_type: "appointment_booking"
|
175
175
|
},
|
176
|
-
productExtensionType: [
|
176
|
+
productExtensionType: [
|
177
|
+
"appointment_ticket",
|
178
|
+
"session_ticket",
|
179
|
+
"product_appointment",
|
180
|
+
"service_product",
|
181
|
+
"session_product",
|
182
|
+
"normal",
|
183
|
+
"product_appointment"
|
184
|
+
],
|
185
|
+
// 是否是平行资源预约的booking
|
186
|
+
isParallelResourcesBooking: null
|
177
187
|
};
|
178
188
|
var ticketBooking_default = (props) => {
|
179
|
-
var _a, _b;
|
189
|
+
var _a, _b, _c;
|
180
190
|
const { productExtensionType, bookingConfigParams } = props;
|
181
191
|
const storeRef = (0, import_react.useRef)(null);
|
182
192
|
const context = (0, import_useEngineContext.default)();
|
193
|
+
const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
194
|
+
const { BookingTicket } = pisellosAllModule || {};
|
183
195
|
import_utils.locales.init(
|
184
196
|
import_locales.default,
|
185
|
-
((
|
197
|
+
((_c = (_b = context.appHelper.utils) == null ? void 0 : _b.storage) == null ? void 0 : _c.get("umi_locale")) || "en"
|
186
198
|
);
|
187
199
|
(0, import_react.useLayoutEffect)(() => {
|
188
200
|
import_utils2.request.setRequest(context.appHelper.utils.request);
|
189
201
|
}, []);
|
190
202
|
(0, import_react.useMemo)(() => {
|
191
|
-
const store = (0, import_miniRedux.createStore)({
|
203
|
+
const store = (0, import_miniRedux.createStore)({
|
204
|
+
...(0, import_lodash.cloneDeep)(initialState),
|
205
|
+
bookingConfigParams,
|
206
|
+
productExtensionType
|
207
|
+
});
|
192
208
|
storeRef.current = store;
|
193
209
|
}, []);
|
210
|
+
(0, import_react.useMemo)(() => {
|
211
|
+
if (BookingTicket) {
|
212
|
+
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket("bookingTicket"), {
|
213
|
+
initialState: {},
|
214
|
+
otherParams: {
|
215
|
+
cacheId: "test-cache",
|
216
|
+
platform: "shop"
|
217
|
+
}
|
218
|
+
});
|
219
|
+
}
|
220
|
+
}, []);
|
194
221
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
|
195
222
|
};
|
@@ -54,7 +54,8 @@ declare const _default: {
|
|
54
54
|
'pisell2.product.card.day': (val: number) => string;
|
55
55
|
'pisell2.product.card.day.event': (val: number) => string;
|
56
56
|
'pisell2.product.card.minute': (val: number) => string;
|
57
|
-
|
57
|
+
'pisell2.ticket-booking.reload': string;
|
58
|
+
'pisell2.text.scan-global-failed': string;
|
58
59
|
};
|
59
60
|
'zh-CN': {
|
60
61
|
'pisell2.ticket-booking.info': string;
|
@@ -111,7 +112,8 @@ declare const _default: {
|
|
111
112
|
'pisell2.product.card.day': (val: number) => string;
|
112
113
|
'pisell2.product.card.day.event': (val: number) => string;
|
113
114
|
'pisell2.product.card.minute': (val: number) => string;
|
114
|
-
|
115
|
+
'pisell2.ticket-booking.reload': string;
|
116
|
+
'pisell2.text.scan-global-failed': string;
|
115
117
|
};
|
116
118
|
'zh-HK': {
|
117
119
|
'pisell2.ticket-booking.info': string;
|
@@ -168,7 +170,8 @@ declare const _default: {
|
|
168
170
|
'pisell2.product.card.day': (val: number) => string;
|
169
171
|
'pisell2.product.card.day.event': (val: number) => string;
|
170
172
|
'pisell2.product.card.minute': (val: number) => string;
|
171
|
-
|
173
|
+
'pisell2.ticket-booking.reload': string;
|
174
|
+
'pisell2.text.scan-global-failed': string;
|
172
175
|
};
|
173
176
|
};
|
174
177
|
export default _default;
|
@@ -78,7 +78,8 @@ var locales_default = {
|
|
78
78
|
"pisell2.product.card.day": (val) => `${val > 1 ? " days" : " day"}`,
|
79
79
|
"pisell2.product.card.day.event": (val) => `${val > 1 ? " events" : " event"}`,
|
80
80
|
"pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}`,
|
81
|
-
"pisell2.ticket-booking.reload": "Reload"
|
81
|
+
"pisell2.ticket-booking.reload": "Reload",
|
82
|
+
"pisell2.text.scan-global-failed": "No matching results"
|
82
83
|
},
|
83
84
|
"zh-CN": {
|
84
85
|
"pisell2.ticket-booking.info": "信息",
|
@@ -135,7 +136,8 @@ var locales_default = {
|
|
135
136
|
"pisell2.product.card.day": (val) => "天",
|
136
137
|
"pisell2.product.card.day.event": (val) => "个活动",
|
137
138
|
"pisell2.product.card.minute": (val) => "分钟",
|
138
|
-
"pisell2.ticket-booking.reload": "重新加载"
|
139
|
+
"pisell2.ticket-booking.reload": "重新加载",
|
140
|
+
"pisell2.text.scan-global-failed": "无搜索结果"
|
139
141
|
},
|
140
142
|
"zh-HK": {
|
141
143
|
"pisell2.ticket-booking.info": "資訊",
|
@@ -192,6 +194,7 @@ var locales_default = {
|
|
192
194
|
"pisell2.product.card.day": (val) => "天",
|
193
195
|
"pisell2.product.card.day.event": (val) => "个活動",
|
194
196
|
"pisell2.product.card.minute": (val) => "分鐘",
|
195
|
-
"pisell2.ticket-booking.reload": "重新載入"
|
197
|
+
"pisell2.ticket-booking.reload": "重新載入",
|
198
|
+
"pisell2.text.scan-global-failed": "無搜索結果"
|
196
199
|
}
|
197
200
|
};
|
@@ -98,23 +98,23 @@ var createBooking = async (params) => {
|
|
98
98
|
return data;
|
99
99
|
};
|
100
100
|
var getAddonsByOrderId = async (bookingId, params) => {
|
101
|
-
let { data } = await import_utils.request.getRequest().get(
|
101
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/addons/${bookingId}`, params);
|
102
102
|
return data;
|
103
103
|
};
|
104
104
|
var saveAddonsByOrderId = async (bookingId, params) => {
|
105
|
-
let { data } = await import_utils.request.getRequest().put(
|
105
|
+
let { data } = await import_utils.request.getRequest().put(`${prefix}/order/appointment/addons/${bookingId}`, params);
|
106
106
|
return data;
|
107
107
|
};
|
108
108
|
var getBookingDetail = async (bookingId, params) => {
|
109
|
-
let { data } = await import_utils.request.getRequest().get(
|
109
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/${bookingId}`, params);
|
110
110
|
return data;
|
111
111
|
};
|
112
112
|
var editBookingStatus = async (bookingId, params) => {
|
113
|
-
let { data } = await import_utils.request.getRequest().put(
|
113
|
+
let { data } = await import_utils.request.getRequest().put(`${prefix}/schedule/booking/appointment-status/${bookingId}`, params);
|
114
114
|
return data;
|
115
115
|
};
|
116
116
|
var editBooking = async (bookingId, params) => {
|
117
|
-
let { data } = await import_utils.request.getRequest().put(
|
117
|
+
let { data } = await import_utils.request.getRequest().put(`${prefix}/order/appointment/v1.1/${bookingId}`, params);
|
118
118
|
return data;
|
119
119
|
};
|
120
120
|
var getNotesByOrder = async (params) => {
|
@@ -126,11 +126,11 @@ var addNotesByOrder = async (params) => {
|
|
126
126
|
return data;
|
127
127
|
};
|
128
128
|
var editNoteByOrder = async (bookingId, params) => {
|
129
|
-
let { data } = await import_utils.request.getRequest().put(
|
129
|
+
let { data } = await import_utils.request.getRequest().put(`${prefix}/schedule/event-note/${bookingId}`, params);
|
130
130
|
return data;
|
131
131
|
};
|
132
132
|
var removeNoteByOrder = async (bookingId, params) => {
|
133
|
-
let { data } = await import_utils.request.getRequest().remove(
|
133
|
+
let { data } = await import_utils.request.getRequest().remove(`${prefix}/schedule/event-note/${bookingId}`, params);
|
134
134
|
return data;
|
135
135
|
};
|
136
136
|
var saveBookingFormData = async (params) => {
|
@@ -142,11 +142,11 @@ var getPaymentList = async (params) => {
|
|
142
142
|
return data;
|
143
143
|
};
|
144
144
|
var editOrderNote = async (bookingId, params) => {
|
145
|
-
let { data } = await import_utils.request.getRequest().put(
|
145
|
+
let { data } = await import_utils.request.getRequest().put(`${prefix}/order/order/${bookingId}/note`, params);
|
146
146
|
return data;
|
147
147
|
};
|
148
148
|
var getRefundInfo = async (bookingId, params) => {
|
149
|
-
let { data } = await import_utils.request.getRequest().get(
|
149
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/order/refund-info/${bookingId}`, params);
|
150
150
|
return data;
|
151
151
|
};
|
152
152
|
var createEventBooking = async (params) => {
|
@@ -154,11 +154,11 @@ var createEventBooking = async (params) => {
|
|
154
154
|
return data;
|
155
155
|
};
|
156
156
|
var getEventBookingDetail = async (bookingId, params) => {
|
157
|
-
let { data } = await import_utils.request.getRequest().get(
|
157
|
+
let { data } = await import_utils.request.getRequest().get(`${prefix}/eventbookingv2/order/${bookingId}`, params);
|
158
158
|
return data;
|
159
159
|
};
|
160
160
|
var editEventBooking = async (bookingId, params) => {
|
161
|
-
let { data } = await import_utils.request.getRequest().put(
|
161
|
+
let { data } = await import_utils.request.getRequest().put(`${prefix}/eventbookingv2/order/${bookingId}`, params);
|
162
162
|
return data;
|
163
163
|
};
|
164
164
|
var getDepositShow = async (params) => {
|