@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
|
@@ -18,36 +18,26 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
18
18
|
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; }
|
|
19
19
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
import React, { useCallback, useContext, useEffect, useMemo, useState, useImperativeHandle, forwardRef } from 'react';
|
|
21
22
|
import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
|
|
22
|
-
import '@pisell/materials';
|
|
23
|
-
import { formatAmount, locales } from '@pisell/utils';
|
|
24
|
-
import { useMemoizedFn, useUpdateEffect } from 'ahooks';
|
|
25
|
-
import { Alert, Button, Col, DatePicker, Form, Input, InputNumber, Row, Select } from 'antd';
|
|
26
|
-
import React, { forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useState } from 'react';
|
|
27
|
-
import CollapsibleList from "../../../components/collapsibleList";
|
|
28
|
-
import { renderBundles } from "../../../components/collapsibleList/utils";
|
|
29
23
|
import Drawer from "../../../components/drawer";
|
|
30
|
-
import Duration from "../../../materiels/duration";
|
|
31
|
-
import Holder from "../../../materiels/holder";
|
|
32
24
|
import { Context } from "../../model";
|
|
33
|
-
import
|
|
25
|
+
import { formatAmount, locales } from '@pisell/utils';
|
|
26
|
+
import Duration from "../../../materiels/duration";
|
|
27
|
+
import { Input, Button, Select, Row, Col, Form, Alert, InputNumber } from 'antd';
|
|
34
28
|
import "./index.less";
|
|
29
|
+
import CollapsibleList from "../../../components/collapsibleList";
|
|
30
|
+
import { renderBundles } from "../../../components/collapsibleList/utils";
|
|
31
|
+
import { useUpdateEffect, useMemoizedFn } from 'ahooks';
|
|
35
32
|
// import SelectTime from "../../../../../../../materials/src/components/select-time";
|
|
36
|
-
import {
|
|
37
|
-
import dayjs from 'dayjs';
|
|
38
|
-
import { getNoResource } from "../../../mock";
|
|
39
|
-
import { getDays, getErrorList, getProductTotalPrice } from "../../../utils";
|
|
40
|
-
import { createBookingItemsByGroup, filterItemByGroupId, getGroupTotalPrice, isGroupBooking } from "../../service2/Group/utils";
|
|
41
|
-
import useSelectPet from "../../service2/hooks/useSelectPet";
|
|
42
|
-
import { disabledDate as _disabledDate, formatDayTime, isDayBooking, isDayBookingProduct, isEventBooking } from "../../service2/utils";
|
|
43
|
-
import { formatResources, getDurationProps, getFlexibleOption, getMultiDay, getTimeObj } from "../addService/utils";
|
|
33
|
+
import { getErrorList, getServiceTimes, deleteCacheParams, getProductTotalPrice } from "../../../utils";
|
|
44
34
|
import Like from "../like";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import
|
|
35
|
+
import { getNoResource } from "../../../mock";
|
|
36
|
+
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
|
|
37
|
+
import { PisellAdjustPriceInputNumber, Page } from '@pisell/materials';
|
|
48
38
|
var submitLock = false;
|
|
49
39
|
var Info = function Info(_, ref) {
|
|
50
|
-
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$
|
|
40
|
+
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _state$date, _state$date$value, _state$date$value$for, _window$BaseMaterials, _state$service$cacheI19, _state$service7, _state$service7$cache, _state$service7$cache2, _state$service$cacheI20, _state$service$cacheI21, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$bookingConfig12;
|
|
51
41
|
var _Form$useForm = Form.useForm(),
|
|
52
42
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
53
43
|
form = _Form$useForm2[0];
|
|
@@ -56,8 +46,6 @@ var Info = function Info(_, ref) {
|
|
|
56
46
|
var useResource = Form.useWatch('resource', form);
|
|
57
47
|
var useStartTime = Form.useWatch('start_time', form);
|
|
58
48
|
var useDuration = Form.useWatch('duration', form);
|
|
59
|
-
var useStartDate = Form.useWatch('start_date', form);
|
|
60
|
-
var useEndDate = Form.useWatch('end_date', form);
|
|
61
49
|
var _useState = useState(false),
|
|
62
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
63
51
|
resourceLoading = _useState2[0],
|
|
@@ -70,31 +58,12 @@ var Info = function Info(_, ref) {
|
|
|
70
58
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
59
|
selectOpen = _useState4[0],
|
|
72
60
|
setSelectOpen = _useState4[1];
|
|
73
|
-
var _useSelectPet = useSelectPet(state),
|
|
74
|
-
holderLists = _useSelectPet.holderLists;
|
|
75
|
-
var _useService = useService({
|
|
76
|
-
state: state,
|
|
77
|
-
dispatch: dispatch
|
|
78
|
-
}),
|
|
79
|
-
editBookingData = _useService.editBookingData,
|
|
80
|
-
editBooking = _useService.editBooking;
|
|
81
|
-
var _useState5 = useState('batch_edit'),
|
|
82
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
83
|
-
currentTab = _useState6[0],
|
|
84
|
-
setCurrentTab = _useState6[1];
|
|
85
|
-
var isDayBookingMode = useMemo(function () {
|
|
86
|
-
return isDayBooking(state);
|
|
87
|
-
}, [state === null || state === void 0 ? void 0 : state.renderType]);
|
|
88
|
-
var isEventBookingMode = useMemo(function () {
|
|
89
|
-
return isEventBooking(state);
|
|
90
|
-
}, [state === null || state === void 0 ? void 0 : state.renderType]);
|
|
91
61
|
|
|
92
62
|
// 当前商品信息+ 表单信息
|
|
93
63
|
var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
|
|
94
|
-
var _state$service;
|
|
95
64
|
// 获取当前表单数据
|
|
96
65
|
var values = form.getFieldsValue();
|
|
97
|
-
var _item = _cacheItem ||
|
|
66
|
+
var _item = _cacheItem || state.service.cacheItem;
|
|
98
67
|
return _objectSpread(_objectSpread({}, _item), {}, {
|
|
99
68
|
_extend: _objectSpread(_objectSpread({}, _item === null || _item === void 0 ? void 0 : _item._extend), values)
|
|
100
69
|
});
|
|
@@ -209,8 +178,7 @@ var Info = function Info(_, ref) {
|
|
|
209
178
|
payload: {
|
|
210
179
|
resources: formatResources({
|
|
211
180
|
cacheItem: _cacheItem,
|
|
212
|
-
resourcesOrigin: _list
|
|
213
|
-
isDay: isDayBookingMode
|
|
181
|
+
resourcesOrigin: _list
|
|
214
182
|
})
|
|
215
183
|
}
|
|
216
184
|
});
|
|
@@ -258,13 +226,9 @@ var Info = function Info(_, ref) {
|
|
|
258
226
|
}
|
|
259
227
|
var _list = _toConsumableArray(state.service.value);
|
|
260
228
|
var _id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
_list = _list.filter(function (d) {
|
|
265
|
-
return d._id !== _id;
|
|
266
|
-
});
|
|
267
|
-
}
|
|
229
|
+
_list = _list.filter(function (d) {
|
|
230
|
+
return d._id !== _id;
|
|
231
|
+
});
|
|
268
232
|
dispatch({
|
|
269
233
|
type: 'setService',
|
|
270
234
|
payload: {
|
|
@@ -325,8 +289,8 @@ var Info = function Info(_, ref) {
|
|
|
325
289
|
return d.form_record_id == useResource;
|
|
326
290
|
});
|
|
327
291
|
if (item) {
|
|
328
|
-
var _item$_extend$usableT
|
|
329
|
-
var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 ? void 0 :
|
|
292
|
+
var _item$_extend$usableT;
|
|
293
|
+
var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 ? void 0 : _item$_extend$usableT._extend.isMaxLimitRange;
|
|
330
294
|
// unknown 为未知是否可用, 需要掉后端接口确定
|
|
331
295
|
if (isMaxLimitRange === 'unknown') {
|
|
332
296
|
// 调接口
|
|
@@ -373,58 +337,76 @@ var Info = function Info(_, ref) {
|
|
|
373
337
|
* @Author: zhiwei.Wang
|
|
374
338
|
* @Date: 2024-01-09 14:04
|
|
375
339
|
*/
|
|
376
|
-
var onFinish = useMemoizedFn(
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
_context2.next = 2;
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
return _context2.abrupt("return");
|
|
387
|
-
case 2:
|
|
388
|
-
submitLock = true;
|
|
340
|
+
var onFinish = useMemoizedFn(function (values) {
|
|
341
|
+
var _currentResource$_ext;
|
|
342
|
+
// 防止多次提交, 增加锁
|
|
343
|
+
if (submitLock) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
submitLock = true;
|
|
389
347
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
348
|
+
// 1500毫秒后解除
|
|
349
|
+
setTimeout(function () {
|
|
350
|
+
submitLock = false;
|
|
351
|
+
}, 1500);
|
|
352
|
+
var _list = _toConsumableArray(state.service.value);
|
|
353
|
+
var _item = _objectSpread(_objectSpread({}, state.service.cacheItem), {}, {
|
|
354
|
+
autoClose: false,
|
|
355
|
+
errorList: errorList
|
|
356
|
+
});
|
|
357
|
+
var _extend = _objectSpread(_objectSpread({}, _item._extend), values);
|
|
358
|
+
var _getServiceTimes = getServiceTimes({
|
|
359
|
+
_extend: _extend
|
|
360
|
+
}),
|
|
361
|
+
startDate = _getServiceTimes.startDate,
|
|
362
|
+
endDate = _getServiceTimes.endDate;
|
|
363
|
+
_extend.startDate = startDate;
|
|
364
|
+
_extend.endDate = endDate;
|
|
365
|
+
var _ref2 = (currentResource === null || currentResource === void 0 ? void 0 : (_currentResource$_ext = currentResource._extend) === null || _currentResource$_ext === void 0 ? void 0 : _currentResource$_ext.usableTime) || {},
|
|
366
|
+
relation_type = _ref2.relation_type,
|
|
367
|
+
item_id = _ref2.item_id,
|
|
368
|
+
schedule_id = _ref2.schedule_id;
|
|
369
|
+
_extend.relation_type = relation_type || 'form';
|
|
370
|
+
_extend.relation_id = item_id || (currentResource === null || currentResource === void 0 ? void 0 : currentResource.form_record_id) || 0;
|
|
371
|
+
_extend.schedule_id = schedule_id || 0;
|
|
372
|
+
if (_extend.bundle_edit !== undefined) {
|
|
373
|
+
_extend.bundle_edit = 1;
|
|
374
|
+
}
|
|
375
|
+
_item._extend = _extend;
|
|
376
|
+
_item._time = new Date().getTime();
|
|
377
|
+
var _id = _item === null || _item === void 0 ? void 0 : _item._id;
|
|
378
|
+
|
|
379
|
+
// 判断是新增还是编辑
|
|
380
|
+
if (!_list.some(function (d) {
|
|
381
|
+
return d._id === _id;
|
|
382
|
+
})) {
|
|
383
|
+
_list.push(_item);
|
|
384
|
+
} else {
|
|
385
|
+
_list = _list.map(function (d) {
|
|
386
|
+
return d._id === _id ? _objectSpread(_objectSpread({}, _item), {}, {
|
|
387
|
+
new: 0
|
|
388
|
+
}) : d;
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
deleteCacheParams();
|
|
392
|
+
console.log('_onFinish', _list);
|
|
393
|
+
dispatch({
|
|
394
|
+
type: 'setService',
|
|
395
|
+
payload: {
|
|
396
|
+
editModal: false,
|
|
397
|
+
addModal: false,
|
|
398
|
+
value: _list,
|
|
399
|
+
edit: true,
|
|
400
|
+
cacheItem: null,
|
|
401
|
+
changeService: false
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
});
|
|
416
405
|
var setEditData = useMemoizedFn(function (_cacheItem, open) {
|
|
417
|
-
var _values;
|
|
418
|
-
setCurrentTab('batch_edit');
|
|
419
406
|
var cacheItem = _cacheItem || state.service.cacheItem;
|
|
420
407
|
var values = cacheItem._extend;
|
|
421
|
-
|
|
422
|
-
// 没有折扣原因则清空
|
|
423
|
-
values = _objectSpread(_objectSpread({}, values), {}, {
|
|
424
|
-
discount_reason: ((_values = values) === null || _values === void 0 ? void 0 : _values.discount_reason) || ''
|
|
425
|
-
});
|
|
426
408
|
form.setFieldsValue(values);
|
|
427
|
-
if (
|
|
409
|
+
if (state.renderType !== 'eventBooking') {
|
|
428
410
|
// 获取资源列表
|
|
429
411
|
getResources(cacheItem, open);
|
|
430
412
|
}
|
|
@@ -455,7 +437,7 @@ var Info = function Info(_, ref) {
|
|
|
455
437
|
* @Date: 2024-01-09 14:06
|
|
456
438
|
*/
|
|
457
439
|
var errorList = useMemo(function () {
|
|
458
|
-
return getErrorList(currentResource, getCurrentCacheItem()
|
|
440
|
+
return getErrorList(currentResource, getCurrentCacheItem());
|
|
459
441
|
}, [currentResource, useDuration, useStartTime]);
|
|
460
442
|
|
|
461
443
|
/**
|
|
@@ -469,29 +451,17 @@ var Info = function Info(_, ref) {
|
|
|
469
451
|
var _state$service$cacheI6;
|
|
470
452
|
// autoClose 不执行下面逻辑
|
|
471
453
|
if (state.service.cacheItem && !((_state$service$cacheI6 = state.service.cacheItem) !== null && _state$service$cacheI6 !== void 0 && _state$service$cacheI6.autoClose)) {
|
|
472
|
-
if (useStartTime && useDuration &&
|
|
454
|
+
if (useStartTime && useDuration && state.renderType !== 'eventBooking') {
|
|
473
455
|
getResources();
|
|
474
456
|
}
|
|
475
457
|
}
|
|
476
458
|
}, [useStartTime, useDuration, state.renderType, state.service.resourcesOrigin, (_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.autoClose]);
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* @title: 是否在terminal上打开预约
|
|
480
|
-
* @description:
|
|
481
|
-
* @param {*} useMemo
|
|
482
|
-
* @return {*}
|
|
483
|
-
* @Author: WangHan
|
|
484
|
-
* @Date: 2024-12-04 19:02
|
|
485
|
-
*/
|
|
486
|
-
var isTerminalBooking = useMemo(function () {
|
|
487
|
-
return state.isBookingCreatePage || state.isTerminalDayBookingPage;
|
|
488
|
-
}, [state.isBookingCreatePage, state.isTerminalDayBookingPage]);
|
|
489
459
|
useEffect(function () {
|
|
490
460
|
// 预约创建页面并且打开了编辑弹窗
|
|
491
|
-
if (
|
|
461
|
+
if (state.isBookingCreatePage && state.service.editModal) {
|
|
492
462
|
setEditData(null, true);
|
|
493
463
|
}
|
|
494
|
-
}, [state.service.editModal,
|
|
464
|
+
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
495
465
|
|
|
496
466
|
/**
|
|
497
467
|
* @title: 资源 时间 发生变化时, 重新计算错误信息
|
|
@@ -502,7 +472,7 @@ var Info = function Info(_, ref) {
|
|
|
502
472
|
*/
|
|
503
473
|
useEffect(function () {
|
|
504
474
|
getErrorMsg();
|
|
505
|
-
}, [useResource, useStartTime, useDuration
|
|
475
|
+
}, [useResource, useStartTime, useDuration]);
|
|
506
476
|
|
|
507
477
|
/**
|
|
508
478
|
* @title: 价格发生变化,重新计算折扣
|
|
@@ -519,33 +489,22 @@ var Info = function Info(_, ref) {
|
|
|
519
489
|
// handleLikeResource("common");
|
|
520
490
|
// }, [useResource]);
|
|
521
491
|
var isDiscount = useMemo(function () {
|
|
522
|
-
var _state$
|
|
523
|
-
if (!((_state$
|
|
492
|
+
var _state$service, _state$service2, _state$service2$cache;
|
|
493
|
+
if (!((_state$service = state.service) !== null && _state$service !== void 0 && _state$service.cacheItem)) {
|
|
524
494
|
return false;
|
|
525
495
|
}
|
|
526
|
-
return useTotal != ((_state$
|
|
527
|
-
}, [useTotal, (_state$
|
|
496
|
+
return useTotal != ((_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : (_state$service2$cache = _state$service2.cacheItem) === null || _state$service2$cache === void 0 ? void 0 : _state$service2$cache._extend.origin_total);
|
|
497
|
+
}, [useTotal, (_state$service3 = state.service) === null || _state$service3 === void 0 ? void 0 : (_state$service3$cache = _state$service3.cacheItem) === null || _state$service3$cache === void 0 ? void 0 : _state$service3$cache._extend.origin_total]);
|
|
528
498
|
useEffect(function () {
|
|
529
499
|
if (useResource === 0) {
|
|
530
500
|
handleLikeResource('common');
|
|
531
501
|
}
|
|
532
502
|
}, [useResource]);
|
|
533
503
|
var bundles = useMemo(function () {
|
|
534
|
-
var _state$
|
|
535
|
-
return ((_state$
|
|
536
|
-
}, [(_state$
|
|
537
|
-
|
|
538
|
-
var _state$service7, _state$service7$cache, _state$service7$cache2;
|
|
539
|
-
return Object.entries(getMultiDayPrices(((_state$service7 = state.service) === null || _state$service7 === void 0 ? void 0 : (_state$service7$cache = _state$service7.cacheItem) === null || _state$service7$cache === void 0 ? void 0 : (_state$service7$cache2 = _state$service7$cache._extend) === null || _state$service7$cache2 === void 0 ? void 0 : _state$service7$cache2.multi_day) || [])).map(function (_ref3) {
|
|
540
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
541
|
-
key = _ref4[0],
|
|
542
|
-
value = _ref4[1];
|
|
543
|
-
return {
|
|
544
|
-
key: key,
|
|
545
|
-
value: value
|
|
546
|
-
};
|
|
547
|
-
});
|
|
548
|
-
}, [(_state$service8 = state.service) === null || _state$service8 === void 0 ? void 0 : (_state$service8$cache = _state$service8.cacheItem) === null || _state$service8$cache === void 0 ? void 0 : (_state$service8$cache2 = _state$service8$cache._extend) === null || _state$service8$cache2 === void 0 ? void 0 : _state$service8$cache2.multi_day]);
|
|
504
|
+
var _state$service4, _state$service4$cache, _state$service4$cache2, _state$service4$cache3;
|
|
505
|
+
return ((_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$cache = _state$service4.cacheItem) === null || _state$service4$cache === void 0 ? void 0 : (_state$service4$cache2 = _state$service4$cache._extend) === null || _state$service4$cache2 === void 0 ? void 0 : (_state$service4$cache3 = _state$service4$cache2.other) === null || _state$service4$cache3 === void 0 ? void 0 : _state$service4$cache3.bundle) || [];
|
|
506
|
+
}, [(_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : (_state$service5$cache = _state$service5.cacheItem) === null || _state$service5$cache === void 0 ? void 0 : (_state$service5$cache2 = _state$service5$cache._extend) === null || _state$service5$cache2 === void 0 ? void 0 : (_state$service5$cache3 = _state$service5$cache2.other) === null || _state$service5$cache3 === void 0 ? void 0 : _state$service5$cache3.bundle]);
|
|
507
|
+
|
|
549
508
|
/**
|
|
550
509
|
* @title: 获取资源列表数据
|
|
551
510
|
* @description:
|
|
@@ -554,51 +513,25 @@ var Info = function Info(_, ref) {
|
|
|
554
513
|
* @Date: 2024-01-09 13:38
|
|
555
514
|
*/
|
|
556
515
|
var getResourcesData = /*#__PURE__*/function () {
|
|
557
|
-
var
|
|
558
|
-
var
|
|
559
|
-
return _regeneratorRuntime().wrap(function
|
|
560
|
-
while (1) switch (
|
|
516
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
517
|
+
var data, _list;
|
|
518
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
519
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
561
520
|
case 0:
|
|
562
521
|
setResourceLoading(true);
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
_context3.next = 13;
|
|
567
|
-
break;
|
|
568
|
-
}
|
|
569
|
-
format = 'YYYY-MM-DD HH:mm';
|
|
570
|
-
startDate = useStartDate || state.date.value;
|
|
571
|
-
endDate = useEndDate || state.date.end_date;
|
|
572
|
-
_formatDayTime = formatDayTime({
|
|
573
|
-
startDate: startDate,
|
|
574
|
-
endDate: endDate
|
|
575
|
-
}), startDateTime = _formatDayTime.startDateTime, endDateTime = _formatDayTime.endDateTime;
|
|
576
|
-
if (!dayjs(startDateTime).isAfter(dayjs(endDateTime))) {
|
|
577
|
-
_context3.next = 10;
|
|
578
|
-
break;
|
|
579
|
-
}
|
|
580
|
-
return _context3.abrupt("return");
|
|
581
|
-
case 10:
|
|
582
|
-
params.check_time = {
|
|
583
|
-
start_time: dayjs(startDateTime).format(format),
|
|
584
|
-
end_time: dayjs(endDateTime).format(format)
|
|
585
|
-
};
|
|
586
|
-
_context3.next = 14;
|
|
587
|
-
break;
|
|
588
|
-
case 13:
|
|
589
|
-
params.with_date_times = state.date.value.format('YYYY-MM-DD');
|
|
590
|
-
case 14:
|
|
591
|
-
_context3.next = 16;
|
|
592
|
-
return state.apis.getResources(_objectSpread({
|
|
522
|
+
_context2.prev = 1;
|
|
523
|
+
_context2.next = 4;
|
|
524
|
+
return state.apis.getResources({
|
|
593
525
|
skip: 1,
|
|
594
526
|
num: 1000,
|
|
527
|
+
with_date_times: state.date.value.format('YYYY-MM-DD'),
|
|
595
528
|
codes: ['resources', 'therapist', 'table'],
|
|
596
529
|
_config: {
|
|
597
530
|
abort: true
|
|
598
531
|
}
|
|
599
|
-
}
|
|
600
|
-
case
|
|
601
|
-
data =
|
|
532
|
+
});
|
|
533
|
+
case 4:
|
|
534
|
+
data = _context2.sent;
|
|
602
535
|
// 合并无资源
|
|
603
536
|
_list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
604
537
|
dispatch({
|
|
@@ -607,32 +540,29 @@ var Info = function Info(_, ref) {
|
|
|
607
540
|
resourcesOrigin: _list
|
|
608
541
|
}
|
|
609
542
|
});
|
|
610
|
-
|
|
543
|
+
_context2.next = 12;
|
|
611
544
|
break;
|
|
612
|
-
case
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
console.log(
|
|
616
|
-
case
|
|
545
|
+
case 9:
|
|
546
|
+
_context2.prev = 9;
|
|
547
|
+
_context2.t0 = _context2["catch"](1);
|
|
548
|
+
console.log(_context2.t0, 'err');
|
|
549
|
+
case 12:
|
|
617
550
|
setResourceLoading(false);
|
|
618
|
-
case
|
|
551
|
+
case 13:
|
|
619
552
|
case "end":
|
|
620
|
-
return
|
|
553
|
+
return _context2.stop();
|
|
621
554
|
}
|
|
622
|
-
},
|
|
555
|
+
}, _callee2, null, [[1, 9]]);
|
|
623
556
|
}));
|
|
624
557
|
return function getResourcesData() {
|
|
625
|
-
return
|
|
558
|
+
return _ref3.apply(this, arguments);
|
|
626
559
|
};
|
|
627
560
|
}();
|
|
628
561
|
useEffect(function () {
|
|
629
|
-
if (isEventBookingMode) {
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
562
|
setTimeout(function () {
|
|
633
563
|
getResourcesData();
|
|
634
564
|
}, 20);
|
|
635
|
-
}, [(_state$date = state.date) === null || _state$date === void 0 ? void 0 : (_state$date$value = _state$date.value) === null || _state$date$value === void 0 ? void 0 : (_state$date$value$for = _state$date$value.format) === null || _state$date$value$for === void 0 ? void 0 : _state$date$value$for.call(_state$date$value, 'YYYY-MM-DD')
|
|
565
|
+
}, [(_state$date = state.date) === null || _state$date === void 0 ? void 0 : (_state$date$value = _state$date.value) === null || _state$date$value === void 0 ? void 0 : (_state$date$value$for = _state$date$value.format) === null || _state$date$value$for === void 0 ? void 0 : _state$date$value$for.call(_state$date$value, 'YYYY-MM-DD')]);
|
|
636
566
|
|
|
637
567
|
/**
|
|
638
568
|
* @title: 编辑商品
|
|
@@ -643,24 +573,11 @@ var Info = function Info(_, ref) {
|
|
|
643
573
|
* @Date: 2024-08-28 17:08
|
|
644
574
|
*/
|
|
645
575
|
var handleEdit = useMemoizedFn(function (e) {
|
|
646
|
-
var _item$_extend3, _state$client, _state$client$value;
|
|
647
576
|
// 当前商品
|
|
648
577
|
var item = state.service.cacheItem;
|
|
649
578
|
|
|
650
579
|
// 表单数据
|
|
651
580
|
var values = form.getFieldsValue();
|
|
652
|
-
var dayValue = {};
|
|
653
|
-
if (isDayBookingMode) {
|
|
654
|
-
var _item$_extend, _item$_extend$other, _item$_extend$other$o, _item$_extend2, _item$_extend2$other;
|
|
655
|
-
// 格式化单规格
|
|
656
|
-
var option = (_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$o = _item$_extend$other.option) === null || _item$_extend$other$o === void 0 ? void 0 : _item$_extend$other$o.map(function (o) {
|
|
657
|
-
return _objectSpread(_objectSpread({}, o), {}, {
|
|
658
|
-
option_group_item_id: o.product_option_item_id
|
|
659
|
-
});
|
|
660
|
-
});
|
|
661
|
-
dayValue.product_variant = ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : (_item$_extend2$other = _item$_extend2.other) === null || _item$_extend2$other === void 0 ? void 0 : _item$_extend2$other.product_variant_id) || 0;
|
|
662
|
-
dayValue.product_option = option || [];
|
|
663
|
-
}
|
|
664
581
|
|
|
665
582
|
// 打开商品详情弹窗
|
|
666
583
|
state.action({
|
|
@@ -669,16 +586,14 @@ var Info = function Info(_, ref) {
|
|
|
669
586
|
id: item.id,
|
|
670
587
|
date: state.date.value.format('YYYY-MM-DD'),
|
|
671
588
|
showConfig: {
|
|
672
|
-
option:
|
|
589
|
+
option: false,
|
|
673
590
|
session: false,
|
|
674
|
-
variant:
|
|
591
|
+
variant: false,
|
|
675
592
|
package: true
|
|
676
593
|
},
|
|
677
|
-
value:
|
|
678
|
-
customer_id: isDayBookingMode ? ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id) || 1 : undefined
|
|
594
|
+
value: item._extend.other
|
|
679
595
|
},
|
|
680
596
|
callback: function callback(e) {
|
|
681
|
-
var _cacheItem$_extend, _cacheItem$_extend$ot;
|
|
682
597
|
// 重新生成商品
|
|
683
598
|
var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
684
599
|
product_id: item.id,
|
|
@@ -694,12 +609,6 @@ var Info = function Info(_, ref) {
|
|
|
694
609
|
// 获取商品总价
|
|
695
610
|
var _total = getProductTotalPrice(cacheItem);
|
|
696
611
|
|
|
697
|
-
// 如果有多规格,则更新商品的单价
|
|
698
|
-
if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && (_cacheItem$_extend$ot = _cacheItem$_extend.other) !== null && _cacheItem$_extend$ot !== void 0 && _cacheItem$_extend$ot.product_variant_id) {
|
|
699
|
-
var _cacheItem$_extend2, _cacheItem$_extend2$o;
|
|
700
|
-
cacheItem._extend.price = Number((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 ? void 0 : (_cacheItem$_extend2$o = _cacheItem$_extend2.other) === null || _cacheItem$_extend2$o === void 0 ? void 0 : _cacheItem$_extend2$o.price);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
612
|
// 用于折扣 可修改
|
|
704
613
|
cacheItem._extend.total = _total;
|
|
705
614
|
|
|
@@ -713,12 +622,11 @@ var Info = function Info(_, ref) {
|
|
|
713
622
|
cacheItem: cacheItem
|
|
714
623
|
}
|
|
715
624
|
});
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}, 100);
|
|
625
|
+
|
|
626
|
+
// 更新表单内的商品价格
|
|
627
|
+
form.setFieldsValue({
|
|
628
|
+
total: _total
|
|
629
|
+
});
|
|
722
630
|
}
|
|
723
631
|
});
|
|
724
632
|
});
|
|
@@ -751,165 +659,8 @@ var Info = function Info(_, ref) {
|
|
|
751
659
|
};
|
|
752
660
|
});
|
|
753
661
|
var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @title: 日期组件
|
|
757
|
-
* @description:
|
|
758
|
-
* @return {*}
|
|
759
|
-
* @Author: WangHan
|
|
760
|
-
* @Date: 2024-11-30 22:22
|
|
761
|
-
*/
|
|
762
|
-
var DateCom = function DateCom(position) {
|
|
763
|
-
return /*#__PURE__*/React.createElement(DatePicker, {
|
|
764
|
-
className: "pisell-lowcode__booking-service-select-date",
|
|
765
|
-
disabledDate: function disabledDate(current) {
|
|
766
|
-
return _disabledDate(current, position, useStartDate);
|
|
767
|
-
},
|
|
768
|
-
size: "large",
|
|
769
|
-
style: {
|
|
770
|
-
width: '100%'
|
|
771
|
-
},
|
|
772
|
-
format: state.locale === 'en' ? 'DD/MM/YYYY' : 'YYYY-MM-DD'
|
|
773
|
-
});
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* @title: 更新报价单价格
|
|
778
|
-
* @description:
|
|
779
|
-
* @param {any} param1
|
|
780
|
-
* @return {*}
|
|
781
|
-
* @Author: WangHan
|
|
782
|
-
* @Date: 2024-12-29 23:17
|
|
783
|
-
*/
|
|
784
|
-
var updateMultiDay = /*#__PURE__*/function () {
|
|
785
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref6) {
|
|
786
|
-
var start_date, end_date, duration, cacheItem, fieldsValues;
|
|
787
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
788
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
789
|
-
case 0:
|
|
790
|
-
start_date = _ref6.start_date, end_date = _ref6.end_date, duration = _ref6.duration;
|
|
791
|
-
_context4.next = 3;
|
|
792
|
-
return getMultiDay({
|
|
793
|
-
start_date: start_date,
|
|
794
|
-
end_date: end_date,
|
|
795
|
-
state: state,
|
|
796
|
-
cacheItem: getCurrentCacheItem()
|
|
797
|
-
});
|
|
798
|
-
case 3:
|
|
799
|
-
cacheItem = _context4.sent;
|
|
800
|
-
// 兼容时长为空的情况
|
|
801
|
-
if (duration !== undefined) {
|
|
802
|
-
cacheItem._extend.duration = duration;
|
|
803
|
-
}
|
|
804
|
-
cacheItem._extend.items = createBookingItemsByGroup(cacheItem);
|
|
805
|
-
cacheItem._extend = _objectSpread(_objectSpread({}, cacheItem._extend), getGroupTotalPrice(cacheItem._extend.items));
|
|
806
|
-
// 覆盖商品
|
|
807
|
-
dispatch({
|
|
808
|
-
type: 'setService',
|
|
809
|
-
payload: {
|
|
810
|
-
cacheItem: cacheItem
|
|
811
|
-
}
|
|
812
|
-
});
|
|
813
|
-
fieldsValues = {
|
|
814
|
-
total: cacheItem._extend.total
|
|
815
|
-
}; // 更新表单内的商品价格
|
|
816
|
-
form.setFieldsValue(fieldsValues);
|
|
817
|
-
case 10:
|
|
818
|
-
case "end":
|
|
819
|
-
return _context4.stop();
|
|
820
|
-
}
|
|
821
|
-
}, _callee4);
|
|
822
|
-
}));
|
|
823
|
-
return function updateMultiDay(_x5) {
|
|
824
|
-
return _ref7.apply(this, arguments);
|
|
825
|
-
};
|
|
826
|
-
}();
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @title: 表单更新
|
|
830
|
-
* @description:
|
|
831
|
-
* @param {any} changedValues
|
|
832
|
-
* @return {*}
|
|
833
|
-
* @Author: WangHan
|
|
834
|
-
* @Date: 2024-12-04 14:39
|
|
835
|
-
*/
|
|
836
|
-
var onValuesChange = function onValuesChange(changedValues) {
|
|
837
|
-
// 跨日预约
|
|
838
|
-
if (isDayBookingMode) {
|
|
839
|
-
// 根据时长更新结束时间
|
|
840
|
-
if (changedValues !== null && changedValues !== void 0 && changedValues.duration) {
|
|
841
|
-
var end_date = dayjs(useStartDate).add(changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration, 'day');
|
|
842
|
-
form.setFieldsValue({
|
|
843
|
-
end_date: end_date
|
|
844
|
-
});
|
|
845
|
-
|
|
846
|
-
// 跨日预约报价单
|
|
847
|
-
return updateMultiDay({
|
|
848
|
-
start_date: useStartDate,
|
|
849
|
-
end_date: end_date,
|
|
850
|
-
duration: changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
// 验证结束日期
|
|
855
|
-
if (changedValues !== null && changedValues !== void 0 && changedValues.start_date) {
|
|
856
|
-
var startDate = dayjs(changedValues === null || changedValues === void 0 ? void 0 : changedValues.start_date);
|
|
857
|
-
var endDate = dayjs(useEndDate);
|
|
858
|
-
// 如果开始日期大于结束日期,则清空数据
|
|
859
|
-
if (startDate.isAfter(endDate)) {
|
|
860
|
-
return form.setFieldsValue({
|
|
861
|
-
duration: undefined,
|
|
862
|
-
end_date: undefined
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
// 计算时长
|
|
868
|
-
if (changedValues !== null && changedValues !== void 0 && changedValues.start_date || changedValues !== null && changedValues !== void 0 && changedValues.end_date) {
|
|
869
|
-
var _cacheItem2 = getCurrentCacheItem();
|
|
870
|
-
var duration = getDays(_cacheItem2, 'days');
|
|
871
|
-
var start_date = (changedValues === null || changedValues === void 0 ? void 0 : changedValues.start_date) || useStartDate;
|
|
872
|
-
var _end_date = (changedValues === null || changedValues === void 0 ? void 0 : changedValues.end_date) || useEndDate;
|
|
873
|
-
updateMultiDay({
|
|
874
|
-
start_date: start_date,
|
|
875
|
-
end_date: _end_date,
|
|
876
|
-
duration: duration
|
|
877
|
-
});
|
|
878
|
-
return form.setFieldsValue({
|
|
879
|
-
duration: duration
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
/**
|
|
886
|
-
* @title: 是否显示资源和时长
|
|
887
|
-
* @description:
|
|
888
|
-
* @param {*} useMemo
|
|
889
|
-
* @return {*}
|
|
890
|
-
* @Author: WangHan
|
|
891
|
-
* @Date: 2024-12-09 15:59
|
|
892
|
-
*/
|
|
893
|
-
var showResource = useMemo(function () {
|
|
894
|
-
if (isEventBookingMode) {
|
|
895
|
-
return false;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
// 跨日预约 预约商品才展示
|
|
899
|
-
if (isDayBookingMode) {
|
|
900
|
-
return isDayBookingProduct(state.service.cacheItem, state);
|
|
901
|
-
}
|
|
902
|
-
return true;
|
|
903
|
-
}, [state.service.cacheItem, state.renderType]);
|
|
904
|
-
var items = useMemo(function () {
|
|
905
|
-
var _getCurrentCacheItem, _getCurrentCacheItem$;
|
|
906
|
-
return ((_getCurrentCacheItem = getCurrentCacheItem()) === null || _getCurrentCacheItem === void 0 ? void 0 : (_getCurrentCacheItem$ = _getCurrentCacheItem._extend) === null || _getCurrentCacheItem$ === void 0 ? void 0 : _getCurrentCacheItem$.items) || [];
|
|
907
|
-
}, [getCurrentCacheItem(), state.service.cacheItem, useLikeStatus, currentResource, useTotal]);
|
|
908
|
-
var isEditGroup = useMemo(function () {
|
|
909
|
-
return items.length;
|
|
910
|
-
}, [items]);
|
|
911
662
|
return useMemo(function () {
|
|
912
|
-
var _state$service$cacheI10, _state$
|
|
663
|
+
var _state$service$cacheI10, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$cacheI11, _state$service$cacheI12, _state$service$cacheI13, _state$service$cacheI14, _state$service$cacheI15, _state$service$cacheI16, _state$service$cacheI17, _state$service$cacheI18, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8;
|
|
913
664
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer
|
|
914
665
|
//通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
|
|
915
666
|
, {
|
|
@@ -917,7 +668,7 @@ var Info = function Info(_, ref) {
|
|
|
917
668
|
zIndex: state.service.changeService ? 999 : 1000,
|
|
918
669
|
forceRender: true,
|
|
919
670
|
open: state.service.editModal && !((_state$service$cacheI10 = state.service.cacheItem) !== null && _state$service$cacheI10 !== void 0 && _state$service$cacheI10.autoClose),
|
|
920
|
-
title:
|
|
671
|
+
title: locales.getText('pisell2.text.edit-service'),
|
|
921
672
|
onClose: function onClose() {
|
|
922
673
|
dispatch({
|
|
923
674
|
type: 'setService',
|
|
@@ -930,29 +681,10 @@ var Info = function Info(_, ref) {
|
|
|
930
681
|
}
|
|
931
682
|
}, /*#__PURE__*/React.createElement("div", {
|
|
932
683
|
className: "pisell-lowcode__booking-service-body-edit"
|
|
933
|
-
},
|
|
934
|
-
value: currentTab,
|
|
935
|
-
onChange: function onChange(e) {
|
|
936
|
-
console.log(e);
|
|
937
|
-
setCurrentTab(e);
|
|
938
|
-
}
|
|
939
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
940
|
-
className: "",
|
|
941
|
-
style: {
|
|
942
|
-
display: currentTab === 'booking_list' ? 'block' : 'none'
|
|
943
|
-
}
|
|
944
|
-
}, /*#__PURE__*/React.createElement(BookingList, {
|
|
945
|
-
items: items
|
|
946
|
-
}))) : null, /*#__PURE__*/React.createElement("div", {
|
|
947
|
-
className: "",
|
|
948
|
-
style: {
|
|
949
|
-
display: currentTab === 'batch_edit' ? 'block' : 'none'
|
|
950
|
-
}
|
|
951
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
|
|
684
|
+
}, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
|
|
952
685
|
layout: "vertical",
|
|
953
686
|
form: form,
|
|
954
|
-
onFinish: onFinish
|
|
955
|
-
onValuesChange: onValuesChange
|
|
687
|
+
onFinish: onFinish
|
|
956
688
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
957
689
|
style: {
|
|
958
690
|
width: '100%'
|
|
@@ -968,9 +700,9 @@ var Info = function Info(_, ref) {
|
|
|
968
700
|
className: "current-service-info-name-wrap"
|
|
969
701
|
}, /*#__PURE__*/React.createElement("div", {
|
|
970
702
|
className: "current-service-info-name"
|
|
971
|
-
}, ((_state$
|
|
703
|
+
}, ((_state$service6 = state.service) === null || _state$service6 === void 0 ? void 0 : (_state$service6$cache = _state$service6.cacheItem) === null || _state$service6$cache === void 0 ? void 0 : (_state$service6$cache2 = _state$service6$cache._extend) === null || _state$service6$cache2 === void 0 ? void 0 : _state$service6$cache2.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
|
|
972
704
|
onClick: handleEdit
|
|
973
|
-
}, locales.getText('pisell2.text.edit')), !
|
|
705
|
+
}, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
|
|
974
706
|
onClick: handleChange
|
|
975
707
|
}, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
|
|
976
708
|
style: {
|
|
@@ -1006,15 +738,15 @@ var Info = function Info(_, ref) {
|
|
|
1006
738
|
name: "discount_reason"
|
|
1007
739
|
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
1008
740
|
size: "large"
|
|
1009
|
-
}))) : null,
|
|
741
|
+
}))) : null, state.renderType !== 'eventBooking' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
|
|
1010
742
|
span: 12
|
|
1011
743
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1012
|
-
label: locales.getText(
|
|
1013
|
-
name:
|
|
744
|
+
label: locales.getText('pisell2.text.start_time'),
|
|
745
|
+
name: "start_time",
|
|
1014
746
|
rules: [{
|
|
1015
747
|
required: true
|
|
1016
748
|
}]
|
|
1017
|
-
},
|
|
749
|
+
}, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
|
|
1018
750
|
slice: (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.config) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.basic) === null || _state$bookingConfig7 === void 0 ? void 0 : (_state$bookingConfig8 = _state$bookingConfig7.service_time) === null || _state$bookingConfig8 === void 0 ? void 0 : _state$bookingConfig8.value,
|
|
1019
751
|
timePickerProps: {
|
|
1020
752
|
style: {
|
|
@@ -1026,15 +758,7 @@ var Info = function Info(_, ref) {
|
|
|
1026
758
|
zoom: 0.8
|
|
1027
759
|
}
|
|
1028
760
|
}
|
|
1029
|
-
}) : null)),
|
|
1030
|
-
span: 12
|
|
1031
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1032
|
-
label: locales.getText(isDayBookingMode ? 'pisell2.text.end_date' : 'pisell2.text.end_time'),
|
|
1033
|
-
name: "end_date",
|
|
1034
|
-
rules: [{
|
|
1035
|
-
required: true
|
|
1036
|
-
}]
|
|
1037
|
-
}, DateCom('end'))) : null, /*#__PURE__*/React.createElement(Col, {
|
|
761
|
+
}) : null)), /*#__PURE__*/React.createElement(Col, {
|
|
1038
762
|
span: 12
|
|
1039
763
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1040
764
|
label: locales.getText('pisell2.text.duration'),
|
|
@@ -1044,17 +768,7 @@ var Info = function Info(_, ref) {
|
|
|
1044
768
|
}]
|
|
1045
769
|
}, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
|
|
1046
770
|
timeObj: timeObj
|
|
1047
|
-
})))),
|
|
1048
|
-
span: 12
|
|
1049
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1050
|
-
label: locales.getText('pisell2.text.holder'),
|
|
1051
|
-
name: "holder_id",
|
|
1052
|
-
rules: [{
|
|
1053
|
-
required: true
|
|
1054
|
-
}]
|
|
1055
|
-
}, /*#__PURE__*/React.createElement(Holder, {
|
|
1056
|
-
size: "large"
|
|
1057
|
-
}))) : null, /*#__PURE__*/React.createElement(Col, {
|
|
771
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
1058
772
|
span: 24
|
|
1059
773
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1060
774
|
required: true,
|
|
@@ -1094,29 +808,7 @@ var Info = function Info(_, ref) {
|
|
|
1094
808
|
}, /*#__PURE__*/React.createElement(InputNumber, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
1095
809
|
hidden: true,
|
|
1096
810
|
name: "like_status"
|
|
1097
|
-
}, /*#__PURE__*/React.createElement(Input, null))),
|
|
1098
|
-
span: 24
|
|
1099
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1100
|
-
label: locales.getText('pisell2.text.quantity'),
|
|
1101
|
-
name: "quantity",
|
|
1102
|
-
rules: [{
|
|
1103
|
-
required: true
|
|
1104
|
-
}]
|
|
1105
|
-
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
1106
|
-
size: "large",
|
|
1107
|
-
style: {
|
|
1108
|
-
width: '100%'
|
|
1109
|
-
},
|
|
1110
|
-
min: 1,
|
|
1111
|
-
max: 999999,
|
|
1112
|
-
formatter: function formatter(value) {
|
|
1113
|
-
if (value !== undefined) {
|
|
1114
|
-
// 向下取整
|
|
1115
|
-
return Math.floor(value);
|
|
1116
|
-
}
|
|
1117
|
-
return value;
|
|
1118
|
-
}
|
|
1119
|
-
}))) : null))), showResource && errorList.map(function (d, i) {
|
|
811
|
+
}, /*#__PURE__*/React.createElement(Input, null)))))), state.renderType !== 'eventBooking' && errorList.map(function (d, i) {
|
|
1120
812
|
return /*#__PURE__*/React.createElement(Alert, {
|
|
1121
813
|
key: d.type,
|
|
1122
814
|
message: d.label,
|
|
@@ -1126,7 +818,7 @@ var Info = function Info(_, ref) {
|
|
|
1126
818
|
marginBottom: 12
|
|
1127
819
|
}
|
|
1128
820
|
});
|
|
1129
|
-
})
|
|
821
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
1130
822
|
className: "pisell-lowcode__booking-service-body-edit-footer"
|
|
1131
823
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1132
824
|
className: "pisell-lowcode__booking-service-delete-wrap",
|
|
@@ -1141,6 +833,6 @@ var Info = function Info(_, ref) {
|
|
|
1141
833
|
form.submit();
|
|
1142
834
|
}
|
|
1143
835
|
}, locales.getText('pisell2.text.apply'))))));
|
|
1144
|
-
}, [state.service.changeService, state.service.editModal, (_state$service$cacheI19 = state.service.cacheItem) === null || _state$service$cacheI19 === void 0 ? void 0 : _state$service$cacheI19.autoClose, locales, (_state$
|
|
836
|
+
}, [state.service.changeService, state.service.editModal, (_state$service$cacheI19 = state.service.cacheItem) === null || _state$service$cacheI19 === void 0 ? void 0 : _state$service$cacheI19.autoClose, locales, (_state$service7 = state.service) === null || _state$service7 === void 0 ? void 0 : (_state$service7$cache = _state$service7.cacheItem) === null || _state$service7$cache === void 0 ? void 0 : (_state$service7$cache2 = _state$service7$cache._extend) === null || _state$service7$cache2 === void 0 ? void 0 : _state$service7$cache2.product_name, bundles, state.amountSymbol, state.channelDisabledEdit, (_state$service$cacheI20 = state.service.cacheItem) === null || _state$service$cacheI20 === void 0 ? void 0 : (_state$service$cacheI21 = _state$service$cacheI20._extend) === null || _state$service$cacheI21 === void 0 ? void 0 : _state$service$cacheI21.origin_total, isDiscount, isReason, state.renderType, (_state$bookingConfig9 = state.bookingConfig) === null || _state$bookingConfig9 === void 0 ? void 0 : (_state$bookingConfig10 = _state$bookingConfig9.config) === null || _state$bookingConfig10 === void 0 ? void 0 : (_state$bookingConfig11 = _state$bookingConfig10.basic) === null || _state$bookingConfig11 === void 0 ? void 0 : (_state$bookingConfig12 = _state$bookingConfig11.service_time) === null || _state$bookingConfig12 === void 0 ? void 0 : _state$bookingConfig12.value, SelectTime, durationProps, timeObj, useResource, useLikeStatus, resourceLoading, selectOpen, state.service.resources, errorList, useTotal]);
|
|
1145
837
|
};
|
|
1146
838
|
export default /*#__PURE__*/forwardRef(Info);
|