@pisell/private-materials 3.0.214 → 3.1.2
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 +146 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +27 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +33 -18
- package/es/components/booking/components/customSelect/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +2 -6
- package/es/components/booking/components/footer/amount.js +22 -46
- package/es/components/booking/components/footer/index.js +79 -116
- package/es/components/booking/components/footer/serve.d.ts +0 -2
- package/es/components/booking/components/footer/serve.js +0 -44
- package/es/components/booking/components/footer/utils.js +68 -282
- package/es/components/booking/info/addServiceVariant/index.js +1 -8
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +13 -14
- package/es/components/booking/info/clientVariant/vertical/index.js +15 -131
- package/es/components/booking/info/main.js +28 -44
- package/es/components/booking/info/model.js +0 -3
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/pet/index.js +35 -94
- package/es/components/booking/info/service/addService/index.js +104 -195
- package/es/components/booking/info/service/addService/index.less +3 -13
- package/es/components/booking/info/service/addService/utils.d.ts +2 -12
- package/es/components/booking/info/service/addService/utils.js +26 -103
- package/es/components/booking/info/service/editService/index.js +142 -450
- package/es/components/booking/info/service/editService/index.less +13 -18
- package/es/components/booking/info/service/serve.d.ts +0 -10
- package/es/components/booking/info/service/serve.js +0 -28
- package/es/components/booking/info/utils.d.ts +0 -20
- package/es/components/booking/info/utils.js +1 -38
- package/es/components/booking/info2/utilsByBooking.js +1 -0
- package/es/components/booking/locales.d.ts +0 -66
- package/es/components/booking/locales.js +3 -81
- package/es/components/booking/model.d.ts +1 -5
- package/es/components/booking/model.js +2 -4
- package/es/components/booking/utils.d.ts +3 -12
- package/es/components/booking/utils.js +26 -143
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftposPay/amount.d.ts +1 -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/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eftposPay/windcave/windcave.js +60 -27
- package/es/components/tabProduct/tabs/index.less +3 -13
- package/es/index.d.ts +0 -13
- package/es/index.js +1 -14
- package/lib/components/booking/components/customSelect/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +2 -6
- package/lib/components/booking/components/footer/amount.js +8 -27
- package/lib/components/booking/components/footer/index.js +55 -50
- package/lib/components/booking/components/footer/serve.d.ts +0 -2
- package/lib/components/booking/components/footer/serve.js +0 -12
- package/lib/components/booking/components/footer/utils.js +53 -167
- package/lib/components/booking/info/addServiceVariant/index.js +0 -5
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +7 -8
- package/lib/components/booking/info/clientVariant/vertical/index.js +20 -97
- package/lib/components/booking/info/main.js +21 -32
- package/lib/components/booking/info/model.js +0 -3
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/pet/index.js +44 -91
- package/lib/components/booking/info/service/addService/index.js +101 -132
- package/lib/components/booking/info/service/addService/index.less +3 -13
- package/lib/components/booking/info/service/addService/utils.d.ts +2 -12
- package/lib/components/booking/info/service/addService/utils.js +10 -58
- package/lib/components/booking/info/service/editService/index.js +197 -447
- package/lib/components/booking/info/service/editService/index.less +13 -18
- package/lib/components/booking/info/service/serve.d.ts +0 -10
- package/lib/components/booking/info/service/serve.js +2 -7
- package/lib/components/booking/info/utils.d.ts +0 -20
- package/lib/components/booking/info/utils.js +1 -42
- package/lib/components/booking/locales.d.ts +0 -66
- package/lib/components/booking/locales.js +3 -69
- package/lib/components/booking/model.d.ts +1 -5
- package/lib/components/booking/model.js +2 -4
- package/lib/components/booking/utils.d.ts +3 -12
- package/lib/components/booking/utils.js +18 -89
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftposPay/amount.d.ts +1 -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/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eftposPay/windcave/windcave.js +28 -11
- package/lib/components/tabProduct/tabs/index.less +3 -13
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -39
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/Sales/index.js +0 -69
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/hooks/index.js +0 -7
- package/es/businessModel/SalesModel/index.d.ts +0 -4
- package/es/businessModel/SalesModel/index.js +0 -18
- package/es/businessModel/index.d.ts +0 -0
- package/es/businessModel/index.js +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/index.js +0 -591
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/serve.js +0 -11
- package/es/components/Sales/Cart/types.d.ts +0 -19
- package/es/components/Sales/Cart/types.js +0 -1
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/index.js +0 -149
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/serve.js +0 -11
- package/es/components/Sales/Checkout/utils.d.ts +0 -27
- package/es/components/Sales/Checkout/utils.js +0 -104
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Customer/index.js +0 -56
- package/es/components/Sales/Event/Detail.d.ts +0 -27
- package/es/components/Sales/Event/Detail.js +0 -244
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/index.js +0 -121
- package/es/components/Sales/Event/serve.d.ts +0 -26
- package/es/components/Sales/Event/serve.js +0 -33
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/index.js +0 -226
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Holder/serve.js +0 -20
- package/es/components/Sales/Init/index.d.ts +0 -24
- package/es/components/Sales/Init/index.js +0 -114
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Init/serve.js +0 -11
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/index.js +0 -126
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Resource/serve.js +0 -8
- package/es/components/Sales/Step/index.d.ts +0 -37
- package/es/components/Sales/Step/index.js +0 -189
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/index.js +0 -47
- 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 +0 -36
- package/es/components/Sales/Summary/utils.js +0 -63
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/hooks/index.js +0 -3
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/index.js +0 -26
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/Sales/utils/index.js +0 -18
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -38
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +0 -54
- package/es/components/booking/info/dateRange/index.d.ts +0 -5
- package/es/components/booking/info/dateRange/index.js +0 -98
- package/es/components/booking/info/dateRange/index.less +0 -21
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/pet/ChangePetModal/index.js +0 -134
- package/es/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/es/components/booking/info/service/editService/BookingList/index.js +0 -39
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/EditTabs/index.js +0 -35
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +0 -55
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceManager/index.js +0 -281
- 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 +0 -14
- package/es/components/booking/info/service2/Group/utils.js +0 -146
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/Lists.js +0 -153
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/hooks/useSelectPet.js +0 -54
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/index.js +0 -57
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/status.js +0 -78
- package/es/components/booking/info/service2/utils.d.ts +0 -240
- package/es/components/booking/info/service2/utils.js +0 -1077
- package/es/components/booking/materiels/holder/index.d.ts +0 -7
- package/es/components/booking/materiels/holder/index.js +0 -51
- package/es/components/eventBooking/assets/alert-circle.png +0 -0
- package/es/components/eventBooking/assets/calendar-heart.svg +0 -5
- package/es/components/eventBooking/assets/compass.svg +0 -13
- package/es/components/eventBooking/assets/image.svg +0 -5
- package/es/components/eventBooking/assets/phone.svg +0 -5
- package/es/components/eventBooking/assets/shopping-cart.svg +0 -10
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
- package/es/components/eventBooking/components/ErrorTip/index.js +0 -14
- package/es/components/eventBooking/components/ErrorTip/index.less +0 -51
- package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/eventBooking/components/OpenCard/index.js +0 -65
- package/es/components/eventBooking/components/OpenCard/index.less +0 -52
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/eventBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Content/index.js +0 -65
- package/es/components/eventBooking/components/Provider/Content/index.less +0 -31
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Event/index.js +0 -93
- package/es/components/eventBooking/components/Provider/Event/index.less +0 -20
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/eventBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Header/index.js +0 -75
- package/es/components/eventBooking/components/Provider/Header/index.less +0 -2
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Information/index.js +0 -178
- package/es/components/eventBooking/components/Provider/Information/index.less +0 -92
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/eventBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -257
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -174
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/components/bookingDetailModal/index.js +0 -355
- package/es/components/eventBooking/components/bookingDetailModal/index.less +0 -83
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/eventBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/eventBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/eventBooking/components/eventCard/index.js +0 -116
- package/es/components/eventBooking/components/eventCard/index.less +0 -81
- package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/es/components/eventBooking/components/productCard/index.js +0 -79
- package/es/components/eventBooking/components/productCard/index.less +0 -60
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/progressBar/index.js +0 -93
- package/es/components/eventBooking/components/progressBar/index.less +0 -15
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/eventBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/eventBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/eventBooking/components/resourceUsability/index.js +0 -44
- package/es/components/eventBooking/components/resourceUsability/index.less +0 -40
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/eventBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/eventBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/eventBooking/components/selectHolder/index.js +0 -118
- package/es/components/eventBooking/components/selectHolder/index.less +0 -70
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/eventBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/eventBooking/index.d.ts +0 -4
- package/es/components/eventBooking/index.js +0 -58
- package/es/components/eventBooking/index.less +0 -22
- package/es/components/eventBooking/locales.d.ts +0 -216
- package/es/components/eventBooking/locales.js +0 -251
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/mock.js +0 -1172
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/status.js +0 -51
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/type.js +0 -1
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/eventBooking/utils.js +0 -99
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/Provider.js +0 -86
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/Product.js +0 -71
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/index.js +0 -73
- package/es/components/shoppingCart/components/Cart/index.less +0 -68
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Empty/index.js +0 -15
- package/es/components/shoppingCart/components/Empty/index.less +0 -19
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Render/index.js +0 -70
- package/es/components/shoppingCart/components/Render/index.less +0 -2
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +0 -132
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.js +0 -23
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useClearCart.js +0 -60
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useContext.js +0 -5
- package/es/components/shoppingCart/index.d.ts +0 -4
- package/es/components/shoppingCart/index.js +0 -24
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/locales.js +0 -38
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/mock.js +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/status.js +0 -22
- package/es/components/shoppingCart/type.d.ts +0 -40
- package/es/components/shoppingCart/type.js +0 -1
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/shoppingCart/utils.js +0 -116
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/Sales/index.js +0 -104
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/hooks/index.js +0 -34
- package/lib/businessModel/SalesModel/index.d.ts +0 -4
- package/lib/businessModel/SalesModel/index.js +0 -51
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/businessModel/index.js +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/index.js +0 -500
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/serve.js +0 -37
- package/lib/components/Sales/Cart/types.d.ts +0 -19
- package/lib/components/Sales/Cart/types.js +0 -17
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/index.js +0 -130
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/serve.js +0 -37
- package/lib/components/Sales/Checkout/utils.d.ts +0 -27
- package/lib/components/Sales/Checkout/utils.js +0 -88
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Customer/index.js +0 -90
- package/lib/components/Sales/Event/Detail.d.ts +0 -27
- package/lib/components/Sales/Event/Detail.js +0 -224
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/index.js +0 -136
- package/lib/components/Sales/Event/serve.d.ts +0 -26
- package/lib/components/Sales/Event/serve.js +0 -54
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/index.js +0 -210
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Holder/serve.js +0 -37
- package/lib/components/Sales/Init/index.d.ts +0 -24
- package/lib/components/Sales/Init/index.js +0 -128
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Init/serve.js +0 -34
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/index.js +0 -133
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Resource/serve.js +0 -32
- package/lib/components/Sales/Step/index.d.ts +0 -37
- package/lib/components/Sales/Step/index.js +0 -170
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/index.js +0 -83
- 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 +0 -36
- package/lib/components/Sales/Summary/utils.js +0 -80
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/hooks/index.js +0 -31
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/index.js +0 -79
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/Sales/utils/index.js +0 -43
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +0 -60
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -5
- package/lib/components/booking/info/dateRange/index.js +0 -111
- package/lib/components/booking/info/dateRange/index.less +0 -21
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/pet/ChangePetModal/index.js +0 -121
- package/lib/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/lib/components/booking/info/service/editService/BookingList/index.js +0 -55
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/EditTabs/index.js +0 -75
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +0 -70
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceManager/index.js +0 -211
- 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 +0 -14
- package/lib/components/booking/info/service2/Group/utils.js +0 -142
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/Lists.js +0 -116
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +0 -50
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/index.js +0 -75
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/status.js +0 -81
- package/lib/components/booking/info/service2/utils.d.ts +0 -240
- package/lib/components/booking/info/service2/utils.js +0 -695
- package/lib/components/booking/materiels/holder/index.d.ts +0 -7
- package/lib/components/booking/materiels/holder/index.js +0 -65
- package/lib/components/eventBooking/assets/alert-circle.png +0 -0
- package/lib/components/eventBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/eventBooking/assets/compass.svg +0 -13
- package/lib/components/eventBooking/assets/image.svg +0 -5
- package/lib/components/eventBooking/assets/phone.svg +0 -5
- package/lib/components/eventBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
- package/lib/components/eventBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/eventBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/eventBooking/components/OpenCard/index.js +0 -90
- package/lib/components/eventBooking/components/OpenCard/index.less +0 -52
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -159
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/eventBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Content/index.js +0 -91
- package/lib/components/eventBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +0 -101
- package/lib/components/eventBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/eventBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/eventBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/eventBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/eventBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -198
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -71
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -70
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +0 -272
- package/lib/components/eventBooking/components/bookingDetailModal/index.less +0 -83
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/eventBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/eventBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/eventBooking/components/eventCard/index.js +0 -124
- package/lib/components/eventBooking/components/eventCard/index.less +0 -81
- package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/eventBooking/components/productCard/index.js +0 -78
- package/lib/components/eventBooking/components/productCard/index.less +0 -60
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/progressBar/index.js +0 -100
- package/lib/components/eventBooking/components/progressBar/index.less +0 -15
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/eventBooking/components/resourceDisplay/index.js +0 -117
- package/lib/components/eventBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/eventBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/eventBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/eventBooking/components/selectHolder/index.js +0 -106
- package/lib/components/eventBooking/components/selectHolder/index.less +0 -70
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/eventBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/eventBooking/index.d.ts +0 -4
- package/lib/components/eventBooking/index.js +0 -79
- package/lib/components/eventBooking/index.less +0 -22
- package/lib/components/eventBooking/locales.d.ts +0 -216
- package/lib/components/eventBooking/locales.js +0 -239
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/mock.js +0 -1352
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/status.js +0 -70
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/type.js +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/eventBooking/utils.js +0 -90
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.js +0 -110
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.js +0 -73
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/index.js +0 -85
- package/lib/components/shoppingCart/components/Cart/index.less +0 -68
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Empty/index.js +0 -43
- package/lib/components/shoppingCart/components/Empty/index.less +0 -19
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Render/index.js +0 -75
- package/lib/components/shoppingCart/components/Render/index.less +0 -2
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +0 -124
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.js +0 -55
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useClearCart.js +0 -66
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useContext.js +0 -31
- package/lib/components/shoppingCart/index.d.ts +0 -4
- package/lib/components/shoppingCart/index.js +0 -60
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/locales.js +0 -56
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/mock.js +0 -76
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/status.js +0 -60
- package/lib/components/shoppingCart/type.d.ts +0 -40
- package/lib/components/shoppingCart/type.js +0 -17
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/shoppingCart/utils.js +0 -86
- package/lowcode/event-booking/meta.ts +0 -69
- package/lowcode/event-booking-availability-calendar/meta.ts +0 -53
- package/lowcode/event-booking-detail-modal/meta.ts +0 -39
- package/lowcode/event-booking-service-list/meta.ts +0 -77
- package/lowcode/event-card/meta.ts +0 -77
- package/lowcode/event-product-card/meta.ts +0 -79
- package/lowcode/event-progress-bar/meta.ts +0 -65
- package/lowcode/event-resource-display/meta.ts +0 -169
- package/lowcode/event-resource-usability/meta.ts +0 -67
- package/lowcode/event-schedule-calendar/meta.ts +0 -56
- package/lowcode/event-select-holder/meta.ts +0 -84
- package/lowcode/event-time-resource-selector/meta.ts +0 -69
- package/lowcode/shopping-cart/meta.ts +0 -98
|
@@ -8,9 +8,7 @@ import dayjs from "dayjs";
|
|
|
8
8
|
import { flexibleObj, isNowTime, getNowTime } from "../../utils";
|
|
9
9
|
import { isWalkIn } from "../../utils";
|
|
10
10
|
import { getSumCapacity } from "../../info2/utilsByBooking";
|
|
11
|
-
import {
|
|
12
|
-
import { appointmentTypes } from "../../info/service2/status";
|
|
13
|
-
import { isDaysBooking, formatDayTime, isEventBooking } from "../../info/service2/utils";
|
|
11
|
+
import { sendWarningLog } from '@pisell/utils';
|
|
14
12
|
var formatNote = function formatNote(data) {
|
|
15
13
|
var _data$notes;
|
|
16
14
|
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || "";
|
|
@@ -47,11 +45,31 @@ export var formatProductOption = function formatProductOption(option) {
|
|
|
47
45
|
"num": d.num,
|
|
48
46
|
"option_group_item_id": d.product_option_item_id,
|
|
49
47
|
"option_group_id": d.option_group_id
|
|
50
|
-
// "add_price": Number(d?.add_price),
|
|
51
48
|
};
|
|
52
49
|
});
|
|
53
50
|
};
|
|
54
51
|
|
|
52
|
+
/**
|
|
53
|
+
* @title: 添加套餐警告
|
|
54
|
+
* @description:
|
|
55
|
+
* @param {any} data
|
|
56
|
+
* @return {*}
|
|
57
|
+
* @Author: WangHan
|
|
58
|
+
* @Date: 2025-03-05 18:23
|
|
59
|
+
*/
|
|
60
|
+
var log = function log(data) {
|
|
61
|
+
sendWarningLog({
|
|
62
|
+
title: '预约2.0下单无效的套餐商品数据',
|
|
63
|
+
content: [{
|
|
64
|
+
key: 'bundle',
|
|
65
|
+
value: JSON.stringify(data)
|
|
66
|
+
}, {
|
|
67
|
+
key: '日期',
|
|
68
|
+
value: dayjs().format('YYYY-MM-DD HH:mm')
|
|
69
|
+
}]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
55
73
|
/**
|
|
56
74
|
* @title: 套餐信息
|
|
57
75
|
* @description:
|
|
@@ -64,17 +82,25 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
64
82
|
if (!bundle) {
|
|
65
83
|
return;
|
|
66
84
|
}
|
|
85
|
+
|
|
86
|
+
// 无效的商品套餐信息
|
|
87
|
+
try {
|
|
88
|
+
var errorBundles = bundle === null || bundle === void 0 ? void 0 : bundle.filter(function (d) {
|
|
89
|
+
return !(d !== null && d !== void 0 && d.group_id) || !(d !== null && d !== void 0 && d.id) || !(d !== null && d !== void 0 && d._bundle_product_id);
|
|
90
|
+
});
|
|
91
|
+
if ((errorBundles === null || errorBundles === void 0 ? void 0 : errorBundles.length) > 0) {
|
|
92
|
+
log(errorBundles);
|
|
93
|
+
}
|
|
94
|
+
} catch (error) {}
|
|
67
95
|
return bundle.map(function (d) {
|
|
68
96
|
return {
|
|
69
97
|
"bundle_group_id": d.group_id,
|
|
70
98
|
"bundle_id": d.id,
|
|
71
|
-
"bundle_product_id": d._bundle_product_id,
|
|
99
|
+
"bundle_product_id": (d === null || d === void 0 ? void 0 : d._bundle_product_id) || (d === null || d === void 0 ? void 0 : d.product_id),
|
|
72
100
|
"bundle_variant_id": d.bundle_variant_id,
|
|
73
101
|
"num": d.num,
|
|
74
102
|
"extension_id": d.extension_id,
|
|
75
103
|
"extension_type": d.extension_type,
|
|
76
|
-
// "price": Number(d?.price),
|
|
77
|
-
// "price_type": d?.price_type,
|
|
78
104
|
"option": formatProductOption(d.option)
|
|
79
105
|
};
|
|
80
106
|
});
|
|
@@ -83,7 +109,7 @@ var getSubType = function getSubType(item) {
|
|
|
83
109
|
var _item$duration;
|
|
84
110
|
var _type = (_item$duration = item.duration) === null || _item$duration === void 0 ? void 0 : _item$duration.type;
|
|
85
111
|
// 目前不支持跨天
|
|
86
|
-
if (_type) {
|
|
112
|
+
if (_type && _type !== 'days') {
|
|
87
113
|
return _type;
|
|
88
114
|
}
|
|
89
115
|
return 'minutes';
|
|
@@ -124,179 +150,6 @@ var formatResource = function formatResource(service) {
|
|
|
124
150
|
}
|
|
125
151
|
};
|
|
126
152
|
|
|
127
|
-
/**
|
|
128
|
-
* @title: 格式化子预约的holder数据
|
|
129
|
-
* @description:
|
|
130
|
-
* @param {any} state
|
|
131
|
-
* @param {any} item
|
|
132
|
-
* @param {any} values
|
|
133
|
-
* @return {*}
|
|
134
|
-
* @Author: WangHan
|
|
135
|
-
* @Date: 2024-12-07 14:52
|
|
136
|
-
*/
|
|
137
|
-
var formatHolders = function formatHolders(state, item, values) {
|
|
138
|
-
var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2, _state$bookingConfig$3, _item$_extend;
|
|
139
|
-
var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : (_state$bookingConfig$3 = _state$bookingConfig$2.appointment_subject) === null || _state$bookingConfig$3 === void 0 ? void 0 : _state$bookingConfig$3.form_id) || 0;
|
|
140
|
-
var obj = {
|
|
141
|
-
customer_id: values.customer_id,
|
|
142
|
-
form_id: form_id,
|
|
143
|
-
form_record: [((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.holder_id) || 0]
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// 连锁加盟子店铺 增加参数
|
|
147
|
-
if (state.isFranchisee) {
|
|
148
|
-
obj.is_source_shop = 1;
|
|
149
|
-
}
|
|
150
|
-
return obj;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @title: 格式化商品单价
|
|
155
|
-
* @description:
|
|
156
|
-
* @param {any} item
|
|
157
|
-
* @return {*}
|
|
158
|
-
* @Author: WangHan
|
|
159
|
-
* @Date: 2024-12-23 12:05
|
|
160
|
-
*/
|
|
161
|
-
var formatProductPrice = function formatProductPrice(item) {
|
|
162
|
-
var _item$_extend2, _item$_extend3;
|
|
163
|
-
var other = (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other;
|
|
164
|
-
var price = Number((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.price);
|
|
165
|
-
// 单规格, 单价 + 单规格价格
|
|
166
|
-
if (other !== null && other !== void 0 && other.option) {
|
|
167
|
-
var _other$option;
|
|
168
|
-
price = other === null || other === void 0 ? void 0 : (_other$option = other.option) === null || _other$option === void 0 ? void 0 : _other$option.reduce(function (pre, cur) {
|
|
169
|
-
return pre + Number(cur.price) * Number(cur.num);
|
|
170
|
-
}, price);
|
|
171
|
-
}
|
|
172
|
-
return price;
|
|
173
|
-
};
|
|
174
|
-
var formatMetaData = function formatMetaData(item) {
|
|
175
|
-
var _item$_extend4, _item$_extend5, _item$_extend7;
|
|
176
|
-
var metadata = {};
|
|
177
|
-
if ((_item$_extend4 = item._extend) !== null && _item$_extend4 !== void 0 && _item$_extend4.capacity) {
|
|
178
|
-
metadata.capacity = item._extend.capacity;
|
|
179
|
-
}
|
|
180
|
-
if (item._extend.groupId) {
|
|
181
|
-
metadata.groupId = item._extend.groupId;
|
|
182
|
-
}
|
|
183
|
-
if ((_item$_extend5 = item._extend) !== null && _item$_extend5 !== void 0 && _item$_extend5.holder_id) {
|
|
184
|
-
var _item$_extend6;
|
|
185
|
-
metadata.holder_id = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.holder_id;
|
|
186
|
-
}
|
|
187
|
-
if ((_item$_extend7 = item._extend) !== null && _item$_extend7 !== void 0 && _item$_extend7.multiDayPrices) {
|
|
188
|
-
var _item$_extend8;
|
|
189
|
-
metadata.multiDayPrices = (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.multiDayPrices;
|
|
190
|
-
}
|
|
191
|
-
return metadata;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* @title: 格式化商品数据
|
|
196
|
-
* @description:
|
|
197
|
-
* @param {any} item
|
|
198
|
-
* @return {*}
|
|
199
|
-
* @Author: WangHan
|
|
200
|
-
* @Date: 2024-12-07 14:21
|
|
201
|
-
*/
|
|
202
|
-
var formatProducts = function formatProducts(item) {
|
|
203
|
-
var _item$_extend9, _item$_extend9$other, _item$_extend10, _item$_extend10$other, _item$_extend11, _item$_extend11$other;
|
|
204
|
-
var total = Number(item._extend.total);
|
|
205
|
-
var origin_total = Number(item._extend.origin_total);
|
|
206
|
-
var discount_amount = origin_total - total;
|
|
207
|
-
|
|
208
|
-
// 加价时type使用change_price
|
|
209
|
-
var discount_type = discount_amount < 0 ? 'change_price' : 'discount';
|
|
210
|
-
return {
|
|
211
|
-
"num": item._extend.quantity,
|
|
212
|
-
"price": formatProductPrice(item),
|
|
213
|
-
"product_id": (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
|
|
214
|
-
"discount_amount": discount_amount,
|
|
215
|
-
"product_discount_reason": item._extend.discount_reason || '',
|
|
216
|
-
"is_charge_tax": item.is_charge_tax,
|
|
217
|
-
"note": (item === null || item === void 0 ? void 0 : item.note) || '',
|
|
218
|
-
"discountway": item._extend.discountway || "num",
|
|
219
|
-
"discount_per": item._extend.discount_per,
|
|
220
|
-
"discount_type": item._extend.discount_type || discount_type,
|
|
221
|
-
"order_detail_id": item._extend.order_detail_id || 0,
|
|
222
|
-
"product_bundle": formatProductBundle((_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : (_item$_extend9$other = _item$_extend9.other) === null || _item$_extend9$other === void 0 ? void 0 : _item$_extend9$other.bundle),
|
|
223
|
-
"bundle_edit": item._extend.bundle_edit,
|
|
224
|
-
"product_option_item": formatProductOption((_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 ? void 0 : (_item$_extend10$other = _item$_extend10.other) === null || _item$_extend10$other === void 0 ? void 0 : _item$_extend10$other.option),
|
|
225
|
-
"product_variant_id": ((_item$_extend11 = item._extend) === null || _item$_extend11 === void 0 ? void 0 : (_item$_extend11$other = _item$_extend11.other) === null || _item$_extend11$other === void 0 ? void 0 : _item$_extend11$other.product_variant_id) || 0,
|
|
226
|
-
metadata: formatMetaData(item)
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @title: 格式化跨日预约下的普通商品
|
|
232
|
-
* @description:
|
|
233
|
-
* @param {any} data
|
|
234
|
-
* @param {any} booking_item
|
|
235
|
-
* @return {*}
|
|
236
|
-
* @Author: WangHan
|
|
237
|
-
* @Date: 2024-12-07 14:48
|
|
238
|
-
*/
|
|
239
|
-
var formatDayRelationProducts = function formatDayRelationProducts(data, booking_item) {
|
|
240
|
-
var list = data.service.value;
|
|
241
|
-
|
|
242
|
-
// 过滤出卡片中的普通商品
|
|
243
|
-
var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
|
|
244
|
-
var _item$_extend12;
|
|
245
|
-
var holderId = (_item$_extend12 = item._extend) === null || _item$_extend12 === void 0 ? void 0 : _item$_extend12.holder_id;
|
|
246
|
-
var bookingHolderId = booking_item._extend.holder_id;
|
|
247
|
-
var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
|
|
248
|
-
return holderId && holderId === bookingHolderId && !isDayBookingProduct;
|
|
249
|
-
});
|
|
250
|
-
relation_products = relation_products.map(function (item) {
|
|
251
|
-
return formatProducts(item);
|
|
252
|
-
});
|
|
253
|
-
return relation_products || [];
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @title: 格式化跨日预约商品列表
|
|
258
|
-
* @description:
|
|
259
|
-
* @param {any} data
|
|
260
|
-
* @return {*}
|
|
261
|
-
* @Author: WangHan
|
|
262
|
-
* @Date: 2024-12-17 11:06
|
|
263
|
-
*/
|
|
264
|
-
var formatAppointmentProductLists = function formatAppointmentProductLists(data) {
|
|
265
|
-
try {
|
|
266
|
-
var _Array$from;
|
|
267
|
-
var list = data.service.value;
|
|
268
|
-
|
|
269
|
-
// 找出预约商品
|
|
270
|
-
list = list.filter(function (item) {
|
|
271
|
-
var _item$_extend13;
|
|
272
|
-
return ((_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.holder_id) && appointmentTypes.includes(item.extension_type);
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
// 对预约商品列表根据holder_id进行分组
|
|
276
|
-
var groupMap = new Map();
|
|
277
|
-
list.forEach(function (item) {
|
|
278
|
-
var _item$_extend14;
|
|
279
|
-
var key = (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.holder_id; // 分组键
|
|
280
|
-
if (!groupMap.has(key)) {
|
|
281
|
-
groupMap.set(key, []);
|
|
282
|
-
}
|
|
283
|
-
groupMap.get(key).push(item);
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
// 处理每个分组
|
|
287
|
-
// groupMap.forEach(group => {
|
|
288
|
-
// // 只给第一个数据增加 relation_products
|
|
289
|
-
// group[0].relation_products = formatDayRelationProducts(data, group[0])
|
|
290
|
-
// });
|
|
291
|
-
|
|
292
|
-
// 将分组的结果还原为数组
|
|
293
|
-
var result = (_Array$from = Array.from(groupMap.values())) === null || _Array$from === void 0 ? void 0 : _Array$from.reduce(function (acc, group) {
|
|
294
|
-
return acc.concat(group);
|
|
295
|
-
}, []);
|
|
296
|
-
return list || [];
|
|
297
|
-
} catch (error) {}
|
|
298
|
-
};
|
|
299
|
-
|
|
300
153
|
/**
|
|
301
154
|
* @title: 预约商品信息
|
|
302
155
|
* @description:
|
|
@@ -305,69 +158,42 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
|
|
|
305
158
|
* @Author: zhiwei.Wang
|
|
306
159
|
* @Date: 2024-02-19 09:26
|
|
307
160
|
*/
|
|
308
|
-
var formatBookings = function formatBookings(data
|
|
309
|
-
// 是否是跨日预约
|
|
310
|
-
var isDay = isDaysBooking(data);
|
|
311
|
-
var isEvent = isEventBooking(data);
|
|
161
|
+
var formatBookings = function formatBookings(data) {
|
|
312
162
|
var list = data.service.value;
|
|
313
|
-
|
|
314
|
-
// 格式化跨日预约商品列表
|
|
315
|
-
if (isDay) {
|
|
316
|
-
list = formatAppointmentProductLists(data);
|
|
317
|
-
}
|
|
318
|
-
if (isEvent) {
|
|
319
|
-
list = list.filter(function (d) {
|
|
320
|
-
var _d$_extend;
|
|
321
|
-
return (_d$_extend = d._extend) === null || _d$_extend === void 0 ? void 0 : _d$_extend.holder_id;
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
var dayParams = {
|
|
325
|
-
relation_products: []
|
|
326
|
-
};
|
|
327
163
|
var eventOtherParams = data.eventOtherParams;
|
|
328
164
|
var bookings = [];
|
|
329
165
|
bookings = list.map(function (item) {
|
|
166
|
+
var _item$_extend, _item$_extend$other;
|
|
330
167
|
var start_date = item._extend.startDate.format('YYYY-MM-DD');
|
|
331
168
|
var end_date = item._extend.endDate.format('YYYY-MM-DD');
|
|
332
169
|
var end_time = item._extend.endDate.format("HH:mm");
|
|
333
170
|
var start_time = item._extend.startDate.format("HH:mm");
|
|
334
|
-
|
|
335
171
|
// 更新当前时间
|
|
336
172
|
if (isNowTime(item._extend.start_time)) {
|
|
337
173
|
start_time = getNowTime();
|
|
338
174
|
}
|
|
175
|
+
var total = Number(item._extend.total);
|
|
176
|
+
var origin_total = Number(item._extend.origin_total);
|
|
177
|
+
var discount_amount = origin_total - total;
|
|
339
178
|
|
|
340
|
-
//
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
dayParams.holder = formatHolders(data, item, values);
|
|
359
|
-
dayParams.duration = getDays({
|
|
360
|
-
_extend: {
|
|
361
|
-
start_date: startDateTime,
|
|
362
|
-
end_date: endDateTime
|
|
363
|
-
}
|
|
364
|
-
}, 'minutes');
|
|
365
|
-
}
|
|
366
|
-
if (isEvent) {
|
|
367
|
-
dayParams.holder = formatHolders(data, item, values);
|
|
368
|
-
}
|
|
369
|
-
return _objectSpread(_objectSpread({
|
|
370
|
-
"product": formatProducts(item),
|
|
179
|
+
// 加价时type使用change_price
|
|
180
|
+
var discount_type = discount_amount < 0 ? 'change_price' : 'discount';
|
|
181
|
+
return _objectSpread({
|
|
182
|
+
"product": {
|
|
183
|
+
"num": item._extend.quantity,
|
|
184
|
+
"price": item._extend.price,
|
|
185
|
+
"product_id": item.id,
|
|
186
|
+
"discount_amount": discount_amount,
|
|
187
|
+
"product_discount_reason": item._extend.discount_reason || '',
|
|
188
|
+
"is_charge_tax": item.is_charge_tax,
|
|
189
|
+
"note": "",
|
|
190
|
+
"discountway": item._extend.discountway || "num",
|
|
191
|
+
"discount_per": item._extend.discount_per,
|
|
192
|
+
"discount_type": item._extend.discount_type || discount_type,
|
|
193
|
+
"order_detail_id": item._extend.order_detail_id || 0,
|
|
194
|
+
"product_bundle": formatProductBundle((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : _item$_extend$other.bundle),
|
|
195
|
+
"bundle_edit": item._extend.bundle_edit
|
|
196
|
+
},
|
|
371
197
|
"relation_products": formatRelationDetails(item._extend.relation_details),
|
|
372
198
|
'id': item.booking_id || 0,
|
|
373
199
|
"relation_id": item._extend.relation_id || 0,
|
|
@@ -376,46 +202,24 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
376
202
|
"is_all": false,
|
|
377
203
|
"schedule_id": item._extend.schedule_id || 0,
|
|
378
204
|
"end_time": end_time,
|
|
379
|
-
"sub_type":
|
|
205
|
+
"sub_type": getSubType(item),
|
|
380
206
|
"select_date": start_date,
|
|
381
207
|
"start_time": start_time,
|
|
382
208
|
"end_date": end_date,
|
|
383
209
|
"start_date": start_date,
|
|
384
|
-
"duration":
|
|
210
|
+
"duration": flexibleObj.getValue(item._extend.duration),
|
|
385
211
|
"number": item._extend.capacity ? getSumCapacity({
|
|
386
212
|
cacheItem: item
|
|
387
213
|
}) : item._extend.number || 1,
|
|
388
214
|
"resources": formatResource(item),
|
|
389
|
-
"metadata":
|
|
390
|
-
|
|
215
|
+
"metadata": item._extend.capacity ? {
|
|
216
|
+
capacity: item._extend.capacity
|
|
217
|
+
} : undefined
|
|
218
|
+
}, eventOtherParams || {});
|
|
391
219
|
});
|
|
392
|
-
debugger;
|
|
393
220
|
return bookings;
|
|
394
221
|
};
|
|
395
222
|
|
|
396
|
-
/**
|
|
397
|
-
* @title: 普通商品
|
|
398
|
-
* @description:
|
|
399
|
-
* @param {any} data
|
|
400
|
-
* @return {*}
|
|
401
|
-
* @Author: WangHan
|
|
402
|
-
* @Date: 2024-12-06 21:26
|
|
403
|
-
*/
|
|
404
|
-
var formatRelationProducts = function formatRelationProducts(data) {
|
|
405
|
-
var _data$service;
|
|
406
|
-
var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
|
|
407
|
-
// open items 下的商品
|
|
408
|
-
list = list.filter(function (item) {
|
|
409
|
-
var _item$_extend19;
|
|
410
|
-
return !((_item$_extend19 = item._extend) !== null && _item$_extend19 !== void 0 && _item$_extend19.holder_id);
|
|
411
|
-
});
|
|
412
|
-
var relationProducts = [];
|
|
413
|
-
relationProducts = list.map(function (item) {
|
|
414
|
-
return formatProducts(item);
|
|
415
|
-
});
|
|
416
|
-
return relationProducts || [];
|
|
417
|
-
};
|
|
418
|
-
|
|
419
223
|
/**
|
|
420
224
|
* @title: 预约主体信息
|
|
421
225
|
* @description:
|
|
@@ -426,8 +230,8 @@ var formatRelationProducts = function formatRelationProducts(data) {
|
|
|
426
230
|
* @Date: 2024-02-19 09:26
|
|
427
231
|
*/
|
|
428
232
|
var formatHolder = function formatHolder(state, values) {
|
|
429
|
-
var _state$
|
|
430
|
-
var form_id = (state === null || state === void 0 ? void 0 : (_state$
|
|
233
|
+
var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2, _state$bookingConfig$3, _state$pet$value, _state$pet, _state$pet$originValu, _state$pet$originValu2;
|
|
234
|
+
var form_id = (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : (_state$bookingConfig$3 = _state$bookingConfig$2.appointment_subject) === null || _state$bookingConfig$3 === void 0 ? void 0 : _state$bookingConfig$3.form_id) || 0;
|
|
431
235
|
var petValue = ((_state$pet$value = state.pet.value) === null || _state$pet$value === void 0 ? void 0 : _state$pet$value[form_id]) || [];
|
|
432
236
|
var obj = {
|
|
433
237
|
customer_id: values.customer_id,
|
|
@@ -459,13 +263,9 @@ export var formatValues = function formatValues(state) {
|
|
|
459
263
|
bookings: [],
|
|
460
264
|
customer_id: 1,
|
|
461
265
|
customer_name: "",
|
|
462
|
-
holder: {}
|
|
463
|
-
relation_products: [],
|
|
464
|
-
metadata: {}
|
|
266
|
+
holder: {}
|
|
465
267
|
};
|
|
466
|
-
|
|
467
|
-
var isEvent = isEventBooking(state);
|
|
468
|
-
if (!state.bookingId || isDay) {
|
|
268
|
+
if (!state.bookingId) {
|
|
469
269
|
// 备注
|
|
470
270
|
values.shop_note = formatNote(state);
|
|
471
271
|
}
|
|
@@ -484,15 +284,9 @@ export var formatValues = function formatValues(state) {
|
|
|
484
284
|
|
|
485
285
|
// 主体
|
|
486
286
|
values.holder = formatHolder(state, values);
|
|
487
|
-
if (isDay) {
|
|
488
|
-
values.relation_products = formatRelationProducts(state);
|
|
489
|
-
}
|
|
490
|
-
if (isEvent) {
|
|
491
|
-
values.relation_products = formatRelationProducts(state);
|
|
492
|
-
}
|
|
493
287
|
|
|
494
288
|
// 服务
|
|
495
|
-
values.bookings = formatBookings(state
|
|
289
|
+
values.bookings = formatBookings(state);
|
|
496
290
|
|
|
497
291
|
// 日期
|
|
498
292
|
if ((_values = values) !== null && _values !== void 0 && (_values$bookings = _values.bookings) !== null && _values$bookings !== void 0 && (_values$bookings$ = _values$bookings[0]) !== null && _values$bookings$ !== void 0 && _values$bookings$.select_date && !(state !== null && state !== void 0 && state.bookingId)) {
|
|
@@ -502,13 +296,5 @@ export var formatValues = function formatValues(state) {
|
|
|
502
296
|
startTime = "".concat(startTime || '00:00', ":00");
|
|
503
297
|
values.schedule_date = "".concat(values.bookings[0].select_date, " ").concat(startTime);
|
|
504
298
|
}
|
|
505
|
-
|
|
506
|
-
// 跨日预约增加多余参数区分
|
|
507
|
-
if (isDay) {
|
|
508
|
-
values.metadata.is_multiday_appointment = 1;
|
|
509
|
-
// is_bundle_price_calculated 用于区分商品的price是总价,还是商品的单价
|
|
510
|
-
// values.is_bundle_price_calculated = 1
|
|
511
|
-
}
|
|
512
|
-
|
|
513
299
|
return values;
|
|
514
300
|
};
|
|
@@ -24,20 +24,13 @@ var AddServiceVariant = function AddServiceVariant(props) {
|
|
|
24
24
|
service: _objectSpread(_objectSpread({}, stateRef.current.service), payload)
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
// 更新日期
|
|
29
|
-
if (type === 'setDate') {
|
|
30
|
-
setGlobalState({
|
|
31
|
-
date: _objectSpread(_objectSpread({}, stateRef.current.date), payload)
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
27
|
};
|
|
35
28
|
var Cpt = AddService;
|
|
36
29
|
if (isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id, props === null || props === void 0 ? void 0 : (_props$globalState = props.globalState) === null || _props$globalState === void 0 ? void 0 : _props$globalState.renderType)) {
|
|
37
30
|
Cpt = AddService2;
|
|
38
31
|
}
|
|
39
32
|
return /*#__PURE__*/React.createElement(Cpt, {
|
|
40
|
-
renderMode:
|
|
33
|
+
renderMode: "current",
|
|
41
34
|
dispatch: dispatch,
|
|
42
35
|
state: globalState,
|
|
43
36
|
drawerProps: {
|
|
@@ -19,7 +19,6 @@ interface SelectDrawerProps {
|
|
|
19
19
|
modalOpen: boolean;
|
|
20
20
|
franchiseeLoading?: number;
|
|
21
21
|
showHeader?: boolean;
|
|
22
|
-
showWalkIn?: boolean;
|
|
23
22
|
}
|
|
24
23
|
declare const _default: React.ForwardRefExoticComponent<SelectDrawerProps & React.RefAttributes<unknown>>;
|
|
25
24
|
export default _default;
|
|
@@ -99,8 +99,7 @@ var SelectDrawer = function SelectDrawer(props, ref) {
|
|
|
99
99
|
handleAddPet = props.handleAddPet,
|
|
100
100
|
modalOpen = props.modalOpen,
|
|
101
101
|
franchiseeLoading = props.franchiseeLoading,
|
|
102
|
-
showHeader = props.showHeader
|
|
103
|
-
showWalkIn = props.showWalkIn;
|
|
102
|
+
showHeader = props.showHeader;
|
|
104
103
|
var form = (formData === null || formData === void 0 ? void 0 : formData[0]) || {};
|
|
105
104
|
var valList = (childrenValue === null || childrenValue === void 0 ? void 0 : childrenValue[form.id]) || defaultArr;
|
|
106
105
|
var _useState = useState(valList),
|
|
@@ -108,6 +107,13 @@ var SelectDrawer = function SelectDrawer(props, ref) {
|
|
|
108
107
|
_value = _useState2[0],
|
|
109
108
|
setValue = _useState2[1];
|
|
110
109
|
var clientRef = useRef();
|
|
110
|
+
useEffect(function () {
|
|
111
|
+
setValue(valList.map(function (item) {
|
|
112
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
113
|
+
id: item.id || item.form_record_id
|
|
114
|
+
});
|
|
115
|
+
}));
|
|
116
|
+
}, [valList]);
|
|
111
117
|
var searchRef = useRef();
|
|
112
118
|
|
|
113
119
|
// 是否打开弹窗
|
|
@@ -119,13 +125,6 @@ var SelectDrawer = function SelectDrawer(props, ref) {
|
|
|
119
125
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
120
126
|
search = _useState6[0],
|
|
121
127
|
_setSearch = _useState6[1];
|
|
122
|
-
useEffect(function () {
|
|
123
|
-
setValue(valList.map(function (item) {
|
|
124
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
125
|
-
id: item.id || item.form_record_id
|
|
126
|
-
});
|
|
127
|
-
}));
|
|
128
|
-
}, [valList, open]);
|
|
129
128
|
useEffect(function () {
|
|
130
129
|
if (!modalOpen) {
|
|
131
130
|
setOpen(false);
|
|
@@ -169,12 +168,12 @@ var SelectDrawer = function SelectDrawer(props, ref) {
|
|
|
169
168
|
if (getIsWalkIn(item === null || item === void 0 ? void 0 : item.id)) {
|
|
170
169
|
return locales.getText('pisell2.text.select-a-customer');
|
|
171
170
|
}
|
|
172
|
-
var firstLastName = item.first_name || item.last_name ? "".concat(item.first_name, " ").concat(item.last_name) :
|
|
171
|
+
var firstLastName = item.first_name || item.last_name ? "".concat(item.first_name, " ").concat(item.last_name) : "";
|
|
173
172
|
return item.name || (item.display_name || '').trim() || (item.nickname || '').trim() || firstLastName.trim() || '';
|
|
174
173
|
}, [locales.localeMap]);
|
|
175
174
|
var handleAddClient = function handleAddClient() {
|
|
176
175
|
handleCreateItem(function () {
|
|
177
|
-
_setSearch(
|
|
176
|
+
_setSearch("");
|
|
178
177
|
});
|
|
179
178
|
};
|
|
180
179
|
var handleChildrenValueChange = /*#__PURE__*/function () {
|
|
@@ -312,7 +311,7 @@ var SelectDrawer = function SelectDrawer(props, ref) {
|
|
|
312
311
|
}();
|
|
313
312
|
return /*#__PURE__*/React.createElement(Drawer, {
|
|
314
313
|
showGoBack: showHeader,
|
|
315
|
-
title: showHeader && locales.getText(
|
|
314
|
+
title: showHeader && locales.getText("pisell2.text.select-customer"),
|
|
316
315
|
open: open,
|
|
317
316
|
onClose: closeDrawer,
|
|
318
317
|
header: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -352,13 +351,13 @@ var SelectDrawer = function SelectDrawer(props, ref) {
|
|
|
352
351
|
}, /*#__PURE__*/React.createElement(ActionItem, {
|
|
353
352
|
title: locales.getText('pisell2.text.create-new-customer'),
|
|
354
353
|
onClick: handleAddClient
|
|
355
|
-
}),
|
|
354
|
+
}), /*#__PURE__*/React.createElement(ActionItem, {
|
|
356
355
|
title: "Walk-In",
|
|
357
356
|
onClick: function onClick() {
|
|
358
357
|
handleSelectClient([]);
|
|
359
358
|
closeDrawer();
|
|
360
359
|
}
|
|
361
|
-
})
|
|
360
|
+
})), /*#__PURE__*/React.createElement(Spin, {
|
|
362
361
|
spinning: !!loading,
|
|
363
362
|
delay: 500
|
|
364
363
|
}, !!options.length ? options.map(function (item) {
|