@pisell/private-materials 3.4.1 → 3.4.3
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 +13 -13
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.js +7 -7
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info2/index.js +6 -4
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
- package/es/components/pay/toC/PaymentMethods/index.js +70 -21
- package/es/components/pay/toC/index.js +46 -14
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/ticketBooking/components/ticketBooking/index.js +121 -2
- package/es/components/ticketBooking/locales.js +195 -147
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/formatTime.js +144 -0
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/hooks/useComponents.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info2/index.js +21 -11
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
- package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
- package/lib/components/pay/toC/index.js +29 -9
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +141 -22
- package/lib/components/ticketBooking/locales.js +22 -4
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/formatTime.js +139 -0
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/utils/index.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/Sales/Customer/index.d.ts +0 -25
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/es/components/pay/toC/utils.d.ts +0 -57
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/ticketBooking/locales.d.ts +0 -153
- package/lib/components/Sales/Customer/index.d.ts +0 -25
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
- package/lib/components/pay/toC/utils.d.ts +0 -57
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/ticketBooking/locales.d.ts +0 -153
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
21
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/
|
|
62
|
+
"@pisell/materials": "3.3.37",
|
|
63
63
|
"@pisell/icon": "0.0.11",
|
|
64
|
-
"@pisell/
|
|
64
|
+
"@pisell/utils": "3.0.0",
|
|
65
65
|
"@pisell/date-picker": "3.0.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
export declare type MachineCodeListParams = {
|
|
2
|
-
order_id: number | string;
|
|
3
|
-
available: number;
|
|
4
|
-
prepare_payments: {
|
|
5
|
-
voucher_id: number;
|
|
6
|
-
amount: number;
|
|
7
|
-
tag: string;
|
|
8
|
-
}[];
|
|
9
|
-
filter_prepare_wallet_pass: 1 | 0;
|
|
10
|
-
sale_channel: string;
|
|
11
|
-
other_exact_codes?: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare type WalletPassDataType = {
|
|
14
|
-
id: number;
|
|
15
|
-
shop_id: number;
|
|
16
|
-
customer_id: number;
|
|
17
|
-
code: string;
|
|
18
|
-
encoded: string;
|
|
19
|
-
status: string;
|
|
20
|
-
cover: string;
|
|
21
|
-
tag: string;
|
|
22
|
-
relation_type: string;
|
|
23
|
-
product_id: number;
|
|
24
|
-
limit_status: string;
|
|
25
|
-
sales_status: number;
|
|
26
|
-
par_value: string;
|
|
27
|
-
used_par_value: string;
|
|
28
|
-
start_date: string;
|
|
29
|
-
expire_date: string;
|
|
30
|
-
end_time: string;
|
|
31
|
-
start_time: string;
|
|
32
|
-
created_at: string;
|
|
33
|
-
product_name: string;
|
|
34
|
-
expire_time: string;
|
|
35
|
-
available_max_par_value: string;
|
|
36
|
-
available_max_amount: string;
|
|
37
|
-
recommended_usage_amount: string;
|
|
38
|
-
custom_expire_status: number;
|
|
39
|
-
wallet_pass_usage_unit: WalletPassUsageUnit;
|
|
40
|
-
custom_order_deduct_exhausted: number;
|
|
41
|
-
available_product_status: number;
|
|
42
|
-
available_product_ids: any[];
|
|
43
|
-
available_product_type: string;
|
|
44
|
-
available_num: number;
|
|
45
|
-
available_product_title: string;
|
|
46
|
-
unified_available_status: number;
|
|
47
|
-
unified_messages: UnifiedMessages;
|
|
48
|
-
external_card: any[];
|
|
49
|
-
product: Product;
|
|
50
|
-
shop: Shop;
|
|
51
|
-
wallet_pass_usage?: any;
|
|
52
|
-
balance_par_value: string;
|
|
53
|
-
};
|
|
54
|
-
declare type Shop = {
|
|
55
|
-
id: number;
|
|
56
|
-
name: string;
|
|
57
|
-
default_url: string;
|
|
58
|
-
};
|
|
59
|
-
declare type Product = {
|
|
60
|
-
id: number;
|
|
61
|
-
title: string;
|
|
62
|
-
cover: string;
|
|
63
|
-
is_charge_tax: number;
|
|
64
|
-
};
|
|
65
|
-
declare type UnifiedMessages = {
|
|
66
|
-
title: string;
|
|
67
|
-
desc: string;
|
|
68
|
-
alert: string;
|
|
69
|
-
};
|
|
70
|
-
declare type WalletPassUsageUnit = {
|
|
71
|
-
price: number;
|
|
72
|
-
points: number;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* 查询支付识别码列表
|
|
76
|
-
*/
|
|
77
|
-
export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
|
|
78
|
-
/**
|
|
79
|
-
* 获取推荐的支付识别码
|
|
80
|
-
*/
|
|
81
|
-
export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
|
|
82
|
-
/**
|
|
83
|
-
* 搜索支付识别码
|
|
84
|
-
*/
|
|
85
|
-
export declare const searchMachineCodeList: (params: {
|
|
86
|
-
order_id: number | string;
|
|
87
|
-
code: string;
|
|
88
|
-
sale_channel: string;
|
|
89
|
-
prepare_payments: {
|
|
90
|
-
voucher_id: number;
|
|
91
|
-
amount: number;
|
|
92
|
-
tag: string;
|
|
93
|
-
}[];
|
|
94
|
-
filter_prepare_wallet_pass: 1 | 0;
|
|
95
|
-
}) => Promise<WalletPassDataType[]>;
|
|
96
|
-
/**
|
|
97
|
-
* walletpass支付
|
|
98
|
-
*/
|
|
99
|
-
export declare const walletPassPay: (params: {
|
|
100
|
-
order_id: number | string;
|
|
101
|
-
payment_group_id: number;
|
|
102
|
-
payments: {
|
|
103
|
-
amount: string;
|
|
104
|
-
wallet_pass_use_value: string;
|
|
105
|
-
voucher_id: number;
|
|
106
|
-
tag: string;
|
|
107
|
-
wallet_pass_usage_unit: {
|
|
108
|
-
price: number;
|
|
109
|
-
points: number;
|
|
110
|
-
};
|
|
111
|
-
}[];
|
|
112
|
-
}) => Promise<WalletPassDataType[]>;
|
|
113
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { PayGroup } from "./model";
|
|
2
|
-
import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
|
|
3
|
-
/**
|
|
4
|
-
* 计算walletPass列表数据的总金额
|
|
5
|
-
* @param list
|
|
6
|
-
*/
|
|
7
|
-
export declare const calcWalletPassListAmount: (list: any[]) => any;
|
|
8
|
-
/**
|
|
9
|
-
* 将walletPass列表数据转换为prepare_payments需要的数据格式
|
|
10
|
-
* @param list
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
|
|
13
|
-
voucher_id: any;
|
|
14
|
-
amount: number;
|
|
15
|
-
tag: any;
|
|
16
|
-
}[];
|
|
17
|
-
/**
|
|
18
|
-
* walletPass支付params
|
|
19
|
-
* @param payGroup
|
|
20
|
-
*/
|
|
21
|
-
export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
22
|
-
order_id: string;
|
|
23
|
-
payment_group_id: number;
|
|
24
|
-
payments: {
|
|
25
|
-
amount: string;
|
|
26
|
-
wallet_pass_use_value: any;
|
|
27
|
-
voucher_id: any;
|
|
28
|
-
tag: any;
|
|
29
|
-
wallet_pass_usage_unit: any;
|
|
30
|
-
}[];
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* @title: 获取是否walletPass和三方支付的组合支付
|
|
34
|
-
* @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
|
|
35
|
-
* @return: *
|
|
36
|
-
* @Author: shengjie.zuo
|
|
37
|
-
* @Date: 2024-08-30 10:06:17
|
|
38
|
-
*/
|
|
39
|
-
export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
|
|
40
|
-
export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
41
|
-
/**
|
|
42
|
-
* @title: 获取当前连锁加盟店铺shopid
|
|
43
|
-
* @description:
|
|
44
|
-
* @param {any} param1
|
|
45
|
-
* @return {*}
|
|
46
|
-
* @Author: chensheng.gu
|
|
47
|
-
* @Date: 2024-08-07 10:04
|
|
48
|
-
*/
|
|
49
|
-
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
50
|
-
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
51
|
-
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
52
|
-
export declare const clientPayment: (params: {
|
|
53
|
-
order_id: number;
|
|
54
|
-
type: "aliPay" | "wxPay";
|
|
55
|
-
values: any;
|
|
56
|
-
interaction?: any;
|
|
57
|
-
}) => void;
|
|
@@ -1,153 +0,0 @@
|
|
|
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
|
-
};
|
|
52
|
-
"zh-CN": {
|
|
53
|
-
"pisell2.ticket-booking.info": string;
|
|
54
|
-
"pisell2.ticket-booking.notes": string;
|
|
55
|
-
"pisell2.ticket-booking.forms": string;
|
|
56
|
-
"pisell2.ticket-booking.sales": string;
|
|
57
|
-
"pisell2.ticket-booking.payment": string;
|
|
58
|
-
"pisell2.ticket-booking.unsaved-changes": string;
|
|
59
|
-
"pisell2.ticket-booking.exit-confirm": string;
|
|
60
|
-
"pisell2.ticket-booking.go-back": string;
|
|
61
|
-
"pisell2.ticket-booking.exit": string;
|
|
62
|
-
"pisell2.ticket-booking.deposit": string;
|
|
63
|
-
"pisell2.ticket-booking.copy-success": string;
|
|
64
|
-
"pisell2.ticket-booking.no-data": string;
|
|
65
|
-
"pisell2.ticket-booking.authorized": string;
|
|
66
|
-
"pisell2.ticket-booking.paid": string;
|
|
67
|
-
"pisell2.ticket-booking.partially-paid": string;
|
|
68
|
-
"pisell2.ticket-booking.partially-refunded": string;
|
|
69
|
-
"pisell2.ticket-booking.payment-pending": string;
|
|
70
|
-
"pisell2.ticket-booking.refunded": string;
|
|
71
|
-
"pisell2.ticket-booking.unpaid": string;
|
|
72
|
-
"pisell2.ticket-booking.voided": string;
|
|
73
|
-
"pisell2.ticket-booking.pending": string;
|
|
74
|
-
"pisell2.ticket-booking.all": string;
|
|
75
|
-
"pisell2.ticket-booking.not-started": string;
|
|
76
|
-
"pisell2.ticket-booking.started": string;
|
|
77
|
-
"pisell2.ticket-booking.finished": string;
|
|
78
|
-
"pisell2.ticket-booking.canceled": string;
|
|
79
|
-
"pisell2.ticket-booking.inform": string;
|
|
80
|
-
"pisell2.ticket-booking.check-management": string;
|
|
81
|
-
"pisell2.ticket-booking.confirm": string;
|
|
82
|
-
"pisell2.ticket-booking.dashboard": string;
|
|
83
|
-
"pisell2.ticket-booking.booking-list": string;
|
|
84
|
-
"pisell2.ticket-booking.full-data": string;
|
|
85
|
-
"pisell2.ticket-booking.today": string;
|
|
86
|
-
"pisell2.ticket-booking.now": string;
|
|
87
|
-
"pisell2.ticket-booking.start-time": string;
|
|
88
|
-
"pisell2.ticket-booking.create-time": string;
|
|
89
|
-
"pisell2.ticket-booking.customer": string;
|
|
90
|
-
"pisell2.ticket-booking.total": string;
|
|
91
|
-
"pisell2.ticket-booking.search": string;
|
|
92
|
-
"pisell2.ticket-booking.refresh-success": string;
|
|
93
|
-
"pisell2.ticket-booking.loading": string;
|
|
94
|
-
"pisell2.ticket-booking.appointment-not-found": string;
|
|
95
|
-
"pisell2.ticket-booking.scan": string;
|
|
96
|
-
"pisell2.ticket-booking.create-new": string;
|
|
97
|
-
"pisell2.ticket-booking.add-to-cart": string;
|
|
98
|
-
"pisell2.ticket-booking.not-available-title": string;
|
|
99
|
-
"pisell2.ticket-booking.not-available-ok": string;
|
|
100
|
-
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
101
|
-
};
|
|
102
|
-
"zh-HK": {
|
|
103
|
-
"pisell2.ticket-booking.info": string;
|
|
104
|
-
"pisell2.ticket-booking.notes": string;
|
|
105
|
-
"pisell2.ticket-booking.forms": string;
|
|
106
|
-
"pisell2.ticket-booking.sales": string;
|
|
107
|
-
"pisell2.ticket-booking.payment": string;
|
|
108
|
-
"pisell2.ticket-booking.unsaved-changes": string;
|
|
109
|
-
"pisell2.ticket-booking.exit-confirm": string;
|
|
110
|
-
"pisell2.ticket-booking.go-back": string;
|
|
111
|
-
"pisell2.ticket-booking.exit": string;
|
|
112
|
-
"pisell2.ticket-booking.deposit": string;
|
|
113
|
-
"pisell2.ticket-booking.copy-success": string;
|
|
114
|
-
"pisell2.ticket-booking.no-data": string;
|
|
115
|
-
"pisell2.ticket-booking.authorized": string;
|
|
116
|
-
"pisell2.ticket-booking.paid": string;
|
|
117
|
-
"pisell2.ticket-booking.partially-paid": string;
|
|
118
|
-
"pisell2.ticket-booking.partially-refunded": string;
|
|
119
|
-
"pisell2.ticket-booking.payment-pending": string;
|
|
120
|
-
"pisell2.ticket-booking.refunded": string;
|
|
121
|
-
"pisell2.ticket-booking.unpaid": string;
|
|
122
|
-
"pisell2.ticket-booking.voided": string;
|
|
123
|
-
"pisell2.ticket-booking.pending": string;
|
|
124
|
-
"pisell2.ticket-booking.all": string;
|
|
125
|
-
"pisell2.ticket-booking.not-started": string;
|
|
126
|
-
"pisell2.ticket-booking.started": string;
|
|
127
|
-
"pisell2.ticket-booking.finished": string;
|
|
128
|
-
"pisell2.ticket-booking.canceled": string;
|
|
129
|
-
"pisell2.ticket-booking.inform": string;
|
|
130
|
-
"pisell2.ticket-booking.check-management": string;
|
|
131
|
-
"pisell2.ticket-booking.confirm": string;
|
|
132
|
-
"pisell2.ticket-booking.dashboard": string;
|
|
133
|
-
"pisell2.ticket-booking.booking-list": string;
|
|
134
|
-
"pisell2.ticket-booking.full-data": string;
|
|
135
|
-
"pisell2.ticket-booking.today": string;
|
|
136
|
-
"pisell2.ticket-booking.now": string;
|
|
137
|
-
"pisell2.ticket-booking.start-time": string;
|
|
138
|
-
"pisell2.ticket-booking.create-time": string;
|
|
139
|
-
"pisell2.ticket-booking.customer": string;
|
|
140
|
-
"pisell2.ticket-booking.total": string;
|
|
141
|
-
"pisell2.ticket-booking.search": string;
|
|
142
|
-
"pisell2.ticket-booking.refresh-success": string;
|
|
143
|
-
"pisell2.ticket-booking.loading": string;
|
|
144
|
-
"pisell2.ticket-booking.appointment-not-found": string;
|
|
145
|
-
"pisell2.ticket-booking.scan": string;
|
|
146
|
-
"pisell2.ticket-booking.create-new": string;
|
|
147
|
-
"pisell2.ticket-booking.add-to-cart": string;
|
|
148
|
-
"pisell2.ticket-booking.not-available-title": string;
|
|
149
|
-
"pisell2.ticket-booking.not-available-ok": string;
|
|
150
|
-
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
export declare type MachineCodeListParams = {
|
|
2
|
-
order_id: number | string;
|
|
3
|
-
available: number;
|
|
4
|
-
prepare_payments: {
|
|
5
|
-
voucher_id: number;
|
|
6
|
-
amount: number;
|
|
7
|
-
tag: string;
|
|
8
|
-
}[];
|
|
9
|
-
filter_prepare_wallet_pass: 1 | 0;
|
|
10
|
-
sale_channel: string;
|
|
11
|
-
other_exact_codes?: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare type WalletPassDataType = {
|
|
14
|
-
id: number;
|
|
15
|
-
shop_id: number;
|
|
16
|
-
customer_id: number;
|
|
17
|
-
code: string;
|
|
18
|
-
encoded: string;
|
|
19
|
-
status: string;
|
|
20
|
-
cover: string;
|
|
21
|
-
tag: string;
|
|
22
|
-
relation_type: string;
|
|
23
|
-
product_id: number;
|
|
24
|
-
limit_status: string;
|
|
25
|
-
sales_status: number;
|
|
26
|
-
par_value: string;
|
|
27
|
-
used_par_value: string;
|
|
28
|
-
start_date: string;
|
|
29
|
-
expire_date: string;
|
|
30
|
-
end_time: string;
|
|
31
|
-
start_time: string;
|
|
32
|
-
created_at: string;
|
|
33
|
-
product_name: string;
|
|
34
|
-
expire_time: string;
|
|
35
|
-
available_max_par_value: string;
|
|
36
|
-
available_max_amount: string;
|
|
37
|
-
recommended_usage_amount: string;
|
|
38
|
-
custom_expire_status: number;
|
|
39
|
-
wallet_pass_usage_unit: WalletPassUsageUnit;
|
|
40
|
-
custom_order_deduct_exhausted: number;
|
|
41
|
-
available_product_status: number;
|
|
42
|
-
available_product_ids: any[];
|
|
43
|
-
available_product_type: string;
|
|
44
|
-
available_num: number;
|
|
45
|
-
available_product_title: string;
|
|
46
|
-
unified_available_status: number;
|
|
47
|
-
unified_messages: UnifiedMessages;
|
|
48
|
-
external_card: any[];
|
|
49
|
-
product: Product;
|
|
50
|
-
shop: Shop;
|
|
51
|
-
wallet_pass_usage?: any;
|
|
52
|
-
balance_par_value: string;
|
|
53
|
-
};
|
|
54
|
-
declare type Shop = {
|
|
55
|
-
id: number;
|
|
56
|
-
name: string;
|
|
57
|
-
default_url: string;
|
|
58
|
-
};
|
|
59
|
-
declare type Product = {
|
|
60
|
-
id: number;
|
|
61
|
-
title: string;
|
|
62
|
-
cover: string;
|
|
63
|
-
is_charge_tax: number;
|
|
64
|
-
};
|
|
65
|
-
declare type UnifiedMessages = {
|
|
66
|
-
title: string;
|
|
67
|
-
desc: string;
|
|
68
|
-
alert: string;
|
|
69
|
-
};
|
|
70
|
-
declare type WalletPassUsageUnit = {
|
|
71
|
-
price: number;
|
|
72
|
-
points: number;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* 查询支付识别码列表
|
|
76
|
-
*/
|
|
77
|
-
export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
|
|
78
|
-
/**
|
|
79
|
-
* 获取推荐的支付识别码
|
|
80
|
-
*/
|
|
81
|
-
export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
|
|
82
|
-
/**
|
|
83
|
-
* 搜索支付识别码
|
|
84
|
-
*/
|
|
85
|
-
export declare const searchMachineCodeList: (params: {
|
|
86
|
-
order_id: number | string;
|
|
87
|
-
code: string;
|
|
88
|
-
sale_channel: string;
|
|
89
|
-
prepare_payments: {
|
|
90
|
-
voucher_id: number;
|
|
91
|
-
amount: number;
|
|
92
|
-
tag: string;
|
|
93
|
-
}[];
|
|
94
|
-
filter_prepare_wallet_pass: 1 | 0;
|
|
95
|
-
}) => Promise<WalletPassDataType[]>;
|
|
96
|
-
/**
|
|
97
|
-
* walletpass支付
|
|
98
|
-
*/
|
|
99
|
-
export declare const walletPassPay: (params: {
|
|
100
|
-
order_id: number | string;
|
|
101
|
-
payment_group_id: number;
|
|
102
|
-
payments: {
|
|
103
|
-
amount: string;
|
|
104
|
-
wallet_pass_use_value: string;
|
|
105
|
-
voucher_id: number;
|
|
106
|
-
tag: string;
|
|
107
|
-
wallet_pass_usage_unit: {
|
|
108
|
-
price: number;
|
|
109
|
-
points: number;
|
|
110
|
-
};
|
|
111
|
-
}[];
|
|
112
|
-
}) => Promise<WalletPassDataType[]>;
|
|
113
|
-
export {};
|