@pisell/private-materials 6.1.24 → 6.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +2 -2
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +4 -2
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -7
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -2
- package/package.json +4 -4
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -251
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/es/components/booking/locales.d.ts +0 -906
- package/es/components/booking/materiels/duration/index.d.ts +0 -13
- package/es/components/booking/materiels/startTime/index.d.ts +0 -9
- package/es/components/booking/utils.d.ts +0 -174
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/locales.d.ts +0 -180
- package/es/components/ticketBooking/serve.d.ts +0 -288
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/components/walletList/index.d.ts +0 -28
- package/es/hooks/useEngineContext.d.ts +0 -3
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/pro/comprehensiveSearch/index.d.ts +0 -9
- package/es/pro/comprehensiveSearch/types.d.ts +0 -31
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -251
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/lib/components/booking/locales.d.ts +0 -906
- package/lib/components/booking/materiels/duration/index.d.ts +0 -13
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -9
- package/lib/components/booking/utils.d.ts +0 -174
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/locales.d.ts +0 -180
- package/lib/components/ticketBooking/serve.d.ts +0 -288
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/hooks/useEngineContext.d.ts +0 -3
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
@@ -1,31 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export interface ComprehensiveSearchProps {
|
3
|
-
dataSource?: any;
|
4
|
-
isShowScanner?: boolean;
|
5
|
-
isShowCamera?: boolean;
|
6
|
-
isShowNFC?: boolean;
|
7
|
-
isShowNewButton?: boolean;
|
8
|
-
newButtonAlign?: 'left' | 'center' | 'right';
|
9
|
-
newButtonText?: string;
|
10
|
-
newDialogDataSource?: any;
|
11
|
-
renderType?: 'modal' | 'drawer' | 'portal' | '';
|
12
|
-
containerProps?: Record<string, any>;
|
13
|
-
isShowSearch?: boolean;
|
14
|
-
isShowSearchCamera?: boolean;
|
15
|
-
searchIcon?: string;
|
16
|
-
placeholder?: string;
|
17
|
-
isShowSearchButton?: boolean;
|
18
|
-
resultDisplay?: 'list' | 'grid';
|
19
|
-
resultSort?: 'asc' | 'desc' | 'custom';
|
20
|
-
sortBy?: string;
|
21
|
-
style?: React.CSSProperties;
|
22
|
-
loading?: boolean;
|
23
|
-
onSearchTextChange?: (value: string) => void;
|
24
|
-
onSearch?: (value: string) => void;
|
25
|
-
onAdd?: () => void;
|
26
|
-
onDataChange?: (data: any) => void;
|
27
|
-
onRowClick?: (record: any, index: any) => void;
|
28
|
-
}
|
29
|
-
export interface SearchResult {
|
30
|
-
[key: string]: any;
|
31
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { PopoverProps } from 'antd';
|
2
|
-
import './index.less';
|
3
|
-
interface PisellPhoneKeyboardProps {
|
4
|
-
value?: string;
|
5
|
-
onChange: (e: string) => void;
|
6
|
-
popoverProps: PopoverProps;
|
7
|
-
virtualKeyboardProps?: any;
|
8
|
-
keyboardProps?: any;
|
9
|
-
virtualKeyInputProps?: any;
|
10
|
-
}
|
11
|
-
declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
|
12
|
-
export default PisellPhoneKeyboard;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) => any;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const getWaiverTitle: (waiverForm: any[]) => string;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
interface VerticalClientProps {
|
4
|
-
globalState: any;
|
5
|
-
setGlobalState: any;
|
6
|
-
}
|
7
|
-
declare const VerticalClient: React.ForwardRefExoticComponent<VerticalClientProps & React.RefAttributes<unknown>>;
|
8
|
-
export default VerticalClient;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
2
|
-
import './index.less';
|
3
|
-
interface AddServiceProps {
|
4
|
-
onEdit?: any;
|
5
|
-
dispatch?: any;
|
6
|
-
state?: any;
|
7
|
-
drawerProps?: PisellDrawerProps;
|
8
|
-
renderMode?: 'current' | 'drawer';
|
9
|
-
}
|
10
|
-
declare const Info: (props: AddServiceProps) => JSX.Element;
|
11
|
-
export default Info;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
export interface EditServiceRef {
|
4
|
-
init: (cacheItem?: any, open?: boolean, openEditProduct?: boolean) => void;
|
5
|
-
}
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
7
|
-
export default _default;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
|
2
|
-
renderMode?: any;
|
3
|
-
onEdit?: any;
|
4
|
-
state?: any;
|
5
|
-
dispatch?: any;
|
6
|
-
}) => {
|
7
|
-
createBookingData: ({ product }: any) => Promise<any>;
|
8
|
-
editBookingData: ({ changeValues }: {
|
9
|
-
changeValues: any;
|
10
|
-
}) => Promise<any>;
|
11
|
-
createBooking: ({ booking }: {
|
12
|
-
booking: any;
|
13
|
-
}) => Promise<void>;
|
14
|
-
editBooking: ({ booking }: {
|
15
|
-
booking: any;
|
16
|
-
}) => Promise<void>;
|
17
|
-
goEditPanel: ({ booking }: {
|
18
|
-
booking: any;
|
19
|
-
}) => void;
|
20
|
-
};
|
@@ -1,251 +0,0 @@
|
|
1
|
-
import dayjs from 'dayjs';
|
2
|
-
export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
|
3
|
-
/**
|
4
|
-
* @title: 获取资源名称
|
5
|
-
* @description:
|
6
|
-
* @param {any} id
|
7
|
-
* @param {any} state
|
8
|
-
* @return {*}
|
9
|
-
* @Author: WangHan
|
10
|
-
* @Date: 2024-11-29 18:02
|
11
|
-
*/
|
12
|
-
export declare const getResourceItem: (id: any, state: any) => any;
|
13
|
-
/**
|
14
|
-
* @title: 错误提示
|
15
|
-
* @description:
|
16
|
-
* @param {any} service
|
17
|
-
* @param {any} resourceItem
|
18
|
-
* @return {*}
|
19
|
-
* @Author: WangHan
|
20
|
-
* @Date: 2024-11-29 18:41
|
21
|
-
*/
|
22
|
-
export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
|
23
|
-
/**
|
24
|
-
* @title: 格式化主体列表
|
25
|
-
* @description:
|
26
|
-
* @param {any} lists
|
27
|
-
* @param {boolean} isOpenGroup
|
28
|
-
* @return {*}
|
29
|
-
* @Author: WangHan
|
30
|
-
* @Date: 2024-12-04 11:27
|
31
|
-
*/
|
32
|
-
export declare const formatHolderLists: (lists: any) => any;
|
33
|
-
export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
|
34
|
-
/**
|
35
|
-
* @title: 是否是预约商品
|
36
|
-
* @description:
|
37
|
-
* @return {*}
|
38
|
-
* @Author: WangHan
|
39
|
-
* @Date: 2024-12-06 11:24
|
40
|
-
*/
|
41
|
-
export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
|
42
|
-
export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
|
43
|
-
/**
|
44
|
-
* @title: 更新商品数据
|
45
|
-
* @description:
|
46
|
-
* @param {any} state
|
47
|
-
* @param currentItem
|
48
|
-
* @param {string} type
|
49
|
-
* @param {any} other
|
50
|
-
* @param actions
|
51
|
-
* @return {*}
|
52
|
-
* @Author: WangHan
|
53
|
-
* @Date: 2025-01-03 15:00
|
54
|
-
*/
|
55
|
-
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
|
56
|
-
export declare const formItems: (items: any[]) => any[];
|
57
|
-
export declare const getIsSubjectRequire: (state: any) => boolean;
|
58
|
-
export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
|
59
|
-
export declare const isAllNormalProduct: (items: any[]) => boolean;
|
60
|
-
export declare const isAllNormalProductByState: (state: any) => boolean;
|
61
|
-
export declare const genRowKey: (key: string) => string;
|
62
|
-
/**
|
63
|
-
* @title: 格式化商品数据
|
64
|
-
* @description:
|
65
|
-
* @param {any} lists
|
66
|
-
* @return {*}
|
67
|
-
* @Author: WangHan
|
68
|
-
* @Date: 2024-11-29 17:36
|
69
|
-
*/
|
70
|
-
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
|
71
|
-
_origin: any;
|
72
|
-
id: any;
|
73
|
-
_id: any;
|
74
|
-
name: any;
|
75
|
-
title: any;
|
76
|
-
price: any;
|
77
|
-
total: number;
|
78
|
-
origin_total: number;
|
79
|
-
num: any;
|
80
|
-
image: any;
|
81
|
-
isShowNote: boolean;
|
82
|
-
note: any;
|
83
|
-
like_status: any;
|
84
|
-
bundle: any;
|
85
|
-
options: any;
|
86
|
-
errorMessage: string;
|
87
|
-
product_option_string: any;
|
88
|
-
discount_reason: any;
|
89
|
-
resource_id: any;
|
90
|
-
relation_form_name: any;
|
91
|
-
holder_title: any;
|
92
|
-
start_date: any;
|
93
|
-
end_date: any;
|
94
|
-
holder_id: any;
|
95
|
-
isNormalProduct: boolean;
|
96
|
-
isCustomItem: any;
|
97
|
-
vouchersApplicable: any;
|
98
|
-
locale: any;
|
99
|
-
symbol: any;
|
100
|
-
relation_products: any;
|
101
|
-
items: any[];
|
102
|
-
}[];
|
103
|
-
/**
|
104
|
-
* @title: 禁用日期
|
105
|
-
* @description:
|
106
|
-
* @param {any} current
|
107
|
-
* @param {string} position
|
108
|
-
* @param {any} startDate
|
109
|
-
* @return {*}
|
110
|
-
* @Author: WangHan
|
111
|
-
* @Date: 2024-12-03 17:51
|
112
|
-
*/
|
113
|
-
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
114
|
-
/**
|
115
|
-
* @title: 是否是跨日预约
|
116
|
-
* @description:
|
117
|
-
* @param {any} state
|
118
|
-
* @return {*}
|
119
|
-
* @Author: WangHan
|
120
|
-
* @Date: 2024-12-04 09:49
|
121
|
-
*/
|
122
|
-
export declare const isDayBooking: (state: any) => boolean;
|
123
|
-
export declare const isDaysBooking: (state: any) => boolean;
|
124
|
-
export declare const isEventBooking: (state: any) => boolean;
|
125
|
-
export declare const isAppointmentProduct: (item: any) => boolean;
|
126
|
-
/**
|
127
|
-
* @title: 是否是terminal上的跨日预约
|
128
|
-
* @description:
|
129
|
-
* @param {any} state
|
130
|
-
* @return {*}
|
131
|
-
* @Author: WangHan
|
132
|
-
* @Date: 2024-12-04 15:31
|
133
|
-
*/
|
134
|
-
export declare const isTerminalDayBooking: (state: any) => any;
|
135
|
-
export declare const formatDayDate: (_extend: any) => any;
|
136
|
-
/**
|
137
|
-
* @title: 根据营业日时间格式化时间
|
138
|
-
* @description:
|
139
|
-
* @param {any} state
|
140
|
-
* @return {*}
|
141
|
-
* @Author: WangHan
|
142
|
-
* @Date: 2024-12-04 12:07
|
143
|
-
*/
|
144
|
-
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
145
|
-
startDateTime: dayjs.Dayjs;
|
146
|
-
endDateTime: dayjs.Dayjs;
|
147
|
-
};
|
148
|
-
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
149
|
-
value: dayjs.Dayjs;
|
150
|
-
end_date: dayjs.Dayjs;
|
151
|
-
};
|
152
|
-
/**
|
153
|
-
* @title: 初始化日期
|
154
|
-
* @description:
|
155
|
-
* @return {*}
|
156
|
-
* @Author: WangHan
|
157
|
-
* @Date: 2024-12-06 17:24
|
158
|
-
*/
|
159
|
-
export declare const initDate: () => {
|
160
|
-
value: dayjs.Dayjs;
|
161
|
-
end_date: dayjs.Dayjs;
|
162
|
-
};
|
163
|
-
/**
|
164
|
-
* @title: 是否有预约商品
|
165
|
-
* @description:
|
166
|
-
* @return {*}
|
167
|
-
* @Author: WangHan
|
168
|
-
* @Date: 2024-12-12 15:47
|
169
|
-
*/
|
170
|
-
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
171
|
-
/**
|
172
|
-
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
173
|
-
* @description:
|
174
|
-
* @param {any} lists
|
175
|
-
* @return {*}
|
176
|
-
* @Author: WangHan
|
177
|
-
* @Date: 2024-12-13 16:44
|
178
|
-
*/
|
179
|
-
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
180
|
-
/**
|
181
|
-
* @title: 格式化表单数据
|
182
|
-
* @description:
|
183
|
-
* @param {any} state
|
184
|
-
* @return {*}
|
185
|
-
* @Author: WangHan
|
186
|
-
* @Date: 2024-12-30 22:19
|
187
|
-
*/
|
188
|
-
export declare const getPets: (state: any) => any;
|
189
|
-
/**
|
190
|
-
* @title: 得出预约商品
|
191
|
-
* @description:
|
192
|
-
* @param {any} state
|
193
|
-
* @return {*}
|
194
|
-
* @Author: WangHan
|
195
|
-
* @Date: 2024-12-30 22:26
|
196
|
-
*/
|
197
|
-
export declare const getAppointmentService: (state: any) => any;
|
198
|
-
/**
|
199
|
-
* @title: 判断是否打开删除宠物弹窗
|
200
|
-
* @description:
|
201
|
-
* @param {any} state
|
202
|
-
* @param {any} newVal
|
203
|
-
* @return {*}
|
204
|
-
* @Author: WangHan
|
205
|
-
* @Date: 2024-12-16 16:12
|
206
|
-
*/
|
207
|
-
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
208
|
-
ids: any;
|
209
|
-
lists: any;
|
210
|
-
};
|
211
|
-
/**
|
212
|
-
* @title: 当前选中的表单id
|
213
|
-
* @description:
|
214
|
-
* @param {any} state
|
215
|
-
* @return {*}
|
216
|
-
* @Author: WangHan
|
217
|
-
* @Date: 2024-12-17 14:40
|
218
|
-
*/
|
219
|
-
export declare const holderId: (state: any) => number;
|
220
|
-
/**
|
221
|
-
* @title: 更新套餐的价格
|
222
|
-
* @description:
|
223
|
-
* @param {any} currentValue
|
224
|
-
* @param {any} newBundleData
|
225
|
-
* @return {*}
|
226
|
-
* @Author: WangHan
|
227
|
-
* @Date: 2024-12-31 15:16
|
228
|
-
*/
|
229
|
-
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
230
|
-
/**
|
231
|
-
* @title: 更新预约商品报价单
|
232
|
-
* @description:
|
233
|
-
* @param {any} state
|
234
|
-
* @param {any} cacheItem
|
235
|
-
* @return {*}
|
236
|
-
* @Author: WangHan
|
237
|
-
* @Date: 2024-12-25 16:41
|
238
|
-
*/
|
239
|
-
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
240
|
-
multiDayPrices: any;
|
241
|
-
price: number;
|
242
|
-
}>;
|
243
|
-
/**
|
244
|
-
* @title: 更新普通商品报价单价格
|
245
|
-
* @description:
|
246
|
-
* @param {any} state
|
247
|
-
* @return {*}
|
248
|
-
* @Author: WangHan
|
249
|
-
* @Date: 2024-12-24 11:32
|
250
|
-
*/
|
251
|
-
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ClientCardRef } from './types';
|
3
|
-
import './index.less';
|
4
|
-
export type { ClientData } from './types';
|
5
|
-
declare const CartClientCard: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ClientCardRef>>;
|
6
|
-
export default CartClientCard;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
2
|
-
import '../../../info/service/addService/index.less';
|
3
|
-
interface AddServiceProps {
|
4
|
-
onEdit: any;
|
5
|
-
dispatch?: any;
|
6
|
-
state?: any;
|
7
|
-
drawerProps?: PisellDrawerProps;
|
8
|
-
renderMode?: 'current' | 'drawer';
|
9
|
-
}
|
10
|
-
declare const Info: (props: AddServiceProps) => JSX.Element;
|
11
|
-
export default Info;
|
@@ -1,98 +0,0 @@
|
|
1
|
-
import dayjs from 'dayjs';
|
2
|
-
export declare const getUsableTime: (cacheItem: any) => any;
|
3
|
-
export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
|
4
|
-
startDate: dayjs.Dayjs;
|
5
|
-
usableTime: any;
|
6
|
-
duration: string | number | {
|
7
|
-
type: string;
|
8
|
-
value: number;
|
9
|
-
};
|
10
|
-
locale: string;
|
11
|
-
slice: any;
|
12
|
-
selectProps: {
|
13
|
-
size: string;
|
14
|
-
};
|
15
|
-
};
|
16
|
-
/**
|
17
|
-
* @title: 灵活时长选项
|
18
|
-
* @description:
|
19
|
-
* @param {*} useMemo
|
20
|
-
* @return {*}
|
21
|
-
* @Author: zhiwei.Wang
|
22
|
-
* @Date: 2024-02-23 10:10
|
23
|
-
*/
|
24
|
-
export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
|
25
|
-
label: any;
|
26
|
-
value: any;
|
27
|
-
} | null;
|
28
|
-
export declare const getTimeSlices: ({ state }: any) => {
|
29
|
-
timeSlices: {
|
30
|
-
label: string;
|
31
|
-
value: string;
|
32
|
-
}[];
|
33
|
-
};
|
34
|
-
/**
|
35
|
-
* @title: 时间切片
|
36
|
-
* @description:
|
37
|
-
* @return {*}
|
38
|
-
* @Author: zhiwei.Wang
|
39
|
-
* @Date: 2024-01-09 13:37
|
40
|
-
*/
|
41
|
-
export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
|
42
|
-
timeSlices: {
|
43
|
-
label: string;
|
44
|
-
value: string;
|
45
|
-
}[];
|
46
|
-
durationSlicesBasedOnTime: {
|
47
|
-
label: string;
|
48
|
-
value: number;
|
49
|
-
}[];
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
* @title: 获取资源列表
|
53
|
-
* @description:
|
54
|
-
* @return {*}
|
55
|
-
* @Author: zhiwei.Wang
|
56
|
-
* @Date: 2024-01-09 13:38
|
57
|
-
*/
|
58
|
-
export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
|
59
|
-
list: any;
|
60
|
-
maps: any;
|
61
|
-
};
|
62
|
-
export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
|
63
|
-
/**
|
64
|
-
* @title: 设置默认容量
|
65
|
-
* @description:
|
66
|
-
* @param {any} param1
|
67
|
-
* @return {*}
|
68
|
-
* @Author: zhiwei.Wang
|
69
|
-
* @Date: 2024-09-19 20:26
|
70
|
-
*/
|
71
|
-
export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
|
72
|
-
/**
|
73
|
-
* @title: 将商品内关联的资源id还原成数据
|
74
|
-
* @description:
|
75
|
-
* @param {any} resourcesOriginMap
|
76
|
-
* @param {any} cacheItem
|
77
|
-
* @return {*}
|
78
|
-
* @Author: zhiwei.Wang
|
79
|
-
* @Date: 2024-09-19 20:23
|
80
|
-
*/
|
81
|
-
export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
|
82
|
-
/**
|
83
|
-
* @title: 预生成服务的 extend
|
84
|
-
* @description:
|
85
|
-
* @param {any} param1
|
86
|
-
* @return {*}
|
87
|
-
* @Author: zhiwei.Wang
|
88
|
-
* @Date: 2024-06-01 13:25
|
89
|
-
*/
|
90
|
-
export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
|
91
|
-
/**
|
92
|
-
* @title: 格式化服务列表
|
93
|
-
* @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
|
94
|
-
* 使用with resourceRelation后 返回的resource_relation是实时数据
|
95
|
-
* 这里做一次转换
|
96
|
-
* @param list
|
97
|
-
*/
|
98
|
-
export declare const transServiceList: (list: any[]) => any[];
|
@@ -1,36 +0,0 @@
|
|
1
|
-
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
|
2
|
-
export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
|
3
|
-
/**
|
4
|
-
* @title: 查找是否有可用的time
|
5
|
-
* @description:
|
6
|
-
* @param {any} resourceItem
|
7
|
-
* @return {*}
|
8
|
-
* @Author: zhiwei.Wang
|
9
|
-
* @Date: 2024-01-09 13:57
|
10
|
-
*/
|
11
|
-
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
12
|
-
export declare const getErrorList: (resource: any, cacheItem: any) => {
|
13
|
-
label: any;
|
14
|
-
type: string;
|
15
|
-
}[];
|
16
|
-
/**
|
17
|
-
* @title: 格式化资源, 添加自定义参数
|
18
|
-
* @description:
|
19
|
-
* @param {any} resourceItem
|
20
|
-
* @return {*}
|
21
|
-
* @Author: zhiwei.Wang
|
22
|
-
* @Date: 2024-01-09 13:40
|
23
|
-
*/
|
24
|
-
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
25
|
-
export declare const getAppointmentTimingPreference: (state: any) => any;
|
26
|
-
/**
|
27
|
-
* @title: 创建服务的开始时间和结束时间
|
28
|
-
* @description:
|
29
|
-
* @param {any} state
|
30
|
-
* @param {any} item
|
31
|
-
* @return {*}
|
32
|
-
* @Author: zhiwei.Wang
|
33
|
-
* @Date: 2024-01-26 14:09
|
34
|
-
*/
|
35
|
-
export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
|
36
|
-
export declare const getIsNoSpecAndPackage: (product: any) => boolean;
|