@pisell/private-materials 3.3.74 → 3.3.76
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Cart/Item/index.js +2 -4
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Date/index.js +14 -24
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.js +14 -8
- package/es/components/appointmentBooking/components/Services/index.js +36 -38
- package/es/components/appointmentBooking/components/Voucher/index.js +0 -13
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +7 -6
- package/es/components/appointmentBooking/index.js +0 -14
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/appointmentBooking/locales.js +3 -3
- package/es/components/booking/addons/index.js +3 -12
- package/es/components/booking/addons/model.js +0 -5
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +1 -3
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +1 -2
- package/es/components/booking/components/footer/index.js +3 -9
- package/es/components/booking/components/footer/utils.js +35 -73
- package/es/components/booking/components/voucher/index.js +66 -110
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +1 -16
- package/es/components/booking/info/client/index.js +3 -12
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +1 -3
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +2 -6
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +4 -9
- package/es/components/booking/info2/serve.d.ts +1 -1
- package/es/components/booking/info2/serve.js +8 -12
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +3 -5
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/editService/index.js +2 -5
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/utils.d.ts +1 -1
- package/es/components/booking/info2/utils.js +2 -3
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
- package/es/components/booking/info2/utilsByBooking.js +3 -5
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +3 -6
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +0 -1
- package/es/components/booking/utils.js +0 -4
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +6 -9
- package/es/components/ticketBooking/components/ticketBooking/index.js +3 -124
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/ticketBooking/utils/index.d.ts +1 -5
- package/es/components/ticketBooking/utils/index.js +6 -58
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Date/index.js +5 -12
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.js +3 -2
- package/lib/components/appointmentBooking/components/Services/index.js +18 -19
- package/lib/components/appointmentBooking/components/Voucher/index.js +0 -9
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -0
- package/lib/components/appointmentBooking/index.js +0 -11
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/appointmentBooking/locales.js +3 -3
- package/lib/components/booking/addons/index.js +2 -12
- package/lib/components/booking/addons/model.js +0 -3
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +1 -5
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +1 -2
- package/lib/components/booking/components/footer/index.js +5 -10
- package/lib/components/booking/components/footer/utils.js +11 -47
- package/lib/components/booking/components/voucher/index.js +67 -111
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +1 -19
- package/lib/components/booking/info/client/index.js +3 -10
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +0 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +1 -3
- package/lib/components/booking/info/utils.js +3 -1
- package/lib/components/booking/info2/index.js +9 -9
- package/lib/components/booking/info2/serve.d.ts +1 -1
- package/lib/components/booking/info2/serve.js +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +2 -4
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editService/index.js +2 -5
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/utils.d.ts +1 -1
- package/lib/components/booking/info2/utils.js +2 -2
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
- package/lib/components/booking/info2/utilsByBooking.js +2 -3
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +3 -6
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +0 -1
- package/lib/components/booking/utils.js +0 -6
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +4 -8
- package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -124
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/ticketBooking/utils/index.d.ts +1 -5
- package/lib/components/ticketBooking/utils/index.js +5 -48
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +4 -4
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/components/voucher/utils.js +0 -15
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/components/voucher/utils.js +0 -43
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
|
@@ -19,7 +19,6 @@ import useEngineContext from "../../../../es/hooks/useEngineContext";
|
|
|
19
19
|
import { locales } from "@pisell/utils";
|
|
20
20
|
import { PisellModal } from "@pisell/materials";
|
|
21
21
|
import { getProductPrice } from "../info/service/serve";
|
|
22
|
-
import Decimal from 'decimal.js';
|
|
23
22
|
var formatBundleItemMap = function formatBundleItemMap(product) {
|
|
24
23
|
return product.bundle_group.reduce(function (pre, cur) {
|
|
25
24
|
var curObj = {};
|
|
@@ -29,13 +28,6 @@ var formatBundleItemMap = function formatBundleItemMap(product) {
|
|
|
29
28
|
return _objectSpread(_objectSpread({}, pre), curObj);
|
|
30
29
|
}, {});
|
|
31
30
|
};
|
|
32
|
-
export var calculateTotalPrice = function calculateTotalPrice(data) {
|
|
33
|
-
var _price = data.reduce(function (total, item) {
|
|
34
|
-
var _price = (item === null || item === void 0 ? void 0 : item.price) || (item === null || item === void 0 ? void 0 : item.add_price);
|
|
35
|
-
return total + _price * item.num;
|
|
36
|
-
}, 0);
|
|
37
|
-
return parseFloat(_price);
|
|
38
|
-
};
|
|
39
31
|
var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
|
|
40
32
|
if (!newProducts.length) {
|
|
41
33
|
return {
|
|
@@ -78,16 +70,9 @@ var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
|
|
|
78
70
|
isChangePrice = true;
|
|
79
71
|
isBundleChange = true;
|
|
80
72
|
}
|
|
81
|
-
if (bundleItemMap[bundle.id].price_type === 'markdown') {
|
|
82
|
-
bundleItemMap[bundle.id].price = new Decimal(bundleItemMap[bundle.id].price || 0).mul(-1).toNumber();
|
|
83
|
-
}
|
|
84
|
-
var selectBundleInfo = item._extend.other.bundle.find(function (item) {
|
|
85
|
-
return item.id === bundle.id;
|
|
86
|
-
});
|
|
87
|
-
var optionPrice = calculateTotalPrice((selectBundleInfo === null || selectBundleInfo === void 0 ? void 0 : selectBundleInfo.option) || []);
|
|
88
73
|
return _objectSpread(_objectSpread({}, bundle), {}, {
|
|
89
74
|
base_price: bundleItemMap[bundle.id].base_price,
|
|
90
|
-
price:
|
|
75
|
+
price: bundleItemMap[bundle.id].price
|
|
91
76
|
// product_price: bundleItemMap[item.id].product_price,
|
|
92
77
|
});
|
|
93
78
|
});
|
|
@@ -33,7 +33,6 @@ import { isWalkIn as getIsWalkIn } from "../../utils";
|
|
|
33
33
|
import { getFranchiseeCustomerInfo, getFranchiseeCustomerList } from "./serve";
|
|
34
34
|
import { useMemoizedFn } from 'ahooks';
|
|
35
35
|
import { getWaiverTitle } from "../clientVariant/utils";
|
|
36
|
-
import useGetHolderList from "../hooks/useGetHolderList";
|
|
37
36
|
var isLoadClient = false;
|
|
38
37
|
var Client = function Client() {
|
|
39
38
|
var _state$client$value2, _state$client$value3, _state$client$value4, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _state$client$value10, _state$client$value11;
|
|
@@ -53,7 +52,6 @@ var Client = function Client() {
|
|
|
53
52
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
54
53
|
franchiseeLoading = _useState6[0],
|
|
55
54
|
setFranchiseeLoading = _useState6[1];
|
|
56
|
-
var getHolders = useGetHolderList(state, dispatch);
|
|
57
55
|
var _useState7 = useState({
|
|
58
56
|
skip: 1,
|
|
59
57
|
num: 10,
|
|
@@ -283,7 +281,6 @@ var Client = function Client() {
|
|
|
283
281
|
if (data) {
|
|
284
282
|
handleSelectClient([data]);
|
|
285
283
|
}
|
|
286
|
-
getHolders();
|
|
287
284
|
getClients(_objectSpread(_objectSpread({}, state.client.clientsParams), {}, {
|
|
288
285
|
search: '',
|
|
289
286
|
customer_id: data === null || data === void 0 ? void 0 : data.id,
|
|
@@ -301,20 +298,14 @@ var Client = function Client() {
|
|
|
301
298
|
showAcceptsMarketing: false
|
|
302
299
|
},
|
|
303
300
|
callback: function callback(customer_id, params) {
|
|
304
|
-
var
|
|
305
|
-
var waiverForm = ((_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.clients) === null || _state$client2 === void 0 || (_state$client2 = _state$client2[0].waiver_form) === null || _state$client2 === void 0 || (_state$client2$map = _state$client2.map) === null || _state$client2$map === void 0 ? void 0 : _state$client2$map.call(_state$client2, function (item) {
|
|
306
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
307
|
-
is_filled: 0
|
|
308
|
-
});
|
|
309
|
-
})) || [];
|
|
301
|
+
var _params$, _params$2, _state$client2;
|
|
310
302
|
// 创建后本地数据处理到数组
|
|
311
303
|
dispatch({
|
|
312
304
|
type: 'setClient',
|
|
313
305
|
payload: {
|
|
314
306
|
clients: [].concat(_toConsumableArray(params !== null && params !== void 0 && (_params$ = params[0]) !== null && _params$ !== void 0 && _params$.customer ? [_objectSpread(_objectSpread({}, params === null || params === void 0 || (_params$2 = params[0]) === null || _params$2 === void 0 ? void 0 : _params$2.customer), {}, {
|
|
315
|
-
id: customer_id
|
|
316
|
-
|
|
317
|
-
})] : []), _toConsumableArray(((_state$client3 = state.client) === null || _state$client3 === void 0 ? void 0 : _state$client3.clients) || []))
|
|
307
|
+
id: customer_id
|
|
308
|
+
})] : []), _toConsumableArray(((_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : _state$client2.clients) || []))
|
|
318
309
|
}
|
|
319
310
|
});
|
|
320
311
|
}
|
|
@@ -92,7 +92,7 @@ var Lists = function Lists(_ref) {
|
|
|
92
92
|
isShowChangeHolder: isShowChangeHolder,
|
|
93
93
|
isShowChangeResource: true,
|
|
94
94
|
isShowAddHolderButton: true,
|
|
95
|
-
isShowEditProduct:
|
|
95
|
+
isShowEditProduct: true
|
|
96
96
|
};
|
|
97
97
|
}, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage]);
|
|
98
98
|
return /*#__PURE__*/React.createElement(CartContext.Provider, {
|
|
@@ -28,7 +28,7 @@ import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
|
28
28
|
import TabProduct from "../../../components/TabProduct";
|
|
29
29
|
import AddButton from "../../../components/addButton";
|
|
30
30
|
import Drawer from "../../../components/drawer";
|
|
31
|
-
import { formatProductListByCategory, getIsEject,
|
|
31
|
+
import { formatProductListByCategory, getIsEject, isSessionProduct, request } from "../../../utils";
|
|
32
32
|
import DateRange from "../../dateRange";
|
|
33
33
|
import { Context } from "../../model";
|
|
34
34
|
import { appointmentTypes, inputDateCol } from "../../service2/status";
|
|
@@ -311,7 +311,6 @@ var Info = function Info(props) {
|
|
|
311
311
|
var isSession = isSessionProduct(item);
|
|
312
312
|
// 是否有单规格 组合规格 套餐, 如果没有不需要打开弹窗
|
|
313
313
|
var isEject = getIsEject(item, type);
|
|
314
|
-
var isOnlySession = getIsOnlySession(item);
|
|
315
314
|
|
|
316
315
|
// 跨日预约开启单规格 组合规格 套餐
|
|
317
316
|
if (isDay) {
|
|
@@ -329,7 +328,6 @@ var Info = function Info(props) {
|
|
|
329
328
|
package: true
|
|
330
329
|
},
|
|
331
330
|
is_eject: isEject ? 1 : 0,
|
|
332
|
-
isOnlySession: isOnlySession,
|
|
333
331
|
customer_id: customerId,
|
|
334
332
|
isOS: isSession
|
|
335
333
|
},
|
|
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
244
244
|
* @Author: WangHan
|
|
245
245
|
* @Date: 2024-12-24 11:32
|
|
246
246
|
*/
|
|
247
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
247
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -20,7 +20,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
21
|
import { getNoResource } from "../../mock";
|
|
22
22
|
import { getErrorList, getProductTotalPrice } from "../../utils";
|
|
23
|
-
import {
|
|
23
|
+
import { locales } from '@pisell/utils';
|
|
24
24
|
import dayjs from 'dayjs';
|
|
25
25
|
import { appointmentTypes, openingTime } from "./status";
|
|
26
26
|
import { postMultiDay } from "../service/serve";
|
|
@@ -199,9 +199,7 @@ export var handleChangeHolder = function handleChangeHolder(products, currentIte
|
|
|
199
199
|
if (item._id === currentItem._id) {
|
|
200
200
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
201
201
|
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
202
|
-
holder_id:
|
|
203
|
-
return item.id;
|
|
204
|
-
}) : item._extend.quantity > 1 ? [other.id] : other.id
|
|
202
|
+
holder_id: other.id
|
|
205
203
|
})
|
|
206
204
|
});
|
|
207
205
|
}
|
|
@@ -612,8 +610,6 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
|
|
|
612
610
|
actionText: locales.getText('page.booking.text.add-time'),
|
|
613
611
|
isMultipleResource: true,
|
|
614
612
|
multiResources: multiResources,
|
|
615
|
-
holderMaxCount: item === null || item === void 0 ? void 0 : item._extend.quantity,
|
|
616
|
-
holderMode: (item === null || item === void 0 ? void 0 : item._extend.quantity) > 1 ? 'multiple' : undefined,
|
|
617
613
|
isErrorHolder: getIsSubjectRequire(state),
|
|
618
614
|
addHolderButtonText: (formData === null || formData === void 0 || (_formData$ = formData[0]) === null || _formData$ === void 0 || (_formData$ = _formData$.form) === null || _formData$ === void 0 ? void 0 : _formData$.title) || "",
|
|
619
615
|
holder_id: item === null || item === void 0 || (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.holder_id,
|
|
@@ -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 = [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];
|
|
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];
|
|
99
99
|
return booking4Shops.includes(shopId);
|
|
100
100
|
};
|
|
101
101
|
function generateDateRange(start, end) {
|
|
@@ -31,7 +31,6 @@ import { Skeleton } from 'antd';
|
|
|
31
31
|
import classNames from 'classnames';
|
|
32
32
|
import useCreateBookingPageHeader from "../hooks/useCreateBookingPageHeader";
|
|
33
33
|
import { getLocale } from "../../../utils/locales";
|
|
34
|
-
import { useDebounceEffect } from "ahooks";
|
|
35
34
|
var defaultModules = {
|
|
36
35
|
client: 1,
|
|
37
36
|
date: 1,
|
|
@@ -165,7 +164,7 @@ var Info = Provider(function (props) {
|
|
|
165
164
|
try {
|
|
166
165
|
// 同步最新数据用, 增加延迟为了不和getProduct接口冲突
|
|
167
166
|
setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
168
|
-
var _stateRef$current
|
|
167
|
+
var _stateRef$current;
|
|
169
168
|
var data;
|
|
170
169
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
171
170
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -173,9 +172,7 @@ var Info = Provider(function (props) {
|
|
|
173
172
|
_context.next = 2;
|
|
174
173
|
return getResourceList({
|
|
175
174
|
date: currentDate
|
|
176
|
-
}, stateRef === null || stateRef === void 0 || (_stateRef$current = stateRef.current) === null || _stateRef$current === void 0
|
|
177
|
-
return item === null || item === void 0 ? void 0 : item.booking_id;
|
|
178
|
-
}));
|
|
175
|
+
}, stateRef === null || stateRef === void 0 || (_stateRef$current = stateRef.current) === null || _stateRef$current === void 0 ? void 0 : _stateRef$current.bookingId);
|
|
179
176
|
case 2:
|
|
180
177
|
data = _context.sent;
|
|
181
178
|
data.date = currentDate;
|
|
@@ -206,15 +203,13 @@ var Info = Provider(function (props) {
|
|
|
206
203
|
return _ref.apply(this, arguments);
|
|
207
204
|
};
|
|
208
205
|
}();
|
|
209
|
-
|
|
206
|
+
useEffect(function () {
|
|
210
207
|
// setTimeout(() => {
|
|
211
208
|
if (currentDate) {
|
|
212
209
|
getResourcesData();
|
|
213
210
|
}
|
|
214
211
|
// }, 20);
|
|
215
|
-
}, [currentDate]
|
|
216
|
-
wait: 300
|
|
217
|
-
});
|
|
212
|
+
}, [currentDate]);
|
|
218
213
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, _defineProperty(_defineProperty({
|
|
219
214
|
style: style,
|
|
220
215
|
header: header,
|
|
@@ -5,28 +5,24 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
5
5
|
import { request } from "../utils";
|
|
6
6
|
import { getFormatResourceListAndMap } from "./utils";
|
|
7
7
|
export var getResourceList = /*#__PURE__*/function () {
|
|
8
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
9
|
-
var
|
|
10
|
-
_yield$request$getReq,
|
|
11
|
-
data,
|
|
12
|
-
_args = arguments;
|
|
8
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, bookingId) {
|
|
9
|
+
var _yield$request$getReq, data;
|
|
13
10
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14
11
|
while (1) switch (_context.prev = _context.next) {
|
|
15
12
|
case 0:
|
|
16
|
-
|
|
17
|
-
_context.next = 3;
|
|
13
|
+
_context.next = 2;
|
|
18
14
|
return request.getRequest().get("/shop/schedule/resource/list", params);
|
|
19
|
-
case
|
|
15
|
+
case 2:
|
|
20
16
|
_yield$request$getReq = _context.sent;
|
|
21
17
|
data = _yield$request$getReq.data;
|
|
22
18
|
return _context.abrupt("return", getFormatResourceListAndMap(data, bookingId));
|
|
23
|
-
case
|
|
19
|
+
case 5:
|
|
24
20
|
case "end":
|
|
25
21
|
return _context.stop();
|
|
26
22
|
}
|
|
27
23
|
}, _callee);
|
|
28
24
|
}));
|
|
29
|
-
return function getResourceList(_x) {
|
|
25
|
+
return function getResourceList(_x, _x2) {
|
|
30
26
|
return _ref.apply(this, arguments);
|
|
31
27
|
};
|
|
32
28
|
}();
|
|
@@ -48,7 +44,7 @@ export var createBookings = /*#__PURE__*/function () {
|
|
|
48
44
|
}
|
|
49
45
|
}, _callee2);
|
|
50
46
|
}));
|
|
51
|
-
return function createBookings(
|
|
47
|
+
return function createBookings(_x3) {
|
|
52
48
|
return _ref2.apply(this, arguments);
|
|
53
49
|
};
|
|
54
50
|
}();
|
|
@@ -70,7 +66,7 @@ export var editBookings = /*#__PURE__*/function () {
|
|
|
70
66
|
}
|
|
71
67
|
}, _callee3);
|
|
72
68
|
}));
|
|
73
|
-
return function editBookings(
|
|
69
|
+
return function editBookings(_x4, _x5) {
|
|
74
70
|
return _ref3.apply(this, arguments);
|
|
75
71
|
};
|
|
76
72
|
}();
|
|
@@ -30,10 +30,10 @@ import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
|
30
30
|
import { getProductDetail } from "../../../info/service/serve";
|
|
31
31
|
import { getIsBundleOrCombination } from "../../../info/utils";
|
|
32
32
|
import { getProductExtend } from "./utils";
|
|
33
|
-
import { formatProductListByCategory, getIsEject,
|
|
33
|
+
import { formatProductListByCategory, getIsEject, getProductTotalPrice, isSessionProduct, request } from "../../../utils";
|
|
34
34
|
import { locales, getUniqueId } from '@pisell/utils';
|
|
35
35
|
import { useUpdateEffect } from 'ahooks';
|
|
36
|
-
import {
|
|
36
|
+
import { isNormalProductByDurationSchedule } from "../../../info/service2/utils";
|
|
37
37
|
var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087, 6303, 6080, 6978, 7386, 6848, 6305];
|
|
38
38
|
var Info = function Info(props) {
|
|
39
39
|
var _state$client2, _state$service2, _state$service4, _state$service5;
|
|
@@ -243,7 +243,6 @@ var Info = function Info(props) {
|
|
|
243
243
|
var isSession = isSessionProduct(item);
|
|
244
244
|
// 是否有单规格 组合规格 套餐, 或者session商品 如果没有不需要打开弹窗
|
|
245
245
|
var isEject = getIsEject(item, type);
|
|
246
|
-
var isOnlySession = getIsOnlySession(item);
|
|
247
246
|
var lock = false;
|
|
248
247
|
state.action({
|
|
249
248
|
type: 'pisell1.handleOpenProductModal',
|
|
@@ -255,10 +254,9 @@ var Info = function Info(props) {
|
|
|
255
254
|
session: isSession,
|
|
256
255
|
variant: true,
|
|
257
256
|
package: true,
|
|
258
|
-
number:
|
|
257
|
+
number: isNormalProductByDurationSchedule(item)
|
|
259
258
|
},
|
|
260
259
|
is_eject: isEject ? 1 : 0,
|
|
261
|
-
isOnlySession: isOnlySession,
|
|
262
260
|
isOS: isSession,
|
|
263
261
|
customer_id: (_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id
|
|
264
262
|
},
|
|
@@ -35,7 +35,6 @@ import { formatResources, getDurationProps, getFlexibleOption, getTimeObj, setDe
|
|
|
35
35
|
import { PisellAdjustPriceInputNumber } from '@pisell/materials';
|
|
36
36
|
import { editSessionProduct } from "../../../info/utils";
|
|
37
37
|
import { isNormalProductByDurationSchedule } from "../../../info/service2/utils";
|
|
38
|
-
import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBooking/utils";
|
|
39
38
|
var submitLock = false;
|
|
40
39
|
var Info = function Info(_, ref) {
|
|
41
40
|
var _state$service3, _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI5, _state$service6, _state$service8, _window$BaseMaterials, _state$service$cacheI6, _state$service9, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10, _state$bookingConfig3, _state$service$resour;
|
|
@@ -245,15 +244,13 @@ var Info = function Info(_, ref) {
|
|
|
245
244
|
}
|
|
246
245
|
_item._extend = _extend;
|
|
247
246
|
_item._time = new Date().getTime();
|
|
248
|
-
_item._serviceKey = genServiceKey(_item);
|
|
249
247
|
var _id = _item === null || _item === void 0 ? void 0 : _item._id;
|
|
250
248
|
|
|
251
249
|
// 判断是新增还是编辑
|
|
252
250
|
if (!_list.some(function (d) {
|
|
253
251
|
return d._id === _id;
|
|
254
252
|
})) {
|
|
255
|
-
|
|
256
|
-
_list = detail.list;
|
|
253
|
+
_list.push(_item);
|
|
257
254
|
} else {
|
|
258
255
|
// 手动改价时移除优惠券使用
|
|
259
256
|
if (isChangeTotal.current) {
|
|
@@ -431,7 +428,7 @@ var Info = function Info(_, ref) {
|
|
|
431
428
|
session: isSession,
|
|
432
429
|
variant: true,
|
|
433
430
|
package: true,
|
|
434
|
-
number:
|
|
431
|
+
number: isNormalProductByDurationSchedule(item)
|
|
435
432
|
},
|
|
436
433
|
isOS: isSession,
|
|
437
434
|
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,
|
|
@@ -5,8 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { getNoResource2 } from "../mock";
|
|
8
|
-
export var getFormatResourceListAndMap = function getFormatResourceListAndMap(data) {
|
|
9
|
-
var bookingId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
8
|
+
export var getFormatResourceListAndMap = function getFormatResourceListAndMap(data, bookingId) {
|
|
10
9
|
var resourceList = (data || {}).concat([getNoResource2({})]);
|
|
11
10
|
var map = resourceList.reduce(function (prev, item) {
|
|
12
11
|
prev[item.id] = item;
|
|
@@ -21,7 +20,7 @@ export var getFormatResourceListAndMap = function getFormatResourceListAndMap(da
|
|
|
21
20
|
var pax = 0;
|
|
22
21
|
(((_map$cur = map[cur]) === null || _map$cur === void 0 ? void 0 : _map$cur.times) || []).forEach(function (time) {
|
|
23
22
|
time.event_list.forEach(function (event) {
|
|
24
|
-
if (
|
|
23
|
+
if (event.id !== bookingId) {
|
|
25
24
|
pax += (event === null || event === void 0 ? void 0 : event.pax) || 0;
|
|
26
25
|
}
|
|
27
26
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
|
|
2
|
-
export declare const getSumCapacity: ({ cacheItem }: any
|
|
2
|
+
export declare const getSumCapacity: ({ cacheItem }: any) => number;
|
|
3
3
|
/**
|
|
4
4
|
* @title: 查找是否有可用的time
|
|
5
5
|
* @description:
|
|
@@ -162,9 +162,7 @@ export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cach
|
|
|
162
162
|
return time;
|
|
163
163
|
};
|
|
164
164
|
export var getSumCapacity = function getSumCapacity(_ref) {
|
|
165
|
-
var _cacheItem$_extend;
|
|
166
165
|
var cacheItem = _ref.cacheItem;
|
|
167
|
-
var isCalcQuantity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
168
166
|
var sum = 0;
|
|
169
167
|
var _iterator = _createForOfIteratorHelper(cacheItem._extend.capacity || []),
|
|
170
168
|
_step;
|
|
@@ -178,7 +176,7 @@ export var getSumCapacity = function getSumCapacity(_ref) {
|
|
|
178
176
|
} finally {
|
|
179
177
|
_iterator.f();
|
|
180
178
|
}
|
|
181
|
-
return sum
|
|
179
|
+
return sum;
|
|
182
180
|
};
|
|
183
181
|
|
|
184
182
|
/**
|
|
@@ -304,7 +302,7 @@ export var getAppointmentTimingPreference = function getAppointmentTimingPrefere
|
|
|
304
302
|
* @Date: 2024-01-26 14:09
|
|
305
303
|
*/
|
|
306
304
|
export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTime(state, cacheItem, timeObj) {
|
|
307
|
-
var _cacheItem$duration, _cacheItem$
|
|
305
|
+
var _cacheItem$duration, _cacheItem$_extend;
|
|
308
306
|
var appointmentTimingPreference = getAppointmentTimingPreference(state);
|
|
309
307
|
|
|
310
308
|
// 获取上一个服务商品
|
|
@@ -372,7 +370,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
372
370
|
endDate = _getServiceTimes2.endDate;
|
|
373
371
|
_extend.startDate = startDate;
|
|
374
372
|
_extend.endDate = endDate;
|
|
375
|
-
var session = cacheItem === null || cacheItem === void 0 || (_cacheItem$
|
|
373
|
+
var session = cacheItem === null || cacheItem === void 0 || (_cacheItem$_extend = cacheItem._extend) === null || _cacheItem$_extend === void 0 || (_cacheItem$_extend = _cacheItem$_extend.other) === null || _cacheItem$_extend === void 0 ? void 0 : _cacheItem$_extend.session;
|
|
376
374
|
if (isSessionProduct(cacheItem) && session) {
|
|
377
375
|
_extend.start_date = session.start_at;
|
|
378
376
|
_extend.startDate = session.start_at;
|
|
@@ -261,7 +261,6 @@ declare const _default: {
|
|
|
261
261
|
'pisell2.text.goodpass.code': string;
|
|
262
262
|
'pisell2.text.goodpass.enter-code': string;
|
|
263
263
|
'pisell2.text.goodpass.code-invalid': string;
|
|
264
|
-
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
265
264
|
'pisell2.text.status.valid': string;
|
|
266
265
|
'pisell2.text.status.expired': string;
|
|
267
266
|
'pisell2.text.validity.expired': (str: string) => string;
|
|
@@ -532,7 +531,6 @@ declare const _default: {
|
|
|
532
531
|
'pisell2.text.goodpass.code': string;
|
|
533
532
|
'pisell2.text.goodpass.enter-code': string;
|
|
534
533
|
'pisell2.text.goodpass.code-invalid': string;
|
|
535
|
-
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
536
534
|
'pisell2.text.status.valid': string;
|
|
537
535
|
'pisell2.text.status.expired': string;
|
|
538
536
|
'pisell2.text.validity.expired': (str: string) => string;
|
|
@@ -803,7 +801,6 @@ declare const _default: {
|
|
|
803
801
|
'pisell2.text.goodpass.code': string;
|
|
804
802
|
'pisell2.text.goodpass.enter-code': string;
|
|
805
803
|
'pisell2.text.goodpass.code-invalid': string;
|
|
806
|
-
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
807
804
|
'pisell2.text.status.valid': string;
|
|
808
805
|
'pisell2.text.status.expired': string;
|
|
809
806
|
'pisell2.text.validity.expired': (str: string) => string;
|
|
@@ -292,13 +292,12 @@ export default {
|
|
|
292
292
|
'pisell2.text.send-form-reminder-tooltip': 'Refresh forms',
|
|
293
293
|
'pisell2.text.send-form-reminder-refresh': 'Forms refreshed successfully',
|
|
294
294
|
'pisell2.text.send-form-reminder-error-message': 'Please select at least one reminder method',
|
|
295
|
-
'pisell2.text.goodpass': "
|
|
295
|
+
'pisell2.text.goodpass': "GoodPass",
|
|
296
296
|
'pisell2.text.goodpass.product-vouchers': "Product Vouchers",
|
|
297
297
|
'pisell2.text.goodpass.view-more': "View More",
|
|
298
298
|
'pisell2.text.goodpass.code': "Code",
|
|
299
299
|
'pisell2.text.goodpass.enter-code': "Enter Code",
|
|
300
300
|
'pisell2.text.goodpass.code-invalid': "Current code is invalid",
|
|
301
|
-
'pisell2.text.goodpass.code-invalid-cart': "No eligible items in the cart",
|
|
302
301
|
'pisell2.text.status.valid': 'Valid',
|
|
303
302
|
'pisell2.text.status.expired': 'Expired',
|
|
304
303
|
'pisell2.text.validity.expired': function pisell2TextValidityExpired(str) {
|
|
@@ -610,13 +609,12 @@ export default {
|
|
|
610
609
|
'pisell2.text.send-form-reminder-tooltip': '刷新表单',
|
|
611
610
|
'pisell2.text.send-form-reminder-refresh': '已刷新表单',
|
|
612
611
|
'pisell2.text.send-form-reminder-error-message': '请至少选择一种提醒方式',
|
|
613
|
-
'pisell2.text.goodpass': "
|
|
612
|
+
'pisell2.text.goodpass': "商品券",
|
|
614
613
|
'pisell2.text.goodpass.product-vouchers': "商品兑换券",
|
|
615
614
|
'pisell2.text.goodpass.view-more': "查看更多",
|
|
616
615
|
'pisell2.text.goodpass.code': "券码",
|
|
617
616
|
'pisell2.text.goodpass.enter-code': "请输入券码",
|
|
618
617
|
'pisell2.text.goodpass.code-invalid': "当前券码不可用",
|
|
619
|
-
'pisell2.text.goodpass.code-invalid-cart': "当前购物车中无可用商品",
|
|
620
618
|
'pisell2.text.status.valid': '有效',
|
|
621
619
|
'pisell2.text.status.expired': '已过期',
|
|
622
620
|
'pisell2.text.validity.expired': function pisell2TextValidityExpired(str) {
|
|
@@ -928,13 +926,12 @@ export default {
|
|
|
928
926
|
'pisell2.text.send-form-reminder-tooltip': '刷新表單',
|
|
929
927
|
'pisell2.text.send-form-reminder-refresh': '已刷新表單',
|
|
930
928
|
'pisell2.text.send-form-reminder-error-message': '請至少選擇一種提醒方式',
|
|
931
|
-
'pisell2.text.goodpass': "
|
|
929
|
+
'pisell2.text.goodpass': "商品券",
|
|
932
930
|
'pisell2.text.goodpass.product-vouchers': "商品兌換券",
|
|
933
931
|
'pisell2.text.goodpass.view-more': "查看更多",
|
|
934
932
|
'pisell2.text.goodpass.code': "券碼",
|
|
935
933
|
'pisell2.text.goodpass.enter-code': "請輸入券碼",
|
|
936
934
|
'pisell2.text.goodpass.code-invalid': "當前券碼不可用",
|
|
937
|
-
'pisell2.text.goodpass.code-invalid-cart': "當前購物車中無可用商品",
|
|
938
935
|
'pisell2.text.status.valid': '有效',
|
|
939
936
|
'pisell2.text.status.expired': '已過期',
|
|
940
937
|
'pisell2.text.validity.expired': function pisell2TextValidityExpired(str) {
|
|
@@ -142,7 +142,6 @@ export declare const deleteCacheParams: () => void;
|
|
|
142
142
|
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
143
|
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
144
144
|
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
145
|
-
export declare const getIsOnlySession: (item: any) => boolean;
|
|
146
145
|
/**
|
|
147
146
|
* @title: 创建一个服务商品
|
|
148
147
|
* @description:
|
|
@@ -640,10 +640,6 @@ export var getIsEject = function getIsEject(item, type) {
|
|
|
640
640
|
// 是否有单规格 组合规格 套餐, 或者session商品 如果没有不需要打开弹窗
|
|
641
641
|
return type === 'detail' || item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0 || isSession;
|
|
642
642
|
};
|
|
643
|
-
export var getIsOnlySession = function getIsOnlySession(item) {
|
|
644
|
-
var isSession = isSessionProduct(item);
|
|
645
|
-
return !(item.bundle_group_count > 0 || item.option_group_count > 0 || item.is_variant > 0) && isSession;
|
|
646
|
-
};
|
|
647
643
|
|
|
648
644
|
/**
|
|
649
645
|
* @title: 创建一个服务商品
|