@pisell/private-materials 3.4.3 → 3.4.5
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.js +5 -1
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +187 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +1 -0
- package/es/components/Sales/Checkout/utils.js +9 -2
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/appointmentBooking/index.js +14 -0
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.js +32 -24
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/index.js +4 -4
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +5 -3
- package/es/components/booking/info2/service/addService/utils.js +38 -9
- package/es/components/booking/info2/service/addTimeModal/index.js +2 -2
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.js +9 -3
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- 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/hooks.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/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.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/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.js +14 -0
- package/es/components/eventBooking/index.less +1 -1
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +27 -3
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -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/StripeSDK/index.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 +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +3 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- 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.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.js +38 -2
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/locales.js +6 -3
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.js +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +129 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +1 -0
- package/lib/components/Sales/Checkout/utils.js +5 -2
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/appointmentBooking/index.js +11 -0
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +24 -11
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- 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/hooks/useIsBooking4Shop.d.ts +1 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.js +3 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/index.js +4 -3
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +5 -3
- package/lib/components/booking/info2/service/addService/utils.js +31 -10
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -2
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.js +4 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- 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/hooks.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/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.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/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -4
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.js +11 -0
- package/lib/components/eventBooking/index.less +1 -1
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +27 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -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/StripeSDK/index.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 +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +3 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- 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/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -6
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/locales.js +6 -3
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -47,7 +47,7 @@ import dayjs from 'dayjs';
|
|
|
47
47
|
* @Date: 2024-01-30 16:51
|
|
48
48
|
*/
|
|
49
49
|
var Footer = function Footer(props) {
|
|
50
|
-
var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _businessUtils$getApp, _businessUtils$getApp2, _state$addons4, _state$
|
|
50
|
+
var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _businessUtils$getApp, _businessUtils$getApp2, _state$bookingDetail8, _state$addons4, _state$bookingDetail16, _state$bookingDetail17;
|
|
51
51
|
var state = props.state,
|
|
52
52
|
buttons = props.buttons,
|
|
53
53
|
dispatch = props.dispatch,
|
|
@@ -628,6 +628,10 @@ var Footer = function Footer(props) {
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
};
|
|
631
|
+
var paymentRefundedStatus = useMemo(function () {
|
|
632
|
+
var _state$bookingDetail;
|
|
633
|
+
return ['partially_refunded', 'refunded'].includes(state === null || state === void 0 || (_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.payment_status);
|
|
634
|
+
}, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
|
|
631
635
|
|
|
632
636
|
/**
|
|
633
637
|
* @title: checkout按钮
|
|
@@ -668,7 +672,7 @@ var Footer = function Footer(props) {
|
|
|
668
672
|
}, [isEdit, checkoutLoading, isDisabled, state, source]);
|
|
669
673
|
var handleMenuClick = /*#__PURE__*/function () {
|
|
670
674
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e) {
|
|
671
|
-
var id, customer, res, _state$
|
|
675
|
+
var id, customer, res, _state$bookingDetail2, _state$bookingDetail3;
|
|
672
676
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
673
677
|
while (1) switch (_context6.prev = _context6.next) {
|
|
674
678
|
case 0:
|
|
@@ -696,10 +700,10 @@ var Footer = function Footer(props) {
|
|
|
696
700
|
type: 'pisell1.sendPayLinkEmail',
|
|
697
701
|
data: {
|
|
698
702
|
id: id,
|
|
699
|
-
is_deposit: state.bookingDetail.is_deposit || Number((_state$
|
|
703
|
+
is_deposit: state.bookingDetail.is_deposit || Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.deposit_amount),
|
|
700
704
|
deposit_payment_time: state.bookingDetail.deposit_payment_time,
|
|
701
705
|
customer: customer,
|
|
702
|
-
contacts: (_state$
|
|
706
|
+
contacts: (_state$bookingDetail3 = state.bookingDetail) === null || _state$bookingDetail3 === void 0 ? void 0 : _state$bookingDetail3.contacts
|
|
703
707
|
},
|
|
704
708
|
callback: function callback() {}
|
|
705
709
|
});
|
|
@@ -925,10 +929,10 @@ var Footer = function Footer(props) {
|
|
|
925
929
|
* @Date: 2024-01-30 16:58
|
|
926
930
|
*/
|
|
927
931
|
var isCheckout = useMemo(function () {
|
|
928
|
-
var _state$
|
|
932
|
+
var _state$bookingDetail4, _state$bookingDetail5;
|
|
929
933
|
var list = ['unfulfilled', 'partially_paid', 'unpaid', 'payment_processing'];
|
|
930
934
|
// (支付状态 = 已支付 || 部分付款 || 未付款 || 支付处理中) && 预约状态 !== 已取消
|
|
931
|
-
if (!state.bookingId || ((_state$
|
|
935
|
+
if (!state.bookingId || ((_state$bookingDetail4 = state.bookingDetail) === null || _state$bookingDetail4 === void 0 || (_state$bookingDetail4 = _state$bookingDetail4.bookings) === null || _state$bookingDetail4 === void 0 ? void 0 : _state$bookingDetail4.appointment_status) !== 'cancelled' && list.includes(state === null || state === void 0 || (_state$bookingDetail5 = state.bookingDetail) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.payment_status) && !state.disabledEdit) {
|
|
932
936
|
return true;
|
|
933
937
|
} else {
|
|
934
938
|
if (total.notPaidAmount > 0) {
|
|
@@ -939,7 +943,8 @@ var Footer = function Footer(props) {
|
|
|
939
943
|
}, [state.bookingDetail, total.notPaidAmount]);
|
|
940
944
|
var _buttons = useMemo(function () {
|
|
941
945
|
// 如果预约是取消状态,则不展示任何按钮
|
|
942
|
-
|
|
946
|
+
// 如果订单已退款 | 部分退款,则展示再次预约按钮
|
|
947
|
+
if (state.appointment_status === 'cancelled' || paymentRefundedStatus) {
|
|
943
948
|
return [buttonMap.rebook];
|
|
944
949
|
}
|
|
945
950
|
|
|
@@ -1018,6 +1023,7 @@ var Footer = function Footer(props) {
|
|
|
1018
1023
|
return [];
|
|
1019
1024
|
}, [buttons, total, isEdit, checkoutLoading, isDisabled, source, buttonMap, loading, isCheckout, state, isTeam, isShowClearAll]);
|
|
1020
1025
|
var moreButton = useMemo(function () {
|
|
1026
|
+
var _state$bookingDetail6;
|
|
1021
1027
|
var arr = [];
|
|
1022
1028
|
if (!state.bookingId) {
|
|
1023
1029
|
return [];
|
|
@@ -1029,10 +1035,16 @@ var Footer = function Footer(props) {
|
|
|
1029
1035
|
return [];
|
|
1030
1036
|
}
|
|
1031
1037
|
|
|
1038
|
+
// 如果订单已退款, 则不展示任何按钮
|
|
1039
|
+
if ((state === null || state === void 0 || (_state$bookingDetail6 = state.bookingDetail) === null || _state$bookingDetail6 === void 0 ? void 0 : _state$bookingDetail6.payment_status) === 'refunded') {
|
|
1040
|
+
return [];
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1032
1043
|
// 如果外部没有按钮, 则rebook按钮放在外面
|
|
1033
1044
|
if (_buttons.length !== 0) {
|
|
1034
|
-
|
|
1035
|
-
|
|
1045
|
+
var _state$bookingDetail7;
|
|
1046
|
+
// 支付链接, 部分退款时, 不展示支付链接
|
|
1047
|
+
if (state.bookingId && isShowPaymentLink && (state === null || state === void 0 || (_state$bookingDetail7 = state.bookingDetail) === null || _state$bookingDetail7 === void 0 ? void 0 : _state$bookingDetail7.payment_status) !== 'partially_refunded') {
|
|
1036
1048
|
arr.push(actionMap.paymentLink);
|
|
1037
1049
|
}
|
|
1038
1050
|
}
|
|
@@ -1066,14 +1078,14 @@ var Footer = function Footer(props) {
|
|
|
1066
1078
|
// 取消订单
|
|
1067
1079
|
// arr.push(actionMap.cancelOrder);
|
|
1068
1080
|
return arr;
|
|
1069
|
-
}, [state, total, isShowPaymentLink, source, _buttons.length]);
|
|
1081
|
+
}, [state, total, isShowPaymentLink, source, _buttons.length, state === null || state === void 0 || (_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.payment_status]);
|
|
1070
1082
|
|
|
1071
1083
|
/**
|
|
1072
1084
|
* 是否只有定金支付
|
|
1073
1085
|
*/
|
|
1074
1086
|
var isOnlyDeposit = useMemo(function () {
|
|
1075
|
-
var _state$
|
|
1076
|
-
if (state !== null && state !== void 0 && (_state$
|
|
1087
|
+
var _state$bookingDetail9, _state$bookingDetail10, _state$bookingDetail11;
|
|
1088
|
+
if (state !== null && state !== void 0 && (_state$bookingDetail9 = state.bookingDetail) !== null && _state$bookingDetail9 !== void 0 && _state$bookingDetail9.deposit_payment_time && state !== null && state !== void 0 && (_state$bookingDetail10 = state.bookingDetail) !== null && _state$bookingDetail10 !== void 0 && (_state$bookingDetail10 = _state$bookingDetail10.payment_types) !== null && _state$bookingDetail10 !== void 0 && (_state$bookingDetail11 = _state$bookingDetail10.every) !== null && _state$bookingDetail11 !== void 0 && _state$bookingDetail11.call(_state$bookingDetail10, function (item) {
|
|
1077
1089
|
return item === 'deposit';
|
|
1078
1090
|
})) {
|
|
1079
1091
|
return true;
|
|
@@ -1094,8 +1106,8 @@ var Footer = function Footer(props) {
|
|
|
1094
1106
|
|
|
1095
1107
|
// 只有定金支付时,直接展示
|
|
1096
1108
|
if (isOnlyDeposit) {
|
|
1097
|
-
var _state$
|
|
1098
|
-
return "".concat(locales.getText('pisell2.text.deposit-paid'), " ").concat(formatAmount(state === null || state === void 0 || (_state$
|
|
1109
|
+
var _state$bookingDetail12;
|
|
1110
|
+
return "".concat(locales.getText('pisell2.text.deposit-paid'), " ").concat(formatAmount(state === null || state === void 0 || (_state$bookingDetail12 = state.bookingDetail) === null || _state$bookingDetail12 === void 0 ? void 0 : _state$bookingDetail12.deposit_paid_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'), " ").concat(total.duration ? "(".concat(total.duration, ")") : '');
|
|
1099
1111
|
}
|
|
1100
1112
|
|
|
1101
1113
|
// 有退款金额时, 直接展示 退款:$8.00
|
|
@@ -1217,8 +1229,8 @@ var Footer = function Footer(props) {
|
|
|
1217
1229
|
}
|
|
1218
1230
|
};
|
|
1219
1231
|
var subTotalList = useMemo(function () {
|
|
1220
|
-
var _state$
|
|
1221
|
-
var surcharge = (((_state$
|
|
1232
|
+
var _state$bookingDetail13, _state$bookingDetail14, _state$bookingDetail15;
|
|
1233
|
+
var surcharge = (((_state$bookingDetail13 = state.bookingDetail) === null || _state$bookingDetail13 === void 0 ? void 0 : _state$bookingDetail13.surcharge) || []).map(function (d, index) {
|
|
1222
1234
|
return {
|
|
1223
1235
|
key: "custom_surcharge_".concat(index),
|
|
1224
1236
|
label: d.name[state.locale],
|
|
@@ -1237,9 +1249,9 @@ var Footer = function Footer(props) {
|
|
|
1237
1249
|
key: 'tax',
|
|
1238
1250
|
value: total.tax,
|
|
1239
1251
|
tax: {
|
|
1240
|
-
rate: state === null || state === void 0 || (_state$
|
|
1252
|
+
rate: state === null || state === void 0 || (_state$bookingDetail14 = state.bookingDetail) === null || _state$bookingDetail14 === void 0 ? void 0 : _state$bookingDetail14.tax_rate,
|
|
1241
1253
|
is_price_include_tax: is_price_include_tax(state),
|
|
1242
|
-
title: state === null || state === void 0 || (_state$
|
|
1254
|
+
title: state === null || state === void 0 || (_state$bookingDetail15 = state.bookingDetail) === null || _state$bookingDetail15 === void 0 ? void 0 : _state$bookingDetail15.tax_title
|
|
1243
1255
|
}
|
|
1244
1256
|
},
|
|
1245
1257
|
// 订单折扣
|
|
@@ -1260,7 +1272,7 @@ var Footer = function Footer(props) {
|
|
|
1260
1272
|
value: total.roundingAmount,
|
|
1261
1273
|
label: locales.getText('pisell1.text.rounding')
|
|
1262
1274
|
}]);
|
|
1263
|
-
}, [total, (_state$
|
|
1275
|
+
}, [total, (_state$bookingDetail16 = state.bookingDetail) === null || _state$bookingDetail16 === void 0 ? void 0 : _state$bookingDetail16.surcharge, state, state.bookingId]);
|
|
1264
1276
|
var orderTotalList = useMemo(function () {
|
|
1265
1277
|
return [
|
|
1266
1278
|
// 订单已付金额
|
|
@@ -1291,11 +1303,7 @@ var Footer = function Footer(props) {
|
|
|
1291
1303
|
value: total.totalRefundAmount,
|
|
1292
1304
|
label: locales.getText('pisell2.text.refunded-amount')
|
|
1293
1305
|
}];
|
|
1294
|
-
}, [total, (_state$
|
|
1295
|
-
var paymentRefundedStatus = useMemo(function () {
|
|
1296
|
-
var _state$bookingDetail14;
|
|
1297
|
-
return ['partially_refunded', 'refunded'].includes(state === null || state === void 0 || (_state$bookingDetail14 = state.bookingDetail) === null || _state$bookingDetail14 === void 0 ? void 0 : _state$bookingDetail14.payment_status);
|
|
1298
|
-
}, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
|
|
1306
|
+
}, [total, (_state$bookingDetail17 = state.bookingDetail) === null || _state$bookingDetail17 === void 0 ? void 0 : _state$bookingDetail17.surcharge, state, state.bookingId]);
|
|
1299
1307
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
1300
1308
|
title: false,
|
|
1301
1309
|
round: true,
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
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,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { miniRedux } from "@pisell/utils";
|
|
8
8
|
var defaultState = {};
|
|
9
9
|
var _miniRedux = miniRedux({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) =>
|
|
1
|
+
export declare const useIsBooking4Shop: (state: any) => any;
|
|
@@ -2,9 +2,10 @@ import { useMemo } from 'react';
|
|
|
2
2
|
import useEngineContext from "../../../hooks/useEngineContext";
|
|
3
3
|
import { isBooking4Shop } from "../info/utils";
|
|
4
4
|
export var useIsBooking4Shop = function useIsBooking4Shop(state) {
|
|
5
|
+
var _context$appHelper$ut4;
|
|
5
6
|
var context = useEngineContext();
|
|
6
7
|
return useMemo(function () {
|
|
7
|
-
var _context$appHelper$ut, _context$appHelper$ut2;
|
|
8
|
-
return isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id, state.renderType);
|
|
9
|
-
}, [state.renderType]);
|
|
8
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3;
|
|
9
|
+
return isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id, state.renderType, (_context$appHelper$ut3 = context.appHelper.utils) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.businessUtils);
|
|
10
|
+
}, [state.renderType, (_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.businessUtils]);
|
|
10
11
|
};
|
|
@@ -10,7 +10,7 @@ import AddService2 from "../../info2/service/addService";
|
|
|
10
10
|
import { isBooking4Shop } from "../utils";
|
|
11
11
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
12
12
|
var AddServiceVariant = function AddServiceVariant(props) {
|
|
13
|
-
var _context$appHelper$ut, _context$appHelper$ut2, _props$globalState;
|
|
13
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _props$globalState, _context$appHelper$ut3;
|
|
14
14
|
var globalState = props.globalState,
|
|
15
15
|
setGlobalState = props.setGlobalState;
|
|
16
16
|
var context = useEngineContext();
|
|
@@ -33,7 +33,7 @@ var AddServiceVariant = function AddServiceVariant(props) {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
var Cpt = AddService;
|
|
36
|
-
if (isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id, props === null || props === void 0 || (_props$globalState = props.globalState) === null || _props$globalState === void 0 ? void 0 : _props$globalState.renderType)) {
|
|
36
|
+
if (isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id, props === null || props === void 0 || (_props$globalState = props.globalState) === null || _props$globalState === void 0 ? void 0 : _props$globalState.renderType, (_context$appHelper$ut3 = context.appHelper.utils) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.businessUtils)) {
|
|
37
37
|
Cpt = AddService2;
|
|
38
38
|
}
|
|
39
39
|
return /*#__PURE__*/React.createElement(Cpt, {
|
|
@@ -3,13 +3,13 @@ import Info2 from "../info2";
|
|
|
3
3
|
import Info1 from "./main";
|
|
4
4
|
import useEngineContext from "../../../hooks/useEngineContext";
|
|
5
5
|
import { isBooking4Shop } from "./utils";
|
|
6
|
-
import { Skeleton } from
|
|
6
|
+
import { Skeleton } from 'antd';
|
|
7
7
|
var APP = function APP(props) {
|
|
8
|
-
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4;
|
|
8
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
|
|
9
9
|
var context = useEngineContext();
|
|
10
10
|
var globalState = props.globalState;
|
|
11
|
-
var isBooking4 = isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id, globalState === null || globalState === void 0 ? void 0 : globalState.renderType);
|
|
12
|
-
if (!((_context$appHelper$
|
|
11
|
+
var isBooking4 = isBooking4Shop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id, globalState === null || globalState === void 0 ? void 0 : globalState.renderType, (_context$appHelper$ut3 = context.appHelper.utils) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.businessUtils);
|
|
12
|
+
if (!((_context$appHelper$ut4 = context.appHelper.utils.store) !== null && _context$appHelper$ut4 !== void 0 && (_context$appHelper$ut5 = _context$appHelper$ut4.getState) !== null && _context$appHelper$ut5 !== void 0 && (_context$appHelper$ut5 = _context$appHelper$ut5.call(_context$appHelper$ut4)) !== null && _context$appHelper$ut5 !== void 0 && (_context$appHelper$ut5 = _context$appHelper$ut5.global) !== null && _context$appHelper$ut5 !== void 0 && (_context$appHelper$ut5 = _context$appHelper$ut5.globalConfig) !== null && _context$appHelper$ut5 !== void 0 && _context$appHelper$ut5.id)) {
|
|
13
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
14
14
|
style: {
|
|
15
15
|
padding: 16
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -19,7 +19,7 @@ var Like = function Like(_ref) {
|
|
|
19
19
|
}
|
|
20
20
|
e.preventDefault();
|
|
21
21
|
e.stopPropagation();
|
|
22
|
-
onChange === null || onChange === void 0
|
|
22
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(status === "like" ? "common" : "like");
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -21,7 +21,7 @@ export declare const isInterval: (time1: number, time2: number, interval?: numbe
|
|
|
21
21
|
* @Date: 2024-08-13 19:36
|
|
22
22
|
*/
|
|
23
23
|
export declare const formatServiceListByTime: (list: any[]) => any[];
|
|
24
|
-
export declare const isBooking4Shop: (shopId: number, renderType?: string) =>
|
|
24
|
+
export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any;
|
|
25
25
|
declare type DataEntry = {
|
|
26
26
|
total: number;
|
|
27
27
|
origin_total: number;
|
|
@@ -91,12 +91,14 @@ export var formatServiceListByTime = function formatServiceListByTime(list) {
|
|
|
91
91
|
return list;
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
export var isBooking4Shop = function isBooking4Shop(shopId, renderType) {
|
|
94
|
+
export var isBooking4Shop = function isBooking4Shop(shopId, renderType, businessUtils) {
|
|
95
95
|
if (renderType === 'eventBooking') {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
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, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913];
|
|
99
|
-
|
|
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, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413];
|
|
99
|
+
|
|
100
|
+
// 固定的shopId 或者安装 Resource Kit 应用,则认为是booking4Shop
|
|
101
|
+
return booking4Shops.includes(shopId) || (businessUtils === null || businessUtils === void 0 ? void 0 : businessUtils.getAppByModal('resourcekit'));
|
|
100
102
|
};
|
|
101
103
|
function generateDateRange(start, end) {
|
|
102
104
|
var dateRange = [];
|
|
@@ -370,7 +370,11 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
|
|
|
370
370
|
var _resources = _toConsumableArray((cacheItem === null || cacheItem === void 0 || (_cacheItem$product_re = cacheItem.product_resource) === null || _cacheItem$product_re === void 0 ? void 0 : _cacheItem$product_re.resources) || []);
|
|
371
371
|
var _ref8 = extraParams || {},
|
|
372
372
|
_ref8$extraResources = _ref8.extraResources,
|
|
373
|
-
extraResources = _ref8$extraResources === void 0 ? [] : _ref8$extraResources
|
|
373
|
+
extraResources = _ref8$extraResources === void 0 ? [] : _ref8$extraResources,
|
|
374
|
+
_ref8$resourcesOrigin = _ref8.resourcesOrigin,
|
|
375
|
+
resourcesOrigin = _ref8$resourcesOrigin === void 0 ? [] : _ref8$resourcesOrigin,
|
|
376
|
+
_ref8$resourceTab = _ref8.resourceTab,
|
|
377
|
+
resourceTab = _ref8$resourceTab === void 0 ? {} : _ref8$resourceTab;
|
|
374
378
|
// 过滤出开启的资源
|
|
375
379
|
_resources = _resources.filter(function (d) {
|
|
376
380
|
return d.status == 1;
|
|
@@ -379,15 +383,29 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
|
|
|
379
383
|
_step2;
|
|
380
384
|
try {
|
|
381
385
|
var _loop3 = function _loop3() {
|
|
386
|
+
var _resourceTab$item$cod;
|
|
382
387
|
var item = _step2.value;
|
|
383
388
|
var form_id = item.id;
|
|
389
|
+
// resource_tab -> 每个资源类型 -> resource_display_scope { only_linked: '仅显示已关联资源' | all: '全部' } 默认值 ‘only_linked’
|
|
390
|
+
var isAllResource = (resourceTab === null || resourceTab === void 0 || (_resourceTab$item$cod = resourceTab[item.code]) === null || _resourceTab$item$cod === void 0 ? void 0 : _resourceTab$item$cod.resource_display_scope) === 'all';
|
|
384
391
|
|
|
385
392
|
// 将未绑定的资源,也放入 SelectOption 列表,避免出现仅展示id的情况
|
|
386
|
-
var extraResourceIds =
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
393
|
+
var extraResourceIds = [];
|
|
394
|
+
|
|
395
|
+
// 如果设置了全部资源 需要把未关联的资源进行补全
|
|
396
|
+
if (isAllResource) {
|
|
397
|
+
extraResourceIds = (resourcesOrigin || []).filter(function (d) {
|
|
398
|
+
return d.form_code === item.code;
|
|
399
|
+
}).map(function (d) {
|
|
400
|
+
return d.id;
|
|
401
|
+
});
|
|
402
|
+
} else {
|
|
403
|
+
extraResourceIds = extraResources.filter(function (_extraItem) {
|
|
404
|
+
return _extraItem.form_id === form_id && !item.optional_resource.includes(_extraItem.id) && !item.default_resource.includes(_extraItem.id);
|
|
405
|
+
}).map(function (_extraItem) {
|
|
406
|
+
return _extraItem.id;
|
|
407
|
+
});
|
|
408
|
+
}
|
|
391
409
|
extraResourceIds = Array.from(new Set(extraResourceIds));
|
|
392
410
|
|
|
393
411
|
// 去重
|
|
@@ -415,7 +433,7 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
|
|
|
415
433
|
};
|
|
416
434
|
|
|
417
435
|
// 可选项
|
|
418
|
-
var optional_resource = [].concat(_toConsumableArray(item.optional_resource), _toConsumableArray(extraResourceIds)).map(function (d) {
|
|
436
|
+
var optional_resource = Array.from(new Set([].concat(_toConsumableArray(item.optional_resource), _toConsumableArray(extraResourceIds)))).map(function (d) {
|
|
419
437
|
if (!resourcesOriginMap[d]) {
|
|
420
438
|
return null;
|
|
421
439
|
}
|
|
@@ -502,10 +520,13 @@ export var getProductExtend = function getProductExtend(_ref11) {
|
|
|
502
520
|
|
|
503
521
|
// 资源总列表
|
|
504
522
|
var resourcesOriginMap = state.service.resourcesOriginMap || {};
|
|
523
|
+
// const resourcesOrigin = state.s;
|
|
524
|
+
|
|
505
525
|
_cacheItem._data = {};
|
|
506
526
|
|
|
507
527
|
// 新商品
|
|
508
528
|
if (isNew) {
|
|
529
|
+
var _state$bookingConfig3;
|
|
509
530
|
// 时间切片
|
|
510
531
|
_cacheItem._data.timeObj = getTimeObj({
|
|
511
532
|
cacheItem: cacheItem,
|
|
@@ -520,7 +541,11 @@ export var getProductExtend = function getProductExtend(_ref11) {
|
|
|
520
541
|
_cacheItem._data.capacitys = cacheItem.capacity;
|
|
521
542
|
|
|
522
543
|
// 将商品关联的资源id还原资源列表
|
|
523
|
-
_cacheItem._data.resourcesOrigin = getResourceByIds(resourcesOriginMap, cacheItem
|
|
544
|
+
_cacheItem._data.resourcesOrigin = getResourceByIds(resourcesOriginMap, cacheItem, {
|
|
545
|
+
// 此数据用来控制 该商品所展示的资源是自身关联的, 还是全部的
|
|
546
|
+
resourceTab: state === null || state === void 0 || (_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 || (_state$bookingConfig3 = _state$bookingConfig3.config) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.resource_tab,
|
|
547
|
+
resourcesOrigin: state.service.resourcesOrigin
|
|
548
|
+
});
|
|
524
549
|
|
|
525
550
|
// 默认容量
|
|
526
551
|
_cacheItem._extend.capacity = setDefaultCapacitys({
|
|
@@ -592,6 +617,7 @@ export var getProductExtend = function getProductExtend(_ref11) {
|
|
|
592
617
|
_cacheItem._data.capacitys = cacheItem.capacity;
|
|
593
618
|
}
|
|
594
619
|
if (!_cacheItem._data.resourcesOrigin) {
|
|
620
|
+
var _state$bookingConfig4;
|
|
595
621
|
var extraResources = [];
|
|
596
622
|
// 日历中可以将预约拖入未绑定的资源中,需要兼容未绑定资源的 selectOption展示
|
|
597
623
|
if (Array.isArray(_cacheItem._extend.event_resources)) {
|
|
@@ -603,7 +629,10 @@ export var getProductExtend = function getProductExtend(_ref11) {
|
|
|
603
629
|
});
|
|
604
630
|
}
|
|
605
631
|
_cacheItem._data.resourcesOrigin = getResourceByIds(resourcesOriginMap, cacheItem, {
|
|
606
|
-
extraResources: extraResources
|
|
632
|
+
extraResources: extraResources,
|
|
633
|
+
// 此数据用来控制 该商品所展示的资源是自身关联的, 还是全部的
|
|
634
|
+
resourceTab: state === null || state === void 0 || (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 || (_state$bookingConfig4 = _state$bookingConfig4.config) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.resource_tab,
|
|
635
|
+
resourcesOrigin: state.service.resourcesOrigin
|
|
607
636
|
});
|
|
608
637
|
}
|
|
609
638
|
if (!_cacheItem._data.resources) {
|
|
@@ -498,7 +498,7 @@ var AddTimeModal = function AddTimeModal() {
|
|
|
498
498
|
}();
|
|
499
499
|
var handleSave = /*#__PURE__*/function () {
|
|
500
500
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
501
|
-
var _context$appHelper$ut2, _context$appHelper$ut3;
|
|
501
|
+
var _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4;
|
|
502
502
|
var loadingType,
|
|
503
503
|
api,
|
|
504
504
|
_args5 = arguments;
|
|
@@ -520,7 +520,7 @@ var AddTimeModal = function AddTimeModal() {
|
|
|
520
520
|
case 5:
|
|
521
521
|
loadingRef.current = true;
|
|
522
522
|
setLoading(loadingType);
|
|
523
|
-
api = isBooking4Shop((_context$appHelper$ut2 = context.appHelper.utils.store) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getState) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.global) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.globalConfig) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.id, state.renderType) ? saveAddTimeProduct2 : saveAddTimeProduct;
|
|
523
|
+
api = isBooking4Shop((_context$appHelper$ut2 = context.appHelper.utils.store) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getState) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.global) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.globalConfig) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.id, state.renderType, (_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.businessUtils) ? saveAddTimeProduct2 : saveAddTimeProduct;
|
|
524
524
|
_context5.prev = 8;
|
|
525
525
|
_context5.next = 11;
|
|
526
526
|
return api({
|
|
@@ -69,9 +69,15 @@ export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cach
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
// 已预约的列表
|
|
72
|
-
var eventList =
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
var eventList = time.event_list || [];
|
|
73
|
+
|
|
74
|
+
// todo: event_list数据会进行合并 id不准确
|
|
75
|
+
// 编辑时过滤当前预约
|
|
76
|
+
if (cacheItem !== null && cacheItem !== void 0 && cacheItem.booking_id) {
|
|
77
|
+
eventList = eventList.filter(function (event) {
|
|
78
|
+
return event.id !== (cacheItem === null || cacheItem === void 0 ? void 0 : cacheItem.booking_id);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
75
81
|
var endDate = null;
|
|
76
82
|
// 是否去计算数量
|
|
77
83
|
var isCalcCount = true;
|
|
@@ -25,7 +25,7 @@ var StartTime = function StartTime(props) {
|
|
|
25
25
|
return sliceDayIntoFiveMinutes(slice, locale);
|
|
26
26
|
}, [slice, locale]);
|
|
27
27
|
useEffect(function () {
|
|
28
|
-
timeObjChange === null || timeObjChange === void 0
|
|
28
|
+
timeObjChange === null || timeObjChange === void 0 ? void 0 : timeObjChange(timeObj);
|
|
29
29
|
}, [timeObj]);
|
|
30
30
|
var renderOptions = useCallback(function (array) {
|
|
31
31
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "value";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -104,4 +105,11 @@ export declare const walkInData: {
|
|
|
104
105
|
id: number;
|
|
105
106
|
nickname: string;
|
|
106
107
|
};
|
|
107
|
-
export declare const Provider: any, Context:
|
|
108
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
109
|
+
state: FormState;
|
|
110
|
+
} & {
|
|
111
|
+
dispatch: (params: {
|
|
112
|
+
type: string;
|
|
113
|
+
payload: any;
|
|
114
|
+
}) => void;
|
|
115
|
+
}>;
|
|
@@ -18,7 +18,7 @@ var NoteItem = function NoteItem(props) {
|
|
|
18
18
|
_props$menus = props.menus,
|
|
19
19
|
menus = _props$menus === void 0 ? defaultMenus : _props$menus;
|
|
20
20
|
var menuChange = function menuChange(e) {
|
|
21
|
-
onChange === null || onChange === void 0
|
|
21
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(item, e.key);
|
|
22
22
|
};
|
|
23
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
className: "pisell-lowcode__booking-notes-item"
|