@pisell/private-materials 6.3.159 → 6.3.160
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
|
@@ -81,6 +81,31 @@ var enText = {
|
|
|
81
81
|
'pisell2.saas.device-planning.detail.delete': 'Delete',
|
|
82
82
|
'pisell2.saas.device-planning.detail.save': 'Save',
|
|
83
83
|
'pisell2.saas.device-planning.detail.cancel': 'Cancel',
|
|
84
|
+
'pisell2.saas.device-planning.detail.report-info': 'Device Reported Info',
|
|
85
|
+
'pisell2.saas.device-planning.detail.last-seen': 'Last report: ',
|
|
86
|
+
'pisell2.saas.device-planning.detail.no-report-info': 'No reported info yet',
|
|
87
|
+
'pisell2.saas.device-planning.detail.yes': 'Yes',
|
|
88
|
+
'pisell2.saas.device-planning.detail.no': 'No',
|
|
89
|
+
'pisell2.saas.device-planning.detail.report.group.software': 'Software',
|
|
90
|
+
'pisell2.saas.device-planning.detail.report.group.battery': 'Battery',
|
|
91
|
+
'pisell2.saas.device-planning.detail.report.group.network': 'Network',
|
|
92
|
+
'pisell2.saas.device-planning.detail.report.group.hardware': 'Hardware',
|
|
93
|
+
'pisell2.saas.device-planning.detail.report.group.storage': 'Storage',
|
|
94
|
+
'pisell2.saas.device-planning.detail.report.field.name': 'Name',
|
|
95
|
+
'pisell2.saas.device-planning.detail.report.field.type': 'Type',
|
|
96
|
+
'pisell2.saas.device-planning.detail.report.field.version': 'Version',
|
|
97
|
+
'pisell2.saas.device-planning.detail.report.field.level': 'Battery Level',
|
|
98
|
+
'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
|
|
99
|
+
'pisell2.saas.device-planning.detail.report.field.gateway': 'Gateway',
|
|
100
|
+
'pisell2.saas.device-planning.detail.report.field.internet': 'Internet',
|
|
101
|
+
'pisell2.saas.device-planning.detail.report.field.local_ip': 'Local IP',
|
|
102
|
+
'pisell2.saas.device-planning.detail.report.field.subnet_mask': 'Subnet Mask',
|
|
103
|
+
'pisell2.saas.device-planning.detail.report.field.model': 'Model',
|
|
104
|
+
'pisell2.saas.device-planning.detail.report.field.os_version': 'OS Version',
|
|
105
|
+
'pisell2.saas.device-planning.detail.report.field.used': 'Used',
|
|
106
|
+
'pisell2.saas.device-planning.detail.report.field.total': 'Total',
|
|
107
|
+
'pisell2.saas.device-planning.detail.report.charging': 'Charging',
|
|
108
|
+
'pisell2.saas.device-planning.detail.report.not-charging': 'Not Charging',
|
|
84
109
|
'pisell2.saas.device-planning.edit.title': 'Edit Device',
|
|
85
110
|
'pisell2.saas.device-planning.edit.online-title': 'Caution: Device is Online',
|
|
86
111
|
'pisell2.saas.device-planning.edit.online-desc': 'Changes will be pushed to the actual device. Please proceed with caution.',
|
|
@@ -177,6 +202,31 @@ var zhCNText = {
|
|
|
177
202
|
'pisell2.saas.device-planning.detail.delete': '删除',
|
|
178
203
|
'pisell2.saas.device-planning.detail.save': '保存',
|
|
179
204
|
'pisell2.saas.device-planning.detail.cancel': '取消',
|
|
205
|
+
'pisell2.saas.device-planning.detail.report-info': '设备上报信息',
|
|
206
|
+
'pisell2.saas.device-planning.detail.last-seen': '最后上报:',
|
|
207
|
+
'pisell2.saas.device-planning.detail.no-report-info': '暂无上报信息',
|
|
208
|
+
'pisell2.saas.device-planning.detail.yes': '是',
|
|
209
|
+
'pisell2.saas.device-planning.detail.no': '否',
|
|
210
|
+
'pisell2.saas.device-planning.detail.report.group.software': '软件',
|
|
211
|
+
'pisell2.saas.device-planning.detail.report.group.battery': '电池',
|
|
212
|
+
'pisell2.saas.device-planning.detail.report.group.network': '网络',
|
|
213
|
+
'pisell2.saas.device-planning.detail.report.group.hardware': '硬件',
|
|
214
|
+
'pisell2.saas.device-planning.detail.report.group.storage': '存储',
|
|
215
|
+
'pisell2.saas.device-planning.detail.report.field.name': '名称',
|
|
216
|
+
'pisell2.saas.device-planning.detail.report.field.type': '类型',
|
|
217
|
+
'pisell2.saas.device-planning.detail.report.field.version': '版本',
|
|
218
|
+
'pisell2.saas.device-planning.detail.report.field.level': '电量',
|
|
219
|
+
'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
|
|
220
|
+
'pisell2.saas.device-planning.detail.report.field.gateway': '网关',
|
|
221
|
+
'pisell2.saas.device-planning.detail.report.field.internet': '互联网',
|
|
222
|
+
'pisell2.saas.device-planning.detail.report.field.local_ip': '本地 IP',
|
|
223
|
+
'pisell2.saas.device-planning.detail.report.field.subnet_mask': '子网掩码',
|
|
224
|
+
'pisell2.saas.device-planning.detail.report.field.model': '型号',
|
|
225
|
+
'pisell2.saas.device-planning.detail.report.field.os_version': '系统版本',
|
|
226
|
+
'pisell2.saas.device-planning.detail.report.field.used': '已用',
|
|
227
|
+
'pisell2.saas.device-planning.detail.report.field.total': '总计',
|
|
228
|
+
'pisell2.saas.device-planning.detail.report.charging': '充电中',
|
|
229
|
+
'pisell2.saas.device-planning.detail.report.not-charging': '未充电',
|
|
180
230
|
'pisell2.saas.device-planning.edit.title': '编辑设备',
|
|
181
231
|
'pisell2.saas.device-planning.edit.online-title': '注意:设备已在线',
|
|
182
232
|
'pisell2.saas.device-planning.edit.online-desc': '更改将推送到实际设备。请谨慎操作。',
|
|
@@ -273,6 +323,31 @@ var zhHKText = {
|
|
|
273
323
|
'pisell2.saas.device-planning.detail.delete': '刪除',
|
|
274
324
|
'pisell2.saas.device-planning.detail.save': '保存',
|
|
275
325
|
'pisell2.saas.device-planning.detail.cancel': '取消',
|
|
326
|
+
'pisell2.saas.device-planning.detail.report-info': '設備上報資訊',
|
|
327
|
+
'pisell2.saas.device-planning.detail.last-seen': '最後上報:',
|
|
328
|
+
'pisell2.saas.device-planning.detail.no-report-info': '暫無上報資訊',
|
|
329
|
+
'pisell2.saas.device-planning.detail.yes': '是',
|
|
330
|
+
'pisell2.saas.device-planning.detail.no': '否',
|
|
331
|
+
'pisell2.saas.device-planning.detail.report.group.software': '軟件',
|
|
332
|
+
'pisell2.saas.device-planning.detail.report.group.battery': '電池',
|
|
333
|
+
'pisell2.saas.device-planning.detail.report.group.network': '網絡',
|
|
334
|
+
'pisell2.saas.device-planning.detail.report.group.hardware': '硬件',
|
|
335
|
+
'pisell2.saas.device-planning.detail.report.group.storage': '儲存',
|
|
336
|
+
'pisell2.saas.device-planning.detail.report.field.name': '名稱',
|
|
337
|
+
'pisell2.saas.device-planning.detail.report.field.type': '類型',
|
|
338
|
+
'pisell2.saas.device-planning.detail.report.field.version': '版本',
|
|
339
|
+
'pisell2.saas.device-planning.detail.report.field.level': '電量',
|
|
340
|
+
'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
|
|
341
|
+
'pisell2.saas.device-planning.detail.report.field.gateway': '閘道',
|
|
342
|
+
'pisell2.saas.device-planning.detail.report.field.internet': '互聯網',
|
|
343
|
+
'pisell2.saas.device-planning.detail.report.field.local_ip': '本地 IP',
|
|
344
|
+
'pisell2.saas.device-planning.detail.report.field.subnet_mask': '子網掩碼',
|
|
345
|
+
'pisell2.saas.device-planning.detail.report.field.model': '型號',
|
|
346
|
+
'pisell2.saas.device-planning.detail.report.field.os_version': '系統版本',
|
|
347
|
+
'pisell2.saas.device-planning.detail.report.field.used': '已用',
|
|
348
|
+
'pisell2.saas.device-planning.detail.report.field.total': '總計',
|
|
349
|
+
'pisell2.saas.device-planning.detail.report.charging': '充電中',
|
|
350
|
+
'pisell2.saas.device-planning.detail.report.not-charging': '未充電',
|
|
276
351
|
'pisell2.saas.device-planning.edit.title': '編輯設備',
|
|
277
352
|
'pisell2.saas.device-planning.edit.online-title': '注意:設備在線',
|
|
278
353
|
'pisell2.saas.device-planning.edit.online-desc': '更改將推送到實際設備。請謹慎操作。',
|
|
@@ -369,6 +444,31 @@ var jaText = {
|
|
|
369
444
|
'pisell2.saas.device-planning.detail.delete': '削除',
|
|
370
445
|
'pisell2.saas.device-planning.detail.save': '保存',
|
|
371
446
|
'pisell2.saas.device-planning.detail.cancel': 'キャンセル',
|
|
447
|
+
'pisell2.saas.device-planning.detail.report-info': 'デバイス報告情報',
|
|
448
|
+
'pisell2.saas.device-planning.detail.last-seen': '最終報告:',
|
|
449
|
+
'pisell2.saas.device-planning.detail.no-report-info': '報告情報はまだありません',
|
|
450
|
+
'pisell2.saas.device-planning.detail.yes': 'はい',
|
|
451
|
+
'pisell2.saas.device-planning.detail.no': 'いいえ',
|
|
452
|
+
'pisell2.saas.device-planning.detail.report.group.software': 'ソフトウェア',
|
|
453
|
+
'pisell2.saas.device-planning.detail.report.group.battery': 'バッテリー',
|
|
454
|
+
'pisell2.saas.device-planning.detail.report.group.network': 'ネットワーク',
|
|
455
|
+
'pisell2.saas.device-planning.detail.report.group.hardware': 'ハードウェア',
|
|
456
|
+
'pisell2.saas.device-planning.detail.report.group.storage': 'ストレージ',
|
|
457
|
+
'pisell2.saas.device-planning.detail.report.field.name': '名前',
|
|
458
|
+
'pisell2.saas.device-planning.detail.report.field.type': 'タイプ',
|
|
459
|
+
'pisell2.saas.device-planning.detail.report.field.version': 'バージョン',
|
|
460
|
+
'pisell2.saas.device-planning.detail.report.field.level': 'バッテリー残量',
|
|
461
|
+
'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
|
|
462
|
+
'pisell2.saas.device-planning.detail.report.field.gateway': 'ゲートウェイ',
|
|
463
|
+
'pisell2.saas.device-planning.detail.report.field.internet': 'インターネット',
|
|
464
|
+
'pisell2.saas.device-planning.detail.report.field.local_ip': 'ローカル IP',
|
|
465
|
+
'pisell2.saas.device-planning.detail.report.field.subnet_mask': 'サブネットマスク',
|
|
466
|
+
'pisell2.saas.device-planning.detail.report.field.model': 'モデル',
|
|
467
|
+
'pisell2.saas.device-planning.detail.report.field.os_version': 'OS バージョン',
|
|
468
|
+
'pisell2.saas.device-planning.detail.report.field.used': '使用済み',
|
|
469
|
+
'pisell2.saas.device-planning.detail.report.field.total': '合計',
|
|
470
|
+
'pisell2.saas.device-planning.detail.report.charging': '充電中',
|
|
471
|
+
'pisell2.saas.device-planning.detail.report.not-charging': '未充電',
|
|
372
472
|
'pisell2.saas.device-planning.edit.title': 'デバイスを編集',
|
|
373
473
|
'pisell2.saas.device-planning.edit.online-title': '注意:デバイスはオンラインです',
|
|
374
474
|
'pisell2.saas.device-planning.edit.online-desc': '変更は実際のデバイスに反映されます。注意して操作してください。',
|
|
@@ -465,6 +565,31 @@ var ptText = {
|
|
|
465
565
|
'pisell2.saas.device-planning.detail.delete': 'Eliminar',
|
|
466
566
|
'pisell2.saas.device-planning.detail.save': 'Guardar',
|
|
467
567
|
'pisell2.saas.device-planning.detail.cancel': 'Cancelar',
|
|
568
|
+
'pisell2.saas.device-planning.detail.report-info': 'Informações comunicadas pelo dispositivo',
|
|
569
|
+
'pisell2.saas.device-planning.detail.last-seen': 'Último relatório: ',
|
|
570
|
+
'pisell2.saas.device-planning.detail.no-report-info': 'Ainda sem informações comunicadas',
|
|
571
|
+
'pisell2.saas.device-planning.detail.yes': 'Sim',
|
|
572
|
+
'pisell2.saas.device-planning.detail.no': 'Não',
|
|
573
|
+
'pisell2.saas.device-planning.detail.report.group.software': 'Software',
|
|
574
|
+
'pisell2.saas.device-planning.detail.report.group.battery': 'Bateria',
|
|
575
|
+
'pisell2.saas.device-planning.detail.report.group.network': 'Rede',
|
|
576
|
+
'pisell2.saas.device-planning.detail.report.group.hardware': 'Hardware',
|
|
577
|
+
'pisell2.saas.device-planning.detail.report.group.storage': 'Armazenamento',
|
|
578
|
+
'pisell2.saas.device-planning.detail.report.field.name': 'Nome',
|
|
579
|
+
'pisell2.saas.device-planning.detail.report.field.type': 'Tipo',
|
|
580
|
+
'pisell2.saas.device-planning.detail.report.field.version': 'Versão',
|
|
581
|
+
'pisell2.saas.device-planning.detail.report.field.level': 'Nível da bateria',
|
|
582
|
+
'pisell2.saas.device-planning.detail.report.field.ssid': 'SSID',
|
|
583
|
+
'pisell2.saas.device-planning.detail.report.field.gateway': 'Gateway',
|
|
584
|
+
'pisell2.saas.device-planning.detail.report.field.internet': 'Internet',
|
|
585
|
+
'pisell2.saas.device-planning.detail.report.field.local_ip': 'IP local',
|
|
586
|
+
'pisell2.saas.device-planning.detail.report.field.subnet_mask': 'Máscara de sub-rede',
|
|
587
|
+
'pisell2.saas.device-planning.detail.report.field.model': 'Modelo',
|
|
588
|
+
'pisell2.saas.device-planning.detail.report.field.os_version': 'Versão do SO',
|
|
589
|
+
'pisell2.saas.device-planning.detail.report.field.used': 'Usado',
|
|
590
|
+
'pisell2.saas.device-planning.detail.report.field.total': 'Total',
|
|
591
|
+
'pisell2.saas.device-planning.detail.report.charging': 'A carregar',
|
|
592
|
+
'pisell2.saas.device-planning.detail.report.not-charging': 'Sem carregamento',
|
|
468
593
|
'pisell2.saas.device-planning.edit.title': 'Editar dispositivo',
|
|
469
594
|
'pisell2.saas.device-planning.edit.online-title': 'Atenção: dispositivo online',
|
|
470
595
|
'pisell2.saas.device-planning.edit.online-desc': 'As alterações serão enviadas para o dispositivo real. Prossiga com cautela.',
|
|
@@ -5,13 +5,13 @@ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
|
|
|
5
5
|
width?: number | undefined;
|
|
6
6
|
height?: number | undefined;
|
|
7
7
|
};
|
|
8
|
-
logoPosition: "center" | "
|
|
8
|
+
logoPosition: "center" | "right" | "left";
|
|
9
9
|
welcomeMessage: any;
|
|
10
|
-
welcomeMessageAlign: "center" | "
|
|
10
|
+
welcomeMessageAlign: "center" | "right" | "left";
|
|
11
11
|
title: any;
|
|
12
|
-
titleAlign: "center" | "
|
|
12
|
+
titleAlign: "center" | "right" | "left";
|
|
13
13
|
subtitle: any;
|
|
14
|
-
subtitleAlign: "center" | "
|
|
14
|
+
subtitleAlign: "center" | "right" | "left";
|
|
15
15
|
emailLabel: any;
|
|
16
16
|
emailPlaceholder: any;
|
|
17
17
|
passwordLabel: any;
|
|
@@ -19,7 +19,7 @@ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
|
|
|
19
19
|
buttonText: any;
|
|
20
20
|
registerText: any;
|
|
21
21
|
registerLinkText: any;
|
|
22
|
-
registerAlign: "center" | "
|
|
22
|
+
registerAlign: "center" | "right" | "left";
|
|
23
23
|
showLogo?: boolean | undefined;
|
|
24
24
|
showWelcomeMessage?: boolean | undefined;
|
|
25
25
|
showTitle?: boolean | undefined;
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -42,6 +42,8 @@ var import_utils2 = require("../../utils");
|
|
|
42
42
|
var import_utils3 = require("./utils");
|
|
43
43
|
var import_index = require("./index.less");
|
|
44
44
|
var import_ContactInfoContent = __toESM(require("../../../../plus/contactInfoModal/ContactInfoContent"));
|
|
45
|
+
var import_productStockCheckModal = __toESM(require("../../../productStockCheckModal"));
|
|
46
|
+
var import_useCartProductStockCheck = __toESM(require("../../../../hooks/useCartProductStockCheck"));
|
|
45
47
|
var import_antd = require("antd");
|
|
46
48
|
var import_useLoginUser = __toESM(require("../../../../hooks/useLoginUser"));
|
|
47
49
|
var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
@@ -51,11 +53,20 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
51
53
|
const config = ((_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.constants) == null ? void 0 : _b.config) || {};
|
|
52
54
|
const utils = (0, import_hooks.contextUtils)();
|
|
53
55
|
const { pubsub } = context.appHelper.utils;
|
|
54
|
-
const {
|
|
56
|
+
const {
|
|
57
|
+
appointmentBooking,
|
|
58
|
+
summary,
|
|
59
|
+
isAgreeDepositPolicy,
|
|
60
|
+
setLoading,
|
|
61
|
+
carts,
|
|
62
|
+
setTimes
|
|
63
|
+
} = (0, import_context.useAppointmentBookingContext)();
|
|
55
64
|
const { isRetailTemplate, bookingSetting } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
56
65
|
console.log(bookingSetting, "bookingSetting");
|
|
57
66
|
const [form] = import_antd.Form.useForm();
|
|
58
67
|
const userInfo = (0, import_useLoginUser.default)();
|
|
68
|
+
const productStockCheckModalRef = (0, import_react.useRef)(null);
|
|
69
|
+
const { handleContinue, handleReturn, checkProductStock } = (0, import_useCartProductStockCheck.default)();
|
|
59
70
|
const getContactsInfo = async () => {
|
|
60
71
|
var _a2;
|
|
61
72
|
let contacts_info = null;
|
|
@@ -130,7 +141,7 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
130
141
|
}, [isRetailTemplate]);
|
|
131
142
|
const handleForm = async (isSubmit, extraData) => {
|
|
132
143
|
var _a2;
|
|
133
|
-
const
|
|
144
|
+
const carts2 = await appointmentBooking.getCart();
|
|
134
145
|
const key = "isRetailFormSubmit";
|
|
135
146
|
const isRetailFormSubmit = appointmentBooking.getOtherData(key);
|
|
136
147
|
const callback = () => {
|
|
@@ -141,7 +152,7 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
141
152
|
if (isRetailFormSubmit) {
|
|
142
153
|
return callback();
|
|
143
154
|
}
|
|
144
|
-
const params = (0, import_utils3.getFormParams)(
|
|
155
|
+
const params = (0, import_utils3.getFormParams)(carts2);
|
|
145
156
|
(_a2 = utils == null ? void 0 : utils.action) == null ? void 0 : _a2.call(utils, {
|
|
146
157
|
type: "pisell1.goProductForm",
|
|
147
158
|
data: params,
|
|
@@ -149,7 +160,7 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
149
160
|
var _a3;
|
|
150
161
|
if ((e == null ? void 0 : e.type) !== "close") {
|
|
151
162
|
await appointmentBooking.updateCart({
|
|
152
|
-
_id: (_a3 =
|
|
163
|
+
_id: (_a3 = carts2 == null ? void 0 : carts2[0]) == null ? void 0 : _a3._id,
|
|
153
164
|
relationForms: e
|
|
154
165
|
});
|
|
155
166
|
appointmentBooking.setOtherData(key, true);
|
|
@@ -202,6 +213,10 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
202
213
|
}
|
|
203
214
|
}
|
|
204
215
|
} catch (error) {
|
|
216
|
+
if (checkProductStock(productStockCheckModalRef, error == null ? void 0 : error.data, carts)) {
|
|
217
|
+
setLoading(false);
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
205
220
|
(0, import_utils2.Toast)((error == null ? void 0 : error.message) || "");
|
|
206
221
|
setTimeout(() => {
|
|
207
222
|
setLoading(false);
|
|
@@ -307,12 +322,34 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
307
322
|
}
|
|
308
323
|
));
|
|
309
324
|
};
|
|
325
|
+
const handleProductStockCheck = (data, type) => {
|
|
326
|
+
let func = type === "continue" ? handleContinue : handleReturn;
|
|
327
|
+
func({
|
|
328
|
+
cartProducts: carts,
|
|
329
|
+
data,
|
|
330
|
+
callback: (newCart) => {
|
|
331
|
+
if (type === "continue") {
|
|
332
|
+
handleSubmit();
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
appointmentBooking,
|
|
336
|
+
setTimes,
|
|
337
|
+
isSkipClearData: !isRetailTemplate
|
|
338
|
+
});
|
|
339
|
+
};
|
|
310
340
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleSubmit, renderContactInfo }) : showContactInfo ? renderContactInfo() : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
|
|
311
341
|
"img",
|
|
312
342
|
{
|
|
313
343
|
src: `${config == null ? void 0 : config.awsStatic}/checkout_confirm.png`,
|
|
314
344
|
loading: "lazy"
|
|
315
345
|
}
|
|
316
|
-
)), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips" }, import_utils.locales.getText("pisell2.appointment.tips")), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips-content" }, import_utils.locales.getText("pisell2.appointment.tips.content")))
|
|
346
|
+
)), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips" }, import_utils.locales.getText("pisell2.appointment.tips")), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips-content" }, import_utils.locales.getText("pisell2.appointment.tips.content"))), /* @__PURE__ */ import_react.default.createElement(
|
|
347
|
+
import_productStockCheckModal.default,
|
|
348
|
+
{
|
|
349
|
+
ref: productStockCheckModalRef,
|
|
350
|
+
onContinue: (data) => handleProductStockCheck(data, "continue"),
|
|
351
|
+
onReturn: (data) => handleProductStockCheck(data, "return")
|
|
352
|
+
}
|
|
353
|
+
));
|
|
317
354
|
});
|
|
318
355
|
var ConfirmInformation_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;
|
|
@@ -51,6 +51,7 @@ __export(utils_exports, {
|
|
|
51
51
|
getMultiResources: () => getMultiResources,
|
|
52
52
|
getPunctuationMark: () => getPunctuationMark,
|
|
53
53
|
getResourceTitle: () => getResourceTitle,
|
|
54
|
+
handleGoToStep: () => handleGoToStep,
|
|
54
55
|
hasResourceFormId: () => hasResourceFormId,
|
|
55
56
|
nextStepLog: () => nextStepLog,
|
|
56
57
|
openForm: () => openForm,
|
|
@@ -513,6 +514,13 @@ var updateCartResources = (item, value, currentSelectedResources) => {
|
|
|
513
514
|
}
|
|
514
515
|
return newResource || [];
|
|
515
516
|
};
|
|
517
|
+
var isSessionProduct = async (appointmentBooking) => {
|
|
518
|
+
const carts = await appointmentBooking.getCart();
|
|
519
|
+
return carts == null ? void 0 : carts.some((item) => {
|
|
520
|
+
var _a, _b;
|
|
521
|
+
return ((_b = (_a = item == null ? void 0 : item._productInit) == null ? void 0 : _a["schedule.ids"]) == null ? void 0 : _b.length) > 0;
|
|
522
|
+
});
|
|
523
|
+
};
|
|
516
524
|
var STEP_CLEAR_CONFIG = {
|
|
517
525
|
"select-time": ["time"],
|
|
518
526
|
"fill-form": ["time", "form"],
|
|
@@ -581,7 +589,8 @@ var executeClearActions = (dataTypes, clearActions) => {
|
|
|
581
589
|
}
|
|
582
590
|
});
|
|
583
591
|
};
|
|
584
|
-
var clearDataByStepKey = (key, appointmentBooking, setTimes) => {
|
|
592
|
+
var clearDataByStepKey = async (key, appointmentBooking, setTimes) => {
|
|
593
|
+
var _a;
|
|
585
594
|
if (!key || !appointmentBooking) {
|
|
586
595
|
return;
|
|
587
596
|
}
|
|
@@ -592,7 +601,16 @@ var clearDataByStepKey = (key, appointmentBooking, setTimes) => {
|
|
|
592
601
|
if (!stepKey) {
|
|
593
602
|
return;
|
|
594
603
|
}
|
|
595
|
-
|
|
604
|
+
let clearDataTypes = STEP_CLEAR_CONFIG[stepKey] || [];
|
|
605
|
+
const { bookingProcess } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.productModuleParams) || {};
|
|
606
|
+
const isDateSelectedFirst = bookingProcess === "date_first";
|
|
607
|
+
if (key !== "select-date" && isDateSelectedFirst) {
|
|
608
|
+
clearDataTypes = clearDataTypes.filter((item) => item !== "date");
|
|
609
|
+
}
|
|
610
|
+
const isSession = await isSessionProduct(appointmentBooking);
|
|
611
|
+
if (isSession) {
|
|
612
|
+
clearDataTypes = clearDataTypes.filter((item) => item !== "time");
|
|
613
|
+
}
|
|
596
614
|
if (clearDataTypes.length === 0) {
|
|
597
615
|
return clearDataTypes;
|
|
598
616
|
}
|
|
@@ -618,6 +636,21 @@ var nextStepLog = (utils, title, content = []) => {
|
|
|
618
636
|
} catch (error) {
|
|
619
637
|
}
|
|
620
638
|
};
|
|
639
|
+
var handleGoToStep = ({
|
|
640
|
+
appointmentBooking,
|
|
641
|
+
setTimes,
|
|
642
|
+
skipStepKey = "select-service",
|
|
643
|
+
isSkipClearData = true
|
|
644
|
+
}) => {
|
|
645
|
+
if (isSkipClearData) {
|
|
646
|
+
clearDataByStepKey(skipStepKey, appointmentBooking, setTimes);
|
|
647
|
+
}
|
|
648
|
+
const stepLists = appointmentBooking.getStepList();
|
|
649
|
+
const serviceIndex = stepLists.findIndex(
|
|
650
|
+
(item) => (item == null ? void 0 : item.key) === skipStepKey
|
|
651
|
+
);
|
|
652
|
+
appointmentBooking.gotoStep(serviceIndex);
|
|
653
|
+
};
|
|
621
654
|
// Annotate the CommonJS export names for ESM import in node:
|
|
622
655
|
0 && (module.exports = {
|
|
623
656
|
Toast,
|
|
@@ -642,6 +675,7 @@ var nextStepLog = (utils, title, content = []) => {
|
|
|
642
675
|
getMultiResources,
|
|
643
676
|
getPunctuationMark,
|
|
644
677
|
getResourceTitle,
|
|
678
|
+
handleGoToStep,
|
|
645
679
|
hasResourceFormId,
|
|
646
680
|
nextStepLog,
|
|
647
681
|
openForm,
|
|
@@ -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;
|