@pisell/private-materials 6.2.20 → 6.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Checkout/index.d.ts +37 -0
- package/es/components/Sales/Checkout/serve.d.ts +15 -0
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Event/Detail.d.ts +30 -0
- package/es/components/Sales/Event/serve.d.ts +49 -0
- package/es/components/Sales/Summary/index.d.ts +35 -0
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Content/index.js +19 -12
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- 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 +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +106 -0
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/booking/components/customSelect/index.d.ts +38 -0
- package/es/components/booking/components/customSelect/index.js +0 -1
- package/es/components/booking/components/footer/index.d.ts +11 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/editBookingModal/index.js +58 -29
- package/es/components/booking/editBookingModal/serve.d.ts +1 -0
- package/es/components/booking/editBookingModal/serve.js +19 -11
- package/es/components/booking/hooks/useClearCart.d.ts +2 -0
- package/es/components/booking/hooks/useClearCart.js +8 -11
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/client/index.js +2 -3
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/Lists.js +26 -36
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.js +10 -15
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/utils.d.ts +247 -0
- package/es/components/booking/info/service2/utils.js +21 -20
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/index.js +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addService/utils.js +4 -7
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +168 -264
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/index.js +15 -19
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +828 -0
- package/es/components/booking/materiels/duration/index.d.ts +13 -0
- package/es/components/booking/materiels/duration/index.js +2 -9
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +108 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- 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/index.d.ts +7 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +3 -0
- package/es/components/eventBooking/locales.d.ts +246 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +289 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/es/components/productSelect/index.d.ts +26 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.js +41 -48
- package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/index.js +18 -21
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -177
- package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/components/timeBar/index.js +71 -78
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/walletList/index.d.ts +28 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/utils/index.d.ts +23 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Checkout/index.d.ts +37 -0
- package/lib/components/Sales/Checkout/serve.d.ts +15 -0
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Event/Detail.d.ts +30 -0
- package/lib/components/Sales/Event/serve.d.ts +49 -0
- package/lib/components/Sales/Summary/index.d.ts +35 -0
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Content/index.js +7 -2
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- 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 +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +106 -0
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/booking/components/customSelect/index.d.ts +38 -0
- package/lib/components/booking/components/customSelect/index.js +0 -1
- package/lib/components/booking/components/footer/index.d.ts +11 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/editBookingModal/index.js +56 -21
- package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
- package/lib/components/booking/editBookingModal/serve.js +12 -6
- package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
- package/lib/components/booking/hooks/useClearCart.js +13 -16
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/client/index.js +4 -5
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/Lists.js +23 -35
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.js +1 -7
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/utils.d.ts +247 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addService/utils.js +3 -5
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/lib/components/booking/info2/service/editService/index.js +72 -137
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/index.js +9 -13
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +828 -0
- package/lib/components/booking/materiels/duration/index.d.ts +13 -0
- package/lib/components/booking/materiels/duration/index.js +2 -7
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +108 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- 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/index.d.ts +7 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +3 -0
- package/lib/components/eventBooking/locales.d.ts +246 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +289 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/lib/components/productSelect/index.d.ts +26 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
- package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/index.js +15 -18
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -145
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/walletList/index.d.ts +28 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/utils/index.d.ts +23 -0
- package/package.json +3 -3
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/editService/constants.js +0 -3
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/editService/constants.js +0 -31
@@ -0,0 +1,174 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.ticket-booking.info': string;
|
4
|
+
'pisell2.ticket-booking.notes': string;
|
5
|
+
'pisell2.ticket-booking.forms': string;
|
6
|
+
'pisell2.ticket-booking.sales': string;
|
7
|
+
'pisell2.ticket-booking.payment': string;
|
8
|
+
'pisell2.ticket-booking.unsaved-changes': string;
|
9
|
+
'pisell2.ticket-booking.exit-confirm': string;
|
10
|
+
'pisell2.ticket-booking.go-back': string;
|
11
|
+
'pisell2.ticket-booking.exit': string;
|
12
|
+
'pisell2.ticket-booking.deposit': string;
|
13
|
+
'pisell2.ticket-booking.copy-success': string;
|
14
|
+
'pisell2.ticket-booking.no-data': string;
|
15
|
+
'pisell2.ticket-booking.authorized': string;
|
16
|
+
'pisell2.ticket-booking.paid': string;
|
17
|
+
'pisell2.ticket-booking.partially-paid': string;
|
18
|
+
'pisell2.ticket-booking.partially-refunded': string;
|
19
|
+
'pisell2.ticket-booking.payment-pending': string;
|
20
|
+
'pisell2.ticket-booking.refunded': string;
|
21
|
+
'pisell2.ticket-booking.unpaid': string;
|
22
|
+
'pisell2.ticket-booking.voided': string;
|
23
|
+
'pisell2.ticket-booking.pending': string;
|
24
|
+
'pisell2.ticket-booking.all': string;
|
25
|
+
'pisell2.ticket-booking.not-started': string;
|
26
|
+
'pisell2.ticket-booking.started': string;
|
27
|
+
'pisell2.ticket-booking.finished': string;
|
28
|
+
'pisell2.ticket-booking.canceled': string;
|
29
|
+
'pisell2.ticket-booking.inform': string;
|
30
|
+
'pisell2.ticket-booking.check-management': string;
|
31
|
+
'pisell2.ticket-booking.confirm': string;
|
32
|
+
'pisell2.ticket-booking.dashboard': string;
|
33
|
+
'pisell2.ticket-booking.booking-list': string;
|
34
|
+
'pisell2.ticket-booking.full-data': string;
|
35
|
+
'pisell2.ticket-booking.today': string;
|
36
|
+
'pisell2.ticket-booking.now': string;
|
37
|
+
'pisell2.ticket-booking.start-time': string;
|
38
|
+
'pisell2.ticket-booking.create-time': string;
|
39
|
+
'pisell2.ticket-booking.customer': string;
|
40
|
+
'pisell2.ticket-booking.total': string;
|
41
|
+
'pisell2.ticket-booking.search': string;
|
42
|
+
'pisell2.ticket-booking.refresh-success': string;
|
43
|
+
'pisell2.ticket-booking.loading': string;
|
44
|
+
'pisell2.ticket-booking.appointment-not-found': string;
|
45
|
+
'pisell2.ticket-booking.scan': string;
|
46
|
+
'pisell2.ticket-booking.create-new': string;
|
47
|
+
'pisell2.ticket-booking.add-to-cart': string;
|
48
|
+
'pisell2.ticket-booking.not-available-title': string;
|
49
|
+
'pisell2.ticket-booking.not-available-ok': string;
|
50
|
+
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
51
|
+
'pisell2.product.card.cart-items': (number: number) => string;
|
52
|
+
'pisell2.product.card.subtotal': string;
|
53
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
54
|
+
'pisell2.product.card.day': (val: number) => string;
|
55
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
56
|
+
'pisell2.product.card.minute': (val: number) => string;
|
57
|
+
"pisell2.ticket-booking.reload": string;
|
58
|
+
};
|
59
|
+
'zh-CN': {
|
60
|
+
'pisell2.ticket-booking.info': string;
|
61
|
+
'pisell2.ticket-booking.notes': string;
|
62
|
+
'pisell2.ticket-booking.forms': string;
|
63
|
+
'pisell2.ticket-booking.sales': string;
|
64
|
+
'pisell2.ticket-booking.payment': string;
|
65
|
+
'pisell2.ticket-booking.unsaved-changes': string;
|
66
|
+
'pisell2.ticket-booking.exit-confirm': string;
|
67
|
+
'pisell2.ticket-booking.go-back': string;
|
68
|
+
'pisell2.ticket-booking.exit': string;
|
69
|
+
'pisell2.ticket-booking.deposit': string;
|
70
|
+
'pisell2.ticket-booking.copy-success': string;
|
71
|
+
'pisell2.ticket-booking.no-data': string;
|
72
|
+
'pisell2.ticket-booking.authorized': string;
|
73
|
+
'pisell2.ticket-booking.paid': string;
|
74
|
+
'pisell2.ticket-booking.partially-paid': string;
|
75
|
+
'pisell2.ticket-booking.partially-refunded': string;
|
76
|
+
'pisell2.ticket-booking.payment-pending': string;
|
77
|
+
'pisell2.ticket-booking.refunded': string;
|
78
|
+
'pisell2.ticket-booking.unpaid': string;
|
79
|
+
'pisell2.ticket-booking.voided': string;
|
80
|
+
'pisell2.ticket-booking.pending': string;
|
81
|
+
'pisell2.ticket-booking.all': string;
|
82
|
+
'pisell2.ticket-booking.not-started': string;
|
83
|
+
'pisell2.ticket-booking.started': string;
|
84
|
+
'pisell2.ticket-booking.finished': string;
|
85
|
+
'pisell2.ticket-booking.canceled': string;
|
86
|
+
'pisell2.ticket-booking.inform': string;
|
87
|
+
'pisell2.ticket-booking.check-management': string;
|
88
|
+
'pisell2.ticket-booking.confirm': string;
|
89
|
+
'pisell2.ticket-booking.dashboard': string;
|
90
|
+
'pisell2.ticket-booking.booking-list': string;
|
91
|
+
'pisell2.ticket-booking.full-data': string;
|
92
|
+
'pisell2.ticket-booking.today': string;
|
93
|
+
'pisell2.ticket-booking.now': string;
|
94
|
+
'pisell2.ticket-booking.start-time': string;
|
95
|
+
'pisell2.ticket-booking.create-time': string;
|
96
|
+
'pisell2.ticket-booking.customer': string;
|
97
|
+
'pisell2.ticket-booking.total': string;
|
98
|
+
'pisell2.ticket-booking.search': string;
|
99
|
+
'pisell2.ticket-booking.refresh-success': string;
|
100
|
+
'pisell2.ticket-booking.loading': string;
|
101
|
+
'pisell2.ticket-booking.appointment-not-found': string;
|
102
|
+
'pisell2.ticket-booking.scan': string;
|
103
|
+
'pisell2.ticket-booking.create-new': string;
|
104
|
+
'pisell2.ticket-booking.add-to-cart': string;
|
105
|
+
'pisell2.ticket-booking.not-available-title': string;
|
106
|
+
'pisell2.ticket-booking.not-available-ok': string;
|
107
|
+
'pisell2.product.card.cart-items': (number: number) => string;
|
108
|
+
'pisell2.product.card.subtotal': string;
|
109
|
+
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
110
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
111
|
+
'pisell2.product.card.day': (val: number) => string;
|
112
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
113
|
+
'pisell2.product.card.minute': (val: number) => string;
|
114
|
+
"pisell2.ticket-booking.reload": string;
|
115
|
+
};
|
116
|
+
'zh-HK': {
|
117
|
+
'pisell2.ticket-booking.info': string;
|
118
|
+
'pisell2.ticket-booking.notes': string;
|
119
|
+
'pisell2.ticket-booking.forms': string;
|
120
|
+
'pisell2.ticket-booking.sales': string;
|
121
|
+
'pisell2.ticket-booking.payment': string;
|
122
|
+
'pisell2.ticket-booking.unsaved-changes': string;
|
123
|
+
'pisell2.ticket-booking.exit-confirm': string;
|
124
|
+
'pisell2.ticket-booking.go-back': string;
|
125
|
+
'pisell2.ticket-booking.exit': string;
|
126
|
+
'pisell2.ticket-booking.deposit': string;
|
127
|
+
'pisell2.ticket-booking.copy-success': string;
|
128
|
+
'pisell2.ticket-booking.no-data': string;
|
129
|
+
'pisell2.ticket-booking.authorized': string;
|
130
|
+
'pisell2.ticket-booking.paid': string;
|
131
|
+
'pisell2.ticket-booking.partially-paid': string;
|
132
|
+
'pisell2.ticket-booking.partially-refunded': string;
|
133
|
+
'pisell2.ticket-booking.payment-pending': string;
|
134
|
+
'pisell2.ticket-booking.refunded': string;
|
135
|
+
'pisell2.ticket-booking.unpaid': string;
|
136
|
+
'pisell2.ticket-booking.voided': string;
|
137
|
+
'pisell2.ticket-booking.pending': string;
|
138
|
+
'pisell2.ticket-booking.all': string;
|
139
|
+
'pisell2.ticket-booking.not-started': string;
|
140
|
+
'pisell2.ticket-booking.started': string;
|
141
|
+
'pisell2.ticket-booking.finished': string;
|
142
|
+
'pisell2.ticket-booking.canceled': string;
|
143
|
+
'pisell2.ticket-booking.inform': string;
|
144
|
+
'pisell2.ticket-booking.check-management': string;
|
145
|
+
'pisell2.ticket-booking.confirm': string;
|
146
|
+
'pisell2.ticket-booking.dashboard': string;
|
147
|
+
'pisell2.ticket-booking.booking-list': string;
|
148
|
+
'pisell2.ticket-booking.full-data': string;
|
149
|
+
'pisell2.ticket-booking.today': string;
|
150
|
+
'pisell2.ticket-booking.now': string;
|
151
|
+
'pisell2.ticket-booking.start-time': string;
|
152
|
+
'pisell2.ticket-booking.create-time': string;
|
153
|
+
'pisell2.ticket-booking.customer': string;
|
154
|
+
'pisell2.ticket-booking.total': string;
|
155
|
+
'pisell2.ticket-booking.search': string;
|
156
|
+
'pisell2.ticket-booking.refresh-success': string;
|
157
|
+
'pisell2.ticket-booking.loading': string;
|
158
|
+
'pisell2.ticket-booking.appointment-not-found': string;
|
159
|
+
'pisell2.ticket-booking.scan': string;
|
160
|
+
'pisell2.ticket-booking.create-new': string;
|
161
|
+
'pisell2.ticket-booking.add-to-cart': string;
|
162
|
+
'pisell2.ticket-booking.not-available-title': string;
|
163
|
+
'pisell2.ticket-booking.not-available-ok': string;
|
164
|
+
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
165
|
+
'pisell2.product.card.cart-items': (number: number) => string;
|
166
|
+
'pisell2.product.card.subtotal': string;
|
167
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
168
|
+
'pisell2.product.card.day': (val: number) => string;
|
169
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
170
|
+
'pisell2.product.card.minute': (val: number) => string;
|
171
|
+
"pisell2.ticket-booking.reload": string;
|
172
|
+
};
|
173
|
+
};
|
174
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import 'dayjs/locale/zh-cn';
|
2
|
+
import 'dayjs/locale/en';
|
3
|
+
import 'dayjs/locale/zh-tw';
|
4
|
+
/**
|
5
|
+
* @title: 是否英文
|
6
|
+
* @description:
|
7
|
+
* @param {any} item
|
8
|
+
* @return {*}
|
9
|
+
* @Author: WangHan
|
10
|
+
* @Date: 2024-12-28 22:49
|
11
|
+
*/
|
12
|
+
export declare const isEn: (item: any) => boolean;
|
13
|
+
/**
|
14
|
+
* @title: 跨日预约时间
|
15
|
+
* @description:
|
16
|
+
* @param {any} item
|
17
|
+
* @return {*}
|
18
|
+
* @Author: WangHan
|
19
|
+
* @Date: 2024-12-28 22:50
|
20
|
+
*/
|
21
|
+
export declare const formatMultiDayDate: (item: any) => string;
|
22
|
+
/**
|
23
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
24
|
+
* @description:
|
25
|
+
* @param {any} item
|
26
|
+
* @param {any} currentDate
|
27
|
+
* @return {*}
|
28
|
+
* @Author: zhiwei.Wang
|
29
|
+
* @Date: 2024-04-26 14:04
|
30
|
+
*/
|
31
|
+
export declare const getServiceTime: (item: any, currentDate: any, utils: any) => string;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
declare module 'react' {
|
4
|
+
interface HTMLAttributes<T> {
|
5
|
+
role?: string;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
declare global {
|
9
|
+
namespace JSX {
|
10
|
+
interface IntrinsicElements {
|
11
|
+
div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
12
|
+
children?: React.ReactNode;
|
13
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
14
|
+
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
15
|
+
onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
|
16
|
+
onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
17
|
+
onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
|
18
|
+
role?: string;
|
19
|
+
};
|
20
|
+
img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
21
|
+
span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
|
22
|
+
children?: React.ReactNode;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
declare const WalletList: (props: any) => JSX.Element;
|
28
|
+
export default WalletList;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
|
2
|
+
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
3
|
+
declare class Request {
|
4
|
+
private request;
|
5
|
+
constructor();
|
6
|
+
setRequest(val: any): void;
|
7
|
+
withCustomToast(config?: any): any;
|
8
|
+
getRequest(): {
|
9
|
+
get: (url: string, params: any, config?: any) => Promise<any>;
|
10
|
+
post: (url: string, params: any, config?: any) => Promise<any>;
|
11
|
+
put: RType;
|
12
|
+
remove: RType;
|
13
|
+
custom: RType;
|
14
|
+
};
|
15
|
+
}
|
16
|
+
export declare const request: Request;
|
17
|
+
declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
18
|
+
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
19
|
+
export declare const saveConfirm: () => Promise<{
|
20
|
+
destroy: () => void;
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
22
|
+
}>;
|
23
|
+
export { modal };
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import Decimal from 'decimal.js';
|
2
|
+
import { ICalculatePriceParams } from './types';
|
3
|
+
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
4
|
+
totalPrice: number;
|
5
|
+
originTotal: any;
|
6
|
+
is_charge_tax: any;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* 获取商品总价
|
10
|
+
* @description 当前总价计算基于商品数量为1
|
11
|
+
* @param item 商品
|
12
|
+
* @returns 商品总价
|
13
|
+
*/
|
14
|
+
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
|
15
|
+
/**
|
16
|
+
* 获取商品原始总价
|
17
|
+
* @description 当前总价计算基于商品数量为1
|
18
|
+
* @param item 商品
|
19
|
+
* @returns 商品原始总价
|
20
|
+
*/
|
21
|
+
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
|
22
|
+
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
23
|
+
export declare const formatBundleToOrigin: (bundle: any) => any;
|
24
|
+
export declare const formatOptionsToOrigin: (options: any) => any;
|
25
|
+
export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
|
26
|
+
total: number;
|
27
|
+
protocols: any;
|
28
|
+
} | null;
|
29
|
+
/**
|
30
|
+
* 获取商品定金
|
31
|
+
* @description 定金基于商品售价来算,最终乘商品数量
|
32
|
+
* 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
33
|
+
* 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
|
34
|
+
* 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
35
|
+
* @param params 参数
|
36
|
+
* @returns 商品定金
|
37
|
+
*/
|
38
|
+
export declare const getProductDeposit: (params: {
|
39
|
+
cartItem: any;
|
40
|
+
product: any;
|
41
|
+
bundle?: any;
|
42
|
+
options?: any;
|
43
|
+
num?: number;
|
44
|
+
}) => {
|
45
|
+
total: number;
|
46
|
+
protocols: any;
|
47
|
+
} | null;
|
48
|
+
/**
|
49
|
+
* 计算商品定金
|
50
|
+
* @param params 参数
|
51
|
+
* @returns 商品定金
|
52
|
+
*/
|
53
|
+
export declare const calculateProductDeposit: (params: {
|
54
|
+
depositData: {
|
55
|
+
deposit_fixed?: string;
|
56
|
+
deposit_percentage?: string;
|
57
|
+
};
|
58
|
+
total: string | number;
|
59
|
+
num: number;
|
60
|
+
}) => {
|
61
|
+
result: boolean;
|
62
|
+
depositTotal: Decimal;
|
63
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface CheckoutData {
|
3
|
+
}
|
4
|
+
interface PayProps {
|
5
|
+
order_id: string;
|
6
|
+
amount: number;
|
7
|
+
sale_channel?: string;
|
8
|
+
is_deposit?: number;
|
9
|
+
deposit_amount?: number;
|
10
|
+
total_amount?: number;
|
11
|
+
}
|
12
|
+
interface CheckoutContextType {
|
13
|
+
onCheckBeforeBooking: (data: any) => Promise<{
|
14
|
+
result: boolean;
|
15
|
+
num: number;
|
16
|
+
}>;
|
17
|
+
onCheckout: (data: any) => Promise<any>;
|
18
|
+
onPay: (payProps: PayProps) => void;
|
19
|
+
createBooking: any;
|
20
|
+
checkBeforeBooking: any;
|
21
|
+
freePay: any;
|
22
|
+
}
|
23
|
+
interface CheckoutProviderProps {
|
24
|
+
children: React.ReactNode;
|
25
|
+
}
|
26
|
+
export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
|
27
|
+
export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
|
28
|
+
/**
|
29
|
+
* 使用步骤管理的Hook
|
30
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
31
|
+
* @returns {StepContextType} 步骤管理上下文
|
32
|
+
*/
|
33
|
+
export declare const useCheckout: () => CheckoutContextType;
|
34
|
+
declare const _default: {
|
35
|
+
defaultState: CheckoutData;
|
36
|
+
};
|
37
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @title: 下单前置校验接口
|
3
|
+
* @param {any} data
|
4
|
+
*/
|
5
|
+
export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
|
6
|
+
/**
|
7
|
+
* @title: 创建订单
|
8
|
+
* @param {any} data
|
9
|
+
*/
|
10
|
+
export declare const createBookingApi: (data: any) => Promise<any>;
|
11
|
+
/**
|
12
|
+
* @title: 免费支付
|
13
|
+
* @param {string} orderId
|
14
|
+
*/
|
15
|
+
export declare const freePayApi: (orderId: string) => Promise<any>;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface CustomerData {
|
3
|
+
}
|
4
|
+
interface CustomerContextType {
|
5
|
+
appContext: any;
|
6
|
+
appUtils: any;
|
7
|
+
isLogin: () => boolean;
|
8
|
+
openLoginModal: (params: any) => void;
|
9
|
+
getUserInfo: () => any;
|
10
|
+
}
|
11
|
+
interface CustomerProviderProps {
|
12
|
+
children: React.ReactNode;
|
13
|
+
}
|
14
|
+
export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
|
15
|
+
export declare const CustomerProvider: React.FC<CustomerProviderProps>;
|
16
|
+
/**
|
17
|
+
* 使用步骤管理的Hook
|
18
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
19
|
+
* @returns {StepContextType} 步骤管理上下文
|
20
|
+
*/
|
21
|
+
export declare const useCustomer: () => CustomerContextType;
|
22
|
+
declare const _default: {
|
23
|
+
defaultState: CustomerData;
|
24
|
+
};
|
25
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface EventDetailContextType {
|
3
|
+
detail: any;
|
4
|
+
open: boolean;
|
5
|
+
onOpenEventDetail: (eventItem: any) => void;
|
6
|
+
onCloseEventDetail: () => void;
|
7
|
+
onSelectEventDetail: () => void;
|
8
|
+
selectEventDetailBookingOptions: (v: any) => void;
|
9
|
+
getEventDetailSelectDate: {
|
10
|
+
run: (id: number, params: any) => void;
|
11
|
+
loading: boolean;
|
12
|
+
data?: any;
|
13
|
+
};
|
14
|
+
currentBookingOption: any;
|
15
|
+
selectEventDetailProductDetail: (productDetail: any) => void;
|
16
|
+
checkBeforeSelectEventDetail: () => boolean;
|
17
|
+
getProductDetailRequest: any;
|
18
|
+
}
|
19
|
+
interface EventDetailProviderProps {
|
20
|
+
children: React.ReactNode;
|
21
|
+
}
|
22
|
+
export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
|
23
|
+
export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
|
24
|
+
/**
|
25
|
+
* 使用步骤管理的Hook
|
26
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
27
|
+
* @returns {StepContextType} 步骤管理上下文
|
28
|
+
*/
|
29
|
+
export declare const useEventDetail: () => EventDetailContextType;
|
30
|
+
export {};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* @title: 获取活动列表
|
3
|
+
* @description: https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/3102494/detail/55349999?spaceKey=menutech
|
4
|
+
* @param {any} params
|
5
|
+
* @return {*}
|
6
|
+
* @Author: zhiwei.Wang
|
7
|
+
*/
|
8
|
+
export declare const getEventListApi: (params: {
|
9
|
+
event_item_resource_id: number | string;
|
10
|
+
title?: string;
|
11
|
+
skip?: number;
|
12
|
+
num?: number;
|
13
|
+
open_quotation: number;
|
14
|
+
}) => Promise<any>;
|
15
|
+
export declare const getEventDetailIntroductionApi: (eventItemId: number | string) => Promise<any>;
|
16
|
+
export declare const getEventDetailTeacherApi: (params: {
|
17
|
+
event_item_id: number | string;
|
18
|
+
}) => Promise<any>;
|
19
|
+
export declare const getEventDetailBookingOptionsApi: (params: {
|
20
|
+
ids: number | string;
|
21
|
+
num: number;
|
22
|
+
skip: number;
|
23
|
+
customer_id?: number;
|
24
|
+
open_quotation?: number;
|
25
|
+
is_eject?: number;
|
26
|
+
}) => Promise<any>;
|
27
|
+
export declare const getEventDetailSelectDateApi: (id: number | string, params: {
|
28
|
+
days: number;
|
29
|
+
start_date?: string;
|
30
|
+
}) => Promise<any>;
|
31
|
+
/**
|
32
|
+
* 批量查询指定商品的最新价格
|
33
|
+
* @param params
|
34
|
+
*/
|
35
|
+
export declare const getProductPrice: (params: {
|
36
|
+
ids: number[];
|
37
|
+
customer_id: number;
|
38
|
+
schedule_date?: string;
|
39
|
+
}) => Promise<any>;
|
40
|
+
/**
|
41
|
+
* 获取商品详情
|
42
|
+
* @param id 商品id
|
43
|
+
* @param params 参数
|
44
|
+
* @returns
|
45
|
+
*/
|
46
|
+
export declare const getProductDetailApi: (id: number, params: {
|
47
|
+
open_deposit?: string | number;
|
48
|
+
front_end_cache_id?: string;
|
49
|
+
}) => Promise<any>;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface SummaryData {
|
3
|
+
}
|
4
|
+
interface SummaryContextType {
|
5
|
+
subtotal: number | string;
|
6
|
+
total: number | string;
|
7
|
+
taxTitle?: string;
|
8
|
+
totalTaxFee?: string;
|
9
|
+
isPriceIncludeTax?: 0 | 1;
|
10
|
+
deposit?: {
|
11
|
+
total: string;
|
12
|
+
protocols: any[];
|
13
|
+
hasDeposit: boolean;
|
14
|
+
};
|
15
|
+
isAgreeDepositPolicy: boolean;
|
16
|
+
setIsAgreeDepositPolicy: (value: boolean) => void;
|
17
|
+
getDepositProtocol: (params: {
|
18
|
+
id: string;
|
19
|
+
}) => Promise<any>;
|
20
|
+
}
|
21
|
+
interface SummaryProviderProps {
|
22
|
+
children: React.ReactNode;
|
23
|
+
}
|
24
|
+
export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
|
25
|
+
export declare const SummaryProvider: React.FC<SummaryProviderProps>;
|
26
|
+
/**
|
27
|
+
* 使用步骤管理的Hook
|
28
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
29
|
+
* @returns {StepContextType} 步骤管理上下文
|
30
|
+
*/
|
31
|
+
export declare const useSummary: () => SummaryContextType;
|
32
|
+
declare const _default: {
|
33
|
+
defaultState: SummaryData;
|
34
|
+
};
|
35
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getDepositProtocolApi: (id: string) => Promise<any>;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import Decimal from 'decimal.js';
|
2
|
+
interface CartItem {
|
3
|
+
price: number | string;
|
4
|
+
quantity?: number;
|
5
|
+
[k: string]: any;
|
6
|
+
}
|
7
|
+
interface PriceDetail {
|
8
|
+
subtotal: string;
|
9
|
+
total: string;
|
10
|
+
taxTitle?: string;
|
11
|
+
totalTaxFee?: string;
|
12
|
+
isPriceIncludeTax?: 0 | 1;
|
13
|
+
deposit?: {
|
14
|
+
total: string;
|
15
|
+
protocols: any[];
|
16
|
+
hasDeposit: boolean;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* 计算商品小计(不含其他费用)
|
21
|
+
* @param items - 购物车商品数组
|
22
|
+
* @returns 商品总价字符串,保留2位小数
|
23
|
+
*/
|
24
|
+
export declare const calculateSubtotal: (items: CartItem[]) => string;
|
25
|
+
/**
|
26
|
+
* @title: 单个商品的税费
|
27
|
+
* @description:
|
28
|
+
* 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
|
29
|
+
* $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
|
30
|
+
* @return {*}
|
31
|
+
* @Author: xiangfeng.xue
|
32
|
+
*/
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
|
+
/**
|
35
|
+
* 计算所有价格明细
|
36
|
+
* @param items - 购物车商品数组
|
37
|
+
* @param options - 其他费用配置
|
38
|
+
* @returns 价格明细对象
|
39
|
+
*/
|
40
|
+
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
41
|
+
/**
|
42
|
+
* @title: 计算定金
|
43
|
+
* @param items - 购物车商品数组
|
44
|
+
* @returns 定金字符串,保留2位小数
|
45
|
+
*/
|
46
|
+
export declare const calculateDeposit: (items: CartItem[]) => {
|
47
|
+
total: string;
|
48
|
+
protocols: any[];
|
49
|
+
hasDeposit: never;
|
50
|
+
} | undefined;
|
51
|
+
export {};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
interface CheckLoginParams {
|
2
|
+
isLogin: boolean;
|
3
|
+
openLoginModal: (params: {
|
4
|
+
callback: (status: string) => void;
|
5
|
+
}) => void;
|
6
|
+
isFormSubject: boolean;
|
7
|
+
utils: any;
|
8
|
+
accountLists: any[];
|
9
|
+
appointmentBooking: any;
|
10
|
+
getHolders: () => void;
|
11
|
+
}
|
12
|
+
export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
|
13
|
+
interface CheckHolderParams {
|
14
|
+
isFormSubject: boolean;
|
15
|
+
checkAccount: (type: string) => boolean;
|
16
|
+
carts: any[];
|
17
|
+
}
|
18
|
+
export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
|
19
|
+
interface CheckResourceParams {
|
20
|
+
carts: any[];
|
21
|
+
resources: any[];
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* @title: 检测资源数据
|
25
|
+
* @description:
|
26
|
+
* @param {CheckResourceParams} param1
|
27
|
+
* @return {*}
|
28
|
+
* @Author: WangHan
|
29
|
+
* @Date: 2025-04-29 18:02
|
30
|
+
*/
|
31
|
+
export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
|
32
|
+
interface CheckResourceParams {
|
33
|
+
carts: any[];
|
34
|
+
}
|
35
|
+
export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
|
36
|
+
interface AddHolderParams {
|
37
|
+
res: any;
|
38
|
+
bookingSubject: any;
|
39
|
+
accountLists: any[];
|
40
|
+
cartItem: any;
|
41
|
+
getHolders: () => void;
|
42
|
+
appointmentBooking: any;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* @title: 添加holder
|
46
|
+
* @description:
|
47
|
+
* @param {any} res
|
48
|
+
* @param {any} bookingSubject
|
49
|
+
* @param {any} accountLists
|
50
|
+
* @param {any} e
|
51
|
+
* @return {*}
|
52
|
+
* @Author: WangHan
|
53
|
+
* @Date: 2025-05-10 18:25
|
54
|
+
*/
|
55
|
+
export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
|
56
|
+
export {};
|