@pisell/private-materials 6.3.138 → 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/businessModel/SalesModel/index.d.ts +0 -1
- 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/addons/model.d.ts +10 -1
- 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/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- 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/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -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 +0 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- 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/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/login/index.d.ts +1 -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/model.d.ts +9 -1
- 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/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- 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 +147 -92
- 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 +98 -3
- 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/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/model.d.ts +9 -1
- 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/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/index.d.ts +0 -1
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +129 -17
- package/es/components/venueBooking/context.js +6 -6
- 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 +1 -1
- 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/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- 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 +1 -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/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- 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/addons/model.d.ts +10 -1
- 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/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- 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/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -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 +0 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- 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/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +1 -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/model.d.ts +9 -1
- 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/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- 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 +69 -32
- 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 -2
- 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/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/model.d.ts +9 -1
- 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/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/index.d.ts +0 -1
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +118 -18
- package/lib/components/venueBooking/context.js +2 -1
- 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 +1 -1
- 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/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- 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 +1 -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/walletEditor/components/relationProduct/index.d.ts +1 -0
- 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
|
@@ -63,7 +63,33 @@ function ScanOrderProvider({
|
|
|
63
63
|
const [footerActionText, setFooterActionText] = (0, import_react.useState)(
|
|
64
64
|
String(import_utils.locales.getText("pisell2.scan.order.action.select.required") || "")
|
|
65
65
|
);
|
|
66
|
+
const [tableName, setTableName] = (0, import_react.useState)("");
|
|
67
|
+
const [entryMode, setEntryMode] = (0, import_react.useState)("default");
|
|
68
|
+
const [submitDisabledTips, setSubmitDisabledTips] = (0, import_react.useState)("");
|
|
69
|
+
const [isCacheHydrated, setIsCacheHydrated] = (0, import_react.useState)(false);
|
|
70
|
+
const hydratedRef = (0, import_react.useRef)(false);
|
|
66
71
|
const stepList = [...import_hooks.SCAN_ORDER_STEPS];
|
|
72
|
+
const isGatePassed = (0, import_react.useCallback)(
|
|
73
|
+
(flag) => {
|
|
74
|
+
var _a;
|
|
75
|
+
const gate = (_a = scanOrderModule == null ? void 0 : scanOrderModule.getUIState) == null ? void 0 : _a.call(scanOrderModule, "gate");
|
|
76
|
+
return Boolean(gate == null ? void 0 : gate[flag]);
|
|
77
|
+
},
|
|
78
|
+
[scanOrderModule]
|
|
79
|
+
);
|
|
80
|
+
const markGate = (0, import_react.useCallback)(
|
|
81
|
+
(flag) => {
|
|
82
|
+
var _a;
|
|
83
|
+
if (!(scanOrderModule == null ? void 0 : scanOrderModule.setUIState)) return;
|
|
84
|
+
const prev = ((_a = scanOrderModule.getUIState) == null ? void 0 : _a.call(scanOrderModule, "gate")) || {};
|
|
85
|
+
scanOrderModule.setUIState("gate", { ...prev, [flag]: true });
|
|
86
|
+
},
|
|
87
|
+
[scanOrderModule]
|
|
88
|
+
);
|
|
89
|
+
const clearStepCache = (0, import_react.useCallback)(() => {
|
|
90
|
+
var _a;
|
|
91
|
+
(_a = scanOrderModule == null ? void 0 : scanOrderModule.clearUIState) == null ? void 0 : _a.call(scanOrderModule);
|
|
92
|
+
}, [scanOrderModule]);
|
|
67
93
|
const refreshViewModel = async () => {
|
|
68
94
|
if (scanOrderModule && typeof scanOrderModule.getSummary === "function") {
|
|
69
95
|
try {
|
|
@@ -96,6 +122,41 @@ function ScanOrderProvider({
|
|
|
96
122
|
const runModuleAction = async (actionName, ...args) => {
|
|
97
123
|
return (0, import_hooks.safeRunModuleAction)(scanOrderModule, actionName, ...args);
|
|
98
124
|
};
|
|
125
|
+
(0, import_react.useEffect)(() => {
|
|
126
|
+
var _a, _b, _c, _d, _e, _f;
|
|
127
|
+
if (hydratedRef.current || !scanOrderModule) return;
|
|
128
|
+
hydratedRef.current = true;
|
|
129
|
+
const currentResourceId = entryContext == null ? void 0 : entryContext.resource_id;
|
|
130
|
+
const currentHasOrderId = Boolean(entryContext == null ? void 0 : entryContext.order_id);
|
|
131
|
+
const currentBiz = entryContext == null ? void 0 : entryContext.biz;
|
|
132
|
+
const cachedEntry = (_a = scanOrderModule.getUIState) == null ? void 0 : _a.call(scanOrderModule, "entryContext");
|
|
133
|
+
const entrySame = cachedEntry && cachedEntry.resourceId === currentResourceId && cachedEntry.biz === currentBiz;
|
|
134
|
+
if (!entrySame) {
|
|
135
|
+
(_b = scanOrderModule.clearUIState) == null ? void 0 : _b.call(scanOrderModule);
|
|
136
|
+
(_c = scanOrderModule.setUIState) == null ? void 0 : _c.call(scanOrderModule, "entryContext", {
|
|
137
|
+
resourceId: currentResourceId,
|
|
138
|
+
hasOrderId: currentHasOrderId,
|
|
139
|
+
biz: currentBiz
|
|
140
|
+
});
|
|
141
|
+
setIsCacheHydrated(true);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const pending = (_d = scanOrderModule.getUIState) == null ? void 0 : _d.call(scanOrderModule, "pendingStep");
|
|
145
|
+
if (pending && stepList.includes(pending)) {
|
|
146
|
+
(_e = scanOrderModule.deleteUIState) == null ? void 0 : _e.call(scanOrderModule, "pendingStep");
|
|
147
|
+
setCurrentStep(pending);
|
|
148
|
+
setIsCacheHydrated(true);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const cached = (_f = scanOrderModule.getUIState) == null ? void 0 : _f.call(scanOrderModule, "step");
|
|
152
|
+
if (cached && stepList.includes(cached)) setCurrentStep(cached);
|
|
153
|
+
setIsCacheHydrated(true);
|
|
154
|
+
}, [scanOrderModule, entryContext == null ? void 0 : entryContext.resource_id, entryContext == null ? void 0 : entryContext.order_id, entryContext == null ? void 0 : entryContext.biz]);
|
|
155
|
+
(0, import_react.useEffect)(() => {
|
|
156
|
+
var _a;
|
|
157
|
+
if (!hydratedRef.current || !isCacheHydrated || !scanOrderModule) return;
|
|
158
|
+
(_a = scanOrderModule.setUIState) == null ? void 0 : _a.call(scanOrderModule, "step", currentStep);
|
|
159
|
+
}, [currentStep, isCacheHydrated, scanOrderModule]);
|
|
99
160
|
(0, import_react.useEffect)(() => {
|
|
100
161
|
var _a, _b;
|
|
101
162
|
if (!scanOrderModule) return;
|
|
@@ -177,6 +238,9 @@ function ScanOrderProvider({
|
|
|
177
238
|
stepList,
|
|
178
239
|
viewModel,
|
|
179
240
|
footerActionText,
|
|
241
|
+
tableName,
|
|
242
|
+
entryMode,
|
|
243
|
+
submitDisabledTips,
|
|
180
244
|
isReady: !isLoading && !errorMessage,
|
|
181
245
|
setCurrentStep,
|
|
182
246
|
goToStep,
|
|
@@ -185,7 +249,14 @@ function ScanOrderProvider({
|
|
|
185
249
|
refreshViewModel,
|
|
186
250
|
runModuleAction,
|
|
187
251
|
setFooterActionText,
|
|
188
|
-
|
|
252
|
+
setTableName,
|
|
253
|
+
setEntryMode,
|
|
254
|
+
setSubmitDisabledTips,
|
|
255
|
+
updateOrderNote,
|
|
256
|
+
isCacheHydrated,
|
|
257
|
+
markGate,
|
|
258
|
+
isGatePassed,
|
|
259
|
+
clearStepCache
|
|
189
260
|
};
|
|
190
261
|
}, [
|
|
191
262
|
entryContext,
|
|
@@ -196,7 +267,14 @@ function ScanOrderProvider({
|
|
|
196
267
|
currentStep,
|
|
197
268
|
stepList,
|
|
198
269
|
viewModel,
|
|
199
|
-
footerActionText
|
|
270
|
+
footerActionText,
|
|
271
|
+
tableName,
|
|
272
|
+
entryMode,
|
|
273
|
+
submitDisabledTips,
|
|
274
|
+
isCacheHydrated,
|
|
275
|
+
markGate,
|
|
276
|
+
isGatePassed,
|
|
277
|
+
clearStepCache
|
|
200
278
|
]);
|
|
201
279
|
return /* @__PURE__ */ import_react.default.createElement(ScanOrderContext.Provider, { value }, children);
|
|
202
280
|
}
|
|
@@ -17,6 +17,17 @@ declare const _default: {
|
|
|
17
17
|
'pisell2.scan.order.store.status.exception': string;
|
|
18
18
|
'pisell2.scan.order.note.title': string;
|
|
19
19
|
'pisell2.scan.order.note.placeholder': string;
|
|
20
|
+
'pisell2.scan.order.fulfillment.title': string;
|
|
21
|
+
'pisell2.scan.order.fulfillment.table_service': string;
|
|
22
|
+
'pisell2.scan.order.fulfillment.pickup': string;
|
|
23
|
+
'pisell2.scan.order.current.table': string;
|
|
24
|
+
'pisell2.scan.order.pickup.ref.title': string;
|
|
25
|
+
'pisell2.scan.order.pickup.ref.heading': string;
|
|
26
|
+
'pisell2.scan.order.pickup.ref.description': string;
|
|
27
|
+
'pisell2.scan.order.pickup.ref.placeholder': string;
|
|
28
|
+
'pisell2.scan.order.products.title': string;
|
|
29
|
+
'pisell2.scan.order.products.empty.tip': string;
|
|
30
|
+
'pisell2.scan.order.submit.disabled.default': string;
|
|
20
31
|
'pisell2.appointment.booking.empty.data': string;
|
|
21
32
|
'pisell2.appointment.deposit.close': string;
|
|
22
33
|
'pisell2.appointment.policy': string;
|
|
@@ -41,6 +52,17 @@ declare const _default: {
|
|
|
41
52
|
'pisell2.scan.order.store.status.exception': string;
|
|
42
53
|
'pisell2.scan.order.note.title': string;
|
|
43
54
|
'pisell2.scan.order.note.placeholder': string;
|
|
55
|
+
'pisell2.scan.order.fulfillment.title': string;
|
|
56
|
+
'pisell2.scan.order.fulfillment.table_service': string;
|
|
57
|
+
'pisell2.scan.order.fulfillment.pickup': string;
|
|
58
|
+
'pisell2.scan.order.current.table': string;
|
|
59
|
+
'pisell2.scan.order.pickup.ref.title': string;
|
|
60
|
+
'pisell2.scan.order.pickup.ref.heading': string;
|
|
61
|
+
'pisell2.scan.order.pickup.ref.description': string;
|
|
62
|
+
'pisell2.scan.order.pickup.ref.placeholder': string;
|
|
63
|
+
'pisell2.scan.order.products.title': string;
|
|
64
|
+
'pisell2.scan.order.products.empty.tip': string;
|
|
65
|
+
'pisell2.scan.order.submit.disabled.default': string;
|
|
44
66
|
'pisell2.appointment.booking.empty.data': string;
|
|
45
67
|
'pisell2.appointment.deposit.close': string;
|
|
46
68
|
'pisell2.appointment.policy': string;
|
|
@@ -65,6 +87,17 @@ declare const _default: {
|
|
|
65
87
|
'pisell2.scan.order.store.status.exception': string;
|
|
66
88
|
'pisell2.scan.order.note.title': string;
|
|
67
89
|
'pisell2.scan.order.note.placeholder': string;
|
|
90
|
+
'pisell2.scan.order.fulfillment.title': string;
|
|
91
|
+
'pisell2.scan.order.fulfillment.table_service': string;
|
|
92
|
+
'pisell2.scan.order.fulfillment.pickup': string;
|
|
93
|
+
'pisell2.scan.order.current.table': string;
|
|
94
|
+
'pisell2.scan.order.pickup.ref.title': string;
|
|
95
|
+
'pisell2.scan.order.pickup.ref.heading': string;
|
|
96
|
+
'pisell2.scan.order.pickup.ref.description': string;
|
|
97
|
+
'pisell2.scan.order.pickup.ref.placeholder': string;
|
|
98
|
+
'pisell2.scan.order.products.title': string;
|
|
99
|
+
'pisell2.scan.order.products.empty.tip': string;
|
|
100
|
+
'pisell2.scan.order.submit.disabled.default': string;
|
|
68
101
|
'pisell2.appointment.booking.empty.data': string;
|
|
69
102
|
'pisell2.appointment.deposit.close': string;
|
|
70
103
|
'pisell2.appointment.policy': string;
|
|
@@ -89,6 +122,17 @@ declare const _default: {
|
|
|
89
122
|
'pisell2.scan.order.store.status.exception': string;
|
|
90
123
|
'pisell2.scan.order.note.title': string;
|
|
91
124
|
'pisell2.scan.order.note.placeholder': string;
|
|
125
|
+
'pisell2.scan.order.fulfillment.title': string;
|
|
126
|
+
'pisell2.scan.order.fulfillment.table_service': string;
|
|
127
|
+
'pisell2.scan.order.fulfillment.pickup': string;
|
|
128
|
+
'pisell2.scan.order.current.table': string;
|
|
129
|
+
'pisell2.scan.order.pickup.ref.title': string;
|
|
130
|
+
'pisell2.scan.order.pickup.ref.heading': string;
|
|
131
|
+
'pisell2.scan.order.pickup.ref.description': string;
|
|
132
|
+
'pisell2.scan.order.pickup.ref.placeholder': string;
|
|
133
|
+
'pisell2.scan.order.products.title': string;
|
|
134
|
+
'pisell2.scan.order.products.empty.tip': string;
|
|
135
|
+
'pisell2.scan.order.submit.disabled.default': string;
|
|
92
136
|
'pisell2.appointment.booking.empty.data': string;
|
|
93
137
|
'pisell2.appointment.deposit.close': string;
|
|
94
138
|
'pisell2.appointment.policy': string;
|
|
@@ -113,6 +157,17 @@ declare const _default: {
|
|
|
113
157
|
'pisell2.scan.order.store.status.exception': string;
|
|
114
158
|
'pisell2.scan.order.note.title': string;
|
|
115
159
|
'pisell2.scan.order.note.placeholder': string;
|
|
160
|
+
'pisell2.scan.order.fulfillment.title': string;
|
|
161
|
+
'pisell2.scan.order.fulfillment.table_service': string;
|
|
162
|
+
'pisell2.scan.order.fulfillment.pickup': string;
|
|
163
|
+
'pisell2.scan.order.current.table': string;
|
|
164
|
+
'pisell2.scan.order.pickup.ref.title': string;
|
|
165
|
+
'pisell2.scan.order.pickup.ref.heading': string;
|
|
166
|
+
'pisell2.scan.order.pickup.ref.description': string;
|
|
167
|
+
'pisell2.scan.order.pickup.ref.placeholder': string;
|
|
168
|
+
'pisell2.scan.order.products.title': string;
|
|
169
|
+
'pisell2.scan.order.products.empty.tip': string;
|
|
170
|
+
'pisell2.scan.order.submit.disabled.default': string;
|
|
116
171
|
'pisell2.appointment.booking.empty.data': string;
|
|
117
172
|
'pisell2.appointment.deposit.close': string;
|
|
118
173
|
'pisell2.appointment.policy': string;
|
|
@@ -41,6 +41,17 @@ var locales_default = {
|
|
|
41
41
|
"pisell2.scan.order.store.status.exception": "The store is currently closed or in an abnormal state. Please contact staff.",
|
|
42
42
|
"pisell2.scan.order.note.title": "Order notes",
|
|
43
43
|
"pisell2.scan.order.note.placeholder": "Add order notes",
|
|
44
|
+
"pisell2.scan.order.fulfillment.title": "Fulfillment",
|
|
45
|
+
"pisell2.scan.order.fulfillment.table_service": "Table service",
|
|
46
|
+
"pisell2.scan.order.fulfillment.pickup": "Pickup",
|
|
47
|
+
"pisell2.scan.order.current.table": "Current table",
|
|
48
|
+
"pisell2.scan.order.pickup.ref.title": "Table Service",
|
|
49
|
+
"pisell2.scan.order.pickup.ref.heading": "Use any name you like",
|
|
50
|
+
"pisell2.scan.order.pickup.ref.description": "Enter your nickname, or anything fun!",
|
|
51
|
+
"pisell2.scan.order.pickup.ref.placeholder": "e.g. John",
|
|
52
|
+
"pisell2.scan.order.products.title": "Products",
|
|
53
|
+
"pisell2.scan.order.products.empty.tip": "Please select products",
|
|
54
|
+
"pisell2.scan.order.submit.disabled.default": "Order submission is currently disabled.",
|
|
44
55
|
"pisell2.appointment.booking.empty.data": "No data",
|
|
45
56
|
"pisell2.appointment.deposit.close": "Close",
|
|
46
57
|
"pisell2.appointment.policy": "You have read and agreed to this policy",
|
|
@@ -65,6 +76,17 @@ var locales_default = {
|
|
|
65
76
|
"pisell2.scan.order.store.status.exception": "当前店铺不在营业中或者状态异常,请联系工作人员",
|
|
66
77
|
"pisell2.scan.order.note.title": "备注",
|
|
67
78
|
"pisell2.scan.order.note.placeholder": "请输入备注",
|
|
79
|
+
"pisell2.scan.order.fulfillment.title": "取餐方式",
|
|
80
|
+
"pisell2.scan.order.fulfillment.table_service": "送餐到桌",
|
|
81
|
+
"pisell2.scan.order.fulfillment.pickup": "到店自取",
|
|
82
|
+
"pisell2.scan.order.current.table": "当前桌台",
|
|
83
|
+
"pisell2.scan.order.pickup.ref.title": "桌边服务",
|
|
84
|
+
"pisell2.scan.order.pickup.ref.heading": "随便起个名字吧",
|
|
85
|
+
"pisell2.scan.order.pickup.ref.description": "输入你的昵称,或任何有趣的名字!",
|
|
86
|
+
"pisell2.scan.order.pickup.ref.placeholder": "例如:小明",
|
|
87
|
+
"pisell2.scan.order.products.title": "商品",
|
|
88
|
+
"pisell2.scan.order.products.empty.tip": "请选择商品",
|
|
89
|
+
"pisell2.scan.order.submit.disabled.default": "当前暂不可下单",
|
|
68
90
|
"pisell2.appointment.booking.empty.data": "暂无数据",
|
|
69
91
|
"pisell2.appointment.deposit.close": "关闭",
|
|
70
92
|
"pisell2.appointment.policy": "您已仔细阅读并同意此协议",
|
|
@@ -89,6 +111,17 @@ var locales_default = {
|
|
|
89
111
|
"pisell2.scan.order.store.status.exception": "當前店鋪不在營業中或者狀態異常,請聯繫工作人員",
|
|
90
112
|
"pisell2.scan.order.note.title": "備註",
|
|
91
113
|
"pisell2.scan.order.note.placeholder": "請輸入備註",
|
|
114
|
+
"pisell2.scan.order.fulfillment.title": "取餐方式",
|
|
115
|
+
"pisell2.scan.order.fulfillment.table_service": "送餐到桌",
|
|
116
|
+
"pisell2.scan.order.fulfillment.pickup": "到店自取",
|
|
117
|
+
"pisell2.scan.order.current.table": "當前桌台",
|
|
118
|
+
"pisell2.scan.order.pickup.ref.title": "桌邊服務",
|
|
119
|
+
"pisell2.scan.order.pickup.ref.heading": "隨便起個名字吧",
|
|
120
|
+
"pisell2.scan.order.pickup.ref.description": "輸入你的暱稱,或任何有趣的名字!",
|
|
121
|
+
"pisell2.scan.order.pickup.ref.placeholder": "例如:小明",
|
|
122
|
+
"pisell2.scan.order.products.title": "商品",
|
|
123
|
+
"pisell2.scan.order.products.empty.tip": "請選擇商品",
|
|
124
|
+
"pisell2.scan.order.submit.disabled.default": "當前暫不可下單",
|
|
92
125
|
"pisell2.appointment.booking.empty.data": "暫無數據",
|
|
93
126
|
"pisell2.appointment.deposit.close": "关闭",
|
|
94
127
|
"pisell2.appointment.policy": "您已仔細閱讀並同意此協議",
|
|
@@ -113,6 +146,17 @@ var locales_default = {
|
|
|
113
146
|
"pisell2.scan.order.store.status.exception": "現在、店舗は営業時間外または状態が異常です。スタッフまでお問い合わせください。",
|
|
114
147
|
"pisell2.scan.order.note.title": "備考",
|
|
115
148
|
"pisell2.scan.order.note.placeholder": "備考を入力してください",
|
|
149
|
+
"pisell2.scan.order.fulfillment.title": "受け取り方法",
|
|
150
|
+
"pisell2.scan.order.fulfillment.table_service": "テーブルサービス",
|
|
151
|
+
"pisell2.scan.order.fulfillment.pickup": "ピックアップ",
|
|
152
|
+
"pisell2.scan.order.current.table": "現在のテーブル",
|
|
153
|
+
"pisell2.scan.order.pickup.ref.title": "テーブルサービス",
|
|
154
|
+
"pisell2.scan.order.pickup.ref.heading": "好きな名前をどうぞ",
|
|
155
|
+
"pisell2.scan.order.pickup.ref.description": "ニックネームや楽しい名前を入力してね!",
|
|
156
|
+
"pisell2.scan.order.pickup.ref.placeholder": "例: ジョン",
|
|
157
|
+
"pisell2.scan.order.products.title": "商品",
|
|
158
|
+
"pisell2.scan.order.products.empty.tip": "商品を選択してください",
|
|
159
|
+
"pisell2.scan.order.submit.disabled.default": "現在、注文を送信できません。",
|
|
116
160
|
"pisell2.appointment.booking.empty.data": "データなし",
|
|
117
161
|
"pisell2.appointment.deposit.close": "閉じる",
|
|
118
162
|
"pisell2.appointment.policy": "このポリシーを読み、同意しました",
|
|
@@ -137,6 +181,17 @@ var locales_default = {
|
|
|
137
181
|
"pisell2.scan.order.store.status.exception": "A loja está fechada no momento ou em estado anormal. Entre em contato com a equipe.",
|
|
138
182
|
"pisell2.scan.order.note.title": "Observações do pedido",
|
|
139
183
|
"pisell2.scan.order.note.placeholder": "Adicione observações do pedido",
|
|
184
|
+
"pisell2.scan.order.fulfillment.title": "Forma de retirada",
|
|
185
|
+
"pisell2.scan.order.fulfillment.table_service": "Serviço à mesa",
|
|
186
|
+
"pisell2.scan.order.fulfillment.pickup": "Retirada",
|
|
187
|
+
"pisell2.scan.order.current.table": "Mesa atual",
|
|
188
|
+
"pisell2.scan.order.pickup.ref.title": "Serviço à mesa",
|
|
189
|
+
"pisell2.scan.order.pickup.ref.heading": "Use o nome que quiser",
|
|
190
|
+
"pisell2.scan.order.pickup.ref.description": "Digite seu apelido ou algo divertido!",
|
|
191
|
+
"pisell2.scan.order.pickup.ref.placeholder": "Ex.: João",
|
|
192
|
+
"pisell2.scan.order.products.title": "Produtos",
|
|
193
|
+
"pisell2.scan.order.products.empty.tip": "Selecione produtos",
|
|
194
|
+
"pisell2.scan.order.submit.disabled.default": "No momento, não é possível enviar pedidos.",
|
|
140
195
|
"pisell2.appointment.booking.empty.data": "Sem dados",
|
|
141
196
|
"pisell2.appointment.deposit.close": "Fechar",
|
|
142
197
|
"pisell2.appointment.policy": "Você leu e concordou com esta política",
|
|
@@ -11,6 +11,15 @@ export interface ScanOrderProps {
|
|
|
11
11
|
entryContext?: ScanOrderEntryContext;
|
|
12
12
|
}
|
|
13
13
|
export declare type ScanOrderStepKey = 'init' | 'product' | 'check' | 'error';
|
|
14
|
+
export declare type ScanOrderEntryMode = 'default' | 'additional_order';
|
|
15
|
+
/** 步骤缓存中记录的 gate 标记(对应协议 / 表单 / 人数 modal 是否已走过) */
|
|
16
|
+
export declare type ScanOrderGateKey = 'policyAccepted' | 'formSubmitted' | 'paxEntered';
|
|
17
|
+
/** 存入 sessionStorage 桶内的 entryContext 快照(用于校验是否同一扫码场景) */
|
|
18
|
+
export interface ScanOrderCachedEntryContext {
|
|
19
|
+
resourceId?: string;
|
|
20
|
+
hasOrderId?: boolean;
|
|
21
|
+
biz?: string;
|
|
22
|
+
}
|
|
14
23
|
export interface ScanOrderViewModel {
|
|
15
24
|
menuItems: any[];
|
|
16
25
|
cartItems: any[];
|
|
@@ -30,8 +39,14 @@ export interface ScanOrderContextValue {
|
|
|
30
39
|
stepList: ScanOrderStepKey[];
|
|
31
40
|
viewModel: ScanOrderViewModel;
|
|
32
41
|
footerActionText: string;
|
|
42
|
+
tableName: string;
|
|
43
|
+
entryMode: ScanOrderEntryMode;
|
|
44
|
+
submitDisabledTips: string;
|
|
33
45
|
isReady: boolean;
|
|
34
46
|
setCurrentStep: (step: ScanOrderStepKey) => void;
|
|
47
|
+
setTableName: (name: string) => void;
|
|
48
|
+
setEntryMode: (mode: ScanOrderEntryMode) => void;
|
|
49
|
+
setSubmitDisabledTips: (tips: string) => void;
|
|
35
50
|
goToStep: (step: ScanOrderStepKey) => void;
|
|
36
51
|
nextStep: () => void;
|
|
37
52
|
prevStep: () => void;
|
|
@@ -39,6 +54,14 @@ export interface ScanOrderContextValue {
|
|
|
39
54
|
runModuleAction: (actionName: string, ...args: any[]) => Promise<any>;
|
|
40
55
|
setFooterActionText: (text: string) => void;
|
|
41
56
|
updateOrderNote: (note: string) => Promise<void>;
|
|
57
|
+
/** 步骤缓存 hydrate 是否已完成(未完成时不建议写入 step,避免覆盖缓存) */
|
|
58
|
+
isCacheHydrated: boolean;
|
|
59
|
+
/** 将 gate 标记为已完成(写入 sessionStorage 桶) */
|
|
60
|
+
markGate: (flag: ScanOrderGateKey) => void;
|
|
61
|
+
/** 查询某个 gate 是否已完成 */
|
|
62
|
+
isGatePassed: (flag: ScanOrderGateKey) => boolean;
|
|
63
|
+
/** 整桶清空(提交成功 / restoreOrder 等场景) */
|
|
64
|
+
clearStepCache: () => void;
|
|
42
65
|
}
|
|
43
66
|
export interface ScanOrderProviderProps {
|
|
44
67
|
entryContext: ScanOrderEntryContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -59,7 +59,8 @@ var GroupModal = ({
|
|
|
59
59
|
if (type === "edit" && data) {
|
|
60
60
|
form.setFieldsValue({
|
|
61
61
|
title: data.title,
|
|
62
|
-
code: data.code
|
|
62
|
+
code: data.code,
|
|
63
|
+
description: data == null ? void 0 : data.description
|
|
63
64
|
});
|
|
64
65
|
} else {
|
|
65
66
|
form.resetFields();
|
|
@@ -92,86 +93,84 @@ var GroupModal = ({
|
|
|
92
93
|
destroyOnClose: true,
|
|
93
94
|
footer: /* @__PURE__ */ import_react.default.createElement("div", { style: { textAlign: "right" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: "small" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { onClick: handleCancel }, import_utils.locales.getText("registry.button.cancel")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", onClick: handleOk }, import_utils.locales.getText("registry.button.save"))))
|
|
94
95
|
},
|
|
95
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
96
|
-
import_antd.Form,
|
|
96
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", requiredMark: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
97
|
+
import_antd.Form.Item,
|
|
97
98
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
103
|
-
import_antd.Form.Item,
|
|
104
|
-
{
|
|
105
|
-
name: "title",
|
|
106
|
-
label: import_utils.locales.getText("registry.form.title"),
|
|
107
|
-
rules: [
|
|
108
|
-
{
|
|
109
|
-
required: true,
|
|
110
|
-
message: import_utils.locales.getText("registry.message.required")
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
115
|
-
import_materials.BaseTranslation,
|
|
99
|
+
name: "title",
|
|
100
|
+
label: import_utils.locales.getText("registry.form.title"),
|
|
101
|
+
rules: [
|
|
116
102
|
{
|
|
117
|
-
|
|
103
|
+
required: true,
|
|
104
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
118
105
|
}
|
|
119
|
-
|
|
120
|
-
|
|
106
|
+
]
|
|
107
|
+
},
|
|
121
108
|
/* @__PURE__ */ import_react.default.createElement(
|
|
122
|
-
|
|
109
|
+
import_materials.BaseTranslation,
|
|
123
110
|
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
if (/[\.]{2,}|[\_]{2,}/.test(value)) {
|
|
156
|
-
return Promise.reject(
|
|
157
|
-
new Error(
|
|
158
|
-
getText("registry.message.code.consecutive")
|
|
159
|
-
)
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
return Promise.resolve();
|
|
111
|
+
placeholder: import_utils.locales.getText("registry.form.name.placeholder")
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
115
|
+
import_antd.Form.Item,
|
|
116
|
+
{
|
|
117
|
+
name: "code",
|
|
118
|
+
label: import_utils.locales.getText("registry.form.code"),
|
|
119
|
+
rules: [
|
|
120
|
+
{
|
|
121
|
+
required: true,
|
|
122
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
validator: (_, value) => {
|
|
126
|
+
if (!value) return Promise.resolve();
|
|
127
|
+
if (!/^[a-z0-9\._]+$/.test(value)) {
|
|
128
|
+
return Promise.reject(
|
|
129
|
+
new Error(getText("registry.message.code.format"))
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
if (!/^[a-z]/.test(value)) {
|
|
133
|
+
return Promise.reject(
|
|
134
|
+
new Error(getText("registry.message.code.start"))
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
if (/[\._]$/.test(value)) {
|
|
138
|
+
return Promise.reject(
|
|
139
|
+
new Error(getText("registry.message.code.end"))
|
|
140
|
+
);
|
|
163
141
|
}
|
|
142
|
+
if (/[\.]{2,}|[\_]{2,}/.test(value)) {
|
|
143
|
+
return Promise.reject(
|
|
144
|
+
new Error(getText("registry.message.code.consecutive"))
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
return Promise.resolve();
|
|
164
148
|
}
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
168
|
-
import_antd.Input,
|
|
169
|
-
{
|
|
170
|
-
placeholder: import_utils.locales.getText("registry.form.code.placeholder")
|
|
171
149
|
}
|
|
172
|
-
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
153
|
+
import_antd.Input,
|
|
154
|
+
{
|
|
155
|
+
placeholder: import_utils.locales.getText("registry.form.code.placeholder")
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
import_antd.Form.Item,
|
|
160
|
+
{
|
|
161
|
+
name: "description",
|
|
162
|
+
label: import_utils.locales.getText("registry.form.description")
|
|
163
|
+
},
|
|
164
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
165
|
+
import_materials.BaseTranslation,
|
|
166
|
+
{
|
|
167
|
+
placeholder: import_utils.locales.getText(
|
|
168
|
+
"registry.form.description.placeholder"
|
|
169
|
+
),
|
|
170
|
+
renderMode: "edit"
|
|
171
|
+
}
|
|
173
172
|
)
|
|
174
|
-
)
|
|
173
|
+
))
|
|
175
174
|
);
|
|
176
175
|
};
|
|
177
176
|
var GroupModal_default = GroupModal;
|