@pisell/private-materials 6.0.23 → 6.0.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 +1 -1
- package/build/lowcode/preview.js +29 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -33
- package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/Sales/index.js +69 -0
- package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/es/businessModel/SalesModel/hooks/index.js +7 -0
- package/es/businessModel/SalesModel/index.d.ts +4 -0
- package/es/businessModel/SalesModel/index.js +18 -0
- package/es/businessModel/index.d.ts +0 -0
- package/es/businessModel/index.js +0 -0
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/Sales/Cart/index.js +590 -0
- package/es/components/Sales/Cart/serve.d.ts +2 -0
- package/es/components/Sales/Cart/serve.js +11 -0
- package/es/components/Sales/Cart/types.d.ts +19 -0
- package/es/components/Sales/Cart/types.js +1 -0
- package/es/components/Sales/Checkout/index.d.ts +33 -0
- package/es/components/Sales/Checkout/index.js +152 -0
- package/es/components/Sales/Checkout/serve.d.ts +2 -0
- package/es/components/Sales/Checkout/serve.js +11 -0
- package/es/components/Sales/Checkout/utils.d.ts +27 -0
- package/es/components/Sales/Checkout/utils.js +104 -0
- package/es/components/Sales/Customer/index.d.ts +24 -0
- package/es/components/Sales/Customer/index.js +59 -0
- package/es/components/Sales/Event/Detail.d.ts +27 -0
- package/es/components/Sales/Event/Detail.js +246 -0
- package/es/components/Sales/Event/index.d.ts +30 -0
- package/es/components/Sales/Event/index.js +123 -0
- package/es/components/Sales/Event/serve.d.ts +26 -0
- package/es/components/Sales/Event/serve.js +33 -0
- package/es/components/Sales/Holder/index.d.ts +33 -0
- package/es/components/Sales/Holder/index.js +229 -0
- package/es/components/Sales/Holder/serve.d.ts +8 -0
- package/es/components/Sales/Holder/serve.js +20 -0
- package/es/components/Sales/Init/index.d.ts +24 -0
- package/es/components/Sales/Init/index.js +117 -0
- package/es/components/Sales/Init/serve.d.ts +3 -0
- package/es/components/Sales/Init/serve.js +11 -0
- package/es/components/Sales/Resource/index.d.ts +26 -0
- package/es/components/Sales/Resource/index.js +128 -0
- package/es/components/Sales/Resource/serve.d.ts +5 -0
- package/es/components/Sales/Resource/serve.js +8 -0
- package/es/components/Sales/Step/index.d.ts +37 -0
- package/es/components/Sales/Step/index.js +195 -0
- package/es/components/Sales/Summary/index.d.ts +25 -0
- package/es/components/Sales/Summary/index.js +50 -0
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/serve.js +0 -0
- package/es/components/Sales/Summary/utils.d.ts +36 -0
- package/es/components/Sales/Summary/utils.js +63 -0
- package/es/components/Sales/hooks/index.d.ts +1 -0
- package/es/components/Sales/hooks/index.js +3 -0
- package/es/components/Sales/index.d.ts +20 -0
- package/es/components/Sales/index.js +26 -0
- package/es/components/Sales/utils/index.d.ts +1 -0
- package/es/components/Sales/utils/index.js +18 -0
- package/es/components/booking/components/customSelect/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +6 -2
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/components/footer/amount.js +46 -22
- package/es/components/booking/components/footer/index.js +116 -79
- package/es/components/booking/components/footer/serve.d.ts +2 -0
- package/es/components/booking/components/footer/serve.js +44 -0
- package/es/components/booking/components/footer/utils.js +280 -35
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +54 -0
- package/es/components/booking/info/addServiceVariant/index.js +8 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
- package/es/components/booking/info/clientVariant/vertical/index.js +131 -15
- package/es/components/booking/info/dateRange/index.d.ts +4 -0
- package/es/components/booking/info/dateRange/index.js +98 -0
- package/es/components/booking/info/dateRange/index.less +21 -0
- package/es/components/booking/info/main.js +44 -28
- package/es/components/booking/info/model.js +3 -0
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/es/components/booking/info/pet/ChangePetModal/index.js +134 -0
- package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/pet/index.js +93 -34
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +195 -104
- package/es/components/booking/info/service/addService/index.less +13 -3
- package/es/components/booking/info/service/addService/utils.d.ts +12 -2
- package/es/components/booking/info/service/addService/utils.js +103 -26
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
- package/es/components/booking/info/service/editService/BookingList/index.js +39 -0
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/es/components/booking/info/service/editService/EditTabs/index.js +35 -0
- package/es/components/booking/info/service/editService/index.js +449 -141
- package/es/components/booking/info/service/editService/index.less +18 -13
- package/es/components/booking/info/service/serve.d.ts +10 -0
- package/es/components/booking/info/service/serve.js +28 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +55 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service/serviceManager/index.js +281 -0
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/utils.js +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Group/utils.js +146 -0
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/Lists.js +153 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
- package/es/components/booking/info/service2/index.d.ts +6 -0
- package/es/components/booking/info/service2/index.js +57 -0
- package/es/components/booking/info/service2/status.d.ts +31 -0
- package/es/components/booking/info/service2/status.js +78 -0
- package/es/components/booking/info/service2/utils.d.ts +240 -0
- package/es/components/booking/info/service2/utils.js +1077 -0
- package/es/components/booking/info/utils.d.ts +20 -0
- package/es/components/booking/info/utils.js +38 -1
- package/es/components/booking/info2/utilsByBooking.js +0 -1
- package/es/components/booking/locales.d.ts +66 -0
- package/es/components/booking/locales.js +81 -3
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +7 -0
- package/es/components/booking/materiels/holder/index.js +51 -0
- package/es/components/booking/model.d.ts +5 -1
- package/es/components/booking/model.js +4 -2
- package/es/components/booking/utils.d.ts +12 -3
- package/es/components/booking/utils.js +143 -26
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +6 -6
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eventBooking/assets/alert-circle.png +0 -0
- package/es/components/eventBooking/assets/calendar-heart.svg +5 -0
- package/es/components/eventBooking/assets/compass.svg +13 -0
- package/es/components/eventBooking/assets/image.svg +5 -0
- package/es/components/eventBooking/assets/phone.svg +5 -0
- package/es/components/eventBooking/assets/shopping-cart.svg +10 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
- package/es/components/eventBooking/components/ErrorTip/index.js +14 -0
- package/es/components/eventBooking/components/ErrorTip/index.less +51 -0
- package/es/components/eventBooking/components/OpenCard/index.d.ts +4 -0
- package/es/components/eventBooking/components/OpenCard/index.js +65 -0
- package/es/components/eventBooking/components/OpenCard/index.less +52 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +46 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +63 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/index.js +30 -0
- package/es/components/eventBooking/components/Provider/Cart/index.less +2 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/Content/index.js +65 -0
- package/es/components/eventBooking/components/Provider/Content/index.less +31 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +34 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Event/index.js +93 -0
- package/es/components/eventBooking/components/Provider/Event/index.less +20 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Footer/index.js +76 -0
- package/es/components/eventBooking/components/Provider/Footer/index.less +64 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/Header/index.js +75 -0
- package/es/components/eventBooking/components/Provider/Header/index.less +2 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Information/index.js +178 -0
- package/es/components/eventBooking/components/Provider/Information/index.less +92 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +34 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +27 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Resource/index.js +79 -0
- package/es/components/eventBooking/components/Provider/Resource/index.less +46 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +90 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +36 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +33 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +30 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.js +337 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.less +82 -0
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
- package/es/components/eventBooking/components/bookingServiceList/index.js +52 -0
- package/es/components/eventBooking/components/bookingServiceList/index.less +6 -0
- package/es/components/eventBooking/components/eventCard/index.d.ts +14 -0
- package/es/components/eventBooking/components/eventCard/index.js +116 -0
- package/es/components/eventBooking/components/eventCard/index.less +81 -0
- package/es/components/eventBooking/components/productCard/index.d.ts +16 -0
- package/es/components/eventBooking/components/productCard/index.js +79 -0
- package/es/components/eventBooking/components/productCard/index.less +60 -0
- package/es/components/eventBooking/components/progressBar/index.d.ts +16 -0
- package/es/components/eventBooking/components/progressBar/index.js +93 -0
- package/es/components/eventBooking/components/progressBar/index.less +15 -0
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
- package/es/components/eventBooking/components/resourceDisplay/index.js +148 -0
- package/es/components/eventBooking/components/resourceDisplay/index.less +95 -0
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
- package/es/components/eventBooking/components/resourceUsability/index.js +44 -0
- package/es/components/eventBooking/components/resourceUsability/index.less +40 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +127 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.js +142 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.less +222 -0
- package/es/components/eventBooking/components/selectHolder/index.d.ts +22 -0
- package/es/components/eventBooking/components/selectHolder/index.js +118 -0
- package/es/components/eventBooking/components/selectHolder/index.less +70 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.js +168 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +74 -0
- package/es/components/eventBooking/index.d.ts +4 -0
- package/es/components/eventBooking/index.js +58 -0
- package/es/components/eventBooking/index.less +22 -0
- package/es/components/eventBooking/locales.d.ts +216 -0
- package/es/components/eventBooking/locales.js +251 -0
- package/es/components/eventBooking/mock.d.ts +627 -0
- package/es/components/eventBooking/mock.js +1172 -0
- package/es/components/eventBooking/status.d.ts +21 -0
- package/es/components/eventBooking/status.js +51 -0
- package/es/components/eventBooking/type.d.ts +17 -0
- package/es/components/eventBooking/type.js +1 -0
- package/es/components/eventBooking/utils.d.ts +45 -0
- package/es/components/eventBooking/utils.js +99 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/Provider.js +86 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.js +71 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/index.js +73 -0
- package/es/components/shoppingCart/components/Cart/index.less +68 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.js +15 -0
- package/es/components/shoppingCart/components/Empty/index.less +19 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Render/index.js +70 -0
- package/es/components/shoppingCart/components/Render/index.less +2 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +132 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/es/components/shoppingCart/hooks/useAddService.js +23 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/es/components/shoppingCart/hooks/useClearCart.js +59 -0
- package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useContext.js +5 -0
- package/es/components/shoppingCart/index.d.ts +4 -0
- package/es/components/shoppingCart/index.js +24 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/locales.js +38 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/mock.js +40 -0
- package/es/components/shoppingCart/status.d.ts +2 -0
- package/es/components/shoppingCart/status.js +22 -0
- package/es/components/shoppingCart/type.d.ts +40 -0
- package/es/components/shoppingCart/type.js +1 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/shoppingCart/utils.js +116 -0
- package/es/components/tabProduct/tabs/index.less +13 -3
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.js +1 -1
- package/es/components/workSpaceList/components/AppearanceEdit/constants.js +11 -1
- package/es/components/workSpaceList/components/Card/constants.js +2 -1
- package/es/components/workSpaceList/components/EditableString/index.js +1 -1
- package/es/components/workSpaceList/components/SearchBar/index.js +4 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +1 -1
- package/es/components/workSpaceList/components/Sort/index.js +1 -1
- package/es/components/workSpaceList/components/WorkspaceItem/index.js +1 -1
- package/es/components/workSpaceList/server.d.ts +3 -3
- package/es/index.d.ts +13 -0
- package/es/index.js +14 -1
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/Sales/index.js +104 -0
- package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/hooks/index.js +34 -0
- package/lib/businessModel/SalesModel/index.d.ts +4 -0
- package/lib/businessModel/SalesModel/index.js +51 -0
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/businessModel/index.js +0 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/Sales/Cart/index.js +500 -0
- package/lib/components/Sales/Cart/serve.d.ts +2 -0
- package/lib/components/Sales/Cart/serve.js +37 -0
- package/lib/components/Sales/Cart/types.d.ts +19 -0
- package/lib/components/Sales/Cart/types.js +17 -0
- package/lib/components/Sales/Checkout/index.d.ts +33 -0
- package/lib/components/Sales/Checkout/index.js +130 -0
- package/lib/components/Sales/Checkout/serve.d.ts +2 -0
- package/lib/components/Sales/Checkout/serve.js +37 -0
- package/lib/components/Sales/Checkout/utils.d.ts +27 -0
- package/lib/components/Sales/Checkout/utils.js +88 -0
- package/lib/components/Sales/Customer/index.d.ts +24 -0
- package/lib/components/Sales/Customer/index.js +90 -0
- package/lib/components/Sales/Event/Detail.d.ts +27 -0
- package/lib/components/Sales/Event/Detail.js +224 -0
- package/lib/components/Sales/Event/index.d.ts +30 -0
- package/lib/components/Sales/Event/index.js +136 -0
- package/lib/components/Sales/Event/serve.d.ts +26 -0
- package/lib/components/Sales/Event/serve.js +54 -0
- package/lib/components/Sales/Holder/index.d.ts +33 -0
- package/lib/components/Sales/Holder/index.js +210 -0
- package/lib/components/Sales/Holder/serve.d.ts +8 -0
- package/lib/components/Sales/Holder/serve.js +37 -0
- package/lib/components/Sales/Init/index.d.ts +24 -0
- package/lib/components/Sales/Init/index.js +128 -0
- package/lib/components/Sales/Init/serve.d.ts +3 -0
- package/lib/components/Sales/Init/serve.js +34 -0
- package/lib/components/Sales/Resource/index.d.ts +26 -0
- package/lib/components/Sales/Resource/index.js +133 -0
- package/lib/components/Sales/Resource/serve.d.ts +5 -0
- package/lib/components/Sales/Resource/serve.js +32 -0
- package/lib/components/Sales/Step/index.d.ts +37 -0
- package/lib/components/Sales/Step/index.js +170 -0
- package/lib/components/Sales/Summary/index.d.ts +25 -0
- package/lib/components/Sales/Summary/index.js +83 -0
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/serve.js +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +36 -0
- package/lib/components/Sales/Summary/utils.js +80 -0
- package/lib/components/Sales/hooks/index.d.ts +1 -0
- package/lib/components/Sales/hooks/index.js +31 -0
- package/lib/components/Sales/index.d.ts +20 -0
- package/lib/components/Sales/index.js +79 -0
- package/lib/components/Sales/utils/index.d.ts +1 -0
- package/lib/components/Sales/utils/index.js +43 -0
- package/lib/components/booking/components/customSelect/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +6 -2
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/components/footer/amount.js +27 -8
- package/lib/components/booking/components/footer/index.js +48 -55
- package/lib/components/booking/components/footer/serve.d.ts +2 -0
- package/lib/components/booking/components/footer/serve.js +12 -0
- package/lib/components/booking/components/footer/utils.js +168 -37
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/addServiceVariant/index.js +5 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
- package/lib/components/booking/info/clientVariant/vertical/index.js +96 -20
- package/lib/components/booking/info/dateRange/index.d.ts +4 -0
- package/lib/components/booking/info/dateRange/index.js +111 -0
- package/lib/components/booking/info/dateRange/index.less +21 -0
- package/lib/components/booking/info/main.js +33 -22
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.js +121 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/pet/index.js +90 -44
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +131 -101
- package/lib/components/booking/info/service/addService/index.less +13 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +12 -2
- package/lib/components/booking/info/service/addService/utils.js +57 -10
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
- package/lib/components/booking/info/service/editService/BookingList/index.js +55 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.js +75 -0
- package/lib/components/booking/info/service/editService/index.js +446 -197
- package/lib/components/booking/info/service/editService/index.less +18 -13
- package/lib/components/booking/info/service/serve.d.ts +10 -0
- package/lib/components/booking/info/service/serve.js +7 -2
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +70 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service/serviceManager/index.js +211 -0
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Group/utils.js +142 -0
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/Lists.js +116 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +49 -0
- package/lib/components/booking/info/service2/index.d.ts +6 -0
- package/lib/components/booking/info/service2/index.js +75 -0
- package/lib/components/booking/info/service2/status.d.ts +31 -0
- package/lib/components/booking/info/service2/status.js +81 -0
- package/lib/components/booking/info/service2/utils.d.ts +240 -0
- package/lib/components/booking/info/service2/utils.js +686 -0
- package/lib/components/booking/info/utils.d.ts +20 -0
- package/lib/components/booking/info/utils.js +42 -1
- package/lib/components/booking/locales.d.ts +66 -0
- package/lib/components/booking/locales.js +69 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +7 -0
- package/lib/components/booking/materiels/holder/index.js +64 -0
- package/lib/components/booking/model.d.ts +5 -1
- package/lib/components/booking/model.js +4 -2
- package/lib/components/booking/utils.d.ts +12 -3
- package/lib/components/booking/utils.js +89 -18
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +6 -6
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eventBooking/assets/alert-circle.png +0 -0
- package/lib/components/eventBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/eventBooking/assets/compass.svg +13 -0
- package/lib/components/eventBooking/assets/image.svg +5 -0
- package/lib/components/eventBooking/assets/phone.svg +5 -0
- package/lib/components/eventBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
- package/lib/components/eventBooking/components/ErrorTip/index.js +30 -0
- package/lib/components/eventBooking/components/ErrorTip/index.less +51 -0
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +4 -0
- package/lib/components/eventBooking/components/OpenCard/index.js +90 -0
- package/lib/components/eventBooking/components/OpenCard/index.less +52 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +82 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +92 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.js +59 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.less +2 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/Content/index.js +90 -0
- package/lib/components/eventBooking/components/Provider/Content/index.less +31 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +60 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Event/index.js +100 -0
- package/lib/components/eventBooking/components/Provider/Event/index.less +20 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.js +87 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.less +64 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/Header/index.js +80 -0
- package/lib/components/eventBooking/components/Provider/Header/index.less +2 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Information/index.js +151 -0
- package/lib/components/eventBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +67 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +57 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.js +90 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.less +46 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +97 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +70 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +66 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +69 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +248 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.less +82 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.js +79 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.less +6 -0
- package/lib/components/eventBooking/components/eventCard/index.d.ts +14 -0
- package/lib/components/eventBooking/components/eventCard/index.js +124 -0
- package/lib/components/eventBooking/components/eventCard/index.less +81 -0
- package/lib/components/eventBooking/components/productCard/index.d.ts +16 -0
- package/lib/components/eventBooking/components/productCard/index.js +77 -0
- package/lib/components/eventBooking/components/productCard/index.less +60 -0
- package/lib/components/eventBooking/components/progressBar/index.d.ts +16 -0
- package/lib/components/eventBooking/components/progressBar/index.js +100 -0
- package/lib/components/eventBooking/components/progressBar/index.less +15 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.js +116 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.less +95 -0
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
- package/lib/components/eventBooking/components/resourceUsability/index.js +76 -0
- package/lib/components/eventBooking/components/resourceUsability/index.less +40 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +135 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +125 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +222 -0
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +22 -0
- package/lib/components/eventBooking/components/selectHolder/index.js +106 -0
- package/lib/components/eventBooking/components/selectHolder/index.less +70 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.js +146 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +74 -0
- package/lib/components/eventBooking/index.d.ts +4 -0
- package/lib/components/eventBooking/index.js +78 -0
- package/lib/components/eventBooking/index.less +22 -0
- package/lib/components/eventBooking/locales.d.ts +216 -0
- package/lib/components/eventBooking/locales.js +239 -0
- package/lib/components/eventBooking/mock.d.ts +627 -0
- package/lib/components/eventBooking/mock.js +1352 -0
- package/lib/components/eventBooking/status.d.ts +21 -0
- package/lib/components/eventBooking/status.js +70 -0
- package/lib/components/eventBooking/type.d.ts +17 -0
- package/lib/components/eventBooking/type.js +17 -0
- package/lib/components/eventBooking/utils.d.ts +45 -0
- package/lib/components/eventBooking/utils.js +90 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/Provider.js +110 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +72 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/index.js +85 -0
- package/lib/components/shoppingCart/components/Cart/index.less +68 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.js +43 -0
- package/lib/components/shoppingCart/components/Empty/index.less +19 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Render/index.js +75 -0
- package/lib/components/shoppingCart/components/Render/index.less +2 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/lib/components/shoppingCart/hooks/useClearCart.js +66 -0
- package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useContext.js +31 -0
- package/lib/components/shoppingCart/index.d.ts +4 -0
- package/lib/components/shoppingCart/index.js +60 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/locales.js +56 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/mock.js +76 -0
- package/lib/components/shoppingCart/status.d.ts +2 -0
- package/lib/components/shoppingCart/status.js +60 -0
- package/lib/components/shoppingCart/type.d.ts +40 -0
- package/lib/components/shoppingCart/type.js +17 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/shoppingCart/utils.js +83 -0
- package/lib/components/tabProduct/tabs/index.less +13 -3
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.js +2 -2
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.js +32 -12
- package/lib/components/workSpaceList/components/Card/constants.js +4 -3
- package/lib/components/workSpaceList/components/EditableString/index.js +2 -2
- package/lib/components/workSpaceList/components/SearchBar/index.js +8 -5
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +2 -2
- package/lib/components/workSpaceList/components/Sort/index.js +2 -2
- package/lib/components/workSpaceList/components/WorkspaceItem/index.js +2 -2
- package/lib/components/workSpaceList/server.d.ts +3 -3
- package/lib/index.d.ts +13 -0
- package/lib/index.js +39 -0
- package/lowcode/event-booking/meta.ts +69 -0
- package/lowcode/event-booking-availability-calendar/meta.ts +53 -0
- package/lowcode/event-booking-detail-modal/meta.ts +39 -0
- package/lowcode/event-booking-service-list/meta.ts +77 -0
- package/lowcode/event-card/meta.ts +77 -0
- package/lowcode/event-product-card/meta.ts +79 -0
- package/lowcode/event-progress-bar/meta.ts +65 -0
- package/lowcode/event-resource-display/meta.ts +169 -0
- package/lowcode/event-resource-usability/meta.ts +67 -0
- package/lowcode/event-schedule-calendar/meta.ts +56 -0
- package/lowcode/event-select-holder/meta.ts +84 -0
- package/lowcode/event-time-resource-selector/meta.ts +69 -0
- package/lowcode/shopping-cart/meta.ts +98 -0
- package/package.json +4 -4
@@ -32,6 +32,7 @@ interface CustomSelectProps {
|
|
32
32
|
autoFocus?: boolean;
|
33
33
|
showDropDown?: boolean;
|
34
34
|
handleOpenModal?: () => void;
|
35
|
+
handleDayChange?: (value: any) => void;
|
35
36
|
}
|
36
37
|
declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
|
37
38
|
export default _default;
|
@@ -72,7 +72,8 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
72
72
|
autoFocus = props.autoFocus,
|
73
73
|
_props$showDropDown = props.showDropDown,
|
74
74
|
showDropDown = _props$showDropDown === void 0 ? true : _props$showDropDown,
|
75
|
-
propsHandleOpenModal = props.handleOpenModal
|
75
|
+
propsHandleOpenModal = props.handleOpenModal,
|
76
|
+
handleDayChange = props.handleDayChange;
|
76
77
|
var searchRef = useRef();
|
77
78
|
|
78
79
|
// 当前选择的值
|
@@ -152,7 +153,7 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
152
153
|
* @Author: zhiwei.Wang
|
153
154
|
* @Date: 2024-01-30 16:45
|
154
155
|
*/
|
155
|
-
var handleOpenModal = function handleOpenModal() {
|
156
|
+
var handleOpenModal = function handleOpenModal(item) {
|
156
157
|
// 禁止则return
|
157
158
|
if (disabled) {
|
158
159
|
return;
|
@@ -241,6 +242,9 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
241
242
|
* @Date: 2024-01-30 16:47
|
242
243
|
*/
|
243
244
|
var handleRemoveItem = function handleRemoveItem(item) {
|
245
|
+
if (handleDayChange) {
|
246
|
+
handleDayChange(item);
|
247
|
+
}
|
244
248
|
var _arr = changeArray(_value, item, rowKey);
|
245
249
|
_onValueChange(_arr);
|
246
250
|
set_value(_arr);
|
@@ -0,0 +1,38 @@
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
2
|
+
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."); }
|
3
|
+
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); }
|
4
|
+
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; }
|
5
|
+
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; } }
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
|
+
import React, { useState, forwardRef, useImperativeHandle } from 'react';
|
8
|
+
import { locales } from '@pisell/utils';
|
9
|
+
import { PisellModal } from '@pisell/materials';
|
10
|
+
var AppointmentProductModal = function AppointmentProductModal(props, ref) {
|
11
|
+
var _useState = useState(false),
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
13
|
+
open = _useState2[0],
|
14
|
+
setOpen = _useState2[1];
|
15
|
+
useImperativeHandle(ref, function () {
|
16
|
+
return {
|
17
|
+
open: function open() {
|
18
|
+
setOpen(true);
|
19
|
+
}
|
20
|
+
};
|
21
|
+
});
|
22
|
+
return /*#__PURE__*/React.createElement(PisellModal.Information, {
|
23
|
+
open: open,
|
24
|
+
platform: "pc",
|
25
|
+
title: locales.getText('pisell2.text.missing.reservation.title'),
|
26
|
+
describe: locales.getText('pisell2.text.missing.reservation.content'),
|
27
|
+
cancelText: locales.getText('pisell2.text.cancel'),
|
28
|
+
okText: locales.getText('pisell2.text.confirm'),
|
29
|
+
closable: true,
|
30
|
+
onOk: function onOk() {
|
31
|
+
return setOpen(false);
|
32
|
+
},
|
33
|
+
onCancel: function onCancel() {
|
34
|
+
return setOpen(false);
|
35
|
+
}
|
36
|
+
});
|
37
|
+
};
|
38
|
+
export default /*#__PURE__*/forwardRef(AppointmentProductModal);
|
File without changes
|
@@ -9,6 +9,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
9
9
|
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; }
|
10
10
|
import { getDiscountTime, flexibleObj } from "../../utils";
|
11
11
|
import { formatAmount } from '@pisell/utils';
|
12
|
+
import { isDayBooking, isDayBookingProduct } from "../../info/service2/utils";
|
12
13
|
var getRelationDetailsTotal = function getRelationDetailsTotal(relation_details) {
|
13
14
|
var total = 0;
|
14
15
|
var _iterator = _createForOfIteratorHelper(relation_details),
|
@@ -35,6 +36,8 @@ var getRelationDetailsTotal = function getRelationDetailsTotal(relation_details)
|
|
35
36
|
var getProductAmount = function getProductAmount(state, isEdit) {
|
36
37
|
var price = 0;
|
37
38
|
var duration = 0;
|
39
|
+
// 是否是跨日预约
|
40
|
+
var isDay = isDayBooking(state);
|
38
41
|
if (isEdit) {
|
39
42
|
// 计算总价 服务 和 附加商品
|
40
43
|
if (state !== null && state !== void 0 && state.service || state !== null && state !== void 0 && state.addons) {
|
@@ -42,44 +45,65 @@ var getProductAmount = function getProductAmount(state, isEdit) {
|
|
42
45
|
_step2;
|
43
46
|
try {
|
44
47
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
45
|
-
var
|
46
|
-
//
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
var _item = _step2.value;
|
49
|
+
// 跨日预约
|
50
|
+
if (isDay) {
|
51
|
+
var quantity = _item._extend.quantity || 1;
|
52
|
+
price += Number(_item._extend.total) * Number(quantity);
|
53
|
+
|
54
|
+
// 普通商品不能加到时长上
|
55
|
+
var _duration = isDayBookingProduct(_item, state) ? _item._extend.duration : 0;
|
56
|
+
duration += _duration;
|
57
|
+
} else {
|
58
|
+
price += Number(_item._extend.total);
|
59
|
+
|
60
|
+
// 附加商品
|
61
|
+
price += getRelationDetailsTotal(_item._extend.relation_details || []);
|
62
|
+
duration += flexibleObj.getValue(_item._extend.duration);
|
63
|
+
}
|
53
64
|
}
|
65
|
+
|
66
|
+
// 不是跨日预约才执行
|
54
67
|
} catch (err) {
|
55
68
|
_iterator2.e(err);
|
56
69
|
} finally {
|
57
70
|
_iterator2.f();
|
58
71
|
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
72
|
+
if (!isDay) {
|
73
|
+
var _iterator3 = _createForOfIteratorHelper(state.addons.value),
|
74
|
+
_step3;
|
75
|
+
try {
|
76
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
77
|
+
var item = _step3.value;
|
78
|
+
price += Number(item._extend.total) * item._extend.quantity;
|
79
|
+
}
|
80
|
+
} catch (err) {
|
81
|
+
_iterator3.e(err);
|
82
|
+
} finally {
|
83
|
+
_iterator3.f();
|
65
84
|
}
|
66
|
-
} catch (err) {
|
67
|
-
_iterator3.e(err);
|
68
|
-
} finally {
|
69
|
-
_iterator3.f();
|
70
85
|
}
|
71
86
|
}
|
72
87
|
} else {
|
73
88
|
var _state$bookingDetail, _state$service;
|
74
89
|
price = Number((_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.product_expect_amount);
|
75
|
-
|
76
|
-
|
77
|
-
|
90
|
+
var services = (state === null || state === void 0 || (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value) || [];
|
91
|
+
duration = services.reduce(function (pre, cur) {
|
92
|
+
var current = 0;
|
93
|
+
if (isDay) {
|
94
|
+
// 普通商品不能加到时长上
|
95
|
+
var _duration2 = isDayBookingProduct(cur, state) ? cur._extend.duration : 0;
|
96
|
+
current = _duration2 || 0;
|
97
|
+
} else {
|
98
|
+
var _cur$_extend;
|
99
|
+
current = flexibleObj.getValue(((_cur$_extend = cur._extend) === null || _cur$_extend === void 0 ? void 0 : _cur$_extend.duration) || 0);
|
100
|
+
}
|
101
|
+
return pre + current;
|
78
102
|
}, 0);
|
79
103
|
}
|
80
104
|
return {
|
81
105
|
price: Number(price),
|
82
|
-
duration: getDiscountTime(duration)
|
106
|
+
duration: getDiscountTime(duration, isDay)
|
83
107
|
};
|
84
108
|
};
|
85
109
|
var getProductItemTax = function getProductItemTax(item, bookingDetail) {
|
@@ -17,22 +17,24 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
17
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; }
|
18
18
|
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; } }
|
19
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
20
|
-
import
|
20
|
+
import { DownOutlined } from '@ant-design/icons';
|
21
21
|
import ChevronDown from '@pisell/icon/es/ChevronDown';
|
22
|
-
import classNames from 'classnames';
|
23
|
-
import { Skeleton, message, Dropdown, Space, Modal } from 'antd';
|
24
22
|
import { formatAmount, locales } from '@pisell/utils';
|
25
|
-
import { Button } from 'antd';
|
23
|
+
import { Button, Dropdown, Modal, Skeleton, Space, message } from 'antd';
|
24
|
+
import classNames from 'classnames';
|
25
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
26
|
+
import useEngineContext from "../../../../hooks/useEngineContext";
|
26
27
|
import { formatProducts } from "../../addons";
|
27
|
-
import {
|
28
|
-
import {
|
28
|
+
import { isDayBooking, isHasDayAppointmentProduct } from "../../info/service2/utils";
|
29
|
+
import { isBooking4Shop } from "../../info/utils";
|
30
|
+
import { createBookings, editBookings } from "../../info2/serve";
|
31
|
+
import AppointmentProductModal from "./AppointmentProductModal";
|
29
32
|
import FooterMenus from "./FooterMenus";
|
33
|
+
import { getSumTotal, is_price_include_tax } from "./amount";
|
30
34
|
import "./index.less";
|
31
|
-
import
|
32
|
-
import {
|
33
|
-
|
34
|
-
import { createBookings, editBookings } from "../../info2/serve";
|
35
|
-
import { isBooking4Shop } from "../../info/utils";
|
35
|
+
import { createEventBooking, editEventBooking } from "./serve";
|
36
|
+
import { formatValues } from "./utils";
|
37
|
+
|
36
38
|
/**
|
37
39
|
* @title: 底部
|
38
40
|
* @description:
|
@@ -66,6 +68,7 @@ var Footer = function Footer(props) {
|
|
66
68
|
_useState8 = _slicedToArray(_useState7, 2),
|
67
69
|
isShowPaymentLink = _useState8[0],
|
68
70
|
setIsShowPaymentLink = _useState8[1];
|
71
|
+
var appointmentProductRef = useRef(null);
|
69
72
|
var context = useEngineContext();
|
70
73
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
71
74
|
isTerminal = _context$appHelper$ut.isTerminal,
|
@@ -286,25 +289,36 @@ var Footer = function Footer(props) {
|
|
286
289
|
*/
|
287
290
|
var handleCheckout = /*#__PURE__*/function () {
|
288
291
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
289
|
-
var res;
|
292
|
+
var isHasDayProducts, res;
|
290
293
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
291
294
|
while (1) switch (_context2.prev = _context2.next) {
|
292
295
|
case 0:
|
293
296
|
if (!isEdit) {
|
294
|
-
_context2.next =
|
297
|
+
_context2.next = 10;
|
295
298
|
break;
|
296
299
|
}
|
297
|
-
|
300
|
+
if (!isDayBooking(state)) {
|
301
|
+
_context2.next = 5;
|
302
|
+
break;
|
303
|
+
}
|
304
|
+
isHasDayProducts = handleDaySubmit();
|
305
|
+
if (!isHasDayProducts) {
|
306
|
+
_context2.next = 5;
|
307
|
+
break;
|
308
|
+
}
|
309
|
+
return _context2.abrupt("return");
|
310
|
+
case 5:
|
311
|
+
_context2.next = 7;
|
298
312
|
return handleSave({
|
299
313
|
type: 'checkout'
|
300
314
|
});
|
301
|
-
case
|
315
|
+
case 7:
|
302
316
|
res = _context2.sent;
|
303
317
|
goCheckout((res === null || res === void 0 ? void 0 : res.order_id) || state.bookingId);
|
304
318
|
return _context2.abrupt("return");
|
305
|
-
case
|
319
|
+
case 10:
|
306
320
|
return _context2.abrupt("return", goCheckout(state.bookingId));
|
307
|
-
case
|
321
|
+
case 11:
|
308
322
|
case "end":
|
309
323
|
return _context2.stop();
|
310
324
|
}
|
@@ -356,7 +370,7 @@ var Footer = function Footer(props) {
|
|
356
370
|
}();
|
357
371
|
var getApis = function getApis() {
|
358
372
|
var _context$appHelper$ut2, _context$appHelper$ut3;
|
359
|
-
if (isBooking4Shop((_context$appHelper$ut2 = context.appHelper.utils.store) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getState) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.global) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.globalConfig) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.id, state.renderType)) {
|
373
|
+
if (isBooking4Shop((_context$appHelper$ut2 = context.appHelper.utils.store) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getState) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.global) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.globalConfig) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.id, state.renderType) || state.renderType === 'dayBooking') {
|
360
374
|
return {
|
361
375
|
editBooking: editBookings,
|
362
376
|
createBooking: createBookings
|
@@ -368,6 +382,22 @@ var Footer = function Footer(props) {
|
|
368
382
|
};
|
369
383
|
};
|
370
384
|
|
385
|
+
/**
|
386
|
+
* @title: 跨日预约提交之前的验证
|
387
|
+
* @description:
|
388
|
+
* @return {*}
|
389
|
+
* @Author: WangHan
|
390
|
+
* @Date: 2024-12-12 16:18
|
391
|
+
*/
|
392
|
+
var handleDaySubmit = function handleDaySubmit() {
|
393
|
+
var _isHasDayProducts = isHasDayAppointmentProduct(state);
|
394
|
+
if (_isHasDayProducts) {
|
395
|
+
var _appointmentProductRe;
|
396
|
+
appointmentProductRef === null || appointmentProductRef === void 0 || (_appointmentProductRe = appointmentProductRef.current) === null || _appointmentProductRe === void 0 || _appointmentProductRe.open();
|
397
|
+
}
|
398
|
+
return _isHasDayProducts;
|
399
|
+
};
|
400
|
+
|
371
401
|
/**
|
372
402
|
* @title: 保存info
|
373
403
|
* @description:
|
@@ -378,110 +408,115 @@ var Footer = function Footer(props) {
|
|
378
408
|
*/
|
379
409
|
var handleSave = /*#__PURE__*/function () {
|
380
410
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref4) {
|
381
|
-
var type, _ref4$messageShow, messageShow, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, api
|
411
|
+
var type, _ref4$messageShow, messageShow, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, api;
|
382
412
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
383
413
|
while (1) switch (_context4.prev = _context4.next) {
|
384
414
|
case 0:
|
385
415
|
type = _ref4.type, _ref4$messageShow = _ref4.messageShow, messageShow = _ref4$messageShow === void 0 ? true : _ref4$messageShow;
|
416
|
+
if (!isDayBooking(state)) {
|
417
|
+
_context4.next = 5;
|
418
|
+
break;
|
419
|
+
}
|
420
|
+
isHasDayProducts = handleDaySubmit();
|
421
|
+
if (!isHasDayProducts) {
|
422
|
+
_context4.next = 5;
|
423
|
+
break;
|
424
|
+
}
|
425
|
+
return _context4.abrupt("return");
|
426
|
+
case 5:
|
386
427
|
// 区分loading, 是点击的checkout 还是save
|
387
428
|
_setLoading = type === 'checkout' ? setCheckoutLoading : setLoading;
|
388
429
|
_setLoading(true);
|
389
430
|
_getApis = getApis(), createBooking = _getApis.createBooking, editBooking = _getApis.editBooking;
|
390
|
-
editApi = state.renderType === 'eventBooking' ?
|
391
|
-
createApi = state.renderType === 'eventBooking' ?
|
431
|
+
editApi = state.renderType === 'eventBooking' ? editEventBooking : editBooking;
|
432
|
+
createApi = state.renderType === 'eventBooking' ? createEventBooking : createBooking;
|
392
433
|
saveOtherValue = {};
|
393
434
|
if (!(type === 'save')) {
|
394
|
-
_context4.next =
|
435
|
+
_context4.next = 18;
|
395
436
|
break;
|
396
437
|
}
|
397
|
-
_context4.next =
|
438
|
+
_context4.next = 14;
|
398
439
|
return state === null || state === void 0 || (_state$onSave = state.onSave) === null || _state$onSave === void 0 ? void 0 : _state$onSave.call(state, state.client);
|
399
|
-
case
|
440
|
+
case 14:
|
400
441
|
_context4.t0 = _context4.sent;
|
401
442
|
if (_context4.t0) {
|
402
|
-
_context4.next =
|
443
|
+
_context4.next = 17;
|
403
444
|
break;
|
404
445
|
}
|
405
446
|
_context4.t0 = {};
|
406
|
-
case
|
447
|
+
case 17:
|
407
448
|
saveOtherValue = _context4.t0;
|
408
|
-
case
|
409
|
-
_context4.prev =
|
449
|
+
case 18:
|
450
|
+
_context4.prev = 18;
|
410
451
|
callbackData = null; // 格式化提交的参数
|
411
452
|
values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // 区分是新增还是编辑
|
412
|
-
api = state.bookingId ? editApi : createApi; // 活动预约新建时校验重复
|
413
|
-
if (!
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
}
|
438
|
-
|
439
|
-
|
440
|
-
if (confirmed) {
|
441
|
-
_context4.next = 30;
|
442
|
-
break;
|
443
|
-
}
|
444
|
-
_setLoading(false);
|
445
|
-
return _context4.abrupt("return");
|
446
|
-
case 30:
|
453
|
+
api = state.bookingId ? editApi : createApi; // 活动预约新建时校验重复 -- 暂不处理
|
454
|
+
// if (!state.bookingId && state.renderType === 'eventBooking') {
|
455
|
+
// const { data } = await eventBookingCheck(values);
|
456
|
+
// if (data.list.length) {
|
457
|
+
// const confirmed = await modal.confirm({
|
458
|
+
// icon: null,
|
459
|
+
// title: locales.getText(
|
460
|
+
// 'page.event.booking.text.duplicate-enrollment'
|
461
|
+
// ),
|
462
|
+
// content: locales.getText(
|
463
|
+
// 'page.event.booking.text.duplicate-enrollment-content'
|
464
|
+
// )({
|
465
|
+
// customerName: data.customer_name,
|
466
|
+
// title: data.title,
|
467
|
+
// list: data.list,
|
468
|
+
// }),
|
469
|
+
// width: 480,
|
470
|
+
// okText: locales.getText(
|
471
|
+
// 'page.event.booking.text.duplicate-enrollment-confirm'
|
472
|
+
// ),
|
473
|
+
// });
|
474
|
+
// if (!confirmed) {
|
475
|
+
// _setLoading(false);
|
476
|
+
// return;
|
477
|
+
// }
|
478
|
+
// }
|
479
|
+
// }
|
480
|
+
// 如果有addons改动, 则先保存
|
447
481
|
if (!addonsEdit) {
|
448
|
-
_context4.next =
|
482
|
+
_context4.next = 25;
|
449
483
|
break;
|
450
484
|
}
|
451
|
-
_context4.next =
|
485
|
+
_context4.next = 25;
|
452
486
|
return handleSaveAddons();
|
453
|
-
case
|
487
|
+
case 25:
|
454
488
|
if (!infoEdit) {
|
455
|
-
_context4.next =
|
489
|
+
_context4.next = 30;
|
456
490
|
break;
|
457
491
|
}
|
458
|
-
_context4.next =
|
492
|
+
_context4.next = 28;
|
459
493
|
return api(values, state.bookingId);
|
460
|
-
case
|
494
|
+
case 28:
|
461
495
|
callbackData = _context4.sent;
|
462
496
|
if (messageShow) {
|
463
497
|
message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
|
464
498
|
}
|
465
|
-
case
|
499
|
+
case 30:
|
500
|
+
debugger;
|
466
501
|
// 回调关闭弹窗
|
467
502
|
state === null || state === void 0 || state.callback(callbackData);
|
468
503
|
_setLoading(false);
|
469
504
|
|
470
505
|
// return数据 checkout时需要
|
471
506
|
return _context4.abrupt("return", callbackData || values);
|
472
|
-
case
|
473
|
-
_context4.prev =
|
474
|
-
_context4.t1 = _context4["catch"](
|
507
|
+
case 36:
|
508
|
+
_context4.prev = 36;
|
509
|
+
_context4.t1 = _context4["catch"](18);
|
475
510
|
console.log(_context4.t1);
|
476
511
|
if ((_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.code) === 70101) {
|
477
512
|
message.error(_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.message);
|
478
513
|
}
|
479
514
|
_setLoading(false);
|
480
|
-
case
|
515
|
+
case 41:
|
481
516
|
case "end":
|
482
517
|
return _context4.stop();
|
483
518
|
}
|
484
|
-
}, _callee4, null, [[
|
519
|
+
}, _callee4, null, [[18, 36]]);
|
485
520
|
}));
|
486
521
|
return function handleSave(_x2) {
|
487
522
|
return _ref5.apply(this, arguments);
|
@@ -799,7 +834,7 @@ var Footer = function Footer(props) {
|
|
799
834
|
|
800
835
|
/**
|
801
836
|
* @title: 清空按钮
|
802
|
-
* @description:
|
837
|
+
* @description:
|
803
838
|
* @return: *
|
804
839
|
* @Author: shengjie.zuo
|
805
840
|
* @Date: 2024-10-26 10:52:01
|
@@ -949,7 +984,7 @@ var Footer = function Footer(props) {
|
|
949
984
|
}
|
950
985
|
if (transaction_habit_selection.button_rows == 1) {
|
951
986
|
if (state.appointment_status !== 'cancelled') {
|
952
|
-
if (!state.disabledEdit && !state.isBookingCreatePage) {
|
987
|
+
if (!state.disabledEdit && !state.isBookingCreatePage && !isDayBooking(state)) {
|
953
988
|
arr.push(actionMap.sale);
|
954
989
|
}
|
955
990
|
}
|
@@ -1240,7 +1275,7 @@ var Footer = function Footer(props) {
|
|
1240
1275
|
style: {
|
1241
1276
|
marginTop: 12
|
1242
1277
|
}
|
1243
|
-
}, state.appointment_status !== 'cancelled' && !state.isBookingCreatePage ? /*#__PURE__*/React.createElement(Button, {
|
1278
|
+
}, state.appointment_status !== 'cancelled' && !state.isBookingCreatePage && !isDayBooking(state) ? /*#__PURE__*/React.createElement(Button, {
|
1244
1279
|
onClick: function onClick() {
|
1245
1280
|
return handleSale();
|
1246
1281
|
},
|
@@ -1252,6 +1287,8 @@ var Footer = function Footer(props) {
|
|
1252
1287
|
},
|
1253
1288
|
size: "large",
|
1254
1289
|
className: "pisell-lowcode__booking-footer-buttons-item"
|
1255
|
-
}, actionMap.orderDetail.label)) : null, contextHolder
|
1290
|
+
}, actionMap.orderDetail.label)) : null, contextHolder, /*#__PURE__*/React.createElement(AppointmentProductModal, {
|
1291
|
+
ref: appointmentProductRef
|
1292
|
+
}));
|
1256
1293
|
};
|
1257
1294
|
export default Footer;
|
@@ -18,4 +18,48 @@ export var eventBookingCheck = /*#__PURE__*/function () {
|
|
18
18
|
return function eventBookingCheck(_x) {
|
19
19
|
return _ref.apply(this, arguments);
|
20
20
|
};
|
21
|
+
}();
|
22
|
+
export var editEventBooking = /*#__PURE__*/function () {
|
23
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params, bookingId) {
|
24
|
+
var _yield$request$getReq, data;
|
25
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
26
|
+
while (1) switch (_context2.prev = _context2.next) {
|
27
|
+
case 0:
|
28
|
+
_context2.next = 2;
|
29
|
+
return request.getRequest().put("/shop/v1.1/eventbookingv2/order/".concat(bookingId), params);
|
30
|
+
case 2:
|
31
|
+
_yield$request$getReq = _context2.sent;
|
32
|
+
data = _yield$request$getReq.data;
|
33
|
+
return _context2.abrupt("return", data);
|
34
|
+
case 5:
|
35
|
+
case "end":
|
36
|
+
return _context2.stop();
|
37
|
+
}
|
38
|
+
}, _callee2);
|
39
|
+
}));
|
40
|
+
return function editEventBooking(_x2, _x3) {
|
41
|
+
return _ref2.apply(this, arguments);
|
42
|
+
};
|
43
|
+
}();
|
44
|
+
export var createEventBooking = /*#__PURE__*/function () {
|
45
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
46
|
+
var _yield$request$getReq2, data;
|
47
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
48
|
+
while (1) switch (_context3.prev = _context3.next) {
|
49
|
+
case 0:
|
50
|
+
_context3.next = 2;
|
51
|
+
return request.getRequest().post("/shop/v1.1/eventbookingv2/order", params);
|
52
|
+
case 2:
|
53
|
+
_yield$request$getReq2 = _context3.sent;
|
54
|
+
data = _yield$request$getReq2.data;
|
55
|
+
return _context3.abrupt("return", data);
|
56
|
+
case 5:
|
57
|
+
case "end":
|
58
|
+
return _context3.stop();
|
59
|
+
}
|
60
|
+
}, _callee3);
|
61
|
+
}));
|
62
|
+
return function createEventBooking(_x4) {
|
63
|
+
return _ref3.apply(this, arguments);
|
64
|
+
};
|
21
65
|
}();
|