@pisell/private-materials 3.2.11 → 3.2.13
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 +14 -18
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +6 -6
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.js +58 -48
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +4 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +3 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.js +3 -2
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +3 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +4 -4
- 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/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourcBooking/assets/calendar-heart.svg +0 -5
- package/es/components/parallelResourcBooking/assets/compass.svg +0 -13
- package/es/components/parallelResourcBooking/assets/image.svg +0 -5
- package/es/components/parallelResourcBooking/assets/phone.svg +0 -5
- package/es/components/parallelResourcBooking/assets/shopping-cart.svg +0 -10
- package/es/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/ErrorTip/index.js +0 -14
- package/es/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
- package/es/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/OpenCard/index.js +0 -65
- package/es/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
- package/es/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/parallelResourcBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/parallelResourcBooking/components/Provider/Content/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Content/index.js +0 -65
- package/es/components/parallelResourcBooking/components/Provider/Content/index.less +0 -31
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/parallelResourcBooking/components/Provider/Event/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Event/index.js +0 -93
- package/es/components/parallelResourcBooking/components/Provider/Event/index.less +0 -20
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/parallelResourcBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/parallelResourcBooking/components/Provider/Header/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Header/index.js +0 -75
- package/es/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
- package/es/components/parallelResourcBooking/components/Provider/Information/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Information/index.js +0 -178
- package/es/components/parallelResourcBooking/components/Provider/Information/index.less +0 -92
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/parallelResourcBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -337
- package/es/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/parallelResourcBooking/components/eventCard/index.js +0 -116
- package/es/components/parallelResourcBooking/components/eventCard/index.less +0 -81
- package/es/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
- package/es/components/parallelResourcBooking/components/productCard/index.js +0 -79
- package/es/components/parallelResourcBooking/components/productCard/index.less +0 -60
- package/es/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/parallelResourcBooking/components/progressBar/index.js +0 -93
- package/es/components/parallelResourcBooking/components/progressBar/index.less +0 -15
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/parallelResourcBooking/components/resourceUsability/index.js +0 -44
- package/es/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/parallelResourcBooking/components/selectHolder/index.js +0 -118
- package/es/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/parallelResourcBooking/index.d.ts +0 -4
- package/es/components/parallelResourcBooking/index.js +0 -58
- package/es/components/parallelResourcBooking/index.less +0 -22
- package/es/components/parallelResourcBooking/locales.d.ts +0 -216
- package/es/components/parallelResourcBooking/locales.js +0 -251
- package/es/components/parallelResourcBooking/mock.d.ts +0 -627
- package/es/components/parallelResourcBooking/mock.js +0 -1172
- package/es/components/parallelResourcBooking/status.d.ts +0 -21
- package/es/components/parallelResourcBooking/status.js +0 -51
- package/es/components/parallelResourcBooking/type.d.ts +0 -17
- package/es/components/parallelResourcBooking/type.js +0 -1
- package/es/components/parallelResourcBooking/utils.d.ts +0 -45
- package/es/components/parallelResourcBooking/utils.js +0 -99
- 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/parallelResourcBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourcBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/parallelResourcBooking/assets/compass.svg +0 -13
- package/lib/components/parallelResourcBooking/assets/image.svg +0 -5
- package/lib/components/parallelResourcBooking/assets/phone.svg +0 -5
- package/lib/components/parallelResourcBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/parallelResourcBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/parallelResourcBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/OpenCard/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/OpenCard/index.less +0 -52
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
- package/lib/components/parallelResourcBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/parallelResourcBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/parallelResourcBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/parallelResourcBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/parallelResourcBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/parallelResourcBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/parallelResourcBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/parallelResourcBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/parallelResourcBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/parallelResourcBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/parallelResourcBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/parallelResourcBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/parallelResourcBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/components/Schedule.js +0 -69
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.js +0 -248
- package/lib/components/parallelResourcBooking/components/bookingDetailModal/index.less +0 -82
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/parallelResourcBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/parallelResourcBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/parallelResourcBooking/components/eventCard/index.js +0 -124
- package/lib/components/parallelResourcBooking/components/eventCard/index.less +0 -81
- package/lib/components/parallelResourcBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/parallelResourcBooking/components/productCard/index.js +0 -77
- package/lib/components/parallelResourcBooking/components/productCard/index.less +0 -60
- package/lib/components/parallelResourcBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/parallelResourcBooking/components/progressBar/index.js +0 -100
- package/lib/components/parallelResourcBooking/components/progressBar/index.less +0 -15
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.js +0 -116
- package/lib/components/parallelResourcBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/parallelResourcBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/parallelResourcBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/parallelResourcBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/parallelResourcBooking/components/selectHolder/index.js +0 -106
- package/lib/components/parallelResourcBooking/components/selectHolder/index.less +0 -70
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/parallelResourcBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/parallelResourcBooking/index.d.ts +0 -4
- package/lib/components/parallelResourcBooking/index.js +0 -78
- package/lib/components/parallelResourcBooking/index.less +0 -22
- package/lib/components/parallelResourcBooking/locales.d.ts +0 -216
- package/lib/components/parallelResourcBooking/locales.js +0 -239
- package/lib/components/parallelResourcBooking/mock.d.ts +0 -627
- package/lib/components/parallelResourcBooking/mock.js +0 -1352
- package/lib/components/parallelResourcBooking/status.d.ts +0 -21
- package/lib/components/parallelResourcBooking/status.js +0 -70
- package/lib/components/parallelResourcBooking/type.d.ts +0 -17
- package/lib/components/parallelResourcBooking/type.js +0 -17
- package/lib/components/parallelResourcBooking/utils.d.ts +0 -45
- package/lib/components/parallelResourcBooking/utils.js +0 -90
|
@@ -297,13 +297,14 @@ var Addons = Provider(function (props) {
|
|
|
297
297
|
},
|
|
298
298
|
is_eject: isEject ? 1 : 0
|
|
299
299
|
},
|
|
300
|
-
callback: function callback(e) {
|
|
300
|
+
callback: function callback(e, extension_type, detail) {
|
|
301
301
|
console.log('e', e);
|
|
302
|
-
var
|
|
302
|
+
var _detail = detail || item;
|
|
303
|
+
var product = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
303
304
|
_id: getUniqueId(),
|
|
304
305
|
_key: e.key,
|
|
305
306
|
_extend: {
|
|
306
|
-
price:
|
|
307
|
+
price: _detail.price,
|
|
307
308
|
other: e,
|
|
308
309
|
quantity: 1
|
|
309
310
|
},
|
|
@@ -499,9 +500,10 @@ var Addons = Provider(function (props) {
|
|
|
499
500
|
},
|
|
500
501
|
value: item._extend.other
|
|
501
502
|
},
|
|
502
|
-
callback: function callback(e) {
|
|
503
|
+
callback: function callback(e, extension_type, detail) {
|
|
503
504
|
var _product$_extend;
|
|
504
|
-
var
|
|
505
|
+
var _detail = detail || item;
|
|
506
|
+
var product = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
505
507
|
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
506
508
|
other: e
|
|
507
509
|
})
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -335,14 +335,14 @@ var Info = function Info(props) {
|
|
|
335
335
|
customer_id: customerId
|
|
336
336
|
},
|
|
337
337
|
callback: function () {
|
|
338
|
-
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
|
|
338
|
+
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e, extension_type, detail) {
|
|
339
339
|
var data;
|
|
340
340
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
341
341
|
while (1) switch (_context3.prev = _context3.next) {
|
|
342
342
|
case 0:
|
|
343
343
|
_context3.next = 2;
|
|
344
344
|
return createBookingData({
|
|
345
|
-
product: _objectSpread(_objectSpread({}, item), {}, {
|
|
345
|
+
product: _objectSpread(_objectSpread({}, detail || item), {}, {
|
|
346
346
|
_params: e
|
|
347
347
|
})
|
|
348
348
|
});
|
|
@@ -358,7 +358,7 @@ var Info = function Info(props) {
|
|
|
358
358
|
}
|
|
359
359
|
}, _callee3);
|
|
360
360
|
}));
|
|
361
|
-
function callback(_x3) {
|
|
361
|
+
function callback(_x3, _x4, _x5) {
|
|
362
362
|
return _callback.apply(this, arguments);
|
|
363
363
|
}
|
|
364
364
|
return callback;
|
|
@@ -677,49 +677,59 @@ var Info = function Info(_, ref) {
|
|
|
677
677
|
value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue),
|
|
678
678
|
customer_id: isDayBookingMode ? ((_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id) || 1 : undefined
|
|
679
679
|
},
|
|
680
|
-
callback: function
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
680
|
+
callback: function () {
|
|
681
|
+
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e, extension_type, detail) {
|
|
682
|
+
var _cacheItem$_extend;
|
|
683
|
+
var _detail, cacheItem, _total, _cacheItem$_extend2;
|
|
684
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
685
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
686
|
+
case 0:
|
|
687
|
+
_detail = detail || item; // 重新生成商品
|
|
688
|
+
cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
689
|
+
product_id: item.id,
|
|
690
|
+
_id: item === null || item === void 0 ? void 0 : item._id,
|
|
691
|
+
_key: e.key,
|
|
692
|
+
_extend: _objectSpread(_objectSpread(_objectSpread({}, item._extend), values), {}, {
|
|
693
|
+
// 覆盖选择的规格和套餐
|
|
694
|
+
other: JSON.parse(JSON.stringify(e))
|
|
695
|
+
}),
|
|
696
|
+
new: 0
|
|
697
|
+
}); // 获取商品总价
|
|
698
|
+
_total = getProductTotalPrice(cacheItem); // 如果有多规格,则更新商品的单价
|
|
699
|
+
if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && (_cacheItem$_extend = _cacheItem$_extend.other) !== null && _cacheItem$_extend !== void 0 && _cacheItem$_extend.product_variant_id) {
|
|
700
|
+
cacheItem._extend.price = Number((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 || (_cacheItem$_extend2 = _cacheItem$_extend2.other) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.price);
|
|
701
|
+
}
|
|
702
702
|
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
// 用于折扣 可修改
|
|
704
|
+
cacheItem._extend.total = _total;
|
|
705
705
|
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
// 用于储存原价
|
|
707
|
+
cacheItem._extend.origin_total = _total;
|
|
708
708
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
709
|
+
// 覆盖商品
|
|
710
|
+
dispatch({
|
|
711
|
+
type: 'setService',
|
|
712
|
+
payload: {
|
|
713
|
+
cacheItem: cacheItem
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
setTimeout(function () {
|
|
717
|
+
updateMultiDay({
|
|
718
|
+
start_date: values.start_date,
|
|
719
|
+
end_date: values.end_date
|
|
720
|
+
});
|
|
721
|
+
}, 100);
|
|
722
|
+
case 8:
|
|
723
|
+
case "end":
|
|
724
|
+
return _context4.stop();
|
|
725
|
+
}
|
|
726
|
+
}, _callee4);
|
|
727
|
+
}));
|
|
728
|
+
function callback(_x4, _x5, _x6) {
|
|
729
|
+
return _callback.apply(this, arguments);
|
|
730
|
+
}
|
|
731
|
+
return callback;
|
|
732
|
+
}()
|
|
723
733
|
});
|
|
724
734
|
});
|
|
725
735
|
|
|
@@ -782,13 +792,13 @@ var Info = function Info(_, ref) {
|
|
|
782
792
|
* @Date: 2024-12-29 23:17
|
|
783
793
|
*/
|
|
784
794
|
var updateMultiDay = /*#__PURE__*/function () {
|
|
785
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
795
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref6) {
|
|
786
796
|
var start_date, end_date, duration, cacheItem, fieldsValues;
|
|
787
|
-
return _regeneratorRuntime().wrap(function
|
|
788
|
-
while (1) switch (
|
|
797
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
798
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
789
799
|
case 0:
|
|
790
800
|
start_date = _ref6.start_date, end_date = _ref6.end_date, duration = _ref6.duration;
|
|
791
|
-
|
|
801
|
+
_context5.next = 3;
|
|
792
802
|
return getMultiDay({
|
|
793
803
|
start_date: start_date,
|
|
794
804
|
end_date: end_date,
|
|
@@ -796,7 +806,7 @@ var Info = function Info(_, ref) {
|
|
|
796
806
|
cacheItem: getCurrentCacheItem()
|
|
797
807
|
});
|
|
798
808
|
case 3:
|
|
799
|
-
cacheItem =
|
|
809
|
+
cacheItem = _context5.sent;
|
|
800
810
|
// 兼容时长为空的情况
|
|
801
811
|
if (duration !== undefined) {
|
|
802
812
|
cacheItem._extend.duration = duration;
|
|
@@ -816,11 +826,11 @@ var Info = function Info(_, ref) {
|
|
|
816
826
|
form.setFieldsValue(fieldsValues);
|
|
817
827
|
case 10:
|
|
818
828
|
case "end":
|
|
819
|
-
return
|
|
829
|
+
return _context5.stop();
|
|
820
830
|
}
|
|
821
|
-
},
|
|
831
|
+
}, _callee5);
|
|
822
832
|
}));
|
|
823
|
-
return function updateMultiDay(
|
|
833
|
+
return function updateMultiDay(_x7) {
|
|
824
834
|
return _ref7.apply(this, arguments);
|
|
825
835
|
};
|
|
826
836
|
}();
|
|
@@ -237,4 +237,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
237
237
|
* @Author: WangHan
|
|
238
238
|
* @Date: 2024-12-24 11:32
|
|
239
239
|
*/
|
|
240
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
240
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -255,14 +255,15 @@ var Info = function Info(props) {
|
|
|
255
255
|
setTimeout(function () {
|
|
256
256
|
lock = false;
|
|
257
257
|
}, 2000);
|
|
258
|
-
var
|
|
258
|
+
var _detail = detail || item;
|
|
259
|
+
var cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
259
260
|
product_id: item.id,
|
|
260
261
|
_id: getUniqueId(),
|
|
261
262
|
_key: e.key,
|
|
262
263
|
_extend: {
|
|
263
264
|
start_date: state.date.value,
|
|
264
265
|
quantity: 1,
|
|
265
|
-
price:
|
|
266
|
+
price: _detail.price,
|
|
266
267
|
product_name: item.title,
|
|
267
268
|
other: JSON.parse(JSON.stringify(e))
|
|
268
269
|
},
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
5
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2
6
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -17,6 +21,7 @@ import { getServiceStartTimeAndEndTime, formatResource, getErrorList } from "../
|
|
|
17
21
|
import dayjs from 'dayjs';
|
|
18
22
|
import { locales } from '@pisell/utils';
|
|
19
23
|
import AlertTriangle from '@pisell/icon/es/AlertTriangle';
|
|
24
|
+
import { getAutoAllocationStorage } from "../editService/utils";
|
|
20
25
|
import { getNoResource2 } from "../../../mock";
|
|
21
26
|
export var getUsableTime = function getUsableTime(cacheItem) {
|
|
22
27
|
try {
|
|
@@ -211,6 +216,38 @@ export var formatResources = function formatResources(_ref5) {
|
|
|
211
216
|
maps: []
|
|
212
217
|
};
|
|
213
218
|
};
|
|
219
|
+
|
|
220
|
+
// 取可用资源空闲时长最大的
|
|
221
|
+
var getResourceMaxFreeTime = function getResourceMaxFreeTime(resource) {
|
|
222
|
+
var renderList = resource.renderList,
|
|
223
|
+
form_id = resource.form_id;
|
|
224
|
+
if (!getAutoAllocationStorage(form_id)) {
|
|
225
|
+
return [];
|
|
226
|
+
}
|
|
227
|
+
// 可用列表
|
|
228
|
+
var usableList = renderList.filter(function (d) {
|
|
229
|
+
return d.usable && d.id !== 0;
|
|
230
|
+
});
|
|
231
|
+
var defaultResource = [];
|
|
232
|
+
var maxFreeTime = 0;
|
|
233
|
+
usableList.forEach(function (d) {
|
|
234
|
+
var times = d.times;
|
|
235
|
+
var currentMaxFreeTime = times.reduce(function (pre, cur) {
|
|
236
|
+
var _cur$event_list, _cur$event_list2;
|
|
237
|
+
// 开始时间使用预约的最后时间或者资源开始时间
|
|
238
|
+
var start = ((_cur$event_list = cur.event_list) === null || _cur$event_list === void 0 || (_cur$event_list = _cur$event_list[((_cur$event_list2 = cur.event_list) === null || _cur$event_list2 === void 0 ? void 0 : _cur$event_list2.length) - 1]) === null || _cur$event_list === void 0 ? void 0 : _cur$event_list.end_at) || cur.start_at;
|
|
239
|
+
// 结束时间使用资源结束时间
|
|
240
|
+
var end = cur.end_at;
|
|
241
|
+
var diff = dayjs(end).diff(dayjs(start), 'minute');
|
|
242
|
+
return diff > pre ? diff : pre;
|
|
243
|
+
}, 0);
|
|
244
|
+
if (currentMaxFreeTime > maxFreeTime) {
|
|
245
|
+
maxFreeTime = currentMaxFreeTime;
|
|
246
|
+
defaultResource = [d];
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
return defaultResource;
|
|
250
|
+
};
|
|
214
251
|
export var setDefaultResource = function setDefaultResource(_ref6) {
|
|
215
252
|
var cacheItem = _ref6.cacheItem,
|
|
216
253
|
resources = _ref6.resources;
|
|
@@ -237,9 +274,16 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
|
|
|
237
274
|
try {
|
|
238
275
|
var _loop3 = function _loop3() {
|
|
239
276
|
var item = _step2.value;
|
|
240
|
-
var
|
|
277
|
+
var renderList = item.renderList.filter(function (d) {
|
|
241
278
|
return d.is_default == 1 || d.id === resourceId;
|
|
242
|
-
})
|
|
279
|
+
});
|
|
280
|
+
var defaultOriginalResource = [];
|
|
281
|
+
if (renderList.length === 0) {
|
|
282
|
+
defaultOriginalResource = getResourceMaxFreeTime(item);
|
|
283
|
+
} else {
|
|
284
|
+
defaultOriginalResource = renderList;
|
|
285
|
+
}
|
|
286
|
+
var defaultResource = defaultOriginalResource.map(function (d) {
|
|
243
287
|
return _objectSpread(_objectSpread({}, d), {}, {
|
|
244
288
|
relation_type: d.relation_type,
|
|
245
289
|
form_id: item.form_id,
|
|
@@ -400,6 +444,12 @@ var getIsAutoClose = function getIsAutoClose(cacheItem) {
|
|
|
400
444
|
}
|
|
401
445
|
}
|
|
402
446
|
}
|
|
447
|
+
return Object.entries(cacheItem._extend.resource).every(function (_ref8) {
|
|
448
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
|
449
|
+
key = _ref9[0],
|
|
450
|
+
value = _ref9[1];
|
|
451
|
+
return getAutoAllocationStorage(key) && (value === null || value === void 0 ? void 0 : value.length);
|
|
452
|
+
});
|
|
403
453
|
};
|
|
404
454
|
|
|
405
455
|
/**
|
|
@@ -410,9 +460,9 @@ var getIsAutoClose = function getIsAutoClose(cacheItem) {
|
|
|
410
460
|
* @Author: zhiwei.Wang
|
|
411
461
|
* @Date: 2024-06-01 13:25
|
|
412
462
|
*/
|
|
413
|
-
export var getProductExtend = function getProductExtend(
|
|
414
|
-
var cacheItem =
|
|
415
|
-
state =
|
|
463
|
+
export var getProductExtend = function getProductExtend(_ref10) {
|
|
464
|
+
var cacheItem = _ref10.cacheItem,
|
|
465
|
+
state = _ref10.state;
|
|
416
466
|
// 有endDate 说明是在编辑已经保存过的商品, 没有则是编辑还没保存过的商品
|
|
417
467
|
var isNew = cacheItem.new || !cacheItem._extend.endDate;
|
|
418
468
|
var _cacheItem = _objectSpread({}, cacheItem);
|
|
@@ -486,6 +536,8 @@ export var getProductExtend = function getProductExtend(_ref8) {
|
|
|
486
536
|
}
|
|
487
537
|
|
|
488
538
|
// 如果只有一种类型的资源 & 单选,还按照之前的逻辑处理:自动选中,不会打开Edit service抽屉。
|
|
539
|
+
// 或
|
|
540
|
+
// 如果开启自动分派 并且 资源列表中每个资源都有默认值,自动关闭。
|
|
489
541
|
_cacheItem.autoClose = getIsAutoClose(_cacheItem);
|
|
490
542
|
if (_cacheItem._extend.bundle_edit !== undefined) {
|
|
491
543
|
_cacheItem._extend.bundle_edit = 1;
|
|
@@ -13,13 +13,16 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
13
13
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
import React, { useState, useMemo, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
16
|
-
import { Col, Form, Select, Button, Alert } from 'antd';
|
|
16
|
+
import { Col, Form, Select, Button, Alert, Checkbox, Tooltip } from 'antd';
|
|
17
17
|
import MaxLengthSelect from "./MaxLengthSelect";
|
|
18
18
|
import Like from "../../../../info/service/like";
|
|
19
19
|
import "./index.less";
|
|
20
20
|
import { locales } from '@pisell/utils';
|
|
21
21
|
import { getErrorList } from "../../../utilsByBooking";
|
|
22
22
|
import { isArray } from 'lodash';
|
|
23
|
+
import { getAutoAllocationStorage, setAutoAllocationStorage } from "../utils";
|
|
24
|
+
import { useUpdate } from 'ahooks';
|
|
25
|
+
import { QuestionCircleOutlined } from "@ant-design/icons";
|
|
23
26
|
var Resources = function Resources(_ref, ref) {
|
|
24
27
|
var _cacheItem$_data2, _cacheItem$_data4;
|
|
25
28
|
var state = _ref.state,
|
|
@@ -31,6 +34,7 @@ var Resources = function Resources(_ref, ref) {
|
|
|
31
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32
35
|
showError = _useState2[0],
|
|
33
36
|
setShowError = _useState2[1];
|
|
37
|
+
var update = useUpdate();
|
|
34
38
|
|
|
35
39
|
// 需要渲染的列表, 资源二级结构数据
|
|
36
40
|
var data = useMemo(function () {
|
|
@@ -56,6 +60,10 @@ var Resources = function Resources(_ref, ref) {
|
|
|
56
60
|
var _value = useMemo(function () {
|
|
57
61
|
return value || defaultValue;
|
|
58
62
|
}, [value, defaultValue]);
|
|
63
|
+
var handleCheckAutoAllocation = function handleCheckAutoAllocation(id, checked) {
|
|
64
|
+
setAutoAllocationStorage(_defineProperty({}, id, checked));
|
|
65
|
+
update();
|
|
66
|
+
};
|
|
59
67
|
|
|
60
68
|
/**
|
|
61
69
|
* @title: 当选择资源时
|
|
@@ -169,6 +177,9 @@ var Resources = function Resources(_ref, ref) {
|
|
|
169
177
|
check: check
|
|
170
178
|
};
|
|
171
179
|
});
|
|
180
|
+
var getIsAutoAllocation = function getIsAutoAllocation(id) {
|
|
181
|
+
return getAutoAllocationStorage(id);
|
|
182
|
+
};
|
|
172
183
|
return /*#__PURE__*/React.createElement(React.Fragment, null, data.map(function (item) {
|
|
173
184
|
var _cur$2;
|
|
174
185
|
var cur = _value[item.form_id];
|
|
@@ -217,7 +228,14 @@ var Resources = function Resources(_ref, ref) {
|
|
|
217
228
|
filterOption: function filterOption(str, option) {
|
|
218
229
|
return ((option === null || option === void 0 ? void 0 : option.labelText) || '').toLowerCase().includes((str || '').toLowerCase());
|
|
219
230
|
}
|
|
220
|
-
}, renderOptions(item.renderList, 'id', 'label', 'resource'))
|
|
231
|
+
}, renderOptions(item.renderList, 'id', 'label', 'resource')), /*#__PURE__*/React.createElement(Checkbox, {
|
|
232
|
+
checked: getIsAutoAllocation(item.form_id),
|
|
233
|
+
onChange: function onChange(e) {
|
|
234
|
+
handleCheckAutoAllocation(item.form_id, e.target.checked);
|
|
235
|
+
}
|
|
236
|
+
}), /*#__PURE__*/React.createElement(Tooltip, {
|
|
237
|
+
title: locales.getText('page.booking.text.resource.check-auto-allocation-tip')
|
|
238
|
+
}, /*#__PURE__*/React.createElement(QuestionCircleOutlined, null)))), state.renderType !== 'eventBooking' && (errors || []).map(function (d) {
|
|
221
239
|
return /*#__PURE__*/React.createElement(Alert, {
|
|
222
240
|
key: d.type,
|
|
223
241
|
message: d.label,
|
|
@@ -32,7 +32,7 @@ import { useUpdateEffect, useMemoizedFn } from 'ahooks';
|
|
|
32
32
|
import { getServiceTimes, deleteCacheParams, getProductTotalPrice } from "../../../utils";
|
|
33
33
|
import { getErrorList } from "../../utilsByBooking";
|
|
34
34
|
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
|
|
35
|
-
import { PisellAdjustPriceInputNumber } from
|
|
35
|
+
import { PisellAdjustPriceInputNumber } from '@pisell/materials';
|
|
36
36
|
var submitLock = false;
|
|
37
37
|
var Info = function Info(_, ref) {
|
|
38
38
|
var _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI5, _state$service3, _state$service5, _window$BaseMaterials, _state$service$cacheI6, _state$service6, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10, _state$bookingConfig3, _state$service$resour;
|
|
@@ -399,9 +399,10 @@ var Info = function Info(_, ref) {
|
|
|
399
399
|
},
|
|
400
400
|
value: item._extend.other
|
|
401
401
|
},
|
|
402
|
-
callback: function callback(e) {
|
|
402
|
+
callback: function callback(e, extension_type, detail) {
|
|
403
|
+
var _detail = detail || item;
|
|
403
404
|
// 重新生成商品
|
|
404
|
-
var cacheItem = _objectSpread(_objectSpread({},
|
|
405
|
+
var cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
405
406
|
product_id: item.id,
|
|
406
407
|
_id: item === null || item === void 0 ? void 0 : item._id,
|
|
407
408
|
_key: e.key,
|
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
判断是否需要进入编辑服务页
|
|
9
9
|
*/
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
export declare const getAutoAllocationStorage: (id: string | number) => any;
|
|
11
|
+
export declare const setAutoAllocationStorage: (data: {
|
|
12
|
+
[key: string]: boolean;
|
|
13
|
+
}) => void;
|
|
@@ -14,6 +14,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
14
14
|
判断是否需要进入编辑服务页
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { isBoolean } from "@pisell/utils";
|
|
17
18
|
var isNewService = function isNewService(service) {
|
|
18
19
|
return !service.new && service._extend.endDate;
|
|
19
20
|
};
|
|
@@ -34,4 +35,21 @@ var init = function init(_ref) {
|
|
|
34
35
|
var _isNewService = isNewService(cacheItem);
|
|
35
36
|
if (!_isNewService) {}
|
|
36
37
|
return _objectSpread({}, cacheItem);
|
|
38
|
+
};
|
|
39
|
+
export var getAutoAllocationStorage = function getAutoAllocationStorage(id) {
|
|
40
|
+
var value = localStorage.getItem('resource-auto-allocation');
|
|
41
|
+
if (value) {
|
|
42
|
+
var valueObj = JSON.parse(value);
|
|
43
|
+
return isBoolean(valueObj[id]) ? valueObj[id] : true;
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
};
|
|
47
|
+
export var setAutoAllocationStorage = function setAutoAllocationStorage(data) {
|
|
48
|
+
var value = localStorage.getItem('resource-auto-allocation');
|
|
49
|
+
if (value) {
|
|
50
|
+
var valueObj = JSON.parse(value);
|
|
51
|
+
localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread(_objectSpread({}, valueObj), data)));
|
|
52
|
+
} else {
|
|
53
|
+
localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread({}, data)));
|
|
54
|
+
}
|
|
37
55
|
};
|
|
@@ -201,6 +201,7 @@ declare const _default: {
|
|
|
201
201
|
'page.booking.text.please-choose-an-option-1': string;
|
|
202
202
|
'page.booking.text.please-choose-an-option-2': string;
|
|
203
203
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
204
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
204
205
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
205
206
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
206
207
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -443,6 +444,7 @@ declare const _default: {
|
|
|
443
444
|
'page.booking.text.please-choose-an-option-1': string;
|
|
444
445
|
'page.booking.text.please-choose-an-option-2': string;
|
|
445
446
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
447
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
446
448
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
447
449
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
448
450
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -685,6 +687,7 @@ declare const _default: {
|
|
|
685
687
|
'page.booking.text.please-choose-an-option-1': string;
|
|
686
688
|
'page.booking.text.please-choose-an-option-2': string;
|
|
687
689
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
690
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
688
691
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
689
692
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
690
693
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -234,6 +234,7 @@ export default {
|
|
|
234
234
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
235
235
|
return "Select at least ".concat(x, " ").concat(y);
|
|
236
236
|
},
|
|
237
|
+
'page.booking.text.resource.check-auto-allocation-tip': "When checked, content will be automatically filled in without manual selection",
|
|
237
238
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
238
239
|
return "Original price of the item:".concat(origin, ",Current price of the item:").concat(current);
|
|
239
240
|
},
|
|
@@ -517,6 +518,7 @@ export default {
|
|
|
517
518
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
518
519
|
return "\u81F3\u5C11\u9009\u62E9".concat(x, "\u9879").concat(y);
|
|
519
520
|
},
|
|
521
|
+
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9009\u540E\u5C06\u81EA\u52A8\u586B\u5165\u5185\u5BB9\uFF0C\u65E0\u9700\u624B\u52A8\u9009\u62E9",
|
|
520
522
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
521
523
|
return "\u5546\u54C1\u539F\u4EF7:".concat(origin, ",\u5546\u54C1\u73B0\u4EF7:").concat(current);
|
|
522
524
|
},
|
|
@@ -800,6 +802,7 @@ export default {
|
|
|
800
802
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
801
803
|
return "\u81F3\u5C11\u9078\u64C7".concat(x, "\u9805").concat(y);
|
|
802
804
|
},
|
|
805
|
+
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9078\u5F8C\u5C07\u81EA\u52D5\u586B\u5165\u5167\u5BB9\uFF0C\u7121\u9700\u624B\u52D5\u9078\u64C7",
|
|
803
806
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
804
807
|
return "\u5546\u54C1\u539F\u50F9:".concat(origin, ",\u5546\u54C1\u73FE\u50F9:").concat(current);
|
|
805
808
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -105,11 +104,4 @@ export declare const walkInData: {
|
|
|
105
104
|
id: number;
|
|
106
105
|
nickname: string;
|
|
107
106
|
};
|
|
108
|
-
export declare const Provider:
|
|
109
|
-
state: FormState;
|
|
110
|
-
} & {
|
|
111
|
-
dispatch: (params: {
|
|
112
|
-
type: string;
|
|
113
|
-
payload: any;
|
|
114
|
-
}) => void;
|
|
115
|
-
}>;
|
|
107
|
+
export declare const Provider: any, Context: any;
|