@pisell/private-materials 6.3.96 → 6.3.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/booking/addons/index.d.ts +17 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/amount.d.ts +25 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/forms/forms.d.ts +30 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/main.d.ts +12 -0
- package/es/components/booking/info/model.d.ts +5 -0
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service/addService/index.d.ts +12 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serve.d.ts +20 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info/utils.d.ts +50 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +846 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +175 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +11 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/device.d.ts +24 -0
- package/es/components/eftposPay/index.d.ts +5 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +21 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
- package/es/components/pay/toC/serve.d.ts +62 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +5 -0
- package/es/components/ticketBooking/index.d.ts +8 -0
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/ticketBooking/utils/index.d.ts +25 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/booking/addons/index.d.ts +17 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/amount.d.ts +25 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/forms/forms.d.ts +30 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/main.d.ts +12 -0
- package/lib/components/booking/info/model.d.ts +5 -0
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service/addService/index.d.ts +12 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serve.d.ts +20 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info/utils.d.ts +50 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +846 -0
- 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/booking/utils.d.ts +175 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +11 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/device.d.ts +24 -0
- package/lib/components/eftposPay/index.d.ts +5 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +21 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
- package/lib/components/pay/toC/serve.d.ts +62 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +5 -0
- package/lib/components/ticketBooking/index.d.ts +8 -0
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/ticketBooking/utils/index.d.ts +25 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +1 -1
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/eftpos/index.d.ts +0 -47
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
- 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/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/pay/toC/model.d.ts +0 -40
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/plus/saasAttendance/locales.d.ts +0 -381
- package/es/plus/saasAttendance/settings/types.d.ts +0 -134
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/eftpos/index.d.ts +0 -47
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
- 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/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/pay/toC/model.d.ts +0 -40
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/plus/saasAttendance/locales.d.ts +0 -381
- package/lib/plus/saasAttendance/settings/types.d.ts +0 -134
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
3
|
+
declare class Request {
|
|
4
|
+
private request;
|
|
5
|
+
constructor();
|
|
6
|
+
setRequest(val: any): void;
|
|
7
|
+
getRequest(): {
|
|
8
|
+
get: RType;
|
|
9
|
+
post: RType;
|
|
10
|
+
put: RType;
|
|
11
|
+
remove: RType;
|
|
12
|
+
custom: RType;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const request: Request;
|
|
16
|
+
/**
|
|
17
|
+
* @title: 格式化持续时长用于展示
|
|
18
|
+
* @description:
|
|
19
|
+
* @param {number} service_times
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: zhiwei.Wang
|
|
22
|
+
* @Date: 2024-04-26 14:00
|
|
23
|
+
*/
|
|
24
|
+
export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 时间切片
|
|
27
|
+
* @description:
|
|
28
|
+
* @param {any} config
|
|
29
|
+
* @param {string} locale
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @Author: zhiwei.Wang
|
|
32
|
+
* @Date: 2024-04-26 13:59
|
|
33
|
+
*/
|
|
34
|
+
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
|
|
35
|
+
timeSlices: {
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
durationSlicesBasedOnTime: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: number;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
export declare const getNowTime: () => string;
|
|
45
|
+
export declare const isNowTime: (time: string) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
|
48
|
+
* @description:
|
|
49
|
+
* @param {string} start_time
|
|
50
|
+
* @return {*}
|
|
51
|
+
* @Author: zhiwei.Wang
|
|
52
|
+
* @Date: 2024-04-26 14:03
|
|
53
|
+
*/
|
|
54
|
+
export declare const getServeStartTime: (start_time: string) => string;
|
|
55
|
+
/**
|
|
56
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
57
|
+
* @description:
|
|
58
|
+
* @param {any} item
|
|
59
|
+
* @param {any} currentDate
|
|
60
|
+
* @return {*}
|
|
61
|
+
* @Author: zhiwei.Wang
|
|
62
|
+
* @Date: 2024-04-26 14:04
|
|
63
|
+
*/
|
|
64
|
+
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
65
|
+
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
66
|
+
timeSlices: any[];
|
|
67
|
+
index?: number | undefined;
|
|
68
|
+
date?: string | undefined;
|
|
69
|
+
}) => any;
|
|
70
|
+
export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
|
|
71
|
+
export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
|
|
72
|
+
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
|
|
73
|
+
/**
|
|
74
|
+
* @title: 查找是否有可用的time
|
|
75
|
+
* @description:
|
|
76
|
+
* @param {any} resourceItem
|
|
77
|
+
* @return {*}
|
|
78
|
+
* @Author: zhiwei.Wang
|
|
79
|
+
* @Date: 2024-01-09 13:57
|
|
80
|
+
*/
|
|
81
|
+
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
82
|
+
/**
|
|
83
|
+
* @title: 获取店铺的营业结束时间
|
|
84
|
+
* @description:
|
|
85
|
+
* @return {*}
|
|
86
|
+
* @Author: zhiwei.Wang
|
|
87
|
+
* @Date: 2024-02-23 10:00
|
|
88
|
+
*/
|
|
89
|
+
export declare const getShopOpeningHours: () => string;
|
|
90
|
+
/**
|
|
91
|
+
* @title: 对灵活时长进行处理
|
|
92
|
+
* @description:
|
|
93
|
+
* @return {*}
|
|
94
|
+
* @Author: zhiwei.Wang
|
|
95
|
+
* @Date: 2024-02-23 10:00
|
|
96
|
+
*/
|
|
97
|
+
export declare const flexibleObj: {
|
|
98
|
+
create: (num: number) => any;
|
|
99
|
+
getValue: (str: string | number) => number;
|
|
100
|
+
isFlexible: (str: string | number) => boolean;
|
|
101
|
+
add: (current: number | string, duration: number) => any;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @title: 获取结束时间
|
|
105
|
+
* @description: 取 endDate | 店铺营业时间 最小的那一个
|
|
106
|
+
* @param {any} startDate
|
|
107
|
+
* @param {string} duration
|
|
108
|
+
* @param {any} endDate
|
|
109
|
+
* @return {*}
|
|
110
|
+
* @Author: zhiwei.Wang
|
|
111
|
+
* @Date: 2024-02-23 10:01
|
|
112
|
+
*/
|
|
113
|
+
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
|
114
|
+
export declare const getServiceTimes: (service: any) => {
|
|
115
|
+
startDate: dayjs.Dayjs;
|
|
116
|
+
endDate: dayjs.Dayjs;
|
|
117
|
+
};
|
|
118
|
+
export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
|
|
119
|
+
label: any;
|
|
120
|
+
type: string;
|
|
121
|
+
}[];
|
|
122
|
+
/**
|
|
123
|
+
* @title: 格式化资源, 添加自定义参数
|
|
124
|
+
* @description:
|
|
125
|
+
* @param {any} resourceItem
|
|
126
|
+
* @return {*}
|
|
127
|
+
* @Author: zhiwei.Wang
|
|
128
|
+
* @Date: 2024-01-09 13:40
|
|
129
|
+
*/
|
|
130
|
+
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
131
|
+
export declare const getLastServer: (list: any) => any;
|
|
132
|
+
export declare const getCacheParams: () => any;
|
|
133
|
+
export declare const deleteCacheParams: () => void;
|
|
134
|
+
/**
|
|
135
|
+
* @title: 获取跨日预约的时长
|
|
136
|
+
* @description:
|
|
137
|
+
* @param {any} cacheItem
|
|
138
|
+
* @return {*}
|
|
139
|
+
* @Author: WangHan
|
|
140
|
+
* @Date: 2024-12-01 22:43
|
|
141
|
+
*/
|
|
142
|
+
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
|
+
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
144
|
+
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
145
|
+
export declare const getIsOnlySession: (item: any) => boolean;
|
|
146
|
+
/**
|
|
147
|
+
* @title: 创建一个服务商品
|
|
148
|
+
* @description:
|
|
149
|
+
* @param {any} state
|
|
150
|
+
* @param {any} item
|
|
151
|
+
* @return {*}
|
|
152
|
+
* @Author: zhiwei.Wang
|
|
153
|
+
* @Date: 2024-01-26 14:09
|
|
154
|
+
*/
|
|
155
|
+
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
|
156
|
+
export declare const getMainPrice: (item: any, price?: number) => number;
|
|
157
|
+
export declare const getProductTotalPrice: (item: any) => number;
|
|
158
|
+
/**
|
|
159
|
+
* @title: 判断 duration
|
|
160
|
+
* @description: 用于处理不同格式的duration
|
|
161
|
+
* @param {number} duration
|
|
162
|
+
* @return {*}
|
|
163
|
+
* @Author: zhiwei.Wang
|
|
164
|
+
* @Date: 2024-02-23 10:02
|
|
165
|
+
*/
|
|
166
|
+
export declare const getDuration: (duration: number | {
|
|
167
|
+
type: string;
|
|
168
|
+
value: number;
|
|
169
|
+
}) => number | {
|
|
170
|
+
type: string;
|
|
171
|
+
value: number;
|
|
172
|
+
} | "flexible";
|
|
173
|
+
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
174
|
+
export declare const getIsEdit: (state: any) => boolean;
|
|
175
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PosProps, RouteType } from './const';
|
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
|
+
action: RouteType;
|
|
5
|
+
device_number: string | number;
|
|
6
|
+
api: ReturnType<PosProps['getApi']>;
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
channel?: string | undefined;
|
|
9
|
+
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default App;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PayProps, PosProps } from './const';
|
|
3
|
+
import './device.less';
|
|
4
|
+
/**
|
|
5
|
+
* @title: 设备选择页
|
|
6
|
+
* @description: 选择设备信息,无设备增加提示;仅有一条,默认选中跳走;多条记录则停留等待用户选择
|
|
7
|
+
* @return React.Element
|
|
8
|
+
* @Author: hongbing.wang
|
|
9
|
+
* @Date: 2024-08-12 11:40
|
|
10
|
+
*/
|
|
11
|
+
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
12
|
+
api: PayProps['api'];
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
|
+
[keys: string]: unknown;
|
|
16
|
+
} | undefined, other?: any) => void) | undefined;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
device_number?: string | number | undefined;
|
|
19
|
+
isMobile: boolean;
|
|
20
|
+
net: boolean;
|
|
21
|
+
client: string;
|
|
22
|
+
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
23
|
+
}) => React.JSX.Element;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { State } from './store';
|
|
2
|
+
export { getAmonunt } from './helper';
|
|
3
|
+
export { default as Payo } from './payo';
|
|
4
|
+
export { default as Windcave } from './windcave/windcave';
|
|
5
|
+
export { default as Tyro } from './tyro';
|
|
6
|
+
export { default as Linkly } from './linkly';
|
|
7
|
+
export declare const getInitState: (type: string, params?: any) => State;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PayProps } from './const';
|
|
3
|
+
import './index.less';
|
|
4
|
+
/**
|
|
5
|
+
* @title: 支付组件
|
|
6
|
+
* @description:
|
|
7
|
+
* @Author: hongbing.wang
|
|
8
|
+
* @Date: 2024-08-20 14:59
|
|
9
|
+
*/
|
|
10
|
+
declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
|
|
11
|
+
terminal: {
|
|
12
|
+
network: boolean;
|
|
13
|
+
};
|
|
14
|
+
net: boolean;
|
|
15
|
+
isMobile: boolean;
|
|
16
|
+
tyroUrl?: string | undefined;
|
|
17
|
+
tyroVersion?: string | undefined;
|
|
18
|
+
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
19
|
+
client: string;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
export default Pay;
|
|
@@ -13,6 +13,7 @@ export interface WalletPassListProps {
|
|
|
13
13
|
onChangeDebounce?: boolean;
|
|
14
14
|
loading?: boolean;
|
|
15
15
|
onLoadingChange?: (loading: boolean) => void;
|
|
16
|
+
customer_id?: number;
|
|
16
17
|
}
|
|
17
18
|
export declare type WalletPassListRef = {
|
|
18
19
|
init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
|
|
@@ -41,7 +41,7 @@ var import_utils2 = require("../utils");
|
|
|
41
41
|
var import_index = require("./index.less");
|
|
42
42
|
var WalletPassList = (0, import_react.forwardRef)(
|
|
43
43
|
(props, ref) => {
|
|
44
|
-
const { title, onChange, data: propsData, value, walletSetting, onLoadingChange, loading: propsLoading, onChangeDebounce } = props;
|
|
44
|
+
const { title, onChange, data: propsData, value, walletSetting, onLoadingChange, loading: propsLoading, onChangeDebounce, customer_id } = props;
|
|
45
45
|
const [data, setData] = (0, import_react.useState)(
|
|
46
46
|
propsData || []
|
|
47
47
|
);
|
|
@@ -58,6 +58,12 @@ var WalletPassList = (0, import_react.forwardRef)(
|
|
|
58
58
|
setLoading(true);
|
|
59
59
|
try {
|
|
60
60
|
let list = await (0, import_serve.getMachineCodeList)(params) || [];
|
|
61
|
+
list = list.map((item) => {
|
|
62
|
+
return {
|
|
63
|
+
...item,
|
|
64
|
+
customer_id: customer_id || item.customer_id
|
|
65
|
+
};
|
|
66
|
+
});
|
|
61
67
|
if ((0, import_utils.isFunction)(formatList)) {
|
|
62
68
|
list = formatList(list);
|
|
63
69
|
}
|
|
@@ -331,7 +331,8 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
|
|
|
331
331
|
onChange: handleCurrentChange,
|
|
332
332
|
ref: listRef,
|
|
333
333
|
value: selectValue,
|
|
334
|
-
onLoadingChange: setLoading
|
|
334
|
+
onLoadingChange: setLoading,
|
|
335
|
+
customer_id: order == null ? void 0 : order.customer_id
|
|
335
336
|
}
|
|
336
337
|
))
|
|
337
338
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const getPaymentList: (values: any) => Promise<{
|
|
2
|
+
message: string;
|
|
3
|
+
status: string;
|
|
4
|
+
paymentList?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
message: string;
|
|
7
|
+
status: string;
|
|
8
|
+
paymentList: any;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* @title: 聚合接口, 根据订单 返回支付列表和钱包
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {object} values
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: zhiwei.Wang
|
|
16
|
+
* @Date: 2024-08-15 11:52
|
|
17
|
+
*/
|
|
18
|
+
export declare const getPaymentsAndWalletPass: (values: {
|
|
19
|
+
order_id: string;
|
|
20
|
+
total_amount: number;
|
|
21
|
+
sale_channel: string;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* @title: 初始化交易组
|
|
25
|
+
* @description:
|
|
26
|
+
* @param {object} values
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: zhiwei.Wang
|
|
29
|
+
* @Date: 2024-08-16 10:42
|
|
30
|
+
*/
|
|
31
|
+
export declare const getPaymentInit: (values: {
|
|
32
|
+
order_id?: string;
|
|
33
|
+
amount?: number;
|
|
34
|
+
}) => Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* @title: 获取钱包名称和弹窗状态
|
|
37
|
+
* @description:
|
|
38
|
+
* @param {object} values
|
|
39
|
+
* @return {*}
|
|
40
|
+
* @Author: shengjie.zuo
|
|
41
|
+
* @member: 马天宇
|
|
42
|
+
* @Date: 2025-02-21 10:42
|
|
43
|
+
*/
|
|
44
|
+
export declare const getWalletNameAndPopupStatus: (values: {
|
|
45
|
+
setting_type?: string;
|
|
46
|
+
}) => Promise<{
|
|
47
|
+
wallet: {
|
|
48
|
+
name?: {
|
|
49
|
+
en: string;
|
|
50
|
+
'zh-CN': string;
|
|
51
|
+
'zh-HK': string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
wallet_setting: {
|
|
55
|
+
popup_status?: 1 | 0;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* @title: 获取支付结果
|
|
60
|
+
* @description: 获取支付结果
|
|
61
|
+
*/
|
|
62
|
+
export declare const getPaymentResult: (values: any) => Promise<any>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
4
|
+
'pisell2.text.add': string;
|
|
5
|
+
'pisell2.text.and': string;
|
|
6
|
+
'pisell2.text.or': string;
|
|
7
|
+
'pisell2.text.all': string;
|
|
8
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
9
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
10
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
11
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
12
|
+
'pisell2.text.rule-setting.staff': string;
|
|
13
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
14
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
15
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
16
|
+
};
|
|
17
|
+
'zh-CN': {
|
|
18
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
19
|
+
'pisell2.text.and': string;
|
|
20
|
+
'pisell2.text.or': string;
|
|
21
|
+
'pisell2.text.all': string;
|
|
22
|
+
'pisell2.text.add': string;
|
|
23
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
24
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
25
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
26
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
27
|
+
'pisell2.text.rule-setting.staff': string;
|
|
28
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
29
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
30
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
31
|
+
};
|
|
32
|
+
'zh-HK': {
|
|
33
|
+
'pisell2.text.satisfy_any_condition': string;
|
|
34
|
+
'pisell2.text.and': string;
|
|
35
|
+
'pisell2.text.or': string;
|
|
36
|
+
'pisell2.text.all': string;
|
|
37
|
+
'pisell2.text.add': string;
|
|
38
|
+
'pisell2.text.rule-setting.Contain': string;
|
|
39
|
+
'pisell2.text.rule-setting.Exclude': string;
|
|
40
|
+
'pisell2.text.rule-setting.order_type': string;
|
|
41
|
+
'pisell2.text.rule-setting.sales_channel': string;
|
|
42
|
+
'pisell2.text.rule-setting.staff': string;
|
|
43
|
+
'pisell2.text.rule-setting.payment_method': string;
|
|
44
|
+
'pisell2.text.rule-setting.pisell_terminal_device': string;
|
|
45
|
+
'pisell2.text.rule-setting.current_device': string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface TicketBookingProps {
|
|
4
|
+
productExtensionType: string[];
|
|
5
|
+
bookingConfigParams: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: (props: TicketBookingProps) => React.JSX.Element;
|
|
8
|
+
export default _default;
|