@pisell/private-materials 6.11.41 → 6.11.43
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/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +9 -3
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +20 -12
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +9 -0
- package/package.json +3 -3
- package/es/components/booking/components/footer/amount.d.ts +0 -38
- package/es/components/booking/components/footer/utils.d.ts +0 -67
- package/es/components/booking/hooks/usePromotion.d.ts +0 -301
- package/es/components/booking/hooks/useQuotation.d.ts +0 -5
- package/es/components/booking/info/pet/index.d.ts +0 -14
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -226
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
- package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/index.d.ts +0 -8
- package/es/components/booking/utils/confirmHolderModal.d.ts +0 -13
- package/es/components/checkout/components/AmountSummary/index.d.ts +0 -26
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/payo/config.d.ts +0 -13
- package/es/components/eftposPay/payo/const.d.ts +0 -26
- package/es/components/eftposPay/tyro/const.d.ts +0 -17
- package/es/components/eftposPay/windcave/const.d.ts +0 -119
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/es/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -20
- package/es/components/shoppingCart/server.d.ts +0 -11
- package/es/components/shoppingCart/type.d.ts +0 -57
- package/es/components/shoppingCart/utils.d.ts +0 -163
- package/es/components/ticketBooking/dialog.d.ts +0 -17
- package/es/components/ticketBooking/locales.d.ts +0 -340
- package/es/components/ticketBooking/serve.d.ts +0 -289
- package/es/components/ticketBooking/utils/edit.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +0 -103
- package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -14
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -185
- package/es/plus/pisellSalesManagement/config/order.d.ts +0 -172
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/es/pro/skuDetailModal/types.d.ts +0 -388
- package/lib/components/booking/components/footer/amount.d.ts +0 -38
- package/lib/components/booking/components/footer/utils.d.ts +0 -67
- package/lib/components/booking/hooks/usePromotion.d.ts +0 -301
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -5
- package/lib/components/booking/info/pet/index.d.ts +0 -14
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -226
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
- package/lib/components/booking/utils/confirmHolderModal.d.ts +0 -13
- package/lib/components/checkout/components/AmountSummary/index.d.ts +0 -26
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/payo/config.d.ts +0 -13
- package/lib/components/eftposPay/payo/const.d.ts +0 -26
- package/lib/components/eftposPay/tyro/const.d.ts +0 -17
- package/lib/components/eftposPay/windcave/const.d.ts +0 -119
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -20
- package/lib/components/shoppingCart/server.d.ts +0 -11
- package/lib/components/shoppingCart/type.d.ts +0 -57
- package/lib/components/shoppingCart/utils.d.ts +0 -163
- package/lib/components/ticketBooking/dialog.d.ts +0 -17
- package/lib/components/ticketBooking/locales.d.ts +0 -340
- package/lib/components/ticketBooking/serve.d.ts +0 -289
- package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +0 -103
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -14
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -185
- package/lib/plus/pisellSalesManagement/config/order.d.ts +0 -172
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/pro/skuDetailModal/types.d.ts +0 -388
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { State } from '../store';
|
|
2
|
-
import { ModeEnum } from '../const';
|
|
3
|
-
export declare const getStep: (mode?: ModeEnum) => State['steps'];
|
|
4
|
-
declare const _default: (params: any) => State;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare enum EVisibleButtonType {
|
|
7
|
-
/** 取消按钮 */
|
|
8
|
-
CancelButton = "CancelButton",
|
|
9
|
-
/** 等待按钮 */
|
|
10
|
-
WaitButton = "WaitButton"
|
|
11
|
-
}
|
|
12
|
-
export declare enum LinklyActionStatus {
|
|
13
|
-
/** 空 */
|
|
14
|
-
Empty = "Empty",
|
|
15
|
-
/** 取消 */
|
|
16
|
-
Cancel = "Cancel",
|
|
17
|
-
/** 取消中 */
|
|
18
|
-
CancelWaiting = "CancelWaiting",
|
|
19
|
-
/** 签名 */
|
|
20
|
-
Signature = "Signature",
|
|
21
|
-
/** 签名等待中 */
|
|
22
|
-
SignatureWaiting = "SignatureWaiting"
|
|
23
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StatusEnum } from '../const';
|
|
3
|
-
export declare const POS: ({ api, onChange, }: {
|
|
4
|
-
api: {
|
|
5
|
-
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
6
|
-
};
|
|
7
|
-
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}`, params?: {
|
|
8
|
-
[keys: string]: unknown;
|
|
9
|
-
} | undefined) => void;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
export declare const Action: ({ onChange }: {
|
|
12
|
-
onChange: any;
|
|
13
|
-
}) => JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Amount, ModeEnum } from '../const';
|
|
2
|
-
import { State } from '../store';
|
|
3
|
-
/**
|
|
4
|
-
* @title: payo 步骤信息
|
|
5
|
-
* @description:
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: hongbing.wang
|
|
8
|
-
* @Date: 2024-08-12 10:19
|
|
9
|
-
*/
|
|
10
|
-
export declare const getStep: (mode?: ModeEnum) => State['steps'];
|
|
11
|
-
/**
|
|
12
|
-
* @title: 初始化 payo 数据
|
|
13
|
-
* @description:
|
|
14
|
-
* @Author: hongbing.wang
|
|
15
|
-
* @Date: 2024-08-12 10:19
|
|
16
|
-
*/
|
|
17
|
-
declare const _default: (params: any) => State;
|
|
18
|
-
export default _default;
|
|
19
|
-
/**
|
|
20
|
-
* @title: payo 金额信息
|
|
21
|
-
* @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
|
|
22
|
-
* @param {State} store : 全局store数据管理
|
|
23
|
-
* @Author: hongbing.wang
|
|
24
|
-
* @Date: 2024-08-12 10:24
|
|
25
|
-
*/
|
|
26
|
-
export declare function getAmonunt(store: State): Amount;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Amount } from '../const';
|
|
2
|
-
import { State } from '../store';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 初始化 tyro 数据
|
|
5
|
-
* @Author: hongbing.wang
|
|
6
|
-
* @Date: 2024-08-20 13:50
|
|
7
|
-
*/
|
|
8
|
-
declare const _default: (params: any) => State;
|
|
9
|
-
export default _default;
|
|
10
|
-
/**
|
|
11
|
-
* @title: tyro 金额信息
|
|
12
|
-
* @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
|
|
13
|
-
* @param {State} store : 全局store数据管理
|
|
14
|
-
* @Author: hongbing.wang
|
|
15
|
-
* @Date: 2024-08-12 10:24
|
|
16
|
-
*/
|
|
17
|
-
export declare function getAmonunt(store: State): Amount;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Amount } from '../const';
|
|
2
|
-
import { State } from '../store';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 初始化 windcave 数据
|
|
5
|
-
* @return store 全局数据管理
|
|
6
|
-
* @Author: hongbing.wang
|
|
7
|
-
* @Date: 2024-08-12 10:42
|
|
8
|
-
*/
|
|
9
|
-
declare const _default: (params: any) => State;
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* @title: windcave 金额信息
|
|
13
|
-
* @description:
|
|
14
|
-
* @param {State} store : 全局store数据管理
|
|
15
|
-
* @return 金额信息
|
|
16
|
-
* @Author: hongbing.wang
|
|
17
|
-
* @Date: 2024-08-12 10:43
|
|
18
|
-
*/
|
|
19
|
-
export declare function getAmonunt(store: State): Amount;
|
|
20
|
-
export declare enum StepStatusEnum {
|
|
21
|
-
/** 空闲 */
|
|
22
|
-
Free = 1,
|
|
23
|
-
/** 提交或插入卡 */
|
|
24
|
-
Card = 2,
|
|
25
|
-
/** 选择账户 */
|
|
26
|
-
Account = 3,
|
|
27
|
-
/** 选择应用 */
|
|
28
|
-
Application = 4,
|
|
29
|
-
/** 输入PIN码 */
|
|
30
|
-
Pin = 5,
|
|
31
|
-
/** 处理中 */
|
|
32
|
-
Processing = 6,
|
|
33
|
-
/** 验证签名 */
|
|
34
|
-
Receipt = 7,
|
|
35
|
-
/** 显示结果 */
|
|
36
|
-
Wait = 8
|
|
37
|
-
}
|
|
38
|
-
export declare enum StemTypeEnum {
|
|
39
|
-
/** 主动查询 */
|
|
40
|
-
Active = "active",
|
|
41
|
-
/** 被动提交 */
|
|
42
|
-
Passive = "passive"
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @title: windcave 步骤信息
|
|
46
|
-
* @description: 步骤对应配置信息
|
|
47
|
-
* @return 步骤配置信息
|
|
48
|
-
* @Author: hongbing.wang
|
|
49
|
-
* @Date: 2024-08-12 10:44
|
|
50
|
-
*/
|
|
51
|
-
export declare const getStepMapping: (type: StepStatusEnum, { money, mode }: {
|
|
52
|
-
money?: string | undefined;
|
|
53
|
-
mode?: string | undefined;
|
|
54
|
-
}) => {
|
|
55
|
-
type: StemTypeEnum;
|
|
56
|
-
status: string;
|
|
57
|
-
pedding: any;
|
|
58
|
-
resolve: string;
|
|
59
|
-
index: StepStatusEnum.Free;
|
|
60
|
-
peddingStyle: {};
|
|
61
|
-
reject?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
type: StemTypeEnum;
|
|
64
|
-
status: string;
|
|
65
|
-
pedding: any;
|
|
66
|
-
resolve: string;
|
|
67
|
-
index: StepStatusEnum.Card;
|
|
68
|
-
peddingStyle: {};
|
|
69
|
-
reject?: undefined;
|
|
70
|
-
} | {
|
|
71
|
-
type: StemTypeEnum;
|
|
72
|
-
status: string;
|
|
73
|
-
pedding: any;
|
|
74
|
-
resolve: string;
|
|
75
|
-
index: StepStatusEnum.Account;
|
|
76
|
-
peddingStyle: {};
|
|
77
|
-
reject?: undefined;
|
|
78
|
-
} | {
|
|
79
|
-
type: StemTypeEnum;
|
|
80
|
-
status: string;
|
|
81
|
-
pedding: any;
|
|
82
|
-
resolve: string;
|
|
83
|
-
index: StepStatusEnum.Application;
|
|
84
|
-
peddingStyle: {};
|
|
85
|
-
reject?: undefined;
|
|
86
|
-
} | {
|
|
87
|
-
type: StemTypeEnum;
|
|
88
|
-
status: string;
|
|
89
|
-
pedding: any;
|
|
90
|
-
resolve: string;
|
|
91
|
-
index: StepStatusEnum.Pin;
|
|
92
|
-
peddingStyle: {};
|
|
93
|
-
reject?: undefined;
|
|
94
|
-
} | {
|
|
95
|
-
type: StemTypeEnum;
|
|
96
|
-
status: string;
|
|
97
|
-
pedding: any;
|
|
98
|
-
resolve: string;
|
|
99
|
-
index: StepStatusEnum.Processing;
|
|
100
|
-
peddingStyle: {};
|
|
101
|
-
reject?: undefined;
|
|
102
|
-
} | {
|
|
103
|
-
type: StemTypeEnum;
|
|
104
|
-
status: string;
|
|
105
|
-
pedding: string;
|
|
106
|
-
resolve: any;
|
|
107
|
-
reject: any;
|
|
108
|
-
index: StepStatusEnum.Receipt;
|
|
109
|
-
peddingStyle: {};
|
|
110
|
-
} | {
|
|
111
|
-
type: StemTypeEnum;
|
|
112
|
-
status: string;
|
|
113
|
-
pedding: any;
|
|
114
|
-
resolve: any;
|
|
115
|
-
index: StepStatusEnum.Wait;
|
|
116
|
-
peddingStyle: {};
|
|
117
|
-
reject?: undefined;
|
|
118
|
-
} | null;
|
|
119
|
-
export declare type StepType = NonNullable<ReturnType<typeof getStepMapping>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface UsePromotionModalOptions {
|
|
2
|
-
/** 确认回调 */
|
|
3
|
-
onConfirm?: (selectedProduct: any) => void;
|
|
4
|
-
/** 取消回调 */
|
|
5
|
-
onCancel?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const usePromotionModal: (options?: UsePromotionModalOptions) => {
|
|
8
|
-
/** 打开弹窗方法 */
|
|
9
|
-
openModal: (item: any) => void;
|
|
10
|
-
/** 关闭弹窗方法 */
|
|
11
|
-
closeModal: () => void;
|
|
12
|
-
/** Modal 组件 */
|
|
13
|
-
MarketingModal: JSX.Element;
|
|
14
|
-
/** 规格选择弹窗组件 */
|
|
15
|
-
SkuModal: JSX.Element;
|
|
16
|
-
/** 当前选中的商品 ID */
|
|
17
|
-
selected: any;
|
|
18
|
-
/** 弹窗是否打开 */
|
|
19
|
-
isOpen: boolean;
|
|
20
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface ProductParams {
|
|
2
|
-
ids: string[] | number[];
|
|
3
|
-
isGift?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const getProducts: (params: ProductParams) => Promise<any[]>;
|
|
6
|
-
interface ProductDetailParams {
|
|
7
|
-
id: string | number;
|
|
8
|
-
is_eject?: 0 | 1;
|
|
9
|
-
}
|
|
10
|
-
export declare const getProductDetail: (params: ProductDetailParams) => Promise<any>;
|
|
11
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CollapseProps } from 'antd';
|
|
2
|
-
export interface productProps {
|
|
3
|
-
hideAddBtn?: boolean;
|
|
4
|
-
isShowNote?: boolean;
|
|
5
|
-
isShowPackageNote?: boolean;
|
|
6
|
-
products?: any[];
|
|
7
|
-
holders?: any[];
|
|
8
|
-
isEdit?: boolean;
|
|
9
|
-
disabledEdit?: boolean;
|
|
10
|
-
isShowChangeResource?: boolean;
|
|
11
|
-
isShowDelete?: boolean;
|
|
12
|
-
isShowChangeHolder?: boolean;
|
|
13
|
-
isShowHolder?: boolean;
|
|
14
|
-
isShowAddHolderButton?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface cartInfoProps {
|
|
17
|
-
promotions?: any[];
|
|
18
|
-
}
|
|
19
|
-
export interface shoppingCartProps {
|
|
20
|
-
isOpenGroup?: boolean;
|
|
21
|
-
carts?: any[];
|
|
22
|
-
platform?: 'shop' | 'h5';
|
|
23
|
-
emptyText?: string;
|
|
24
|
-
activeKey?: string[] | number[];
|
|
25
|
-
defaultActiveKey?: string[] | number[];
|
|
26
|
-
className?: string;
|
|
27
|
-
onCard?: (e: any) => void;
|
|
28
|
-
onAction?: (e: any) => void;
|
|
29
|
-
onChange?: (items: any, type?: string, other?: any) => void;
|
|
30
|
-
onAddProduct?: (e?: any) => void;
|
|
31
|
-
onActiveKey?: (e: any) => void;
|
|
32
|
-
isShowImage?: boolean;
|
|
33
|
-
isShowHolder?: boolean;
|
|
34
|
-
isShowDelete?: boolean;
|
|
35
|
-
isShowAmountFooter?: boolean;
|
|
36
|
-
collapseParams?: CollapseProps;
|
|
37
|
-
productParams?: productProps;
|
|
38
|
-
isHideClearCart?: boolean;
|
|
39
|
-
isParallelResource?: boolean;
|
|
40
|
-
scenario?: 'booking2';
|
|
41
|
-
cartInfo?: cartInfoProps;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @title: 商品卡片
|
|
45
|
-
* @description:
|
|
46
|
-
* @return {*}
|
|
47
|
-
* @Author: WangHan
|
|
48
|
-
* @Date: 2024-11-29 09:52
|
|
49
|
-
*/
|
|
50
|
-
export interface ProductProps {
|
|
51
|
-
id?: any;
|
|
52
|
-
lists: any[];
|
|
53
|
-
isAdd?: boolean;
|
|
54
|
-
openPromotionModal?: (products: any[]) => void;
|
|
55
|
-
promotionProducts?: any[];
|
|
56
|
-
}
|
|
57
|
-
export {};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 格式化购物车列表
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} state
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2024-11-28 16:52
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatCartList: (state: any) => any;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 是否是空页面
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} state
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: WangHan
|
|
16
|
-
* @Date: 2024-11-28 16:47
|
|
17
|
-
*/
|
|
18
|
-
export declare const isEmptyStatus: (state: any) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @title: 是否是商品列表页面
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {any} state
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @Author: WangHan
|
|
25
|
-
* @Date: 2024-11-28 17:23
|
|
26
|
-
*/
|
|
27
|
-
export declare const isProductList: (state: any) => boolean;
|
|
28
|
-
/**
|
|
29
|
-
* @title: 格式化数据最终结果
|
|
30
|
-
* @description:
|
|
31
|
-
* @param {any} state
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: WangHan
|
|
34
|
-
* @Date: 2024-11-28 18:35
|
|
35
|
-
*/
|
|
36
|
-
export declare const formatState: (state: any) => {
|
|
37
|
-
isEmpty: boolean;
|
|
38
|
-
isProductList: boolean;
|
|
39
|
-
carts: any;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @title: 更新商品
|
|
43
|
-
* @description:
|
|
44
|
-
* @param {any} newState
|
|
45
|
-
* @param {any} state
|
|
46
|
-
* @return {*}
|
|
47
|
-
* @Author: WangHan
|
|
48
|
-
* @Date: 2024-11-28 22:30
|
|
49
|
-
*/
|
|
50
|
-
export declare const updateProduct: (state: any, newProducts: any[]) => {
|
|
51
|
-
products: any[];
|
|
52
|
-
carts: any;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @title: 格式化服务
|
|
56
|
-
* @description:
|
|
57
|
-
* @param {any} service
|
|
58
|
-
* @param {number} id holder_id
|
|
59
|
-
* @return {*}
|
|
60
|
-
* @Author: WangHan
|
|
61
|
-
* @Date: 2024-12-09 22:47
|
|
62
|
-
*/
|
|
63
|
-
export declare const formatService: (service: any[], id: number) => any[];
|
|
64
|
-
/**
|
|
65
|
-
* 格式化商品列表:合并相同 product_id 的商品,将 product_variant_id 设置为数组
|
|
66
|
-
* @param products - 原始商品列表
|
|
67
|
-
* @returns 格式化后的商品列表
|
|
68
|
-
*/
|
|
69
|
-
export declare const formatProductsByVariant: (products: any[]) => any[];
|
|
70
|
-
/**
|
|
71
|
-
* @description: 赠品将商品价格设置为0
|
|
72
|
-
* @param {any} product
|
|
73
|
-
* @return {*}
|
|
74
|
-
*/
|
|
75
|
-
declare const isGiftProductPrice: (product: any) => {
|
|
76
|
-
price: number;
|
|
77
|
-
origin_price: any;
|
|
78
|
-
total: number;
|
|
79
|
-
origin_total: any;
|
|
80
|
-
base_price: number;
|
|
81
|
-
_isGift: boolean;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* @description: 批量转换商品列表数据
|
|
85
|
-
* @param {any[]} products - 商品列表
|
|
86
|
-
* @param {boolean} isGift - 是否为赠品
|
|
87
|
-
* @param {any[]} selectedOriginGifts - 已选择的赠品列表(用于回填数据)
|
|
88
|
-
* @return {any[]} 转换后的商品列表
|
|
89
|
-
*/
|
|
90
|
-
declare const transformInitProductLists: (products: any[], isGift?: boolean, selectedOriginGifts?: any[]) => any[];
|
|
91
|
-
declare const transformSkuValue: (skuValue: any) => any;
|
|
92
|
-
/**
|
|
93
|
-
* @description: 更新商品列表中的某个商品
|
|
94
|
-
* @param {any[]} products - 商品列表
|
|
95
|
-
* @param {string} productId - 要更新的商品 ID
|
|
96
|
-
* @param {any} updates - 要更新的数据
|
|
97
|
-
* @return {any[]} 更新后的商品列表
|
|
98
|
-
*/
|
|
99
|
-
declare const updateProductInList: (props: any) => {
|
|
100
|
-
originProducts: any;
|
|
101
|
-
cartProducts?: undefined;
|
|
102
|
-
} | {
|
|
103
|
-
originProducts: never[];
|
|
104
|
-
cartProducts: never[];
|
|
105
|
-
};
|
|
106
|
-
declare const formatCartProducts: (props: any) => any[];
|
|
107
|
-
/**
|
|
108
|
-
* @description: 检查商品是否需要选择规格
|
|
109
|
-
* @param {any} product - 商品数据
|
|
110
|
-
* @return {boolean} 是否需要选择规格
|
|
111
|
-
*/
|
|
112
|
-
declare const isProductNeedSku: (product: any) => boolean;
|
|
113
|
-
/**
|
|
114
|
-
* @description: 从商品列表中查找商品
|
|
115
|
-
* @param {any[]} products - 商品列表
|
|
116
|
-
* @param {string} productId - 商品 ID
|
|
117
|
-
* @return {any} 找到的商品或 undefined
|
|
118
|
-
*/
|
|
119
|
-
declare const findProductById: (products: any[], productId: any) => any;
|
|
120
|
-
/**
|
|
121
|
-
* @description: 从列表中查找匹配的商品
|
|
122
|
-
*/
|
|
123
|
-
declare const findMatchedProductFromList: (products: any[], targetProduct: any) => any;
|
|
124
|
-
/**
|
|
125
|
-
* @description: 提取并标准化商品的 product_variant_id 为数组
|
|
126
|
-
*/
|
|
127
|
-
declare const extractVariantIds: (product: any) => number[];
|
|
128
|
-
/**
|
|
129
|
-
* @description: 根据允许的规格ID列表过滤商品的 variant 数据
|
|
130
|
-
*/
|
|
131
|
-
declare const filterProductVariants: (product: any, allowedVariantIds: number[]) => any;
|
|
132
|
-
/**
|
|
133
|
-
* @description: 根据过滤后的 variant 重新生成 variant_group
|
|
134
|
-
*/
|
|
135
|
-
declare const filterVariantGroupByVariants: (product: any) => any;
|
|
136
|
-
/**
|
|
137
|
-
* @description: 根据列表数据中找到匹配的商品,并提取允许的规格 ID
|
|
138
|
-
*/
|
|
139
|
-
declare const filterProductByPromotionRules: (product: any, currentItem: any) => any;
|
|
140
|
-
/**
|
|
141
|
-
* @description: 根据 selected ID(s) 从 products 中查找对应的商品
|
|
142
|
-
* @param {any[]} products - 商品列表
|
|
143
|
-
* @param {string | string[]} selected - 选中的商品 ID 或 ID 数组
|
|
144
|
-
* @return {any[]} 匹配的商品数组
|
|
145
|
-
*/
|
|
146
|
-
declare const findSelectedProductsFromList: (products: any[], selected: string | string[]) => any[];
|
|
147
|
-
/**
|
|
148
|
-
* @description: 设置赠品discount_list数据
|
|
149
|
-
* @param {any} product
|
|
150
|
-
* @param {any} strategyName
|
|
151
|
-
* @return {*}
|
|
152
|
-
*/
|
|
153
|
-
declare const formatDiscountLists: (product: any, strategyName: any) => {
|
|
154
|
-
type: string;
|
|
155
|
-
amount: number;
|
|
156
|
-
discount: {
|
|
157
|
-
original_amount: number;
|
|
158
|
-
fixed_amount: number;
|
|
159
|
-
title: any;
|
|
160
|
-
resource_id: string;
|
|
161
|
-
};
|
|
162
|
-
}[];
|
|
163
|
-
export { isGiftProductPrice, transformInitProductLists, transformSkuValue, updateProductInList, isProductNeedSku, findProductById, findMatchedProductFromList, extractVariantIds, filterProductVariants, filterVariantGroupByVariants, filterProductByPromotionRules, findSelectedProductsFromList, formatDiscountLists, formatCartProducts, };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './dialog.less';
|
|
3
|
-
interface TicketBookingDialogProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
order_id?: number;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
callback?: (result: any) => void;
|
|
8
|
-
rulesHooks: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* TicketBooking dialog wrapper for edit mode.
|
|
12
|
-
* It fetches booking detail first, prepares all params, then renders TicketBooking.
|
|
13
|
-
* This avoids the store-recreation paradox where dynamic bookingConfigParams
|
|
14
|
-
* would wipe setState'd edit-mode data.
|
|
15
|
-
*/
|
|
16
|
-
declare function TicketBookingDialog(props: TicketBookingDialogProps): JSX.Element;
|
|
17
|
-
export default TicketBookingDialog;
|