@pisell/private-materials 3.3.13 → 3.3.14
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/appointmentBooking/components/Services/index.js +2 -2
- package/es/components/booking/deposit/DepositItem/index.js +1 -0
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/utils.js +2 -1
- package/lib/components/appointmentBooking/components/Services/index.js +1 -1
- package/lib/components/booking/deposit/DepositItem/index.js +1 -0
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/utils.js +2 -1
- package/package.json +3 -3
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -36
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/appointmentBooking/context.d.ts +0 -29
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/appointmentBooking/utils.d.ts +0 -114
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/forms/forms.d.ts +0 -26
- package/es/components/booking/forms/sendModal/index.d.ts +0 -27
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +0 -31
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/utils.d.ts +0 -46
- package/es/components/booking/info2/service/editService/index.d.ts +0 -7
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/locales.d.ts +0 -330
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -111
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/utils.d.ts +0 -49
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -34
- package/es/components/productSelect/index.d.ts +0 -23
- package/es/components/ruleSetting/server.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/es/components/subTotal/index.d.ts +0 -22
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -3
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/walletList/index.d.ts +0 -28
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -36
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/appointmentBooking/context.d.ts +0 -29
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/appointmentBooking/utils.d.ts +0 -114
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/forms/forms.d.ts +0 -26
- package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +0 -31
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/utils.d.ts +0 -46
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -9
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/locales.d.ts +0 -330
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -111
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/utils.d.ts +0 -49
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -34
- package/lib/components/productSelect/index.d.ts +0 -23
- package/lib/components/ruleSetting/server.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/lib/components/subTotal/index.d.ts +0 -22
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface AppointmentBookingContextType {
|
|
3
|
-
appointmentBooking: any;
|
|
4
|
-
times: any[];
|
|
5
|
-
resources: any[];
|
|
6
|
-
setTimes: (times: any[]) => void;
|
|
7
|
-
setResources: (lists: any[]) => void;
|
|
8
|
-
carts: any[];
|
|
9
|
-
summary: any;
|
|
10
|
-
setCarts: (val: any[]) => void;
|
|
11
|
-
setSummary: (val: any) => void;
|
|
12
|
-
currentStep: any;
|
|
13
|
-
setCurrentStep: (val: any) => void;
|
|
14
|
-
appHelper?: any;
|
|
15
|
-
symbolic?: any;
|
|
16
|
-
resourceOtherParams?: any;
|
|
17
|
-
setResourceOtherParams: (val: any) => void;
|
|
18
|
-
selectedTime: any;
|
|
19
|
-
setSelectedTime: (val: any) => void;
|
|
20
|
-
isAgreeDepositPolicy: boolean;
|
|
21
|
-
setIsAgreeDepositPolicy: (val: boolean) => void;
|
|
22
|
-
setStepParams: (val: any) => void;
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}
|
|
25
|
-
export declare const AppointmentBookingProvider: ({ children, }: {
|
|
26
|
-
children: ReactNode;
|
|
27
|
-
}) => JSX.Element;
|
|
28
|
-
export declare const useAppointmentBookingContext: () => AppointmentBookingContextType;
|
|
29
|
-
export {};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export declare const useAppointmentBooking: () => any;
|
|
2
|
-
export declare const useShopDiscount: () => any;
|
|
3
|
-
export declare const contextUtils: () => any;
|
|
4
|
-
/**
|
|
5
|
-
* @title: 监听步骤发生变化
|
|
6
|
-
* @description:
|
|
7
|
-
* @return {*}
|
|
8
|
-
* @Author: WangHan
|
|
9
|
-
* @Date: 2025-04-15 11:11
|
|
10
|
-
*/
|
|
11
|
-
export declare const useAppointmentBookingStep: () => {
|
|
12
|
-
getStepIndex: (type: string, skipNumber?: number) => any;
|
|
13
|
-
stepList: any;
|
|
14
|
-
removeStep: (key: string) => any;
|
|
15
|
-
addStep: (props: any, stepKey?: string) => any;
|
|
16
|
-
updateStep: (key: string, step: any) => void;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @title: 获取商品数据
|
|
20
|
-
* @description:
|
|
21
|
-
* @return {*}
|
|
22
|
-
* @Author: WangHan
|
|
23
|
-
* @Date: 2025-04-15 11:12
|
|
24
|
-
*/
|
|
25
|
-
export declare const useAppointmentBookingProduct: () => {
|
|
26
|
-
checkProductType: (productId: number) => Promise<any>;
|
|
27
|
-
getProducts: () => Promise<any>;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @title: 更新购物车数据
|
|
31
|
-
* @description:
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: WangHan
|
|
34
|
-
* @Date: 2025-04-15 11:12
|
|
35
|
-
*/
|
|
36
|
-
export declare const useAppointmentBookingCart: () => void;
|
|
37
|
-
/**
|
|
38
|
-
* @title: 获取登录状态
|
|
39
|
-
* @description:
|
|
40
|
-
* @return {*}
|
|
41
|
-
* @Author: WangHan
|
|
42
|
-
* @Date: 2025-04-15 11:14
|
|
43
|
-
*/
|
|
44
|
-
export declare const useAppointmentBookingLogin: () => {
|
|
45
|
-
isLogin: boolean;
|
|
46
|
-
openLoginModal: (params: {
|
|
47
|
-
callback: any;
|
|
48
|
-
}) => void;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @title: 获取账户
|
|
52
|
-
* @description:
|
|
53
|
-
* @return {*}
|
|
54
|
-
* @Author: WangHan
|
|
55
|
-
* @Date: 2025-04-15 11:15
|
|
56
|
-
*/
|
|
57
|
-
export declare const useAppointmentBookingAccount: () => {
|
|
58
|
-
accountLists: any;
|
|
59
|
-
getHolders: () => Promise<any>;
|
|
60
|
-
form_id: any;
|
|
61
|
-
addAccount: (val: any, type?: string) => Promise<any>;
|
|
62
|
-
checkAccount: (type: any) => any;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @title: 获取资源数据
|
|
66
|
-
* @description:
|
|
67
|
-
* @return {*}
|
|
68
|
-
* @Author: WangHan
|
|
69
|
-
* @Date: 2025-04-15 11:29
|
|
70
|
-
*/
|
|
71
|
-
export declare const useAppointmentBookingResource: () => {
|
|
72
|
-
getResourceTimeSlot: (index?: number) => Promise<void>;
|
|
73
|
-
getResourceList: () => {
|
|
74
|
-
resources: any;
|
|
75
|
-
resourceCodes: any;
|
|
76
|
-
};
|
|
77
|
-
autoSelectAllProductResources: (index?: number) => Promise<any>;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* @title: 是否跳过资源选择步骤
|
|
81
|
-
* @description:
|
|
82
|
-
* @return {*}
|
|
83
|
-
* @Author: WangHan
|
|
84
|
-
* @Date: 2025-04-21 11:47
|
|
85
|
-
*/
|
|
86
|
-
export declare const useIsSkipResourceStep: () => {
|
|
87
|
-
checkSkipResourceStep: (isSkipUpdateFormStep?: boolean) => Promise<boolean>;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* @title: 获取预约配置
|
|
91
|
-
* @description:
|
|
92
|
-
* @return {*}
|
|
93
|
-
* @Author: WangHan
|
|
94
|
-
* @Date: 2025-04-24 18:15
|
|
95
|
-
*/
|
|
96
|
-
export declare const useAppointmentBookingSetting: () => {
|
|
97
|
-
isDateSelectedFirst: boolean;
|
|
98
|
-
isFormSubject: boolean;
|
|
99
|
-
customPageId: any;
|
|
100
|
-
channel: any;
|
|
101
|
-
getLoadAllSchedule: () => void;
|
|
102
|
-
bookingSubject: any;
|
|
103
|
-
setOtherData: (key: string, val: any) => any;
|
|
104
|
-
getOtherData: (key: string) => any;
|
|
105
|
-
formName: any;
|
|
106
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 格式化holder表数据
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} data
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-05-07 21:22
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatHolder: (data: any[]) => any[];
|
|
10
|
-
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
11
|
-
/**
|
|
12
|
-
* @title: 格式化购物车中资源上挂接的表单数据
|
|
13
|
-
* @description:
|
|
14
|
-
* @param {any} data
|
|
15
|
-
* @param {any} resources
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2025-05-06 22:22
|
|
19
|
-
*/
|
|
20
|
-
export declare const formatCartsResources: (carts: any[], resources: any[]) => any[];
|
|
21
|
-
/**
|
|
22
|
-
* @title: 格式化购物车数据
|
|
23
|
-
* @description:
|
|
24
|
-
* @param {any} data
|
|
25
|
-
* @param {any} resources
|
|
26
|
-
* @param {any} accountLists
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: WangHan
|
|
29
|
-
* @Date: 2025-05-07 21:22
|
|
30
|
-
*/
|
|
31
|
-
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
32
|
-
/**
|
|
33
|
-
* @title: 对资源进行排序
|
|
34
|
-
* @description:
|
|
35
|
-
* @param {any} currentResourcesMap
|
|
36
|
-
* @param {any} resourceSort
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: WangHan
|
|
39
|
-
* @Date: 2025-04-14 11:16
|
|
40
|
-
*/
|
|
41
|
-
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
|
-
export declare const getMeAccount: (val: any[]) => any;
|
|
43
|
-
export declare const getCustomer: () => any;
|
|
44
|
-
export declare const formatCustomer: (val: any) => {
|
|
45
|
-
id: any;
|
|
46
|
-
username: string;
|
|
47
|
-
};
|
|
48
|
-
export declare const formatCurrentUser: () => {
|
|
49
|
-
id: any;
|
|
50
|
-
username: string;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @title: 定金合并的标点符号
|
|
54
|
-
* @description:
|
|
55
|
-
* @return {*}
|
|
56
|
-
* @Author: WangHan
|
|
57
|
-
* @Date: 2025-04-21 17:52
|
|
58
|
-
*/
|
|
59
|
-
export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
|
|
60
|
-
/**
|
|
61
|
-
* @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
|
|
62
|
-
* @description:
|
|
63
|
-
* @param {any} array
|
|
64
|
-
* @param {any} resources
|
|
65
|
-
* @return {*}
|
|
66
|
-
* @Author: WangHan
|
|
67
|
-
* @Date: 2025-04-25 19:05
|
|
68
|
-
*/
|
|
69
|
-
export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
|
|
70
|
-
export declare const formatForms: (array: any[]) => ({
|
|
71
|
-
form_id: any;
|
|
72
|
-
policy_id: any;
|
|
73
|
-
id: any;
|
|
74
|
-
cart_id: any;
|
|
75
|
-
} | null)[];
|
|
76
|
-
/**
|
|
77
|
-
* @title: 打开表单
|
|
78
|
-
* @description:
|
|
79
|
-
* @param {string} title
|
|
80
|
-
* @param {any} callback
|
|
81
|
-
* @return {*}
|
|
82
|
-
* @Author: WangHan
|
|
83
|
-
* @Date: 2025-04-26 15:26
|
|
84
|
-
*/
|
|
85
|
-
export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
|
|
86
|
-
/**
|
|
87
|
-
* @title: 更新数组
|
|
88
|
-
* @description:
|
|
89
|
-
* @return {*}
|
|
90
|
-
* @Author: WangHan
|
|
91
|
-
* @Date: 2025-04-26 18:13
|
|
92
|
-
*/
|
|
93
|
-
export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
|
|
94
|
-
/**
|
|
95
|
-
* @title: 更新表单存储
|
|
96
|
-
* @description:
|
|
97
|
-
* @param {any} bookingForm
|
|
98
|
-
* @param {number} id
|
|
99
|
-
* @param {any} newData
|
|
100
|
-
* @return {*}
|
|
101
|
-
* @Author: WangHan
|
|
102
|
-
* @Date: 2025-04-27 17:27
|
|
103
|
-
*/
|
|
104
|
-
export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
|
|
105
|
-
export declare const Toast: (text: string) => void;
|
|
106
|
-
/**
|
|
107
|
-
* @title: 添加或移除表单步骤
|
|
108
|
-
* @description:
|
|
109
|
-
* @param {any} param1
|
|
110
|
-
* @return {*}
|
|
111
|
-
* @Author: WangHan
|
|
112
|
-
* @Date: 2025-05-06 21:51
|
|
113
|
-
*/
|
|
114
|
-
export declare const checkHasFormStep: ({ isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
export interface InfoProps {
|
|
3
|
-
forms: any[];
|
|
4
|
-
value: any;
|
|
5
|
-
onChange: any;
|
|
6
|
-
modalOpen: boolean;
|
|
7
|
-
action: any;
|
|
8
|
-
customSelectProps: any;
|
|
9
|
-
optionRender: any;
|
|
10
|
-
hideTitle?: boolean;
|
|
11
|
-
addCallback?: any;
|
|
12
|
-
client: any;
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
addButtonProps?: any;
|
|
15
|
-
drawerProps?: any;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @title: 表单模块
|
|
19
|
-
* @description:
|
|
20
|
-
* @param {*} Provider
|
|
21
|
-
* @return {*}
|
|
22
|
-
* @Author: zhiwei.Wang
|
|
23
|
-
* @Date: 2024-01-30 17:10
|
|
24
|
-
*/
|
|
25
|
-
declare const Forms: any;
|
|
26
|
-
export default Forms;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type SendModalValues = {
|
|
4
|
-
sendSms: boolean;
|
|
5
|
-
sendEmail: boolean;
|
|
6
|
-
phone: {
|
|
7
|
-
code: string;
|
|
8
|
-
phone: string;
|
|
9
|
-
};
|
|
10
|
-
email: string;
|
|
11
|
-
};
|
|
12
|
-
interface SendModalProps {
|
|
13
|
-
open: boolean;
|
|
14
|
-
refreshKey: string;
|
|
15
|
-
onCancel: () => void;
|
|
16
|
-
onOk: (values: SendModalValues) => void;
|
|
17
|
-
defaultValues?: {
|
|
18
|
-
email?: string;
|
|
19
|
-
phone?: {
|
|
20
|
-
code?: string;
|
|
21
|
-
phone?: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
onValuesChange?: (values: any) => void;
|
|
25
|
-
}
|
|
26
|
-
declare const SendModal: React.FC<SendModalProps>;
|
|
27
|
-
export default SendModal;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { FormState } from '../../../model';
|
|
2
|
-
interface useClientFnParams {
|
|
3
|
-
state: any;
|
|
4
|
-
setGlobalState: (val: any) => void;
|
|
5
|
-
modalRef: any;
|
|
6
|
-
onRemoveClient?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const useClientFn: (_params: useClientFnParams) => {
|
|
9
|
-
setClient: (client: Partial<FormState['client']>) => void;
|
|
10
|
-
isWalkIn: boolean;
|
|
11
|
-
handleSelectClient: (value: any) => Promise<unknown>;
|
|
12
|
-
menuChange: (e: any) => void;
|
|
13
|
-
handleViewClient: () => void;
|
|
14
|
-
menus: {
|
|
15
|
-
key: string;
|
|
16
|
-
label: any;
|
|
17
|
-
}[];
|
|
18
|
-
handleCreateItem: (cb?: () => void) => void;
|
|
19
|
-
getClients: ({ customer_id, customer_ids, ...resetParams }: {
|
|
20
|
-
customer_id?: number | undefined;
|
|
21
|
-
skip?: number | undefined;
|
|
22
|
-
search?: string | undefined;
|
|
23
|
-
with?: string[] | undefined;
|
|
24
|
-
relation_form_id?: number | undefined;
|
|
25
|
-
num?: number | undefined;
|
|
26
|
-
customer_ids?: string[] | undefined;
|
|
27
|
-
}, returnResult?: boolean) => Promise<any>;
|
|
28
|
-
params: {
|
|
29
|
-
skip: number;
|
|
30
|
-
num: number;
|
|
31
|
-
total: number;
|
|
32
|
-
search: string;
|
|
33
|
-
with: string[];
|
|
34
|
-
relation_form_id: any;
|
|
35
|
-
};
|
|
36
|
-
searchChange: (search: string) => void;
|
|
37
|
-
loading: boolean;
|
|
38
|
-
loadMore: JSX.Element | null;
|
|
39
|
-
handleOpenClientModal: (val?: string) => void;
|
|
40
|
-
getNickname: (item: any) => any;
|
|
41
|
-
franchiseeLoading: number;
|
|
42
|
-
};
|
|
43
|
-
export default useClientFn;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 根据商品生成加时列表
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} config
|
|
5
|
-
* @param {number} price
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: zhiwei.Wang
|
|
8
|
-
* @Date: 2024-07-01 09:34
|
|
9
|
-
*/
|
|
10
|
-
export declare const getAddTimeSplits: (product: any, cacheItem: any, currentResourceTimeEndDate: any) => {
|
|
11
|
-
label: any;
|
|
12
|
-
value: any;
|
|
13
|
-
price: any;
|
|
14
|
-
}[];
|
|
15
|
-
/**
|
|
16
|
-
* @title: 判断当前商品是否可用
|
|
17
|
-
* @description:
|
|
18
|
-
* @param {any} relationProduct
|
|
19
|
-
* @param {any} currentItem
|
|
20
|
-
* @return {*}
|
|
21
|
-
* @Author: zhiwei.Wang
|
|
22
|
-
* @Date: 2024-07-01 09:33
|
|
23
|
-
*/
|
|
24
|
-
export declare const isUsableProduct: (addTime: any, currentItem: any) => any;
|
|
25
|
-
export declare const addTimeRowKey: {
|
|
26
|
-
create: (product_id: number, time: number) => string;
|
|
27
|
-
getValue: (str: string) => {
|
|
28
|
-
product_id: number;
|
|
29
|
-
time: number | string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
|
|
2
|
-
export declare const uniqueByField: (arr: any[], field: string) => any[];
|
|
3
|
-
export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
|
|
4
|
-
/**
|
|
5
|
-
* @title: 判断两个时间是否在同一个时间段内
|
|
6
|
-
* @description:
|
|
7
|
-
* @param {number} time1 开始时间
|
|
8
|
-
* @param {number} time2 结束时间
|
|
9
|
-
* @param {number} interval 时间间隔
|
|
10
|
-
* @return {*}
|
|
11
|
-
* @Author: zhiwei.Wang
|
|
12
|
-
* @Date: 2024-08-13 19:37
|
|
13
|
-
*/
|
|
14
|
-
export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @title: 根据时间间隔格式化服务列表
|
|
17
|
-
* @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
|
|
18
|
-
* @param {any} list 服务列表
|
|
19
|
-
* @return {*}
|
|
20
|
-
* @Author: zhiwei.Wang
|
|
21
|
-
* @Date: 2024-08-13 19:36
|
|
22
|
-
*/
|
|
23
|
-
export declare const formatServiceListByTime: (list: any[]) => any[];
|
|
24
|
-
export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
|
|
25
|
-
declare type DataEntry = {
|
|
26
|
-
total: number;
|
|
27
|
-
origin_total: number;
|
|
28
|
-
num: number;
|
|
29
|
-
quotation_id: number;
|
|
30
|
-
start_date: string;
|
|
31
|
-
end_date: string;
|
|
32
|
-
};
|
|
33
|
-
declare type ResultStructure = Record<string, Record<string, any>>;
|
|
34
|
-
export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
|
|
35
|
-
/**
|
|
36
|
-
* @title: 是否是跨日预约
|
|
37
|
-
* @description:
|
|
38
|
-
* @param {number} shopId
|
|
39
|
-
* @return {*}
|
|
40
|
-
* @Author: WangHan
|
|
41
|
-
* @Date: 2024-11-29 11:19
|
|
42
|
-
*/
|
|
43
|
-
export declare const isDayBooking: (shopId: number) => boolean;
|
|
44
|
-
export declare const isOpenAddTime: (state: any) => boolean;
|
|
45
|
-
export declare const isShowAddTime: (state: any, currentService: any) => boolean;
|
|
46
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PayStatus } from './const';
|
|
3
|
-
import { ModeEnum, ClientEnum } from './const';
|
|
4
|
-
export declare const useStoreRef: <T extends {
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
} = {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}, U extends {
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
} = {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}>() => {
|
|
13
|
-
readonly deviceRef: React.MutableRefObject<T>;
|
|
14
|
-
readonly payRef: React.MutableRefObject<U>;
|
|
15
|
-
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
|
-
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
|
-
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
|
-
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
|
-
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
|
-
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo">;
|
|
23
|
-
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
|
-
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @title: 通用失败处理
|
|
28
|
-
* @description: 固定步骤 错误处理逻辑
|
|
29
|
-
* @return null
|
|
30
|
-
* @Author: hongbing.wang
|
|
31
|
-
* @Date: 2024-08-12 11:54
|
|
32
|
-
*/
|
|
33
|
-
export declare const useFail: (index: number) => (res: {
|
|
34
|
-
code?: `${PayStatus}`;
|
|
35
|
-
}, isMark?: boolean) => void;
|