@pisell/private-materials 6.8.29 → 6.8.31
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/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +2 -2
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +7 -4
- package/es/components/kioskSkuDetail/index.js +182 -35
- package/es/components/kioskSkuDetail/locales.d.ts +21 -0
- package/es/components/kioskSkuDetail/locales.js +20 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +7 -4
- package/lib/components/kioskSkuDetail/index.js +178 -65
- package/lib/components/kioskSkuDetail/locales.d.ts +21 -0
- package/lib/components/kioskSkuDetail/locales.js +44 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/package.json +4 -4
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/utils.d.ts +0 -67
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/service/Lists.d.ts +0 -3
- package/es/components/booking/info/service/serve.d.ts +0 -34
- package/es/components/booking/info/service2/utils.d.ts +0 -219
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -106
- package/es/components/booking/info2/service/editService/index.d.ts +0 -8
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/es/components/booking/utils.d.ts +0 -182
- package/es/components/checkout/PaymentModal.d.ts +0 -39
- package/es/components/checkout/components/AdditionalModule/index.d.ts +0 -15
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/checkout/plugin.d.ts +0 -2
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/hooks/useListState.d.ts +0 -45
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/types/index.d.ts +0 -72
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -14
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/components/ticketBooking/index.d.ts +0 -15
- package/es/components/ticketBooking/serve.d.ts +0 -288
- package/es/components/ticketBooking/utils/index.d.ts +0 -101
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/es/plus/webPosLogin/WebPosLogin.d.ts +0 -11
- package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
- package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/es/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
- package/es/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
- package/es/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
- package/es/plus/webPosLogin/index.d.ts +0 -12
- package/es/plus/webPosLogin/locales.d.ts +0 -49
- package/es/plus/webPosLogin/service.d.ts +0 -44
- package/es/plus/webPosLogin/types.d.ts +0 -286
- package/es/pro/Login2.0/Login2.d.ts +0 -61
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/utils.d.ts +0 -67
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/service/Lists.d.ts +0 -3
- package/lib/components/booking/info/service/serve.d.ts +0 -34
- package/lib/components/booking/info/service2/utils.d.ts +0 -219
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -106
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/lib/components/booking/utils.d.ts +0 -182
- package/lib/components/checkout/PaymentModal.d.ts +0 -39
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +0 -15
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -26
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -14
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/checkout/plugin.d.ts +0 -2
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -32
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/hooks/useListState.d.ts +0 -45
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/types/index.d.ts +0 -72
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -14
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/components/ticketBooking/index.d.ts +0 -15
- package/lib/components/ticketBooking/serve.d.ts +0 -288
- package/lib/components/ticketBooking/utils/index.d.ts +0 -101
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +0 -11
- package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +0 -9
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +0 -9
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +0 -21
- package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +0 -12
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/lib/plus/webPosLogin/components/SelectDevice/index.d.ts +0 -28
- package/lib/plus/webPosLogin/components/SelectStore/index.d.ts +0 -24
- package/lib/plus/webPosLogin/components/UserFooter/index.d.ts +0 -28
- package/lib/plus/webPosLogin/index.d.ts +0 -12
- package/lib/plus/webPosLogin/locales.d.ts +0 -49
- package/lib/plus/webPosLogin/service.d.ts +0 -44
- package/lib/plus/webPosLogin/types.d.ts +0 -286
- package/lib/pro/Login2.0/Login2.d.ts +0 -61
package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StatusClassName, ActionButtonGroupList } from './types';
|
|
3
|
-
interface ShowPaymentResultToastConfig {
|
|
4
|
-
/** 状态样式类名 */
|
|
5
|
-
statusClassName: StatusClassName;
|
|
6
|
-
/** 标题 */
|
|
7
|
-
title: string;
|
|
8
|
-
/** 副标题 */
|
|
9
|
-
subtitle?: React.ReactNode;
|
|
10
|
-
/** 找零文本 */
|
|
11
|
-
changeDueText?: string;
|
|
12
|
-
/** 操作按钮 */
|
|
13
|
-
actionButtons?: ActionButtonGroupList;
|
|
14
|
-
/** 自动关闭配置 */
|
|
15
|
-
autoClose?: boolean;
|
|
16
|
-
/** 自动关闭延迟时间(秒) */
|
|
17
|
-
autoCloseDelay?: number;
|
|
18
|
-
/** 是否显示倒计时进度 */
|
|
19
|
-
showCountdownProgress?: boolean;
|
|
20
|
-
/** 倒计时完成回调 */
|
|
21
|
-
onCountdownComplete?: () => void;
|
|
22
|
-
/** 自定义关闭回调 */
|
|
23
|
-
onClose?: () => void;
|
|
24
|
-
/** 是否显示右上角关闭按钮 */
|
|
25
|
-
closable?: boolean;
|
|
26
|
-
/** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
|
|
27
|
-
clickOutsideToClose?: boolean;
|
|
28
|
-
/** 是否显示遮罩 */
|
|
29
|
-
mask?: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface PaymentResultToastContextType {
|
|
32
|
-
/** 显示成功弹窗 */
|
|
33
|
-
showSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
34
|
-
/** 显示失败弹窗 */
|
|
35
|
-
showFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
36
|
-
/** 显示钱包通行证失败弹窗 */
|
|
37
|
-
showWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
38
|
-
/** 显示部分支付弹窗 */
|
|
39
|
-
showPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
|
40
|
-
/** 显示自定义状态弹窗 */
|
|
41
|
-
showToast: (config: ShowPaymentResultToastConfig) => string;
|
|
42
|
-
/** 关闭弹窗 */
|
|
43
|
-
closeToast: () => void;
|
|
44
|
-
/** 是否正在显示弹窗 */
|
|
45
|
-
isVisible: boolean;
|
|
46
|
-
}
|
|
47
|
-
export declare const PaymentResultToastProvider: React.FC<{
|
|
48
|
-
children: React.ReactNode;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const usePaymentResultToast: () => PaymentResultToastContextType;
|
|
51
|
-
declare class GlobalToastManager {
|
|
52
|
-
private instances;
|
|
53
|
-
private nextId;
|
|
54
|
-
private readonly TOAST_HEIGHT;
|
|
55
|
-
private readonly TOAST_MARGIN;
|
|
56
|
-
private readonly BOTTOM_OFFSET;
|
|
57
|
-
private readonly LEFT_OFFSET;
|
|
58
|
-
private cachedBottomOffset;
|
|
59
|
-
private cachedCenterOffset;
|
|
60
|
-
private tillButton;
|
|
61
|
-
setTillButton(tillButton: any): void;
|
|
62
|
-
private generateId;
|
|
63
|
-
private calculateAndCacheBottomOffset;
|
|
64
|
-
private calculateAndCacheCenterOffset;
|
|
65
|
-
private resetBottomOffsetCache;
|
|
66
|
-
private calculateBottomPosition;
|
|
67
|
-
private updatePositions;
|
|
68
|
-
addToast(config: ShowPaymentResultToastConfig): string;
|
|
69
|
-
removeToast(id: string): void;
|
|
70
|
-
clearAll(): void;
|
|
71
|
-
getCount(): number;
|
|
72
|
-
initializeResizeListener(): () => void;
|
|
73
|
-
}
|
|
74
|
-
declare const globalToastManager: GlobalToastManager;
|
|
75
|
-
export declare const showPaymentResultToastSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
76
|
-
export declare const showPaymentResultToastFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
77
|
-
export declare const showPaymentResultToastWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
78
|
-
export declare const showPaymentResultToastPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
|
79
|
-
export declare const showPaymentResultToast: (config: ShowPaymentResultToastConfig) => Promise<string>;
|
|
80
|
-
export declare const closePaymentResultToast: (id?: string) => void;
|
|
81
|
-
export declare const clearAllPaymentResultToasts: () => void;
|
|
82
|
-
export declare const getPaymentResultToastCount: () => number;
|
|
83
|
-
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType };
|
|
84
|
-
export declare const setTillButton: (tillButton: any) => void;
|
|
85
|
-
export { globalToastManager };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
export interface IScanResult {
|
|
3
|
-
status: 'success' | 'failed';
|
|
4
|
-
scanType: string;
|
|
5
|
-
scanCode: string;
|
|
6
|
-
result: any;
|
|
7
|
-
}
|
|
8
|
-
interface IProps {
|
|
9
|
-
disabledSwitch?: boolean;
|
|
10
|
-
onSearch: (keyword: string) => void | Promise<any>;
|
|
11
|
-
onClientChange: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const SearchAndClientModule: (props: IProps) => JSX.Element;
|
|
14
|
-
export default SearchAndClientModule;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 自定义Hook:使用WalletPass功能
|
|
3
|
-
*/
|
|
4
|
-
export declare const useWalletPass: (props: {
|
|
5
|
-
onSelectChange?: ((select: {
|
|
6
|
-
voucher_id: number;
|
|
7
|
-
amount: number;
|
|
8
|
-
code: string;
|
|
9
|
-
}[]) => void) | undefined;
|
|
10
|
-
customAmount?: string | undefined;
|
|
11
|
-
clientId?: number | undefined;
|
|
12
|
-
}) => {
|
|
13
|
-
walletRecommendList: any[];
|
|
14
|
-
userIdentificationCodes: any[];
|
|
15
|
-
loading: boolean;
|
|
16
|
-
error: string | null;
|
|
17
|
-
cardData: any;
|
|
18
|
-
handleSelectWallet: (value: number[]) => void;
|
|
19
|
-
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any;
|
|
21
|
-
expiredWalletData: any;
|
|
22
|
-
disabledWalletData: any[];
|
|
23
|
-
clearAllSelectedWallet: () => void;
|
|
24
|
-
clearDisabledWalletData: () => void;
|
|
25
|
-
handleBeforeEditAmount: (value: any, index: number, data: any) => Promise<boolean>;
|
|
26
|
-
handleBestSaving: () => void;
|
|
27
|
-
handleSearchIdentificationCode: (value: string) => any;
|
|
28
|
-
availableDiscountList: any;
|
|
29
|
-
selectedDiscountList: any;
|
|
30
|
-
handleSelectDiscount: (value: number[], option: any) => void;
|
|
31
|
-
customerName: any;
|
|
32
|
-
fetchWalletRecommendList: (params: any) => Promise<any>;
|
|
33
|
-
fetchUserIdentificationCodes: (params: any) => Promise<any>;
|
|
34
|
-
getCachedWalletRecommendList: () => any;
|
|
35
|
-
getCachedUserIdentificationCodes: () => any;
|
|
36
|
-
clearWalletRecommendList: () => void;
|
|
37
|
-
clearUserIdentificationCodes: () => void;
|
|
38
|
-
clearAllCache: () => void;
|
|
39
|
-
handleConfirmEditAmount: (value: number, id: number, data: any) => void;
|
|
40
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StatusClassName, ActionButtonGroupList } from '../components/PaymentResultToast';
|
|
3
|
-
export interface PaymentResultToastConfig {
|
|
4
|
-
context: any;
|
|
5
|
-
pisellos: any;
|
|
6
|
-
getData: (key: string) => any;
|
|
7
|
-
interaction: any;
|
|
8
|
-
Toast: any;
|
|
9
|
-
onToastClose?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface PaymentResultToastParams {
|
|
12
|
-
paymentStatus: string;
|
|
13
|
-
orderTotalAmount: number;
|
|
14
|
-
gapAmount: number;
|
|
15
|
-
failureReason?: string;
|
|
16
|
-
autoCloseConfig?: {
|
|
17
|
-
autoClose: boolean;
|
|
18
|
-
autoCloseDelay: number;
|
|
19
|
-
};
|
|
20
|
-
actionButtons?: ActionButtonGroupList;
|
|
21
|
-
}
|
|
22
|
-
export declare const formatCurrency: (amount: number, amountSymbol?: string) => string | number;
|
|
23
|
-
export declare const calculateTitle: (status: string, failureReason?: string) => string;
|
|
24
|
-
export declare const calculateSubtitle: (status: string, amount: number, gapAmount?: number, getData?: ((key: string) => any) | undefined) => React.ReactNode;
|
|
25
|
-
export declare const calculateStatusClassName: (status: string) => StatusClassName;
|
|
26
|
-
export declare const calculateAutoCloseConfig: (status: string, hasChangeDue: boolean) => {
|
|
27
|
-
autoClose: boolean;
|
|
28
|
-
autoCloseDelay: number;
|
|
29
|
-
maskClosable: boolean;
|
|
30
|
-
};
|
|
31
|
-
export declare const displayPaymentResultToast: (params: PaymentResultToastParams, config: PaymentResultToastConfig) => Promise<void>;
|
|
32
|
-
export declare const createShowSuccessToast: (config: PaymentResultToastConfig, getActionButtons?: ((paymentStatus: string) => ActionButtonGroupList) | undefined) => (result: any) => Promise<void>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { TabItem, LoadDataParams } from '../types';
|
|
2
|
-
export interface ListState {
|
|
3
|
-
activeTab: string;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
isStickyActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListAction = {
|
|
8
|
-
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string[] | string;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'SET_CURRENT_PAGE';
|
|
12
|
-
payload: number;
|
|
13
|
-
} | {
|
|
14
|
-
type: 'SET_STICKY_ACTIVE';
|
|
15
|
-
payload: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: 'RESET_PAGE';
|
|
18
|
-
};
|
|
19
|
-
export interface UseListStateProps {
|
|
20
|
-
/** 外部传入的当前页码 */
|
|
21
|
-
externalCurrentPage?: number;
|
|
22
|
-
/** tab数据 */
|
|
23
|
-
tabItems: TabItem[];
|
|
24
|
-
/** 默认页面大小 */
|
|
25
|
-
defaultPageSize: number;
|
|
26
|
-
/** 数据加载回调 */
|
|
27
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
-
/** tab样式 */
|
|
29
|
-
tabStyle: 'anchor' | 'switch' | 'none';
|
|
30
|
-
}
|
|
31
|
-
export interface UseListStateReturn {
|
|
32
|
-
state: ListState;
|
|
33
|
-
setActiveTab: (tab: string) => void;
|
|
34
|
-
setCurrentPage: (page: number) => void;
|
|
35
|
-
setStickyActive: (active: boolean) => void;
|
|
36
|
-
resetPage: () => void;
|
|
37
|
-
handleTabChange: (key: string[] | string) => void;
|
|
38
|
-
handlePageChange: (page: number, size?: number) => void;
|
|
39
|
-
handleShowSizeChange: (current: number, size: number) => void;
|
|
40
|
-
handleLoadMore: () => void;
|
|
41
|
-
handleViewLess: () => void;
|
|
42
|
-
handleScrollLoad: () => void;
|
|
43
|
-
actualCurrentPage: number;
|
|
44
|
-
}
|
|
45
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, tabStyle, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export * from './storeTypes';
|
|
2
|
-
export interface ToBPayParams {
|
|
3
|
-
source?: 'normal' | 'restore';
|
|
4
|
-
data: {
|
|
5
|
-
type?: string;
|
|
6
|
-
payMethod: {
|
|
7
|
-
id: string;
|
|
8
|
-
code: string;
|
|
9
|
-
type: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
params: {
|
|
13
|
-
orderId: string | number;
|
|
14
|
-
symbol?: string;
|
|
15
|
-
amount: string;
|
|
16
|
-
surcharge?: string;
|
|
17
|
-
};
|
|
18
|
-
mode: 'pay' | 'refund';
|
|
19
|
-
};
|
|
20
|
-
callback: ToBPayCallback;
|
|
21
|
-
}
|
|
22
|
-
export declare type ToBPayCallback = (res: {
|
|
23
|
-
status: string;
|
|
24
|
-
data: {
|
|
25
|
-
amount: number;
|
|
26
|
-
surPercentRate?: number;
|
|
27
|
-
surMoney?: number;
|
|
28
|
-
surcharge?: number;
|
|
29
|
-
uniquePaymentNumber?: string;
|
|
30
|
-
};
|
|
31
|
-
msg?: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @title: 支付打开参数
|
|
35
|
-
*/
|
|
36
|
-
export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
|
|
37
|
-
payCallback: (res: EftposPayResult | MX51PayResult) => void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @title: eftpos支付结果
|
|
41
|
-
*/
|
|
42
|
-
export interface EftposPayResult {
|
|
43
|
-
status: 'success' | 'fail';
|
|
44
|
-
params: {
|
|
45
|
-
amount: number;
|
|
46
|
-
surPercentRate: number;
|
|
47
|
-
surMoney: number;
|
|
48
|
-
uniquePaymentNumber: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @title: MX51支付结果
|
|
53
|
-
*/
|
|
54
|
-
export interface MX51PayResult {
|
|
55
|
-
result: boolean;
|
|
56
|
-
msg?: string;
|
|
57
|
-
amount: number;
|
|
58
|
-
surcharge: number;
|
|
59
|
-
uniquePaymentNumber: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @title 原生MX51支付结果
|
|
63
|
-
*/
|
|
64
|
-
export interface NativeMX51PayResult {
|
|
65
|
-
code: string;
|
|
66
|
-
msg?: string;
|
|
67
|
-
data: {
|
|
68
|
-
amount: number;
|
|
69
|
-
surcharge: number;
|
|
70
|
-
};
|
|
71
|
-
uuid: string;
|
|
72
|
-
}
|
package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductDisplayConfig } from './types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface ProductDisplayAdapterProps {
|
|
5
|
-
/** 展示配置 */
|
|
6
|
-
config: ProductDisplayConfig;
|
|
7
|
-
/** 数据源 */
|
|
8
|
-
dataSource: any[];
|
|
9
|
-
/** 加载状态 */
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
/** 当前选中的产品ID */
|
|
12
|
-
currentProductId?: number;
|
|
13
|
-
/** 选择产品回调 */
|
|
14
|
-
onSelectProduct: (item: any, type?: 'select' | 'detail') => void;
|
|
15
|
-
/** 空状态描述 */
|
|
16
|
-
emptyDescription?: string;
|
|
17
|
-
/** 自定义样式 */
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
/** 自定义类名 */
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 产品展示适配器组件
|
|
24
|
-
* 统一管理 ProductSelect 和 SkuList 两种展示模式
|
|
25
|
-
*/
|
|
26
|
-
declare const ProductDisplayAdapter: React.FC<ProductDisplayAdapterProps>;
|
|
27
|
-
export default ProductDisplayAdapter;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface AddServiceProps {
|
|
4
|
-
onEdit?: any;
|
|
5
|
-
dispatch?: any;
|
|
6
|
-
state?: any;
|
|
7
|
-
renderMode?: 'current' | 'drawer';
|
|
8
|
-
onPrerenderComplete?: () => void;
|
|
9
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
10
|
-
/**
|
|
11
|
-
* 产品展示配置
|
|
12
|
-
*
|
|
13
|
-
* 支持两种方式:
|
|
14
|
-
* 1. 简易模式:传入预设字符串,如 'product-select', 'sku-list-a1', 'sku-list-a2', 'sku-list-a5'
|
|
15
|
-
* 2. 完整配置模式:传入完整的配置对象
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* // 简易模式
|
|
19
|
-
* <AddService productDisplayConfig="sku-list-a1" />
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* // 完整配置模式
|
|
23
|
-
* <AddService productDisplayConfig={{
|
|
24
|
-
* displayMode: 'sku-list',
|
|
25
|
-
* skuListConfig: { ... }
|
|
26
|
-
* }} />
|
|
27
|
-
*/
|
|
28
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
29
|
-
}
|
|
30
|
-
declare const AddSerivce: (props: AddServiceProps) => JSX.Element | null;
|
|
31
|
-
export default AddSerivce;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
|
|
2
|
-
interface AddServiceVariantProps {
|
|
3
|
-
globalState: any;
|
|
4
|
-
setGlobalState: any;
|
|
5
|
-
onPrerenderComplete?: () => void;
|
|
6
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
7
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
8
|
-
}
|
|
9
|
-
declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
|
|
10
|
-
export default AddServiceVariant;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from 'dayjs';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ITimeBarProps {
|
|
4
|
-
globalState: any;
|
|
5
|
-
setGlobalState: any;
|
|
6
|
-
onDateChange: (date: Dayjs, dateString?: string) => void;
|
|
7
|
-
onDateTimeChange: (date: Dayjs, timeString: string) => void;
|
|
8
|
-
setIntervalTime: (value: boolean) => void;
|
|
9
|
-
locale: string;
|
|
10
|
-
onCreateClick: () => void;
|
|
11
|
-
setNowTime?: (time: Dayjs) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
|
|
14
|
-
export default TimeBar;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface IGetProductsParams {
|
|
2
|
-
schedule_date?: string;
|
|
3
|
-
customer_id?: number;
|
|
4
|
-
menu_list_ids?: number[];
|
|
5
|
-
schedule_datetime?: string;
|
|
6
|
-
}
|
|
7
|
-
interface IGetScheduleTimePointsParams {
|
|
8
|
-
menu_list_ids?: number[];
|
|
9
|
-
}
|
|
10
|
-
export declare const useProducts: (notAvailableRef: any) => {
|
|
11
|
-
getScheduleTimePoints: (params?: IGetScheduleTimePointsParams) => Promise<void>;
|
|
12
|
-
getProducts: (params?: IGetProductsParams) => Promise<void>;
|
|
13
|
-
products: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface TicketBookingProps {
|
|
4
|
-
productExtensionType: string[];
|
|
5
|
-
bookingConfigParams: Record<string, any>;
|
|
6
|
-
isShowMenuBar?: boolean;
|
|
7
|
-
onPrerenderComplete?: () => void;
|
|
8
|
-
isShowTimeBar?: boolean;
|
|
9
|
-
isShowFloatButtons?: boolean;
|
|
10
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
rulesHooks?: any;
|
|
13
|
-
}
|
|
14
|
-
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
15
|
-
export default _default;
|