@pisell/private-materials 6.3.137 → 6.3.139
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 +2 -2
- package/build/lowcode/preview.js +153 -426
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/utils.d.ts +227 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.d.ts +47 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +1489 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +120 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +21 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/network.d.ts +9 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +23 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +13 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +10 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/payLog.d.ts +81 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.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/ProductItem/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/locales.d.ts +48 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +631 -0
- package/es/components/pay/toC/payGroup.d.ts +59 -0
- package/es/components/pay/toC/serve.d.ts +87 -0
- package/es/components/pay/toC/utils.d.ts +65 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/es/components/scanOrder/components/Cart/index.js +58 -24
- package/es/components/scanOrder/components/Cart/index.less +61 -8
- package/es/components/scanOrder/components/Check/index.js +232 -51
- package/es/components/scanOrder/components/Check/index.less +30 -0
- package/es/components/scanOrder/components/Content/index.js +358 -121
- package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/es/components/scanOrder/components/Footer/index.js +4 -2
- package/es/components/scanOrder/components/Footer/index.less +16 -7
- package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/es/components/scanOrder/context.js +104 -21
- package/es/components/scanOrder/locales.d.ts +55 -0
- package/es/components/scanOrder/locales.js +55 -0
- package/es/components/scanOrder/types.d.ts +23 -0
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/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/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
- package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
- package/es/components/systemSettings/registry/index.js +3 -1
- package/es/components/systemSettings/registry/services.d.ts +2 -0
- package/es/components/systemSettings/registry/types.d.ts +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +130 -18
- package/es/components/venueBooking/context.js +38 -12
- package/es/components/venueBooking/hooks.d.ts +16 -3
- package/es/components/venueBooking/hooks.js +16 -4
- package/es/components/venueBooking/types.d.ts +19 -2
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +87 -0
- package/es/index.js +1 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/pisellSalesProductCard/index.js +16 -1
- package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/NumericStepper/index.d.ts +19 -0
- package/es/pro/NumericStepper/index.js +37 -6
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/utils.d.ts +227 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.d.ts +47 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +1489 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +120 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +21 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +23 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +13 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +10 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.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/ProductItem/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +631 -0
- package/lib/components/pay/toC/payGroup.d.ts +59 -0
- package/lib/components/pay/toC/serve.d.ts +87 -0
- package/lib/components/pay/toC/utils.d.ts +65 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Cart/index.js +43 -9
- package/lib/components/scanOrder/components/Cart/index.less +61 -8
- package/lib/components/scanOrder/components/Check/index.js +97 -8
- package/lib/components/scanOrder/components/Check/index.less +30 -0
- package/lib/components/scanOrder/components/Content/index.js +215 -69
- package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Footer/index.js +2 -2
- package/lib/components/scanOrder/components/Footer/index.less +16 -7
- package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/lib/components/scanOrder/context.js +80 -12
- package/lib/components/scanOrder/locales.d.ts +55 -0
- package/lib/components/scanOrder/locales.js +55 -0
- package/lib/components/scanOrder/types.d.ts +23 -0
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/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/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
- package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
- package/lib/components/systemSettings/registry/index.js +3 -1
- package/lib/components/systemSettings/registry/services.d.ts +2 -0
- package/lib/components/systemSettings/registry/types.d.ts +3 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +119 -19
- package/lib/components/venueBooking/context.js +16 -7
- package/lib/components/venueBooking/hooks.d.ts +16 -3
- package/lib/components/venueBooking/hooks.js +8 -2
- package/lib/components/venueBooking/types.d.ts +19 -2
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +87 -0
- package/lib/index.js +2 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/pisellSalesProductCard/index.js +10 -0
- package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/NumericStepper/index.d.ts +19 -0
- package/lib/pro/NumericStepper/index.js +21 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
- package/package.json +1 -1
|
@@ -35,14 +35,19 @@ module.exports = __toCommonJS(Check_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_materials = require("@pisell/materials");
|
|
38
39
|
var import_Cart = __toESM(require("../Cart"));
|
|
40
|
+
var import_FulfillmentMode = __toESM(require("../FulfillmentMode"));
|
|
41
|
+
var import_ManualPickupRefModal = __toESM(require("../ManualPickupRefModal"));
|
|
39
42
|
var import_context = require("../../context");
|
|
40
43
|
var import_hooks = require("../../hooks");
|
|
41
44
|
var import_index = require("./index.less");
|
|
42
45
|
function Check() {
|
|
43
|
-
const { viewModel, runModuleAction, refreshViewModel } = (0, import_context.useScanOrderContext)();
|
|
46
|
+
const { viewModel, runModuleAction, refreshViewModel, tableName, entryMode, clearStepCache } = (0, import_context.useScanOrderContext)();
|
|
47
|
+
const isAdditionalOrder = entryMode === "additional_order";
|
|
44
48
|
const [submitting, setSubmitting] = (0, import_react.useState)(false);
|
|
45
49
|
const [note, setNote] = (0, import_react.useState)((viewModel == null ? void 0 : viewModel.note) || "");
|
|
50
|
+
const [pickupRefOpen, setPickupRefOpen] = (0, import_react.useState)(false);
|
|
46
51
|
const utils = (0, import_hooks.contextUtils)();
|
|
47
52
|
const [dineInConfig, setDineInConfig] = (0, import_react.useState)(null);
|
|
48
53
|
const getConfig = async () => {
|
|
@@ -65,14 +70,24 @@ function Check() {
|
|
|
65
70
|
import_utils.locales.getText("pisell2.text.add-order-notes") || import_utils.locales.getText("pisell2.scan.order.note.placeholder") || "请输入备注"
|
|
66
71
|
);
|
|
67
72
|
}, []);
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
const currentTableText = (0, import_react.useMemo)(
|
|
74
|
+
() => String(
|
|
75
|
+
import_utils.locales.getText("pisell2.scan.order.current.table") || "Current table"
|
|
76
|
+
),
|
|
77
|
+
[]
|
|
78
|
+
);
|
|
79
|
+
const productsTitle = (0, import_react.useMemo)(
|
|
80
|
+
() => String(import_utils.locales.getText("pisell2.scan.order.products.title") || "Products"),
|
|
81
|
+
[]
|
|
82
|
+
);
|
|
83
|
+
const doSubmit = async () => {
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
71
85
|
try {
|
|
72
86
|
setSubmitting(true);
|
|
73
87
|
await runModuleAction("updateTempOrderNote", note);
|
|
74
88
|
const res = await runModuleAction("submitScanOrder");
|
|
75
89
|
console.log("submitScanOrder >>>>> ", res);
|
|
90
|
+
clearStepCache();
|
|
76
91
|
if (dineInConfig == null ? void 0 : dineInConfig["workflow.require_payment_on_submit"]) {
|
|
77
92
|
utils.action({
|
|
78
93
|
type: "pisell1.payment",
|
|
@@ -80,13 +95,30 @@ function Check() {
|
|
|
80
95
|
order_id: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.order_id,
|
|
81
96
|
total_amount: (_b = viewModel == null ? void 0 : viewModel.summary) == null ? void 0 : _b.total_amount
|
|
82
97
|
},
|
|
83
|
-
callback: (
|
|
98
|
+
callback: async (_e2) => {
|
|
99
|
+
try {
|
|
100
|
+
await runModuleAction("restoreOrder");
|
|
101
|
+
} catch (error) {
|
|
102
|
+
console.warn("[scanOrder] restoreOrder after payment failed", error);
|
|
103
|
+
}
|
|
84
104
|
}
|
|
85
105
|
});
|
|
86
106
|
} else {
|
|
87
107
|
if ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.order_id) {
|
|
108
|
+
try {
|
|
109
|
+
await runModuleAction("restoreOrder");
|
|
110
|
+
} catch (error) {
|
|
111
|
+
console.warn("[scanOrder] restoreOrder before redirect failed", error);
|
|
112
|
+
}
|
|
88
113
|
const link = `/order/details?id=${(_d = res == null ? void 0 : res.data) == null ? void 0 : _d.order_id}`;
|
|
89
|
-
|
|
114
|
+
const app = (_e = utils == null ? void 0 : utils.getApp) == null ? void 0 : _e.call(utils);
|
|
115
|
+
if ((_f = app == null ? void 0 : app.history) == null ? void 0 : _f.replace) {
|
|
116
|
+
app.history.replace(link);
|
|
117
|
+
} else if ((_g = app == null ? void 0 : app.history) == null ? void 0 : _g.push) {
|
|
118
|
+
app.history.push(link);
|
|
119
|
+
} else {
|
|
120
|
+
location.replace(link);
|
|
121
|
+
}
|
|
90
122
|
}
|
|
91
123
|
}
|
|
92
124
|
await refreshViewModel();
|
|
@@ -97,6 +129,55 @@ function Check() {
|
|
|
97
129
|
setSubmitting(false);
|
|
98
130
|
}
|
|
99
131
|
};
|
|
132
|
+
const handleSubmit = async () => {
|
|
133
|
+
if (submitting) return;
|
|
134
|
+
const cartItems = (viewModel == null ? void 0 : viewModel.cartItems) || [];
|
|
135
|
+
if (cartItems.length === 0) {
|
|
136
|
+
(0, import_materials.PisellToast)({
|
|
137
|
+
content: String(
|
|
138
|
+
import_utils.locales.getText("pisell2.scan.order.products.empty.tip") || "Please select products"
|
|
139
|
+
),
|
|
140
|
+
duration: 2
|
|
141
|
+
});
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (isAdditionalOrder) {
|
|
145
|
+
await doSubmit();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
try {
|
|
149
|
+
setSubmitting(true);
|
|
150
|
+
const manualPickup = await runModuleAction("checkManualPickupRef");
|
|
151
|
+
if (manualPickup == null ? void 0 : manualPickup.enabled) {
|
|
152
|
+
setPickupRefOpen(true);
|
|
153
|
+
setSubmitting(false);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
} catch (error) {
|
|
157
|
+
console.error("[scanOrder] checkManualPickupRef failed", error);
|
|
158
|
+
import_antd.message.error((error == null ? void 0 : error.message) || "Submit order failed");
|
|
159
|
+
setSubmitting(false);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
await doSubmit();
|
|
163
|
+
};
|
|
164
|
+
const handlePickupRefConfirm = async (value) => {
|
|
165
|
+
try {
|
|
166
|
+
setSubmitting(true);
|
|
167
|
+
await runModuleAction("setPickupRef", value);
|
|
168
|
+
} catch (error) {
|
|
169
|
+
console.error("[scanOrder] setPickupRef failed", error);
|
|
170
|
+
import_antd.message.error((error == null ? void 0 : error.message) || "Submit order failed");
|
|
171
|
+
setSubmitting(false);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
setPickupRefOpen(false);
|
|
175
|
+
await doSubmit();
|
|
176
|
+
};
|
|
177
|
+
const handlePickupRefCancel = () => {
|
|
178
|
+
if (submitting) return;
|
|
179
|
+
setPickupRefOpen(false);
|
|
180
|
+
};
|
|
100
181
|
const noteContent = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-note" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-note-title" }, noteTitle), /* @__PURE__ */ import_react.default.createElement(
|
|
101
182
|
import_antd.Input.TextArea,
|
|
102
183
|
{
|
|
@@ -110,7 +191,7 @@ function Check() {
|
|
|
110
191
|
}
|
|
111
192
|
}
|
|
112
193
|
));
|
|
113
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check" }, /* @__PURE__ */ import_react.default.createElement(
|
|
194
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check" }, tableName ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-current-table" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-check-current-table-label" }, currentTableText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-scan-order-check-current-table-value" }, tableName)) : null, !isAdditionalOrder ? /* @__PURE__ */ import_react.default.createElement(import_FulfillmentMode.default, null) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-check-products-title" }, productsTitle), /* @__PURE__ */ import_react.default.createElement(
|
|
114
195
|
import_Cart.default,
|
|
115
196
|
{
|
|
116
197
|
embedded: true,
|
|
@@ -121,7 +202,15 @@ function Check() {
|
|
|
121
202
|
items: (viewModel == null ? void 0 : viewModel.cartItems) || [],
|
|
122
203
|
summary: (viewModel == null ? void 0 : viewModel.summary) || {},
|
|
123
204
|
confirmLoading: submitting,
|
|
124
|
-
extraContent: isShowOrderNote ? noteContent : void 0
|
|
205
|
+
extraContent: !isAdditionalOrder && isShowOrderNote ? noteContent : void 0
|
|
206
|
+
}
|
|
207
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
208
|
+
import_ManualPickupRefModal.default,
|
|
209
|
+
{
|
|
210
|
+
open: pickupRefOpen,
|
|
211
|
+
confirmLoading: submitting,
|
|
212
|
+
onCancel: handlePickupRefCancel,
|
|
213
|
+
onConfirm: handlePickupRefConfirm
|
|
125
214
|
}
|
|
126
215
|
));
|
|
127
216
|
}
|
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.pisell-scan-order-check-current-table {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
gap: 12px;
|
|
11
|
+
padding: 12px 16px;
|
|
12
|
+
background: #fff;
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
|
|
15
|
+
.pisell-scan-order-check-current-table-label {
|
|
16
|
+
color: #101828;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pisell-scan-order-check-current-table-value {
|
|
22
|
+
color: #344054;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pisell-scan-order-check-products-title {
|
|
29
|
+
padding: 0 16px;
|
|
30
|
+
margin-bottom: 8px;
|
|
31
|
+
color: #101828;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
}
|
|
35
|
+
|
|
6
36
|
.pisell-scan-order-check-note {
|
|
7
37
|
padding: 0;
|
|
8
38
|
margin-top: 30px;
|
|
@@ -48,8 +48,30 @@ var import_Check = __toESM(require("../Check"));
|
|
|
48
48
|
var import_PolicyModal = __toESM(require("../../../appointmentBooking/deposit/components/PolicyModal"));
|
|
49
49
|
var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
|
|
50
50
|
var import_index = require("./index.less");
|
|
51
|
+
function extractEntryPaxNumber(payload) {
|
|
52
|
+
if (payload == null) return null;
|
|
53
|
+
if (typeof payload === "number" && Number.isFinite(payload) && payload >= 1) {
|
|
54
|
+
return Math.floor(payload);
|
|
55
|
+
}
|
|
56
|
+
if (typeof payload === "string") {
|
|
57
|
+
const n = Number(payload);
|
|
58
|
+
if (Number.isFinite(n) && n >= 1) return Math.floor(n);
|
|
59
|
+
}
|
|
60
|
+
if (typeof payload === "object") {
|
|
61
|
+
const o = payload;
|
|
62
|
+
for (const k of ["entryPaxNumber", "pax", "num", "count", "value"]) {
|
|
63
|
+
const v = o[k];
|
|
64
|
+
if (typeof v === "number" && Number.isFinite(v) && v >= 1) return Math.floor(v);
|
|
65
|
+
if (typeof v === "string") {
|
|
66
|
+
const n = Number(v);
|
|
67
|
+
if (Number.isFinite(n) && n >= 1) return Math.floor(n);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
51
73
|
function ReadyState() {
|
|
52
|
-
var _a, _b, _c, _d;
|
|
74
|
+
var _a, _b, _c, _d, _e;
|
|
53
75
|
const {
|
|
54
76
|
currentStep,
|
|
55
77
|
prevStep,
|
|
@@ -60,7 +82,16 @@ function ReadyState() {
|
|
|
60
82
|
refreshViewModel,
|
|
61
83
|
footerActionText,
|
|
62
84
|
setFooterActionText,
|
|
63
|
-
cartValidation
|
|
85
|
+
cartValidation,
|
|
86
|
+
setTableName,
|
|
87
|
+
entryMode,
|
|
88
|
+
setEntryMode,
|
|
89
|
+
submitDisabledTips,
|
|
90
|
+
setSubmitDisabledTips,
|
|
91
|
+
scanOrderModule,
|
|
92
|
+
isCacheHydrated,
|
|
93
|
+
markGate,
|
|
94
|
+
isGatePassed
|
|
64
95
|
} = (0, import_context.useScanOrderContext)();
|
|
65
96
|
const { isLogin, openLoginModal } = (0, import_hooks.useScanOrderLogin)();
|
|
66
97
|
const utils = (0, import_hooks.contextUtils)();
|
|
@@ -78,6 +109,21 @@ function ReadyState() {
|
|
|
78
109
|
content: null
|
|
79
110
|
});
|
|
80
111
|
const [pendingFormPayload, setPendingFormPayload] = (0, import_react.useState)(null);
|
|
112
|
+
const requestEntryPaxRef = (0, import_react.useRef)(0);
|
|
113
|
+
const requestPaxMinRef = (0, import_react.useRef)(1);
|
|
114
|
+
const requestPaxMaxRef = (0, import_react.useRef)(1);
|
|
115
|
+
const tableFormRecordRef = (0, import_react.useRef)(null);
|
|
116
|
+
const getLocalizedName = (nameMap) => {
|
|
117
|
+
if (!nameMap) return "";
|
|
118
|
+
const currentLocale = import_utils.locales.getLocale();
|
|
119
|
+
return nameMap[currentLocale] || nameMap.original || nameMap.en || "";
|
|
120
|
+
};
|
|
121
|
+
const resolveLocalizedText = (value) => {
|
|
122
|
+
if (value == null) return "";
|
|
123
|
+
if (typeof value === "string") return value;
|
|
124
|
+
if (typeof value !== "object") return String(value);
|
|
125
|
+
return getLocalizedName(value);
|
|
126
|
+
};
|
|
81
127
|
const normalizeFormPayload = (formPayload, partyroomBookingPayload) => {
|
|
82
128
|
const sourcePayload = formPayload ?? partyroomBookingPayload;
|
|
83
129
|
if (!sourcePayload) return null;
|
|
@@ -93,9 +139,35 @@ function ReadyState() {
|
|
|
93
139
|
setting: sourceDetail == null ? void 0 : sourceDetail.setting
|
|
94
140
|
};
|
|
95
141
|
};
|
|
142
|
+
const app = (_a = utils == null ? void 0 : utils.getApp) == null ? void 0 : _a.call(utils);
|
|
96
143
|
const handleOrderDetail = (order_id) => {
|
|
144
|
+
var _a2, _b2;
|
|
97
145
|
const link = `/order/details?id=${order_id}`;
|
|
98
|
-
|
|
146
|
+
if ((_a2 = app == null ? void 0 : app.history) == null ? void 0 : _a2.replace) {
|
|
147
|
+
app.history.replace(link);
|
|
148
|
+
} else if ((_b2 = app == null ? void 0 : app.history) == null ? void 0 : _b2.push) {
|
|
149
|
+
app.history.push(link);
|
|
150
|
+
} else {
|
|
151
|
+
location.replace(link);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const handleBack = () => {
|
|
155
|
+
var _a2, _b2;
|
|
156
|
+
if (currentStep !== "product") {
|
|
157
|
+
prevStep();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (entryMode === "additional_order" && (entryContext == null ? void 0 : entryContext.order_id)) {
|
|
161
|
+
handleOrderDetail(entryContext.order_id);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if ((_a2 = app == null ? void 0 : app.history) == null ? void 0 : _a2.replace) {
|
|
165
|
+
app.history.replace("/");
|
|
166
|
+
} else if ((_b2 = app == null ? void 0 : app.history) == null ? void 0 : _b2.push) {
|
|
167
|
+
app.history.push("/");
|
|
168
|
+
} else {
|
|
169
|
+
location.replace("/");
|
|
170
|
+
}
|
|
99
171
|
};
|
|
100
172
|
const enterProductStep = async () => {
|
|
101
173
|
try {
|
|
@@ -104,9 +176,48 @@ function ReadyState() {
|
|
|
104
176
|
} catch (error) {
|
|
105
177
|
console.warn("[scanOrder] applyItemRulePrefill failed", error);
|
|
106
178
|
} finally {
|
|
107
|
-
goToStep("product");
|
|
179
|
+
if (currentStep !== "check") goToStep("product");
|
|
108
180
|
}
|
|
109
181
|
};
|
|
182
|
+
const runEntryPaxGateThenEnterProduct = async () => {
|
|
183
|
+
if (requestEntryPaxRef.current !== 1) {
|
|
184
|
+
await enterProductStep();
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (isGatePassed("paxEntered")) {
|
|
188
|
+
await enterProductStep();
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const pax = await new Promise((resolve) => {
|
|
192
|
+
var _a2;
|
|
193
|
+
if (typeof (utils == null ? void 0 : utils.action) !== "function") {
|
|
194
|
+
resolve(null);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
utils.action({
|
|
198
|
+
type: "pisell1.handlePaxModal",
|
|
199
|
+
data: {
|
|
200
|
+
tableName: getLocalizedName((_a2 = tableFormRecordRef.current) == null ? void 0 : _a2.name),
|
|
201
|
+
requestPaxMin: requestPaxMinRef.current,
|
|
202
|
+
requestPaxMax: requestPaxMaxRef.current
|
|
203
|
+
},
|
|
204
|
+
callback: (result) => {
|
|
205
|
+
resolve(extractEntryPaxNumber(result));
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
if (pax == null) {
|
|
210
|
+
location.replace("/");
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
await runModuleAction("setEntryPaxNumber", pax);
|
|
215
|
+
markGate("paxEntered");
|
|
216
|
+
} catch (error) {
|
|
217
|
+
console.warn("[scanOrder] setOtherParams failed", error);
|
|
218
|
+
}
|
|
219
|
+
await enterProductStep();
|
|
220
|
+
};
|
|
110
221
|
const closePolicyAndBack = () => {
|
|
111
222
|
setPolicyModal({
|
|
112
223
|
open: false,
|
|
@@ -139,7 +250,8 @@ function ReadyState() {
|
|
|
139
250
|
content: null
|
|
140
251
|
});
|
|
141
252
|
setPendingFormPayload(null);
|
|
142
|
-
|
|
253
|
+
markGate("formSubmitted");
|
|
254
|
+
void runEntryPaxGateThenEnterProduct();
|
|
143
255
|
};
|
|
144
256
|
const handleFormConfirm = () => {
|
|
145
257
|
var _a2, _b2;
|
|
@@ -152,11 +264,12 @@ function ReadyState() {
|
|
|
152
264
|
open: false,
|
|
153
265
|
content: null
|
|
154
266
|
});
|
|
155
|
-
|
|
267
|
+
markGate("policyAccepted");
|
|
268
|
+
if (pendingFormPayload && !isGatePassed("formSubmitted")) {
|
|
156
269
|
openFormModal(pendingFormPayload);
|
|
157
270
|
return;
|
|
158
271
|
}
|
|
159
|
-
void
|
|
272
|
+
void runEntryPaxGateThenEnterProduct();
|
|
160
273
|
};
|
|
161
274
|
const depositProtocolRequest = (id) => {
|
|
162
275
|
var _a2, _b2;
|
|
@@ -165,45 +278,59 @@ function ReadyState() {
|
|
|
165
278
|
(0, import_react.useEffect)(() => {
|
|
166
279
|
const checkResourceAvailable = async () => {
|
|
167
280
|
const hasOrderId = !!(entryContext == null ? void 0 : entryContext.order_id);
|
|
168
|
-
const {
|
|
281
|
+
const {
|
|
282
|
+
mode,
|
|
283
|
+
order_id,
|
|
284
|
+
errorTips,
|
|
285
|
+
policy,
|
|
286
|
+
form,
|
|
287
|
+
partyroom_booking,
|
|
288
|
+
requestEntryPax,
|
|
289
|
+
requestPaxMin,
|
|
290
|
+
requestPaxMax,
|
|
291
|
+
table_form_record
|
|
292
|
+
} = await runModuleAction(
|
|
169
293
|
"checkResourceAvailable",
|
|
170
294
|
entryContext == null ? void 0 : entryContext.resource_id,
|
|
171
295
|
hasOrderId
|
|
172
296
|
);
|
|
297
|
+
requestEntryPaxRef.current = Number(requestEntryPax) === 1 ? 1 : 0;
|
|
298
|
+
requestPaxMinRef.current = Number(requestPaxMin) || 1;
|
|
299
|
+
requestPaxMaxRef.current = Number(requestPaxMax) || 1;
|
|
300
|
+
tableFormRecordRef.current = table_form_record || {};
|
|
301
|
+
setTableName(getLocalizedName(table_form_record == null ? void 0 : table_form_record.name));
|
|
173
302
|
const normalizedFormPayload = normalizeFormPayload(form, partyroom_booking);
|
|
174
|
-
|
|
303
|
+
const isAdditionalOrder = mode === "additional_order" || mode === "additional_order_with_code";
|
|
304
|
+
setEntryMode(isAdditionalOrder ? "additional_order" : "default");
|
|
305
|
+
if (mode === "idle") {
|
|
175
306
|
const normalizedPolicyPayload = typeof policy === "object" && policy !== null ? policy : { id: policy };
|
|
176
|
-
if (
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
content: normalizedPolicyPayload
|
|
182
|
-
});
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
if (normalizedFormPayload) {
|
|
186
|
-
openFormModal(normalizedFormPayload);
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
await enterProductStep();
|
|
191
|
-
} else if (mode === "resource_busy") {
|
|
192
|
-
if (!isLogin) {
|
|
193
|
-
openLoginModal({
|
|
194
|
-
callback: (status) => {
|
|
195
|
-
if (status === "success") {
|
|
196
|
-
handleOrderDetail(order_id);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
307
|
+
if ((normalizedPolicyPayload == null ? void 0 : normalizedPolicyPayload.id) && !isGatePassed("policyAccepted")) {
|
|
308
|
+
setPendingFormPayload(normalizedFormPayload);
|
|
309
|
+
setPolicyModal({
|
|
310
|
+
open: true,
|
|
311
|
+
content: normalizedPolicyPayload
|
|
199
312
|
});
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
if (normalizedFormPayload && !isGatePassed("formSubmitted")) {
|
|
316
|
+
openFormModal(normalizedFormPayload);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
await runEntryPaxGateThenEnterProduct();
|
|
320
|
+
} else if (isAdditionalOrder) {
|
|
321
|
+
if (hasOrderId) {
|
|
322
|
+
await enterProductStep();
|
|
200
323
|
} else {
|
|
201
324
|
handleOrderDetail(order_id);
|
|
202
325
|
}
|
|
326
|
+
} else if (mode === "submit_disabled") {
|
|
327
|
+
const tips = resolveLocalizedText(errorTips) || String(import_utils.locales.getText("pisell2.scan.order.submit.disabled.default") || "");
|
|
328
|
+
setSubmitDisabledTips(tips);
|
|
329
|
+
await enterProductStep();
|
|
203
330
|
} else {
|
|
204
|
-
let content = errorTips
|
|
331
|
+
let content = resolveLocalizedText(errorTips);
|
|
205
332
|
if (!content) {
|
|
206
|
-
if (mode === "
|
|
333
|
+
if (mode === "resource_busy") {
|
|
207
334
|
content = String(
|
|
208
335
|
import_utils.locales.getText("pisell2.scan.order.resource.status.exception") || ""
|
|
209
336
|
);
|
|
@@ -224,8 +351,9 @@ function ReadyState() {
|
|
|
224
351
|
});
|
|
225
352
|
}
|
|
226
353
|
};
|
|
354
|
+
if (!isCacheHydrated) return;
|
|
227
355
|
checkResourceAvailable();
|
|
228
|
-
}, []);
|
|
356
|
+
}, [isCacheHydrated]);
|
|
229
357
|
(0, import_react.useEffect)(() => {
|
|
230
358
|
window.scrollTo({
|
|
231
359
|
top: 0,
|
|
@@ -251,43 +379,59 @@ function ReadyState() {
|
|
|
251
379
|
check: /* @__PURE__ */ import_react.default.createElement(import_Check.default, null),
|
|
252
380
|
error: /* @__PURE__ */ import_react.default.createElement(import_ErrorState.default, { message: import_utils.locales.getText("pisell2.scan.order.store.status.exception") })
|
|
253
381
|
};
|
|
254
|
-
const
|
|
382
|
+
const getFirstFailedProductIds = () => {
|
|
255
383
|
const firstFailure = Array.isArray(cartValidation == null ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
384
|
+
const targets = Array.isArray(firstFailure == null ? void 0 : firstFailure.targets) ? firstFailure.targets : [];
|
|
385
|
+
const ids = [];
|
|
386
|
+
const seen = /* @__PURE__ */ new Set();
|
|
387
|
+
for (const target of targets) {
|
|
388
|
+
const id = Number(target == null ? void 0 : target.product_id);
|
|
389
|
+
if (Number.isFinite(id) && id > 0 && !seen.has(id)) {
|
|
390
|
+
seen.add(id);
|
|
391
|
+
ids.push(id);
|
|
392
|
+
}
|
|
260
393
|
}
|
|
261
|
-
return
|
|
394
|
+
return ids;
|
|
262
395
|
};
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
});
|
|
273
|
-
failedProductElement.classList.add("highlight-product-item");
|
|
274
|
-
setTimeout(() => {
|
|
396
|
+
const scrollAndHighlightProductsByIds = (productIds) => {
|
|
397
|
+
if (!(productIds == null ? void 0 : productIds.length)) return false;
|
|
398
|
+
let scrolled = false;
|
|
399
|
+
let highlighted = false;
|
|
400
|
+
for (const productId of productIds) {
|
|
401
|
+
const failedProductElement = document.querySelector(
|
|
402
|
+
`[data-product-id="${String(productId)}"]`
|
|
403
|
+
);
|
|
404
|
+
if (!failedProductElement) continue;
|
|
275
405
|
failedProductElement.classList.remove("highlight-product-item");
|
|
276
|
-
|
|
277
|
-
|
|
406
|
+
if (!scrolled) {
|
|
407
|
+
failedProductElement.scrollIntoView({
|
|
408
|
+
behavior: "smooth",
|
|
409
|
+
block: "center"
|
|
410
|
+
});
|
|
411
|
+
scrolled = true;
|
|
412
|
+
}
|
|
413
|
+
void failedProductElement.offsetWidth;
|
|
414
|
+
failedProductElement.classList.add("highlight-product-item");
|
|
415
|
+
setTimeout(() => {
|
|
416
|
+
failedProductElement.classList.remove("highlight-product-item");
|
|
417
|
+
}, 3e3);
|
|
418
|
+
highlighted = true;
|
|
419
|
+
}
|
|
420
|
+
return highlighted;
|
|
278
421
|
};
|
|
279
422
|
const gotoCheckOrder = async () => {
|
|
423
|
+
if (submitDisabledTips) {
|
|
424
|
+
import_antd.message.warning(submitDisabledTips, 2);
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
280
427
|
const firstFailure = Array.isArray(cartValidation == null ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
|
|
281
428
|
if ((cartValidation == null ? void 0 : cartValidation.passed) === false) {
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
|
|
429
|
+
const failedProductIds = getFirstFailedProductIds();
|
|
430
|
+
if (failedProductIds.length) {
|
|
431
|
+
scrollAndHighlightProductsByIds(failedProductIds);
|
|
285
432
|
}
|
|
286
433
|
const failureTips = String((firstFailure == null ? void 0 : firstFailure.validationMessage) || "").trim();
|
|
287
|
-
(
|
|
288
|
-
content: failureTips,
|
|
289
|
-
duration: 2
|
|
290
|
-
});
|
|
434
|
+
import_antd.message.warning(failureTips, 2);
|
|
291
435
|
return;
|
|
292
436
|
}
|
|
293
437
|
const otherParams = await runModuleAction("getOtherParams");
|
|
@@ -326,7 +470,7 @@ function ReadyState() {
|
|
|
326
470
|
if (isMobileView) return false;
|
|
327
471
|
return currentStep === "product";
|
|
328
472
|
}, [currentStep, isMobileView]);
|
|
329
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Header.default, { currentStep, onBack:
|
|
473
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Header.default, { currentStep, onBack: handleBack }), /* @__PURE__ */ import_react.default.createElement(
|
|
330
474
|
"div",
|
|
331
475
|
{
|
|
332
476
|
className: `pisell-scan-order-content-wrap ${isMobileView ? "pisell-scan-order-content-mobile-wrap" : ""}`,
|
|
@@ -342,7 +486,8 @@ function ReadyState() {
|
|
|
342
486
|
},
|
|
343
487
|
onNext: gotoCheckOrder,
|
|
344
488
|
items: (viewModel == null ? void 0 : viewModel.cartItems) || [],
|
|
345
|
-
summary: (viewModel == null ? void 0 : viewModel.summary) || {}
|
|
489
|
+
summary: (viewModel == null ? void 0 : viewModel.summary) || {},
|
|
490
|
+
disabled: !!submitDisabledTips
|
|
346
491
|
}
|
|
347
492
|
)) : null
|
|
348
493
|
), isShowFooter ? /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -351,7 +496,8 @@ function ReadyState() {
|
|
|
351
496
|
cartItems: (viewModel == null ? void 0 : viewModel.cartItems) || [],
|
|
352
497
|
summary: (viewModel == null ? void 0 : viewModel.summary) || {},
|
|
353
498
|
actionText: footerActionText,
|
|
354
|
-
onAction: () => gotoCheckOrder()
|
|
499
|
+
onAction: () => gotoCheckOrder(),
|
|
500
|
+
disabled: !!submitDisabledTips
|
|
355
501
|
}
|
|
356
502
|
) : null, policyModal.open ? /* @__PURE__ */ import_react.default.createElement(
|
|
357
503
|
import_PolicyModal.default,
|
|
@@ -369,7 +515,7 @@ function ReadyState() {
|
|
|
369
515
|
open: formModal.open,
|
|
370
516
|
platform: isMobileView ? "h5" : "pc",
|
|
371
517
|
onCancel: closeFormModalAndBack,
|
|
372
|
-
title: ((
|
|
518
|
+
title: ((_b = formModal.content) == null ? void 0 : _b.title) || import_utils.locales.getText("pisell2.appointment.fill-form") || "填写信息",
|
|
373
519
|
mobileModalHeight: "90vh",
|
|
374
520
|
width: isMobileView ? "100%" : 900,
|
|
375
521
|
className: "pisell-scan-order-form-modal",
|
|
@@ -388,10 +534,10 @@ function ReadyState() {
|
|
|
388
534
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-scan-order-form-modal-body" }, FormCard ? /* @__PURE__ */ import_react.default.createElement(
|
|
389
535
|
FormCard,
|
|
390
536
|
{
|
|
391
|
-
id: ((
|
|
537
|
+
id: ((_c = formModal.content) == null ? void 0 : _c.id) || 0,
|
|
392
538
|
ref: formModalRef,
|
|
393
539
|
isGetLastData: false,
|
|
394
|
-
setting: ((
|
|
540
|
+
setting: ((_d = formModal.content) == null ? void 0 : _d.setting) || { isHidden: 1 },
|
|
395
541
|
formWrapStyle: { padding: "16px" },
|
|
396
542
|
isV2API: true,
|
|
397
543
|
isShowSkeleton: true,
|
|
@@ -403,7 +549,7 @@ function ReadyState() {
|
|
|
403
549
|
},
|
|
404
550
|
onFormValueChange: () => {
|
|
405
551
|
},
|
|
406
|
-
defaultValues: ((
|
|
552
|
+
defaultValues: ((_e = formModal.content) == null ? void 0 : _e.defaultValues) || {},
|
|
407
553
|
isClearData: false
|
|
408
554
|
}
|
|
409
555
|
) : null)
|
|
@@ -39,7 +39,7 @@ var import_Cart = __toESM(require("../Cart"));
|
|
|
39
39
|
var import_shopping_cart = __toESM(require("../../../appointmentBooking/assets/shopping-cart.svg"));
|
|
40
40
|
var import_index = require("./index.less");
|
|
41
41
|
function Footer(props) {
|
|
42
|
-
const { cartItems, summary, actionText, onAction } = props;
|
|
42
|
+
const { cartItems, summary, actionText, onAction, disabled = false } = props;
|
|
43
43
|
const [cartOpen, setCartOpen] = (0, import_react.useState)(false);
|
|
44
44
|
const totalAmount = (0, import_react.useMemo)(() => {
|
|
45
45
|
const rawAmount = (summary == null ? void 0 : summary.total_amount) ?? (summary == null ? void 0 : summary.expect_amount) ?? (summary == null ? void 0 : summary.amount) ?? (summary == null ? void 0 : summary.total) ?? (summary == null ? void 0 : summary.totalAmount) ?? (summary == null ? void 0 : summary.payable_amount) ?? 0;
|
|
@@ -60,7 +60,7 @@ function Footer(props) {
|
|
|
60
60
|
{
|
|
61
61
|
type: "primary",
|
|
62
62
|
size: "large",
|
|
63
|
-
className: "pisell-scan-order-footer-btn"
|
|
63
|
+
className: `pisell-scan-order-footer-btn${disabled ? " pisell-scan-order-footer-btn-disabled" : ""}`,
|
|
64
64
|
onClick: onAction
|
|
65
65
|
},
|
|
66
66
|
actionText
|