@pisell/private-materials 6.3.147 → 6.3.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +153 -145
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.js +10 -10
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.js +27 -20
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.js +6 -3
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/es/components/ecocup/components/SettingModal/index.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.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/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/venueBooking/context.js +17 -12
- package/es/components/venueBooking/index.js +50 -12
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/plus/orderList/components/HandleActions.d.ts +0 -1
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/es/plus/orderList/components/Reset.d.ts +0 -1
- package/es/plus/orderList/components/Toolbar.d.ts +0 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.js +8 -1
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.js +2 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.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/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/venueBooking/context.js +4 -2
- package/lib/components/venueBooking/index.js +51 -7
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/lib/plus/orderList/components/Reset.d.ts +0 -1
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
- package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/package.json +1 -1
- package/build/lowcode.zip +0 -0
|
@@ -896,18 +896,25 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
896
896
|
// 设置时间切片
|
|
897
897
|
var getResourceTimeSlot = /*#__PURE__*/function () {
|
|
898
898
|
var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(index) {
|
|
899
|
-
var
|
|
899
|
+
var _appointmentBooking$o4, _basic$service_time;
|
|
900
|
+
var _getResourceList, resourceCodes, split, _ref26, basic, serviceTime, code, data;
|
|
900
901
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
901
902
|
while (1) switch (_context12.prev = _context12.next) {
|
|
902
903
|
case 0:
|
|
903
|
-
_getResourceList = getResourceList(), resourceCodes = _getResourceList.resourceCodes;
|
|
904
|
+
_getResourceList = getResourceList(), resourceCodes = _getResourceList.resourceCodes; // 切片间隔, 默认10分钟
|
|
905
|
+
split = 10;
|
|
906
|
+
_ref26 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o4 = appointmentBooking.otherParams) === null || _appointmentBooking$o4 === void 0 ? void 0 : _appointmentBooking$o4.appointmentBoard) || {}, basic = _ref26.basic;
|
|
907
|
+
serviceTime = basic === null || basic === void 0 || (_basic$service_time = basic.service_time) === null || _basic$service_time === void 0 ? void 0 : _basic$service_time.value;
|
|
908
|
+
if (serviceTime) {
|
|
909
|
+
split = serviceTime;
|
|
910
|
+
}
|
|
904
911
|
code = resourceCodes === null || resourceCodes === void 0 ? void 0 : resourceCodes[index || 0];
|
|
905
|
-
_context12.next =
|
|
906
|
-
return appointmentBooking.getTimeSlotByAllResources(code);
|
|
907
|
-
case
|
|
912
|
+
_context12.next = 8;
|
|
913
|
+
return appointmentBooking.getTimeSlotByAllResources(code, split);
|
|
914
|
+
case 8:
|
|
908
915
|
data = _context12.sent;
|
|
909
916
|
setTimes(data || []);
|
|
910
|
-
case
|
|
917
|
+
case 10:
|
|
911
918
|
case "end":
|
|
912
919
|
return _context12.stop();
|
|
913
920
|
}
|
|
@@ -931,8 +938,8 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
931
938
|
* @Date: 2025-04-21 11:47
|
|
932
939
|
*/
|
|
933
940
|
export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
934
|
-
var
|
|
935
|
-
currentStepParams =
|
|
941
|
+
var _ref27 = useAppointmentBookingContext(),
|
|
942
|
+
currentStepParams = _ref27.currentStepParams;
|
|
936
943
|
var _useAppointmentBookin5 = useAppointmentBookingResource(),
|
|
937
944
|
getResourceList = _useAppointmentBookin5.getResourceList;
|
|
938
945
|
var _useAppointmentBookin6 = useAppointmentBookingSetting(),
|
|
@@ -941,7 +948,7 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
941
948
|
var _useAppointmentBookin7 = useAppointmentBookingStep(),
|
|
942
949
|
nextStep = _useAppointmentBookin7.nextStep;
|
|
943
950
|
var checkSkipResourceStep = /*#__PURE__*/function () {
|
|
944
|
-
var
|
|
951
|
+
var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
945
952
|
var _getResourceList2, resources, accountLists, _currentAppointmentBo, isSystem, isSkip, form_code, renderLists, _isSkip;
|
|
946
953
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
947
954
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -997,7 +1004,7 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
997
1004
|
}, _callee13, null, [[0, 22]]);
|
|
998
1005
|
}));
|
|
999
1006
|
return function checkSkipResourceStep() {
|
|
1000
|
-
return
|
|
1007
|
+
return _ref28.apply(this, arguments);
|
|
1001
1008
|
};
|
|
1002
1009
|
}();
|
|
1003
1010
|
return {
|
|
@@ -1013,15 +1020,15 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
1013
1020
|
* @Date: 2025-04-24 18:15
|
|
1014
1021
|
*/
|
|
1015
1022
|
export var useAppointmentBookingSetting = function useAppointmentBookingSetting() {
|
|
1016
|
-
var _appointmentBooking$
|
|
1023
|
+
var _appointmentBooking$o5, _appointmentBooking$o6, _appointmentBooking$o7;
|
|
1017
1024
|
var utils = contextUtils();
|
|
1018
|
-
var
|
|
1019
|
-
appointmentBooking =
|
|
1020
|
-
var
|
|
1021
|
-
bookingProcess =
|
|
1022
|
-
bookingSubject =
|
|
1023
|
-
customPageId =
|
|
1024
|
-
channel =
|
|
1025
|
+
var _ref29 = useAppointmentBookingContext(),
|
|
1026
|
+
appointmentBooking = _ref29.appointmentBooking;
|
|
1027
|
+
var _ref30 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o5 = appointmentBooking.otherParams) === null || _appointmentBooking$o5 === void 0 ? void 0 : _appointmentBooking$o5.productModuleParams) || {},
|
|
1028
|
+
bookingProcess = _ref30.bookingProcess,
|
|
1029
|
+
bookingSubject = _ref30.bookingSubject,
|
|
1030
|
+
customPageId = _ref30.customPageId,
|
|
1031
|
+
channel = _ref30.channel;
|
|
1025
1032
|
|
|
1026
1033
|
// 设置缓存
|
|
1027
1034
|
var setOtherData = function setOtherData(key, val) {
|
|
@@ -1041,13 +1048,13 @@ export var useAppointmentBookingSetting = function useAppointmentBookingSetting(
|
|
|
1041
1048
|
// 主体是否是表单
|
|
1042
1049
|
isFormSubject: (bookingSubject === null || bookingSubject === void 0 ? void 0 : bookingSubject.type) === 'form',
|
|
1043
1050
|
// 是否是零售模版
|
|
1044
|
-
isRetailTemplate: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$
|
|
1051
|
+
isRetailTemplate: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o6 = appointmentBooking.otherParams) === null || _appointmentBooking$o6 === void 0 ? void 0 : _appointmentBooking$o6.isRetailTemplate) || false,
|
|
1045
1052
|
customPageId: customPageId,
|
|
1046
1053
|
channel: channel,
|
|
1047
1054
|
bookingSubject: bookingSubject,
|
|
1048
1055
|
setOtherData: setOtherData,
|
|
1049
1056
|
getOtherData: getOtherData,
|
|
1050
1057
|
formName: formName,
|
|
1051
|
-
bookingSetting: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$
|
|
1058
|
+
bookingSetting: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o7 = appointmentBooking.otherParams) === null || _appointmentBooking$o7 === void 0 ? void 0 : _appointmentBooking$o7.bookingSetting) || {}
|
|
1052
1059
|
};
|
|
1053
1060
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import { isMobile, locales } from '@pisell/utils';
|
|
1
|
+
import React, { useEffect, useMemo } from 'react';
|
|
2
|
+
import { isIpad, isMobile, locales } from '@pisell/utils';
|
|
3
3
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
4
4
|
import { AppointmentBookingProvider } from "./context";
|
|
5
5
|
import Content from "./components/Content";
|
|
@@ -13,6 +13,9 @@ var AppointmentBooking = function AppointmentBooking() {
|
|
|
13
13
|
locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
|
|
14
14
|
var utils = contextUtils();
|
|
15
15
|
var appointmentBooking = useAppointmentBooking();
|
|
16
|
+
var isMobileLayout = useMemo(function () {
|
|
17
|
+
return isMobile() && !isIpad();
|
|
18
|
+
}, []);
|
|
16
19
|
useEffect(function () {
|
|
17
20
|
var _appointmentBooking$o;
|
|
18
21
|
var _ref = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.productModuleParams) || {},
|
|
@@ -58,7 +61,7 @@ var AppointmentBooking = function AppointmentBooking() {
|
|
|
58
61
|
};
|
|
59
62
|
}, []);
|
|
60
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "parallel-booking-wrap ".concat(
|
|
64
|
+
className: "parallel-booking-wrap ".concat(isMobileLayout ? 'parallel-booking-mobile-wrap' : '')
|
|
62
65
|
}, /*#__PURE__*/React.createElement(AppointmentBookingProvider, null, /*#__PURE__*/React.createElement(Content, null)));
|
|
63
66
|
};
|
|
64
67
|
export default AppointmentBooking;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
166
166
|
export declare const getDuration: (duration: number | {
|
|
167
167
|
type: string;
|
|
168
168
|
value: number;
|
|
169
|
-
}) => number |
|
|
169
|
+
}) => number | {
|
|
170
170
|
type: string;
|
|
171
171
|
value: number;
|
|
172
|
-
};
|
|
172
|
+
} | "flexible";
|
|
173
173
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
174
174
|
export declare const getIsEdit: (state: any) => boolean;
|
|
175
175
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PosProps, RouteType } from './const';
|
|
2
3
|
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
3
4
|
action: RouteType;
|