@pisell/private-materials 3.3.30 → 3.3.32
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +9 -3
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/forms.js +2 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +5 -14
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/index.js +6 -5
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useAddHolder.js +2 -1
- package/es/components/booking/info/hooks/useGetHolderList.js +2 -2
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +9 -0
- package/es/components/booking/info/service/serve.js +21 -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/info/service2/utils.d.ts +3 -2
- package/es/components/booking/info/service2/utils.js +22 -17
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.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 +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/app.d.ts +1 -2
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- 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 +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +2 -0
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/forms.js +1 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +5 -20
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/index.js +2 -2
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useAddHolder.js +1 -1
- package/lib/components/booking/info/hooks/useGetHolderList.js +3 -3
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +9 -0
- package/lib/components/booking/info/service/serve.js +3 -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/info/service2/utils.d.ts +3 -2
- package/lib/components/booking/info/service2/utils.js +16 -11
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.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 +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/app.d.ts +1 -2
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- 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 +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/utils/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
10
10
|
import { getDiscountTime, flexibleObj } from "../../utils";
|
|
11
11
|
import { formatAmount } from '@pisell/utils';
|
|
12
12
|
import { isDayBooking, isDayBookingProduct } from "../../info/service2/utils";
|
|
13
|
-
var getRelationDetailsTotal = function getRelationDetailsTotal(relation_details) {
|
|
13
|
+
export var getRelationDetailsTotal = function getRelationDetailsTotal(relation_details) {
|
|
14
14
|
var total = 0;
|
|
15
15
|
var _iterator = _createForOfIteratorHelper(relation_details),
|
|
16
16
|
_step;
|
|
@@ -255,10 +255,16 @@ var Footer = function Footer(props) {
|
|
|
255
255
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
256
256
|
while (1) switch (_context.prev = _context.next) {
|
|
257
257
|
case 0:
|
|
258
|
-
if (
|
|
258
|
+
if (order_id) {
|
|
259
259
|
_context.next = 2;
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
|
+
return _context.abrupt("return");
|
|
263
|
+
case 2:
|
|
264
|
+
if (!(isTerminal !== null && isTerminal !== void 0 && isTerminal())) {
|
|
265
|
+
_context.next = 4;
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
262
268
|
return _context.abrupt("return", interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
|
|
263
269
|
module: 'booking',
|
|
264
270
|
key: 'booking_checkout',
|
|
@@ -267,7 +273,7 @@ var Footer = function Footer(props) {
|
|
|
267
273
|
callbackType: 'pisell2'
|
|
268
274
|
}
|
|
269
275
|
}));
|
|
270
|
-
case
|
|
276
|
+
case 4:
|
|
271
277
|
state.action({
|
|
272
278
|
type: 'pisell1.handlePayment',
|
|
273
279
|
data: {
|
|
@@ -277,7 +283,7 @@ var Footer = function Footer(props) {
|
|
|
277
283
|
state === null || state === void 0 || state.callback();
|
|
278
284
|
}
|
|
279
285
|
});
|
|
280
|
-
case
|
|
286
|
+
case 5:
|
|
281
287
|
case "end":
|
|
282
288
|
return _context.stop();
|
|
283
289
|
}
|
|
@@ -59,7 +59,8 @@ var Forms = Provider(function (props) {
|
|
|
59
59
|
case 0:
|
|
60
60
|
_data = {
|
|
61
61
|
formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
|
|
62
|
-
customer_id: client === null || client === void 0 ? void 0 : client.id
|
|
62
|
+
customer_id: client === null || client === void 0 ? void 0 : client.id,
|
|
63
|
+
is_franchisor: formDataConfig.is_franchisor
|
|
63
64
|
}) : _objectSpread({}, formDataConfig)
|
|
64
65
|
};
|
|
65
66
|
if (formDataConfig.data_range === 'customer' && !isWalkIn(client === null || client === void 0 ? void 0 : client.id)) {
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<any>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -18,6 +18,7 @@ import { getProductTotalPrice } from "../utils";
|
|
|
18
18
|
import useEngineContext from "../../../../es/hooks/useEngineContext";
|
|
19
19
|
import { locales } from "@pisell/utils";
|
|
20
20
|
import { PisellModal } from "@pisell/materials";
|
|
21
|
+
import { getProductPrice } from "../info/service/serve";
|
|
21
22
|
var formatBundleItemMap = function formatBundleItemMap(product) {
|
|
22
23
|
return product.bundle_group.reduce(function (pre, cur) {
|
|
23
24
|
var curObj = {};
|
|
@@ -134,22 +135,12 @@ var useQuotation = function useQuotation(state, dispatch) {
|
|
|
134
135
|
return _context.abrupt("return");
|
|
135
136
|
case 2:
|
|
136
137
|
_context.next = 4;
|
|
137
|
-
return
|
|
138
|
-
skip: 1,
|
|
139
|
-
num: 500,
|
|
140
|
-
extension_type: state.renderType === 'eventBooking' ? undefined : ['product_appointment', 'appointment_ticket', 'service_product', 'session_product', 'session_ticket'],
|
|
141
|
-
with: ['category', 'resourceRelation'],
|
|
138
|
+
return getProductPrice({
|
|
142
139
|
ids: cartValueRef.current.map(function (item) {
|
|
143
140
|
return item.product_id;
|
|
144
141
|
}),
|
|
145
|
-
open_quotation: 1,
|
|
146
|
-
with_schedule: 1,
|
|
147
|
-
with_count: ['bundleGroup', 'optionGroup'],
|
|
148
|
-
order_by_string: 'sort:desc',
|
|
149
|
-
status: 'published',
|
|
150
142
|
schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date,
|
|
151
|
-
customer_id: params === null || params === void 0 ? void 0 : params.customer_id
|
|
152
|
-
open_bundle: 1
|
|
143
|
+
customer_id: params === null || params === void 0 ? void 0 : params.customer_id
|
|
153
144
|
});
|
|
154
145
|
case 4:
|
|
155
146
|
data = _context.sent;
|
|
@@ -177,13 +168,13 @@ var useQuotation = function useQuotation(state, dispatch) {
|
|
|
177
168
|
return getCartQuotation(params);
|
|
178
169
|
case 2:
|
|
179
170
|
data = _context2.sent;
|
|
180
|
-
if (data) {
|
|
171
|
+
if (data !== null && data !== void 0 && data.data) {
|
|
181
172
|
_context2.next = 5;
|
|
182
173
|
break;
|
|
183
174
|
}
|
|
184
175
|
return _context2.abrupt("return");
|
|
185
176
|
case 5:
|
|
186
|
-
_setNewCartValue = setNewCartValue(cartValueRef.current, data.
|
|
177
|
+
_setNewCartValue = setNewCartValue(cartValueRef.current, data.data), isChange = _setNewCartValue.isChange, newCartValue = _setNewCartValue.value, isNotFoundBundle = _setNewCartValue.isNotFoundBundle, notFoundProducts = _setNewCartValue.notFoundProducts;
|
|
187
178
|
if (!isNotFoundBundle) {
|
|
188
179
|
_context2.next = 10;
|
|
189
180
|
break;
|
|
@@ -156,11 +156,12 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
156
156
|
handleOpenClientModal();
|
|
157
157
|
});
|
|
158
158
|
var handleAddPet = function handleAddPet(_client, cb) {
|
|
159
|
-
var _state$pet$formData;
|
|
159
|
+
var _state$pet$formData, _state$pet$formData2;
|
|
160
160
|
var _data = {
|
|
161
161
|
formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
|
|
162
|
-
customer_id: _client.id
|
|
163
|
-
|
|
162
|
+
customer_id: _client.id,
|
|
163
|
+
is_franchisor: (_state$pet$formData = state.pet.formData) === null || _state$pet$formData === void 0 || (_state$pet$formData = _state$pet$formData[0]) === null || _state$pet$formData === void 0 ? void 0 : _state$pet$formData.is_franchisor
|
|
164
|
+
}) : _objectSpread({}, ((_state$pet$formData2 = state.pet.formData) === null || _state$pet$formData2 === void 0 ? void 0 : _state$pet$formData2[0]) || {})
|
|
164
165
|
};
|
|
165
166
|
_data.customerId = _client.id;
|
|
166
167
|
state.action({
|
|
@@ -194,7 +195,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
194
195
|
});
|
|
195
196
|
};
|
|
196
197
|
var previewItemTitleRender = useMemoizedFn(function (value, index, values) {
|
|
197
|
-
var _value$customer, _value$customer2, _value$customer3, _value$customer4, _state$pet$
|
|
198
|
+
var _value$customer, _value$customer2, _value$customer3, _value$customer4, _state$pet$formData3;
|
|
198
199
|
var title = getNickname(value.customer) || (value === null || value === void 0 || (_value$customer = value.customer) === null || _value$customer === void 0 ? void 0 : _value$customer.email) || (value === null || value === void 0 || (_value$customer2 = value.customer) === null || _value$customer2 === void 0 ? void 0 : _value$customer2.phone) || '';
|
|
199
200
|
if ((value === null || value === void 0 || (_value$customer3 = value.customer) === null || _value$customer3 === void 0 ? void 0 : _value$customer3.id) === prevCustomerId.current) {
|
|
200
201
|
if (values.length === index + 1) {
|
|
@@ -208,7 +209,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
208
209
|
}
|
|
209
210
|
return /*#__PURE__*/React.createElement("div", {
|
|
210
211
|
className: "pisell-lowcode__booking-pet-title"
|
|
211
|
-
}, title, " ' ", ((_state$pet$
|
|
212
|
+
}, title, " ' ", ((_state$pet$formData3 = state.pet.formData) === null || _state$pet$formData3 === void 0 || (_state$pet$formData3 = _state$pet$formData3[0]) === null || _state$pet$formData3 === void 0 ? void 0 : _state$pet$formData3.title) || '');
|
|
212
213
|
});
|
|
213
214
|
var isShowAddBtn = useMemo(function () {
|
|
214
215
|
var _state$pet, _state$pet2;
|
|
@@ -85,7 +85,8 @@ var useAddHolder = function useAddHolder(state, dispatch) {
|
|
|
85
85
|
var _state$client, _state$client2;
|
|
86
86
|
var _data = {
|
|
87
87
|
formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
|
|
88
|
-
customer_id: (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id
|
|
88
|
+
customer_id: (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id,
|
|
89
|
+
is_franchisor: formDataConfig.is_franchisor
|
|
89
90
|
}) : _objectSpread({}, formDataConfig)
|
|
90
91
|
};
|
|
91
92
|
var isWalkInBol = isWalkIn((_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id);
|
|
@@ -9,7 +9,7 @@ var useGetHolderList = function useGetHolderList(state, dispatch) {
|
|
|
9
9
|
holder = _useHolderConfig.holder,
|
|
10
10
|
appointment_subject = _useHolderConfig.appointment_subject;
|
|
11
11
|
var getHolders = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12
|
-
var _state$client, _state$client2;
|
|
12
|
+
var _state$client, _holder$form, _state$client2;
|
|
13
13
|
var params, data;
|
|
14
14
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15
15
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -22,7 +22,7 @@ var useGetHolderList = function useGetHolderList(state, dispatch) {
|
|
|
22
22
|
case 2:
|
|
23
23
|
params = {
|
|
24
24
|
form_id: appointment_subject.form_id,
|
|
25
|
-
source_shop_customer: holder === null || holder === void 0 ? void 0 :
|
|
25
|
+
source_shop_customer: holder === null || holder === void 0 || (_holder$form = holder.form) === null || _holder$form === void 0 ? void 0 : _holder$form.is_franchisor,
|
|
26
26
|
customer_id: holder.data_range === 'customer' ? (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id : undefined,
|
|
27
27
|
skip: 1,
|
|
28
28
|
num: 100
|
|
@@ -9,3 +9,12 @@ export declare const getProductDetail: (id: string, params: any) => Promise<any>
|
|
|
9
9
|
* @Date: 2024-12-23 17:06
|
|
10
10
|
*/
|
|
11
11
|
export declare const postMultiDay: (id: string, params: any) => Promise<any>;
|
|
12
|
+
/**
|
|
13
|
+
* 批量查询指定商品的最新价格
|
|
14
|
+
* @param params
|
|
15
|
+
*/
|
|
16
|
+
export declare const getProductPrice: (params: {
|
|
17
|
+
ids: number[];
|
|
18
|
+
customer_id: number;
|
|
19
|
+
schedule_date: string;
|
|
20
|
+
}) => Promise<any>;
|
|
@@ -46,4 +46,25 @@ export var postMultiDay = /*#__PURE__*/function () {
|
|
|
46
46
|
return function postMultiDay(_x3, _x4) {
|
|
47
47
|
return _ref2.apply(this, arguments);
|
|
48
48
|
};
|
|
49
|
+
}();
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 批量查询指定商品的最新价格
|
|
53
|
+
* @param params
|
|
54
|
+
*/
|
|
55
|
+
export var getProductPrice = /*#__PURE__*/function () {
|
|
56
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
57
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
58
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
59
|
+
case 0:
|
|
60
|
+
return _context3.abrupt("return", request.getRequest().post("/shop/product/query/price", params));
|
|
61
|
+
case 1:
|
|
62
|
+
case "end":
|
|
63
|
+
return _context3.stop();
|
|
64
|
+
}
|
|
65
|
+
}, _callee3);
|
|
66
|
+
}));
|
|
67
|
+
return function getProductPrice(_x5) {
|
|
68
|
+
return _ref3.apply(this, arguments);
|
|
69
|
+
};
|
|
49
70
|
}();
|
|
@@ -69,8 +69,8 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
|
|
|
69
69
|
_id: any;
|
|
70
70
|
name: any;
|
|
71
71
|
price: any;
|
|
72
|
-
total:
|
|
73
|
-
origin_total:
|
|
72
|
+
total: number;
|
|
73
|
+
origin_total: number;
|
|
74
74
|
num: any;
|
|
75
75
|
image: any;
|
|
76
76
|
isShowNote: boolean;
|
|
@@ -90,6 +90,7 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
|
|
|
90
90
|
isNormalProduct: boolean;
|
|
91
91
|
locale: any;
|
|
92
92
|
symbol: any;
|
|
93
|
+
relation_products: any;
|
|
93
94
|
items: any[];
|
|
94
95
|
}[];
|
|
95
96
|
/**
|
|
@@ -30,6 +30,7 @@ import { isShowAddTime } from "../utils";
|
|
|
30
30
|
import { formatResources } from "../service/addService/utils";
|
|
31
31
|
import { getProductExtend } from "../../info2/service/addService/utils";
|
|
32
32
|
import { getErrorList as getErrorListInfo2 } from "../../info2/utilsByBooking";
|
|
33
|
+
import { getRelationDetailsTotal } from "../../components/footer/amount";
|
|
33
34
|
locales.init(localeTexts, localStorage.getItem('umi_locale') || 'en');
|
|
34
35
|
export var formatActiveKey = function formatActiveKey(lists, platform, isEdit) {
|
|
35
36
|
if (!(lists !== null && lists !== void 0 && lists.length)) return [];
|
|
@@ -598,6 +599,9 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
|
|
|
598
599
|
end_date: (item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.endDate) || (item === null || item === void 0 || (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.end_date)
|
|
599
600
|
}, parallelResourceOtherParams);
|
|
600
601
|
};
|
|
602
|
+
var calcAddTimeTotalPrice = function calcAddTimeTotalPrice(total, addTimeProducts) {
|
|
603
|
+
return (Number(total) || 0) + getRelationDetailsTotal(addTimeProducts || []);
|
|
604
|
+
};
|
|
601
605
|
|
|
602
606
|
/**
|
|
603
607
|
* @title: 格式化商品数据
|
|
@@ -615,7 +619,7 @@ export var formatProducts = function formatProducts(lists, state) {
|
|
|
615
619
|
var normalList = [];
|
|
616
620
|
var groupList = [];
|
|
617
621
|
var formItem = function formItem(item) {
|
|
618
|
-
var _item$_extend9, _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19,
|
|
622
|
+
var _item$_extend9, _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20, _item$_extend21, _resourceItem, _item$_extend22, _item$_extend23, _item$_extend24, _item$_extend25, _item$_extend26;
|
|
619
623
|
var _isDayBookingProduct = isDayBookingProduct(item, state);
|
|
620
624
|
var clientTitle = getHolderName(state, item === null || item === void 0 || (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.holder_id);
|
|
621
625
|
var options = formatOptions(item === null || item === void 0 || (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 || (_item$_extend10 = _item$_extend10.other) === null || _item$_extend10 === void 0 ? void 0 : _item$_extend10.option);
|
|
@@ -635,28 +639,29 @@ export var formatProducts = function formatProducts(lists, state) {
|
|
|
635
639
|
_id: item === null || item === void 0 ? void 0 : item._id,
|
|
636
640
|
name: item === null || item === void 0 ? void 0 : item.title,
|
|
637
641
|
price: item === null || item === void 0 || (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.price,
|
|
638
|
-
total: item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.total,
|
|
639
|
-
origin_total: item === null || item === void 0 || (_item$
|
|
642
|
+
total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.total, item === null || item === void 0 || (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.relation_details),
|
|
643
|
+
origin_total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.origin_total, item === null || item === void 0 || (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.relation_details),
|
|
640
644
|
num: item === null || item === void 0 ? void 0 : item._extend.quantity,
|
|
641
645
|
image: item === null || item === void 0 ? void 0 : item.cover,
|
|
642
646
|
isShowNote: true,
|
|
643
647
|
note: item === null || item === void 0 ? void 0 : item.note,
|
|
644
|
-
like_status: item === null || item === void 0 || (_item$
|
|
648
|
+
like_status: item === null || item === void 0 || (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.like_status,
|
|
645
649
|
bundle: bundle,
|
|
646
650
|
options: options,
|
|
647
651
|
errorMessage: errorMessage,
|
|
648
|
-
product_option_string: item === null || item === void 0 || (_item$
|
|
649
|
-
discount_reason: item === null || item === void 0 || (_item$
|
|
650
|
-
resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$
|
|
652
|
+
product_option_string: item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.product_option_string,
|
|
653
|
+
discount_reason: item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.discount_reason,
|
|
654
|
+
resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.resource,
|
|
651
655
|
relation_form_name: isNormalProduct ? '' : ((_resourceItem = resourceItem) === null || _resourceItem === void 0 ? void 0 : _resourceItem.labelText) || item.relation_form_name,
|
|
652
656
|
holder_title: clientTitle,
|
|
653
|
-
start_date: !isNormalProduct ? item === null || item === void 0 || (_item$
|
|
654
|
-
end_date: !isNormalProduct ? item === null || item === void 0 || (_item$
|
|
655
|
-
holder_id: (item === null || item === void 0 || (_item$
|
|
657
|
+
start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.start_date : '',
|
|
658
|
+
end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.end_date : '',
|
|
659
|
+
holder_id: (item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.holder_id) || 0,
|
|
656
660
|
isNormalProduct: isNormalProduct,
|
|
657
661
|
locale: state.locale,
|
|
658
662
|
symbol: state.amountSymbol,
|
|
659
|
-
|
|
663
|
+
relation_products: (item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.relation_details) || [],
|
|
664
|
+
items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.items) || [])
|
|
660
665
|
}, generalParams), {}, {
|
|
661
666
|
_origin: item
|
|
662
667
|
});
|
|
@@ -664,8 +669,8 @@ export var formatProducts = function formatProducts(lists, state) {
|
|
|
664
669
|
|
|
665
670
|
// 将商品分为组商品和非组商品
|
|
666
671
|
lists.forEach(function (item) {
|
|
667
|
-
var _item$
|
|
668
|
-
if (!(item !== null && item !== void 0 && (_item$
|
|
672
|
+
var _item$_extend27;
|
|
673
|
+
if (!(item !== null && item !== void 0 && (_item$_extend27 = item._extend) !== null && _item$_extend27 !== void 0 && _item$_extend27.groupId)) {
|
|
669
674
|
normalList.push(formItem(item));
|
|
670
675
|
} else {
|
|
671
676
|
groupList.push(item);
|
|
@@ -674,8 +679,8 @@ export var formatProducts = function formatProducts(lists, state) {
|
|
|
674
679
|
|
|
675
680
|
// 根据item._extend.groupId 进行分组
|
|
676
681
|
var groups = groupList.reduce(function (prev, item) {
|
|
677
|
-
var _item$
|
|
678
|
-
var groupId = item === null || item === void 0 || (_item$
|
|
682
|
+
var _item$_extend28;
|
|
683
|
+
var groupId = item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.groupId;
|
|
679
684
|
if (!prev[groupId]) {
|
|
680
685
|
prev[groupId] = [];
|
|
681
686
|
}
|
|
@@ -845,8 +850,8 @@ export var isHasDayAppointmentProduct = function isHasDayAppointmentProduct(stat
|
|
|
845
850
|
// 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
|
|
846
851
|
// services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
|
|
847
852
|
services: services.filter(function (item) {
|
|
848
|
-
var _item$
|
|
849
|
-
return ((_item$
|
|
853
|
+
var _item$_extend29;
|
|
854
|
+
return ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.holder_id) == d.form_record_id && checkType(item.extension_type);
|
|
850
855
|
})
|
|
851
856
|
});
|
|
852
857
|
});
|
|
@@ -95,7 +95,7 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType) {
|
|
|
95
95
|
if (renderType === 'eventBooking') {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
|
-
var booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782];
|
|
98
|
+
var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 6813, 8609, 8610, 8782, 1285];
|
|
99
99
|
return booking4Shops.includes(shopId);
|
|
100
100
|
};
|
|
101
101
|
function generateDateRange(start, end) {
|