@pisell/private-materials 6.3.159 → 6.3.161
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +43 -4
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/utils.d.ts +6 -1
- package/es/components/appointmentBooking/utils.js +123 -32
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useQuotation.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellCashCounting/hooks.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productStockCheckModal/index.d.ts +5 -0
- package/es/components/productStockCheckModal/index.js +148 -0
- package/es/components/productStockCheckModal/index.less +122 -0
- package/es/components/productStockCheckModal/locales.d.ts +63 -0
- package/es/components/productStockCheckModal/locales.js +62 -0
- package/es/components/productStockCheckModal/types.d.ts +26 -0
- package/es/components/productStockCheckModal/types.js +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/walletList/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useCartProductStockCheck.d.ts +10 -0
- package/es/hooks/useCartProductStockCheck.js +153 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/es/plus/orderList/config.d.ts +3 -2
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +169 -8
- package/es/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
- package/es/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
- package/es/plus/saasDevice/devicePlanning/locales.js +125 -0
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +42 -5
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/utils.d.ts +6 -1
- package/lib/components/appointmentBooking/utils.js +36 -2
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellCashCounting/hooks.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productStockCheckModal/index.d.ts +5 -0
- package/lib/components/productStockCheckModal/index.js +134 -0
- package/lib/components/productStockCheckModal/index.less +122 -0
- package/lib/components/productStockCheckModal/locales.d.ts +63 -0
- package/lib/components/productStockCheckModal/locales.js +86 -0
- package/lib/components/productStockCheckModal/types.d.ts +26 -0
- package/lib/components/productStockCheckModal/types.js +17 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/walletList/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/useCartProductStockCheck.d.ts +10 -0
- package/lib/hooks/useCartProductStockCheck.js +97 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/lib/plus/orderList/config.d.ts +3 -2
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.js +174 -16
- package/lib/plus/saasDevice/devicePlanning/components/DeviceDetailDrawer/index.less +141 -5
- package/lib/plus/saasDevice/devicePlanning/locales.d.ts +125 -0
- package/lib/plus/saasDevice/devicePlanning/locales.js +125 -0
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/product-stock-check-modal/meta.ts +94 -0
- package/package.json +1 -1
|
@@ -23,6 +23,8 @@ import { Toast } from "../../utils";
|
|
|
23
23
|
import { getFormParams } from "./utils";
|
|
24
24
|
import "./index.less";
|
|
25
25
|
import ContactInfoModalContent from "../../../../plus/contactInfoModal/ContactInfoContent";
|
|
26
|
+
import ProductStockCheckModal from "../../../productStockCheckModal";
|
|
27
|
+
import useCartProductStockCheck from "../../../../hooks/useCartProductStockCheck";
|
|
26
28
|
import { Form } from 'antd';
|
|
27
29
|
import useLoginUser from "../../../../hooks/useLoginUser";
|
|
28
30
|
var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -37,7 +39,9 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37
39
|
appointmentBooking = _ref.appointmentBooking,
|
|
38
40
|
summary = _ref.summary,
|
|
39
41
|
isAgreeDepositPolicy = _ref.isAgreeDepositPolicy,
|
|
40
|
-
setLoading = _ref.setLoading
|
|
42
|
+
setLoading = _ref.setLoading,
|
|
43
|
+
carts = _ref.carts,
|
|
44
|
+
setTimes = _ref.setTimes;
|
|
41
45
|
var _useAppointmentBookin = useAppointmentBookingSetting(),
|
|
42
46
|
isRetailTemplate = _useAppointmentBookin.isRetailTemplate,
|
|
43
47
|
bookingSetting = _useAppointmentBookin.bookingSetting;
|
|
@@ -46,6 +50,11 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
46
50
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
47
51
|
form = _Form$useForm2[0];
|
|
48
52
|
var userInfo = useLoginUser();
|
|
53
|
+
var productStockCheckModalRef = useRef(null);
|
|
54
|
+
var _useCartProductStockC = useCartProductStockCheck(),
|
|
55
|
+
handleContinue = _useCartProductStockC.handleContinue,
|
|
56
|
+
handleReturn = _useCartProductStockC.handleReturn,
|
|
57
|
+
checkProductStock = _useCartProductStockC.checkProductStock;
|
|
49
58
|
var getContactsInfo = /*#__PURE__*/function () {
|
|
50
59
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
51
60
|
var contacts_info, _appointmentBooking$g, res, transfromCountryCallingCode, _ref3, first_name, last_name, phone, email, _ref4, _first_name, _last_name, _phone, _email, country_calling_code, country_code;
|
|
@@ -322,16 +331,23 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
322
331
|
Toast(freeResult === null || freeResult === void 0 ? void 0 : freeResult.message);
|
|
323
332
|
}
|
|
324
333
|
case 21:
|
|
325
|
-
_context5.next =
|
|
334
|
+
_context5.next = 30;
|
|
326
335
|
break;
|
|
327
336
|
case 23:
|
|
328
337
|
_context5.prev = 23;
|
|
329
338
|
_context5.t0 = _context5["catch"](0);
|
|
339
|
+
if (!checkProductStock(productStockCheckModalRef, _context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.data, carts)) {
|
|
340
|
+
_context5.next = 28;
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
setLoading(false);
|
|
344
|
+
return _context5.abrupt("return");
|
|
345
|
+
case 28:
|
|
330
346
|
Toast((_context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.message) || '');
|
|
331
347
|
setTimeout(function () {
|
|
332
348
|
setLoading(false);
|
|
333
349
|
}, 50);
|
|
334
|
-
case
|
|
350
|
+
case 30:
|
|
335
351
|
case "end":
|
|
336
352
|
return _context5.stop();
|
|
337
353
|
}
|
|
@@ -477,6 +493,21 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
477
493
|
}
|
|
478
494
|
}));
|
|
479
495
|
};
|
|
496
|
+
var handleProductStockCheck = function handleProductStockCheck(data, type) {
|
|
497
|
+
var func = type === 'continue' ? handleContinue : handleReturn;
|
|
498
|
+
func({
|
|
499
|
+
cartProducts: carts,
|
|
500
|
+
data: data,
|
|
501
|
+
callback: function callback(newCart) {
|
|
502
|
+
if (type === 'continue') {
|
|
503
|
+
handleSubmit();
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
appointmentBooking: appointmentBooking,
|
|
507
|
+
setTimes: setTimes,
|
|
508
|
+
isSkipClearData: !isRetailTemplate
|
|
509
|
+
});
|
|
510
|
+
};
|
|
480
511
|
return /*#__PURE__*/React.createElement("div", {
|
|
481
512
|
className: "appointment-confirm-information-wrap"
|
|
482
513
|
}, isMobile() ? /*#__PURE__*/React.createElement(CartItem, {
|
|
@@ -493,6 +524,14 @@ var ConfirmInformation = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
493
524
|
className: "tips"
|
|
494
525
|
}, locales.getText('pisell2.appointment.tips')), /*#__PURE__*/React.createElement("span", {
|
|
495
526
|
className: "tips-content"
|
|
496
|
-
}, locales.getText('pisell2.appointment.tips.content')))
|
|
527
|
+
}, locales.getText('pisell2.appointment.tips.content'))), /*#__PURE__*/React.createElement(ProductStockCheckModal, {
|
|
528
|
+
ref: productStockCheckModalRef,
|
|
529
|
+
onContinue: function onContinue(data) {
|
|
530
|
+
return handleProductStockCheck(data, 'continue');
|
|
531
|
+
},
|
|
532
|
+
onReturn: function onReturn(data) {
|
|
533
|
+
return handleProductStockCheck(data, 'return');
|
|
534
|
+
}
|
|
535
|
+
}));
|
|
497
536
|
});
|
|
498
537
|
export default ConfirmInformation;
|
|
@@ -223,5 +223,10 @@ export declare const updateCartResources: (item: any, value?: any, currentSelect
|
|
|
223
223
|
* @Author: WangHan
|
|
224
224
|
* @Date: 2025-11-21 15:40
|
|
225
225
|
*/
|
|
226
|
-
export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => string[] | undefined
|
|
226
|
+
export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => Promise<string[] | undefined>;
|
|
227
227
|
export declare const nextStepLog: (utils: any, title: string, content?: any) => void;
|
|
228
|
+
/**
|
|
229
|
+
* @description: 跳转到某个步骤
|
|
230
|
+
* @return {*}
|
|
231
|
+
*/
|
|
232
|
+
export declare const handleGoToStep: ({ appointmentBooking, setTimes, skipStepKey, isSkipClearData, }: any) => void;
|
|
@@ -1,4 +1,7 @@
|
|
|
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
6
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -794,6 +797,32 @@ export var updateCartResources = function updateCartResources(item, value, curre
|
|
|
794
797
|
return newResource || [];
|
|
795
798
|
};
|
|
796
799
|
|
|
800
|
+
// 购物车中是否有session商品
|
|
801
|
+
var isSessionProduct = /*#__PURE__*/function () {
|
|
802
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appointmentBooking) {
|
|
803
|
+
var carts;
|
|
804
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
805
|
+
while (1) switch (_context.prev = _context.next) {
|
|
806
|
+
case 0:
|
|
807
|
+
_context.next = 2;
|
|
808
|
+
return appointmentBooking.getCart();
|
|
809
|
+
case 2:
|
|
810
|
+
carts = _context.sent;
|
|
811
|
+
return _context.abrupt("return", carts === null || carts === void 0 ? void 0 : carts.some(function (item) {
|
|
812
|
+
var _item$_productInit;
|
|
813
|
+
return (item === null || item === void 0 || (_item$_productInit = item._productInit) === null || _item$_productInit === void 0 || (_item$_productInit = _item$_productInit['schedule.ids']) === null || _item$_productInit === void 0 ? void 0 : _item$_productInit.length) > 0;
|
|
814
|
+
}));
|
|
815
|
+
case 4:
|
|
816
|
+
case "end":
|
|
817
|
+
return _context.stop();
|
|
818
|
+
}
|
|
819
|
+
}, _callee);
|
|
820
|
+
}));
|
|
821
|
+
return function isSessionProduct(_x) {
|
|
822
|
+
return _ref4.apply(this, arguments);
|
|
823
|
+
};
|
|
824
|
+
}();
|
|
825
|
+
|
|
797
826
|
// 步骤配置:定义每个步骤需要清空的数据类型(从后往前,越往前步骤清的越多)
|
|
798
827
|
var STEP_CLEAR_CONFIG = {
|
|
799
828
|
'select-time': ['time'],
|
|
@@ -840,8 +869,8 @@ var createClearActions = function createClearActions(appointmentBooking, setTime
|
|
|
840
869
|
},
|
|
841
870
|
date: function date() {
|
|
842
871
|
var _appointmentBooking$o2;
|
|
843
|
-
var
|
|
844
|
-
bookingProcess =
|
|
872
|
+
var _ref5 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o2 = appointmentBooking.otherParams) === null || _appointmentBooking$o2 === void 0 ? void 0 : _appointmentBooking$o2.productModuleParams) || {},
|
|
873
|
+
bookingProcess = _ref5.bookingProcess;
|
|
845
874
|
|
|
846
875
|
// 如果不是先选择日期步骤,则清空日期
|
|
847
876
|
if (bookingProcess !== 'date_first') {
|
|
@@ -898,42 +927,80 @@ var executeClearActions = function executeClearActions(dataTypes, clearActions)
|
|
|
898
927
|
* @Author: WangHan
|
|
899
928
|
* @Date: 2025-11-21 15:40
|
|
900
929
|
*/
|
|
901
|
-
export var clearDataByStepKey = function
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
930
|
+
export var clearDataByStepKey = /*#__PURE__*/function () {
|
|
931
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, appointmentBooking, setTimes) {
|
|
932
|
+
var _appointmentBooking$o3;
|
|
933
|
+
var stepKey, clearDataTypes, _ref7, bookingProcess, isDateSelectedFirst, isSession, clearActions;
|
|
934
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
935
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
936
|
+
case 0:
|
|
937
|
+
if (!(!key || !appointmentBooking)) {
|
|
938
|
+
_context2.next = 2;
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
return _context2.abrupt("return");
|
|
942
|
+
case 2:
|
|
943
|
+
// 选择服务步骤的特殊处理
|
|
944
|
+
if (key === 'select-service') {
|
|
945
|
+
clearServiceRelatedSteps(appointmentBooking);
|
|
946
|
+
}
|
|
911
947
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
948
|
+
// 匹配步骤key
|
|
949
|
+
stepKey = getMatchedStepKey(key);
|
|
950
|
+
if (stepKey) {
|
|
951
|
+
_context2.next = 6;
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
return _context2.abrupt("return");
|
|
955
|
+
case 6:
|
|
956
|
+
// 获取需要清空的数据类型
|
|
957
|
+
clearDataTypes = STEP_CLEAR_CONFIG[stepKey] || [];
|
|
958
|
+
_ref7 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o3 = appointmentBooking.otherParams) === null || _appointmentBooking$o3 === void 0 ? void 0 : _appointmentBooking$o3.productModuleParams) || {}, bookingProcess = _ref7.bookingProcess;
|
|
959
|
+
isDateSelectedFirst = bookingProcess === 'date_first'; // 1. 第一步选择日期,则回到商品列表,不需要清空日期
|
|
960
|
+
if (key !== 'select-date' && isDateSelectedFirst) {
|
|
961
|
+
clearDataTypes = clearDataTypes.filter(function (item) {
|
|
962
|
+
return item !== 'date';
|
|
963
|
+
});
|
|
964
|
+
}
|
|
917
965
|
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
966
|
+
// 2. 购物车中是否有session商品, session商品不需要清空time
|
|
967
|
+
_context2.next = 12;
|
|
968
|
+
return isSessionProduct(appointmentBooking);
|
|
969
|
+
case 12:
|
|
970
|
+
isSession = _context2.sent;
|
|
971
|
+
if (isSession) {
|
|
972
|
+
clearDataTypes = clearDataTypes.filter(function (item) {
|
|
973
|
+
return item !== 'time';
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
if (!(clearDataTypes.length === 0)) {
|
|
977
|
+
_context2.next = 16;
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
return _context2.abrupt("return", clearDataTypes);
|
|
981
|
+
case 16:
|
|
982
|
+
// 创建清空操作并执行
|
|
983
|
+
clearActions = createClearActions(appointmentBooking, setTimes);
|
|
984
|
+
executeClearActions(clearDataTypes, clearActions);
|
|
985
|
+
return _context2.abrupt("return", clearDataTypes);
|
|
986
|
+
case 19:
|
|
987
|
+
case "end":
|
|
988
|
+
return _context2.stop();
|
|
989
|
+
}
|
|
990
|
+
}, _callee2);
|
|
991
|
+
}));
|
|
992
|
+
return function clearDataByStepKey(_x2, _x3, _x4) {
|
|
993
|
+
return _ref6.apply(this, arguments);
|
|
994
|
+
};
|
|
995
|
+
}();
|
|
929
996
|
export var nextStepLog = function nextStepLog(utils, title) {
|
|
930
997
|
var content = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
931
998
|
try {
|
|
932
999
|
var _utils$getStore, _utils$getStore$getSt2;
|
|
933
|
-
var
|
|
934
|
-
global =
|
|
935
|
-
var
|
|
936
|
-
shop =
|
|
1000
|
+
var _ref8 = (utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 || (_utils$getStore$getSt2 = _utils$getStore.getState) === null || _utils$getStore$getSt2 === void 0 ? void 0 : _utils$getStore$getSt2.call(_utils$getStore)) || {},
|
|
1001
|
+
global = _ref8.global;
|
|
1002
|
+
var _ref9 = global || {},
|
|
1003
|
+
shop = _ref9.shop;
|
|
937
1004
|
if ((shop === null || shop === void 0 ? void 0 : shop.id) === 2155) {
|
|
938
1005
|
var _window2;
|
|
939
1006
|
sendWarningLog({
|
|
@@ -948,4 +1015,28 @@ export var nextStepLog = function nextStepLog(utils, title) {
|
|
|
948
1015
|
});
|
|
949
1016
|
}
|
|
950
1017
|
} catch (error) {}
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* @description: 跳转到某个步骤
|
|
1022
|
+
* @return {*}
|
|
1023
|
+
*/
|
|
1024
|
+
export var handleGoToStep = function handleGoToStep(_ref10) {
|
|
1025
|
+
var appointmentBooking = _ref10.appointmentBooking,
|
|
1026
|
+
setTimes = _ref10.setTimes,
|
|
1027
|
+
_ref10$skipStepKey = _ref10.skipStepKey,
|
|
1028
|
+
skipStepKey = _ref10$skipStepKey === void 0 ? 'select-service' : _ref10$skipStepKey,
|
|
1029
|
+
_ref10$isSkipClearDat = _ref10.isSkipClearData,
|
|
1030
|
+
isSkipClearData = _ref10$isSkipClearDat === void 0 ? true : _ref10$isSkipClearDat;
|
|
1031
|
+
// 清空数据
|
|
1032
|
+
if (isSkipClearData) {
|
|
1033
|
+
clearDataByStepKey(skipStepKey, appointmentBooking, setTimes);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// 跳转到服务步骤
|
|
1037
|
+
var stepLists = appointmentBooking.getStepList();
|
|
1038
|
+
var serviceIndex = stepLists.findIndex(function (item) {
|
|
1039
|
+
return (item === null || item === void 0 ? void 0 : item.key) === skipStepKey;
|
|
1040
|
+
});
|
|
1041
|
+
appointmentBooking.gotoStep(serviceIndex);
|
|
951
1042
|
};
|
|
@@ -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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
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,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;
|