@pisell/private-materials 6.2.26 → 6.2.27
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 +143 -159
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/booking/addons/index.d.ts +17 -0
- package/es/components/booking/components/actionButtons/index.d.ts +29 -0
- package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/es/components/booking/components/customiseItemModal/index.js +5 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/dashboard/index.d.ts +20 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +3 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +9 -0
- package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +3 -0
- package/es/components/booking/info2/utilsByBooking.js +2 -1
- package/es/components/booking/locales.d.ts +903 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +3 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.js +26 -4
- package/es/components/shoppingCart/components/Cart/index.less +14 -0
- package/es/components/shoppingCart/type.d.ts +49 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +4 -3
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/es/components/ticketBooking/index.less +1 -1
- package/es/components/ticketBooking/locales.d.ts +177 -0
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/index.js +13 -8
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/index.d.ts +51 -0
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/types.d.ts +126 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/locales.d.ts +102 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/types.d.ts +49 -0
- package/es/plus/noteModal/AddTempModal.d.ts +7 -0
- package/es/plus/noteModal/index.d.ts +4 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/types.d.ts +17 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/index.d.ts +9 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/es/pro/comprehensiveSearch/types.d.ts +31 -0
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/index.d.ts +26 -0
- package/es/pro/pisellNumberSelector/index.less +1 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceRadio/index.d.ts +26 -0
- package/es/pro/skuDetailModal/index.d.ts +5 -0
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/types.d.ts +347 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/booking/addons/index.d.ts +17 -0
- package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
- package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/lib/components/booking/components/customiseItemModal/index.js +7 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/dashboard/index.d.ts +20 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +3 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +9 -0
- package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +3 -0
- package/lib/components/booking/info2/utilsByBooking.js +2 -1
- package/lib/components/booking/locales.d.ts +903 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +3 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +28 -5
- package/lib/components/shoppingCart/components/Cart/index.less +14 -0
- package/lib/components/shoppingCart/type.d.ts +49 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/lib/components/ticketBooking/index.less +1 -1
- package/lib/components/ticketBooking/locales.d.ts +177 -0
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/index.js +4 -4
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/index.d.ts +51 -0
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/types.d.ts +126 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/locales.d.ts +102 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/types.d.ts +49 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
- package/lib/plus/noteModal/index.d.ts +4 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/types.d.ts +17 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
- package/lib/pro/pisellNumberSelector/index.less +1 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
- package/lib/pro/skuDetailModal/index.d.ts +5 -0
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/types.d.ts +347 -0
- package/package.json +3 -3
@@ -0,0 +1,12 @@
|
|
1
|
+
import { PopoverProps } from 'antd';
|
2
|
+
import './index.less';
|
3
|
+
interface PisellPhoneKeyboardProps {
|
4
|
+
value?: string;
|
5
|
+
onChange: (e: string) => void;
|
6
|
+
popoverProps: PopoverProps;
|
7
|
+
virtualKeyboardProps?: any;
|
8
|
+
keyboardProps?: any;
|
9
|
+
virtualKeyInputProps?: any;
|
10
|
+
}
|
11
|
+
declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
|
12
|
+
export default PisellPhoneKeyboard;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface PisellPriceKeyboardModalProps {
|
3
|
+
/** 是否显示键盘 */
|
4
|
+
visible?: boolean;
|
5
|
+
/** 当前价格值 */
|
6
|
+
value?: string | number;
|
7
|
+
/** 价格变化回调(合并了 onChange 和 onEnter) */
|
8
|
+
onChange?: (value: string | number) => void;
|
9
|
+
/** 关闭键盘回调 */
|
10
|
+
onClose?: () => void;
|
11
|
+
/** 触发元素的 ref,用于计算位置 */
|
12
|
+
triggerRef?: React.RefObject<HTMLElement>;
|
13
|
+
/** 货币符号显示 */
|
14
|
+
showCurrencySymbol?: boolean;
|
15
|
+
/** 是否使用千分位分隔符 */
|
16
|
+
useThousandsSeparator?: boolean;
|
17
|
+
/** 自定义类名 */
|
18
|
+
className?: string;
|
19
|
+
/** 自定义样式 */
|
20
|
+
style?: React.CSSProperties;
|
21
|
+
}
|
22
|
+
export interface KeyboardPosition {
|
23
|
+
top: number;
|
24
|
+
left: number;
|
25
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
export interface PisellPriceRadioProps {
|
4
|
+
/** 是否选中 */
|
5
|
+
checked?: boolean;
|
6
|
+
/** 点击选中回调 */
|
7
|
+
onSelect?: () => void;
|
8
|
+
/** 价格值 */
|
9
|
+
value?: string;
|
10
|
+
/** 价格变化回调 */
|
11
|
+
onChange?: (value: string) => void;
|
12
|
+
/** 标题 */
|
13
|
+
title?: string;
|
14
|
+
/** 货币符号 */
|
15
|
+
currencySymbol?: string;
|
16
|
+
/** 主题颜色 */
|
17
|
+
theme?: 'purple' | 'red';
|
18
|
+
/** 是否显示负号 */
|
19
|
+
showMinus?: boolean;
|
20
|
+
/** 是否禁用 */
|
21
|
+
disabled?: boolean;
|
22
|
+
/** 占位符 */
|
23
|
+
placeholder?: string;
|
24
|
+
}
|
25
|
+
declare const PisellPriceRadio: React.FC<PisellPriceRadioProps>;
|
26
|
+
export default PisellPriceRadio;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'pisell2.text.sku.detail.modal.quantity': string;
|
4
|
+
'pisell2.text.sku.detail.modal.note': string;
|
5
|
+
'pisell2.text.sku.detail.modal.subtotal': string;
|
6
|
+
'pisell2.text.sku.detail.modal.discount': string;
|
7
|
+
'pisell2.text.sku.detail.modal.manual.price.change': string;
|
8
|
+
'pisell2.text.sku.detail.modal.price.override': string;
|
9
|
+
'pisell2.text.sku.detail.modal.total': string;
|
10
|
+
'pisell2.text.sku.detail.modal.gst.excl': string;
|
11
|
+
'pisell2.text.sku.detail.modal.gst.incl': string;
|
12
|
+
'pisell2.text.sku.detail.modal.btn.add.note': string;
|
13
|
+
'pisell2.text.sku.detail.modal.btn.remove': string;
|
14
|
+
'pisell2.text.sku.detail.modal.btn.confirm': string;
|
15
|
+
'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
|
16
|
+
};
|
17
|
+
'zh-CN': {
|
18
|
+
'pisell2.text.sku.detail.modal.quantity': string;
|
19
|
+
'pisell2.text.sku.detail.modal.note': string;
|
20
|
+
'pisell2.text.sku.detail.modal.subtotal': string;
|
21
|
+
'pisell2.text.sku.detail.modal.discount': string;
|
22
|
+
'pisell2.text.sku.detail.modal.manual.price.change': string;
|
23
|
+
'pisell2.text.sku.detail.modal.price.override': string;
|
24
|
+
'pisell2.text.sku.detail.modal.total': string;
|
25
|
+
'pisell2.text.sku.detail.modal.gst.excl': string;
|
26
|
+
'pisell2.text.sku.detail.modal.gst.incl': string;
|
27
|
+
'pisell2.text.sku.detail.modal.btn.add.note': string;
|
28
|
+
'pisell2.text.sku.detail.modal.btn.remove': string;
|
29
|
+
'pisell2.text.sku.detail.modal.btn.confirm': string;
|
30
|
+
'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
|
31
|
+
};
|
32
|
+
'zh-HK': {
|
33
|
+
'pisell2.text.sku.detail.modal.quantity': string;
|
34
|
+
'pisell2.text.sku.detail.modal.note': string;
|
35
|
+
'pisell2.text.sku.detail.modal.subtotal': string;
|
36
|
+
'pisell2.text.sku.detail.modal.discount': string;
|
37
|
+
'pisell2.text.sku.detail.modal.manual.price.change': string;
|
38
|
+
'pisell2.text.sku.detail.modal.price.override': string;
|
39
|
+
'pisell2.text.sku.detail.modal.total': string;
|
40
|
+
'pisell2.text.sku.detail.modal.gst.excl': string;
|
41
|
+
'pisell2.text.sku.detail.modal.gst.incl': string;
|
42
|
+
'pisell2.text.sku.detail.modal.btn.add.note': string;
|
43
|
+
'pisell2.text.sku.detail.modal.btn.remove': string;
|
44
|
+
'pisell2.text.sku.detail.modal.btn.confirm': string;
|
45
|
+
'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
export default _default;
|
@@ -0,0 +1,347 @@
|
|
1
|
+
export declare type ChannelApplication = 'online-store' | 'pos' | 'wholesalebusiness' | 'kiosk';
|
2
|
+
export declare type ProductType = 'physical' | 'virtual';
|
3
|
+
export declare type WeightUnit = 'KILOGRAMS' | 'GRAMS' | 'POUNDS' | 'OUNCES';
|
4
|
+
export declare type DurationType = 'minutes' | 'hours' | 'days';
|
5
|
+
export declare type ResourceType = 'single' | 'multiple';
|
6
|
+
export declare type RelationType = 'form';
|
7
|
+
export declare type EventType = 'schedule_event';
|
8
|
+
export declare type MaxParticipantsType = 'custom-limit' | 'unlimited';
|
9
|
+
export interface TimeSlice {
|
10
|
+
label: string;
|
11
|
+
value: string;
|
12
|
+
}
|
13
|
+
export interface DurationSlice {
|
14
|
+
label: string;
|
15
|
+
value: number;
|
16
|
+
}
|
17
|
+
export interface MultiLanguageName {
|
18
|
+
en?: string;
|
19
|
+
'zh-CN'?: string;
|
20
|
+
'zh-HK'?: string;
|
21
|
+
original?: string;
|
22
|
+
auto?: string;
|
23
|
+
}
|
24
|
+
export interface MultiLanguageTitle {
|
25
|
+
label: {
|
26
|
+
type: 'i18n';
|
27
|
+
'en-US': string;
|
28
|
+
'zh-CN': string;
|
29
|
+
};
|
30
|
+
}
|
31
|
+
export interface SelectType {
|
32
|
+
type: 'single' | 'multiple';
|
33
|
+
min: number;
|
34
|
+
max: number;
|
35
|
+
}
|
36
|
+
export interface Duration {
|
37
|
+
type: DurationType;
|
38
|
+
value: number;
|
39
|
+
}
|
40
|
+
export interface CutOffTime {
|
41
|
+
unit: number;
|
42
|
+
unit_type: DurationType;
|
43
|
+
future_day: number;
|
44
|
+
type: 'advance';
|
45
|
+
ongoing: {
|
46
|
+
type: 'before_end';
|
47
|
+
unit: number;
|
48
|
+
};
|
49
|
+
}
|
50
|
+
export interface MachineCode {
|
51
|
+
make_over: number;
|
52
|
+
beforehand: number;
|
53
|
+
limit_count: number;
|
54
|
+
customer: number;
|
55
|
+
send_action: string;
|
56
|
+
hide_recharge: number;
|
57
|
+
distributor_automatic: number;
|
58
|
+
}
|
59
|
+
export interface Form {
|
60
|
+
id: number;
|
61
|
+
shop_id: number;
|
62
|
+
title: string;
|
63
|
+
navigation_display: number;
|
64
|
+
button: string;
|
65
|
+
describe: string;
|
66
|
+
status: 'published' | 'draft';
|
67
|
+
resource_sort: number;
|
68
|
+
code: string;
|
69
|
+
type: 'manual' | 'auto';
|
70
|
+
version: number;
|
71
|
+
setting: any;
|
72
|
+
created_at: string;
|
73
|
+
updated_at: string;
|
74
|
+
}
|
75
|
+
export interface PartyroomPackage {
|
76
|
+
type: 'product_all' | 'product_part';
|
77
|
+
}
|
78
|
+
export interface EventListItem {
|
79
|
+
id: number;
|
80
|
+
start_date?: string;
|
81
|
+
start_time?: string;
|
82
|
+
end_date?: string;
|
83
|
+
end_time?: string;
|
84
|
+
relation_id: number;
|
85
|
+
number?: number;
|
86
|
+
start_at?: string;
|
87
|
+
end_at?: string;
|
88
|
+
keys?: string;
|
89
|
+
pax: number;
|
90
|
+
type: EventType;
|
91
|
+
pax_list: Record<string, number>;
|
92
|
+
}
|
93
|
+
export interface TimeConfig {
|
94
|
+
keys: string;
|
95
|
+
schedule_id: number;
|
96
|
+
item_type: string;
|
97
|
+
item_id: number;
|
98
|
+
start_date: string;
|
99
|
+
end_date: string;
|
100
|
+
start_time: string;
|
101
|
+
end_time: string;
|
102
|
+
is_all: number;
|
103
|
+
relation_type: RelationType;
|
104
|
+
start_at: string;
|
105
|
+
end_at: string;
|
106
|
+
event_list: EventListItem[];
|
107
|
+
max_participants_type?: MaxParticipantsType;
|
108
|
+
max_participants_limit?: number;
|
109
|
+
is_blocked?: number;
|
110
|
+
blocked_times?: any[];
|
111
|
+
order_event_count?: number;
|
112
|
+
unique?: string;
|
113
|
+
_extend?: {
|
114
|
+
isMaxLimitRange: boolean;
|
115
|
+
isDateRange: boolean;
|
116
|
+
isCountRange: boolean;
|
117
|
+
isUsable: boolean;
|
118
|
+
};
|
119
|
+
}
|
120
|
+
export interface ResourceMetadata {
|
121
|
+
combined_resource: any;
|
122
|
+
}
|
123
|
+
export interface ResourceItem {
|
124
|
+
id: number;
|
125
|
+
main_field: string;
|
126
|
+
sort: number;
|
127
|
+
form_id: number;
|
128
|
+
times: TimeConfig[];
|
129
|
+
capacity: number;
|
130
|
+
combined_resource: any;
|
131
|
+
resource_form_id: string | number;
|
132
|
+
form_code: string;
|
133
|
+
resourceType: ResourceType;
|
134
|
+
children: any[];
|
135
|
+
metadata: ResourceMetadata;
|
136
|
+
form_tag?: any;
|
137
|
+
policy?: number;
|
138
|
+
partyroom_package?: PartyroomPackage;
|
139
|
+
status?: string;
|
140
|
+
description?: string;
|
141
|
+
media?: string;
|
142
|
+
subtitle?: string;
|
143
|
+
room_name?: string;
|
144
|
+
labelText?: string;
|
145
|
+
form_record_id?: number;
|
146
|
+
item_type?: string;
|
147
|
+
form_resource_sort?: number;
|
148
|
+
form_title?: string;
|
149
|
+
form?: Form;
|
150
|
+
_extend?: {
|
151
|
+
usableTime?: TimeConfig;
|
152
|
+
};
|
153
|
+
usable?: boolean;
|
154
|
+
label?: any;
|
155
|
+
}
|
156
|
+
export interface ResourceTypeInfo {
|
157
|
+
id: number;
|
158
|
+
title: string;
|
159
|
+
status: number;
|
160
|
+
code: string;
|
161
|
+
created_at: string;
|
162
|
+
updated_at: string | null;
|
163
|
+
type: ResourceType;
|
164
|
+
optional_resource: number[];
|
165
|
+
default_resource: any[];
|
166
|
+
select_type: SelectType;
|
167
|
+
resource_type_id: number;
|
168
|
+
renderList?: ResourceItem[];
|
169
|
+
form_id?: number;
|
170
|
+
renderListMaps?: Record<string, ResourceItem>;
|
171
|
+
}
|
172
|
+
export interface ProductResource {
|
173
|
+
resources: ResourceTypeInfo[];
|
174
|
+
}
|
175
|
+
export interface CapacityCustom {
|
176
|
+
name: MultiLanguageName;
|
177
|
+
min: number;
|
178
|
+
max: number;
|
179
|
+
id: string;
|
180
|
+
}
|
181
|
+
export interface CapacityPackage {
|
182
|
+
}
|
183
|
+
export interface Capacity {
|
184
|
+
type: 'product' | 'package';
|
185
|
+
custom: CapacityCustom[];
|
186
|
+
package: CapacityPackage[];
|
187
|
+
}
|
188
|
+
export interface ProductDisplaySetting {
|
189
|
+
kiosk: {
|
190
|
+
use_display_mode: number;
|
191
|
+
product_option_mode: any;
|
192
|
+
product_option_mode_paging: any;
|
193
|
+
product_bundle_mode: any;
|
194
|
+
product_bundle_mode_paging: any;
|
195
|
+
};
|
196
|
+
}
|
197
|
+
export interface ShelfProductData {
|
198
|
+
}
|
199
|
+
export interface Category {
|
200
|
+
id: number;
|
201
|
+
name: string;
|
202
|
+
icon: string;
|
203
|
+
slug: string;
|
204
|
+
sort: number;
|
205
|
+
}
|
206
|
+
export interface Collection {
|
207
|
+
id: number;
|
208
|
+
title: string;
|
209
|
+
cover: string;
|
210
|
+
}
|
211
|
+
export interface ExtendData {
|
212
|
+
duration: number;
|
213
|
+
start_time: string;
|
214
|
+
start_date: string;
|
215
|
+
quantity: number;
|
216
|
+
price: string;
|
217
|
+
product_name: string;
|
218
|
+
other: {
|
219
|
+
bundle: any[];
|
220
|
+
key: number;
|
221
|
+
option: any[];
|
222
|
+
product_id: number;
|
223
|
+
product_variant_id: number;
|
224
|
+
quantity: number;
|
225
|
+
rowKey: number;
|
226
|
+
session: any;
|
227
|
+
unique: string;
|
228
|
+
};
|
229
|
+
total: number;
|
230
|
+
origin_total: number;
|
231
|
+
startDate: string;
|
232
|
+
endDate: string;
|
233
|
+
capacity: Array<{
|
234
|
+
id: number;
|
235
|
+
value: number;
|
236
|
+
name: string;
|
237
|
+
}>;
|
238
|
+
resource: Record<string, Array<{
|
239
|
+
children: any[];
|
240
|
+
form_id: number;
|
241
|
+
relation_id: number;
|
242
|
+
like_status: string;
|
243
|
+
errors: any[];
|
244
|
+
metadata: {
|
245
|
+
form_name: string;
|
246
|
+
resource_name: string;
|
247
|
+
};
|
248
|
+
}>>;
|
249
|
+
note?: string;
|
250
|
+
}
|
251
|
+
export interface TimeObj {
|
252
|
+
timeSlices: TimeSlice[];
|
253
|
+
durationSlicesBasedOnTime: DurationSlice[];
|
254
|
+
}
|
255
|
+
export interface DataObj {
|
256
|
+
timeObj: TimeObj;
|
257
|
+
capacitys: Capacity;
|
258
|
+
resourcesOrigin: ResourceTypeInfo[];
|
259
|
+
resources: ResourceTypeInfo[];
|
260
|
+
resourceMaps: Record<string, ResourceTypeInfo>;
|
261
|
+
}
|
262
|
+
export interface DiscountItem {
|
263
|
+
amount: number;
|
264
|
+
type: 'discount_card' | 'discount_code' | 'discount_package';
|
265
|
+
discount: {
|
266
|
+
resource_id: number;
|
267
|
+
title: MultiLanguageTitle;
|
268
|
+
original_amount: number;
|
269
|
+
product_id: number;
|
270
|
+
percent: string;
|
271
|
+
};
|
272
|
+
num: number;
|
273
|
+
}
|
274
|
+
export interface ProductData {
|
275
|
+
id: number;
|
276
|
+
extension_id: number;
|
277
|
+
extension_type: string;
|
278
|
+
shop_id: number;
|
279
|
+
title: string;
|
280
|
+
slug: string;
|
281
|
+
status: 'published' | 'draft' | 'archived';
|
282
|
+
stock_quantity: number;
|
283
|
+
sales_quantity: number;
|
284
|
+
sum_stock: number;
|
285
|
+
price: string;
|
286
|
+
original_price: string;
|
287
|
+
cost_price: string;
|
288
|
+
cover: string;
|
289
|
+
channel_application: ChannelApplication[];
|
290
|
+
is_track: number;
|
291
|
+
over_sold: number;
|
292
|
+
is_gst: number;
|
293
|
+
code: string;
|
294
|
+
barcode: string;
|
295
|
+
is_delivery: number;
|
296
|
+
weight_unit: WeightUnit;
|
297
|
+
weight_value: string;
|
298
|
+
type: ProductType;
|
299
|
+
unit: string;
|
300
|
+
sort: number;
|
301
|
+
subtitle: string;
|
302
|
+
minimum_markup_price: string;
|
303
|
+
is_bundle: number;
|
304
|
+
bundle_group_count: number;
|
305
|
+
option_group_count: number;
|
306
|
+
is_variant: number;
|
307
|
+
variant_count: number;
|
308
|
+
cut_off_time: CutOffTime;
|
309
|
+
policy: number;
|
310
|
+
machine_code: MachineCode;
|
311
|
+
duration: Duration;
|
312
|
+
product_resource: ProductResource;
|
313
|
+
capacity: Capacity;
|
314
|
+
product_display_setting: ProductDisplaySetting;
|
315
|
+
shelf_product_datas: ShelfProductData[];
|
316
|
+
step_value: number;
|
317
|
+
min_num_unit: number;
|
318
|
+
schedules: any[];
|
319
|
+
is_charge_tax: number;
|
320
|
+
base_price: string;
|
321
|
+
variant: any[];
|
322
|
+
category: Category[];
|
323
|
+
collection: Collection[];
|
324
|
+
product_id: number;
|
325
|
+
_id: string;
|
326
|
+
_key: number;
|
327
|
+
_extend: ExtendData;
|
328
|
+
new: number;
|
329
|
+
currentDefaultTime: string;
|
330
|
+
_data: DataObj;
|
331
|
+
autoClose: boolean;
|
332
|
+
_serviceKey: string;
|
333
|
+
discount_list: DiscountItem[];
|
334
|
+
}
|
335
|
+
export declare type SkuDetailModalData = ProductData;
|
336
|
+
export interface SkuDetailModalProps {
|
337
|
+
/** 确认回调 */
|
338
|
+
onConfirm?: (data: ProductData) => void;
|
339
|
+
/** 删除回调 */
|
340
|
+
onRemove?: (productData: ProductData) => void;
|
341
|
+
/** 关闭回调 */
|
342
|
+
onClose?: () => void;
|
343
|
+
}
|
344
|
+
export interface SkuDetailModalRef {
|
345
|
+
/** 打开弹窗 */
|
346
|
+
open: (data: ProductData) => void;
|
347
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TUpdateDisabledCartItem } from './types';
|
3
|
+
interface CartItem {
|
4
|
+
_id: string;
|
5
|
+
[key: string]: any;
|
6
|
+
}
|
7
|
+
interface CartData {
|
8
|
+
cartItems: CartItem[];
|
9
|
+
currentCartItem: CartItem | null;
|
10
|
+
}
|
11
|
+
interface CartContextType {
|
12
|
+
createCartItem: () => CartItem;
|
13
|
+
createCartItemFromEvent: (eventItem: any) => CartItem;
|
14
|
+
createCartItemFromHolder: (holderItem: any) => CartItem;
|
15
|
+
addToCart: () => void;
|
16
|
+
updateCartItem: (cartItem: CartItem) => CartItem;
|
17
|
+
deleteCartItem: (cartItem: CartItem) => void;
|
18
|
+
clickCartItem: (cartItem: CartItem) => void;
|
19
|
+
updateCurrentCartItem: (cartItem: Partial<CartItem>) => void;
|
20
|
+
clearCurrentCartItem: () => void;
|
21
|
+
currentCartItem: CartItem | null;
|
22
|
+
checkHolder: () => boolean;
|
23
|
+
cartData: CartData;
|
24
|
+
openCart: boolean;
|
25
|
+
onOpenCart: any;
|
26
|
+
onCloseCart: any;
|
27
|
+
deleteCartItemByHolder: (holder_id: number) => void;
|
28
|
+
addHolderToCartItem: (holderItem: any) => void;
|
29
|
+
cartDataHolderList: any;
|
30
|
+
addNoteToCartItem: (cartItem: CartItem) => void;
|
31
|
+
updateDisabledCartItem: TUpdateDisabledCartItem;
|
32
|
+
getWithoutCartItemsHolderNames: () => Array<string>;
|
33
|
+
checkBeforeAddToCartResquest: any;
|
34
|
+
checkBeforeAddToCart: () => Promise<{
|
35
|
+
result: boolean;
|
36
|
+
num: number;
|
37
|
+
}>;
|
38
|
+
}
|
39
|
+
interface CartProviderProps {
|
40
|
+
children: React.ReactNode;
|
41
|
+
}
|
42
|
+
export declare const CartContext: React.Context<CartContextType | undefined>;
|
43
|
+
export declare const CartProvider: React.FC<CartProviderProps>;
|
44
|
+
/**
|
45
|
+
* 使用步骤管理的Hook
|
46
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
47
|
+
* @returns {StepContextType} 步骤管理上下文
|
48
|
+
*/
|
49
|
+
export declare const useCart: () => CartContextType;
|
50
|
+
declare const _default: {
|
51
|
+
defaultState: CartData;
|
52
|
+
};
|
53
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* @title: 添加额外商品
|
3
|
+
* @description:
|
4
|
+
* @return {*}
|
5
|
+
* @Author: zhiwei.Wang
|
6
|
+
* @Date: 2024-01-30 16:33
|
7
|
+
*/
|
8
|
+
import './index.less';
|
9
|
+
export interface InfoProps {
|
10
|
+
title?: string;
|
11
|
+
style?: any;
|
12
|
+
globalState: any;
|
13
|
+
setGlobalState: any;
|
14
|
+
}
|
15
|
+
export declare const formatProducts: (values: any) => any;
|
16
|
+
declare const Addons: any;
|
17
|
+
export default Addons;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface ActionButtonsProps {
|
4
|
+
/** booking 状态对象,包含 service、addons 等数据 */
|
5
|
+
state: {
|
6
|
+
service?: {
|
7
|
+
value?: any[];
|
8
|
+
};
|
9
|
+
addons?: {
|
10
|
+
value?: any[];
|
11
|
+
};
|
12
|
+
disabledEdit?: boolean;
|
13
|
+
channelDisabledEdit?: boolean;
|
14
|
+
shop_discount?: string;
|
15
|
+
bookingDetail?: {
|
16
|
+
[key: string]: any;
|
17
|
+
};
|
18
|
+
[key: string]: any;
|
19
|
+
};
|
20
|
+
/** dispatch 函数,用于触发状态更新 */
|
21
|
+
dispatch: (action: {
|
22
|
+
type: string;
|
23
|
+
payload?: any;
|
24
|
+
}) => void;
|
25
|
+
/** 是否禁用所有按钮 */
|
26
|
+
disabled?: boolean;
|
27
|
+
}
|
28
|
+
declare const ActionButtons: React.FC<ActionButtonsProps>;
|
29
|
+
export default ActionButtons;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface ClearCartModalProps {
|
4
|
+
visible: boolean;
|
5
|
+
onCancel: () => void;
|
6
|
+
onClearItemsOnly: () => void;
|
7
|
+
onClearAllAndReset: () => void;
|
8
|
+
}
|
9
|
+
declare const ClearCartModal: React.FC<ClearCartModalProps>;
|
10
|
+
export default ClearCartModal;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
export interface CustomiseItemModalProps {
|
4
|
+
/** 是否显示弹窗 */
|
5
|
+
visible?: boolean;
|
6
|
+
/** 关闭弹窗回调 */
|
7
|
+
onClose?: () => void;
|
8
|
+
/** 保存回调 */
|
9
|
+
onSave?: (data: CustomiseItemData) => void;
|
10
|
+
/** 货币符号 */
|
11
|
+
currencySymbol?: string;
|
12
|
+
/** 是否禁用 */
|
13
|
+
disabled?: boolean;
|
14
|
+
}
|
15
|
+
export interface CustomiseItemData {
|
16
|
+
/** 商品名称 */
|
17
|
+
productName: string;
|
18
|
+
/** 是否适用优惠券/折扣 */
|
19
|
+
vouchersApplicable: boolean;
|
20
|
+
/** 价格类型:sell(售价) | deduction(手动减价) */
|
21
|
+
priceType: 'sell' | 'deduction';
|
22
|
+
/** 价格值 */
|
23
|
+
priceValue: string;
|
24
|
+
/** 数量 */
|
25
|
+
quantity: number;
|
26
|
+
}
|
27
|
+
declare const CustomiseItemModal: React.FC<CustomiseItemModalProps>;
|
28
|
+
export default CustomiseItemModal;
|
@@ -251,7 +251,13 @@ var CustomiseItemModal = ({
|
|
251
251
|
max: 999,
|
252
252
|
step: 1,
|
253
253
|
disabled,
|
254
|
-
onChange: (value) =>
|
254
|
+
onChange: (value) => {
|
255
|
+
if (value < 1) {
|
256
|
+
setQuantity(1);
|
257
|
+
} else {
|
258
|
+
setQuantity(value);
|
259
|
+
}
|
260
|
+
},
|
255
261
|
size: "middle",
|
256
262
|
enablePriceAdjust: true
|
257
263
|
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
3
|
+
backgroundColors?: string[];
|
4
|
+
labelColor?: string;
|
5
|
+
valueColor?: string;
|
6
|
+
otherParams?: Record<string, any>;
|
7
|
+
refreshKey?: string;
|
8
|
+
onDataChange?: (data: {
|
9
|
+
groupsOnSiteNow: string | number;
|
10
|
+
peopleOnSiteNow: string | number;
|
11
|
+
totalVisitorsToday: string | number;
|
12
|
+
ongoing: string | number;
|
13
|
+
upcoming: string | number;
|
14
|
+
overdue: string | number;
|
15
|
+
completed: string | number;
|
16
|
+
departed: string | number;
|
17
|
+
}, dataList: string[]) => void;
|
18
|
+
}
|
19
|
+
declare const BookingDashboard: React.ForwardRefExoticComponent<BookingDashboardProps & React.RefAttributes<unknown>>;
|
20
|
+
export default BookingDashboard;
|