@pisell/private-materials 3.3.2 → 3.3.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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +5 -15
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +0 -7
- package/package.json +3 -3
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/booking/addons/index.d.ts +0 -17
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/utils.d.ts +0 -30
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/pet/index.d.ts +0 -14
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service/index.d.ts +0 -4
- 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/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/utils.d.ts +0 -241
- package/es/components/booking/info/utils.d.ts +0 -46
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/serve.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 -88
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- 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/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/es/components/booking/materiels/holder/index.d.ts +0 -6
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/utils.d.ts +0 -172
- package/es/components/index.d.ts +0 -18
- 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/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/index.d.ts +0 -23
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- 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/index.d.ts +0 -3
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/subTotal/index.d.ts +0 -22
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -3
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -11
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/index.d.ts +0 -3
- package/es/components/ticketBooking/locales.d.ts +0 -144
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/ticketBooking/serve.d.ts +0 -282
- package/es/components/ticketBooking/utils/index.d.ts +0 -14
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/index.d.ts +0 -45
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/booking/addons/index.d.ts +0 -17
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/utils.d.ts +0 -30
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/pet/index.d.ts +0 -14
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service/index.d.ts +0 -4
- 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/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/utils.d.ts +0 -241
- package/lib/components/booking/info/utils.d.ts +0 -46
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/serve.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 -88
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- 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/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/lib/components/booking/materiels/holder/index.d.ts +0 -6
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/utils.d.ts +0 -172
- package/lib/components/index.d.ts +0 -18
- 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/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/index.d.ts +0 -23
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- 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/index.d.ts +0 -3
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/subTotal/index.d.ts +0 -22
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -11
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/index.d.ts +0 -3
- package/lib/components/ticketBooking/locales.d.ts +0 -144
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -282
- package/lib/components/ticketBooking/utils/index.d.ts +0 -14
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/index.d.ts +0 -45
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from 'dayjs';
|
|
2
|
-
/** dayjs对象格式化为字符串时间 */
|
|
3
|
-
export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
|
|
4
|
-
export declare const getDefaultStartParam: () => string | string[];
|
|
5
|
-
export declare const formatBookingList: (bookingList: any[]) => any[];
|
|
6
|
-
export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
|
|
7
|
-
export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
|
|
8
|
-
export declare const restoreProductOtherData: (data: any) => {
|
|
9
|
-
product_id: any;
|
|
10
|
-
option: never[];
|
|
11
|
-
bundle: any;
|
|
12
|
-
product_variant_id: number;
|
|
13
|
-
quantity: number;
|
|
14
|
-
} | undefined;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
PKPass?: any;
|
|
6
|
-
GoogleWalletPass?: any;
|
|
7
|
-
}
|
|
8
|
-
interface Navigator {
|
|
9
|
-
pkpass?: {
|
|
10
|
-
addPass(pass: any): Promise<string>;
|
|
11
|
-
};
|
|
12
|
-
googlewallet?: {
|
|
13
|
-
addPass(pass: any): Promise<string>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
interface DetailProps {
|
|
18
|
-
detail: {
|
|
19
|
-
id?: string;
|
|
20
|
-
tag?: string;
|
|
21
|
-
code?: string;
|
|
22
|
-
product_title?: string;
|
|
23
|
-
encoded?: string;
|
|
24
|
-
balance?: number;
|
|
25
|
-
expire_date?: string;
|
|
26
|
-
product?: any;
|
|
27
|
-
machinecode_config?: any;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
};
|
|
30
|
-
isDiscoundCard?: boolean;
|
|
31
|
-
showWalletBar?: boolean;
|
|
32
|
-
onBack?: () => void;
|
|
33
|
-
buttonGroupList?: any[][];
|
|
34
|
-
className?: string;
|
|
35
|
-
style?: React.CSSProperties;
|
|
36
|
-
addWalletCallback?: (addWallet: () => void) => void;
|
|
37
|
-
}
|
|
38
|
-
export interface WalletDetailRef {
|
|
39
|
-
addWalletCard: () => void;
|
|
40
|
-
}
|
|
41
|
-
declare const Detail: React.ForwardRefExoticComponent<DetailProps & React.RefAttributes<WalletDetailRef>>;
|
|
42
|
-
export default Detail;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IWalletListItemProps } from '../serve';
|
|
3
|
-
export interface WalletCardProps {
|
|
4
|
-
item: IWalletListItemProps;
|
|
5
|
-
currentId?: string | number;
|
|
6
|
-
isDiscountCard?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
balanceTitle?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.NamedExoticComponent<WalletCardProps>;
|
|
11
|
-
export default _default;
|
package/es/index.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export { default as Login } from './components/login';
|
|
2
|
-
export type { LoginProps } from './components/login';
|
|
3
|
-
export { default as BookingInfo } from './components/booking/info/index';
|
|
4
|
-
export { default as BookingNotes } from './components/booking/notes';
|
|
5
|
-
export { default as BookingAddons } from './components/booking/addons';
|
|
6
|
-
export { default as BookingForms } from './components/booking/forms';
|
|
7
|
-
export { default as BookingPayment } from './components/booking/payments';
|
|
8
|
-
export { default as Booking } from './components/booking';
|
|
9
|
-
export { default as Schedules } from './components/schedules';
|
|
10
|
-
export { default as BookingResources } from './components/booking/materiels/resources';
|
|
11
|
-
export { default as BookingStartTime } from './components/booking/materiels/startTime';
|
|
12
|
-
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
|
-
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
|
-
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
15
|
-
export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
|
|
16
|
-
export { default as ProductExtension } from './components/productExtension';
|
|
17
|
-
export { default as BookingDeposit } from './components/booking/deposit';
|
|
18
|
-
export { default as WorkspaceList } from './components/workSpaceList';
|
|
19
|
-
export { default as WorkspaceListDetail } from './components/workSpaceListDetail';
|
|
20
|
-
export { default as RuleSetting } from './components/ruleSetting';
|
|
21
|
-
export { default as TaxSelect } from './components/taxSelect';
|
|
22
|
-
export { default as EftposPay } from './components/eftposPay';
|
|
23
|
-
export { default as ToCPay } from './components/pay/toC';
|
|
24
|
-
export { default as Eftpos } from './components/eftpos';
|
|
25
|
-
export { default as Wallet } from './components/wallet';
|
|
26
|
-
export { default as WalletList } from './components/walletList';
|
|
27
|
-
export { default as BookingDashboard } from './components/booking/dashboard';
|
|
28
|
-
export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
|
|
29
|
-
export { default as EventBooking } from './components/eventBooking';
|
|
30
|
-
export { default as EventCard } from './components/eventBooking/components/eventCard';
|
|
31
|
-
export { default as EventResourceDisplay } from './components/eventBooking/components/resourceDisplay';
|
|
32
|
-
export { default as EventResourceUsability } from './components/eventBooking/components/resourceUsability';
|
|
33
|
-
export { default as EventProductCard } from './components/eventBooking/components/productCard';
|
|
34
|
-
export { default as EventTimeResourceSelector } from './components/eventBooking/components/timeResourceSelector';
|
|
35
|
-
export { default as EventSelectHolder } from './components/eventBooking/components/selectHolder';
|
|
36
|
-
export { default as EventBookingServiceList } from './components/eventBooking/components/bookingServiceList';
|
|
37
|
-
export { default as EventBookingAvailabilityCalendar } from './components/eventBooking/components/bookingAvailabilityCalendar';
|
|
38
|
-
export { default as EventScheduleCalendar } from './components/eventBooking/components/scheduleCalendar';
|
|
39
|
-
export { default as EventBookingDetailModal } from './components/eventBooking/components/bookingDetailModal';
|
|
40
|
-
export { default as EventProgressBar } from './components/eventBooking/components/progressBar';
|
|
41
|
-
export { default as ShoppingCart } from './components/shoppingCart';
|
|
42
|
-
export { default as AppointmentBooking } from './components/appointmentBooking';
|
|
43
|
-
export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
|
|
44
|
-
export { default as TicketBooking } from './components/ticketBooking';
|
|
45
|
-
export { default as SubTotal } from './components/subTotal';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface EventData {
|
|
3
|
-
currentEventItem: any;
|
|
4
|
-
eventList: any[];
|
|
5
|
-
}
|
|
6
|
-
interface EventContextType {
|
|
7
|
-
eventData: EventData;
|
|
8
|
-
getEventList: {
|
|
9
|
-
run: (params: any) => void;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
data?: EventData['eventList'];
|
|
12
|
-
};
|
|
13
|
-
getEventListByTitle: (title: string) => any;
|
|
14
|
-
selectEvent: (eventItem: any) => void;
|
|
15
|
-
}
|
|
16
|
-
interface EventProviderProps {
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
export declare const EventContext: React.Context<EventContextType | undefined>;
|
|
20
|
-
export declare const EventProvider: React.FC<EventProviderProps>;
|
|
21
|
-
/**
|
|
22
|
-
* 使用步骤管理的Hook
|
|
23
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
24
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
25
|
-
*/
|
|
26
|
-
export declare const useEvent: () => EventContextType;
|
|
27
|
-
declare const _default: {
|
|
28
|
-
defaultState: EventData;
|
|
29
|
-
};
|
|
30
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 添加额外商品
|
|
3
|
-
* @description:
|
|
4
|
-
* @return {*}
|
|
5
|
-
* @Author: zhiwei.Wang
|
|
6
|
-
* @Date: 2024-01-30 16:33
|
|
7
|
-
*/
|
|
8
|
-
import './index.less';
|
|
9
|
-
export interface InfoProps {
|
|
10
|
-
title?: string;
|
|
11
|
-
style?: any;
|
|
12
|
-
globalState: any;
|
|
13
|
-
setGlobalState: any;
|
|
14
|
-
}
|
|
15
|
-
export declare const formatProducts: (values: any) => any;
|
|
16
|
-
declare const Addons: any;
|
|
17
|
-
export default Addons;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 套餐单规格信息
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} option
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: zhiwei.Wang
|
|
7
|
-
* @Date: 2024-02-19 09:26
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatProductOption: (option: any) => any;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 套餐信息
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} bundle
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-02-19 09:26
|
|
17
|
-
*/
|
|
18
|
-
export declare const formatProductBundle: (bundle: any) => any;
|
|
19
|
-
export interface ResourceItem {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
|
|
24
|
-
* @description:
|
|
25
|
-
* @param {object} resource
|
|
26
|
-
* @return {*}
|
|
27
|
-
* @Author: jinglin.tan
|
|
28
|
-
*/
|
|
29
|
-
export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
|
|
30
|
-
export declare const formatValues: (state: any) => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { EditServiceRef } from "../service/editService";
|
|
2
|
-
declare const useInfoHolder: (state: any, dispatch: any) => {
|
|
3
|
-
detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
|
|
4
|
-
handleEdit: (cacheItem: any) => void;
|
|
5
|
-
dispatchService: (type: string, payload: any) => void;
|
|
6
|
-
handleAction: (dataSource: any) => void;
|
|
7
|
-
showAddTimeModal: boolean;
|
|
8
|
-
};
|
|
9
|
-
export default useInfoHolder;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InfoProps } from '../../forms/forms';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface PetProps {
|
|
5
|
-
state?: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
hideTitle?: boolean;
|
|
8
|
-
addButtonProps?: InfoProps['addButtonProps'];
|
|
9
|
-
handleOpenModal?: () => void;
|
|
10
|
-
clientChangeNotSetPet?: boolean;
|
|
11
|
-
previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const Pet: (props: PetProps) => JSX.Element;
|
|
14
|
-
export default Pet;
|
|
@@ -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,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,14 +0,0 @@
|
|
|
1
|
-
export declare const getGroupTotalPrice: (items: any[]) => any;
|
|
2
|
-
/**
|
|
3
|
-
* @title: 创建一个虚拟的组
|
|
4
|
-
* @description:
|
|
5
|
-
* @param {any} items
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: zhiwei.Wang
|
|
8
|
-
*/
|
|
9
|
-
export declare const concatBookings: (items: any[]) => any;
|
|
10
|
-
export declare const createBookingItemsByGroup: (item: any, isBatchEdit?: any) => any[];
|
|
11
|
-
export declare const isGroupBooking: (_id: any) => boolean;
|
|
12
|
-
export declare const getProductByGroupId: (groupId: string, items: any[]) => any[];
|
|
13
|
-
export declare const getGroupBooking: (groupId: string, items: any[]) => any;
|
|
14
|
-
export declare const filterItemByGroupId: (groupId: string, items: any[]) => any[];
|
|
@@ -1,241 +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
|
-
/**
|
|
43
|
-
* @title: 更新商品数据
|
|
44
|
-
* @description:
|
|
45
|
-
* @param {any} state
|
|
46
|
-
* @param currentItem
|
|
47
|
-
* @param {string} type
|
|
48
|
-
* @param {any} other
|
|
49
|
-
* @param actions
|
|
50
|
-
* @return {*}
|
|
51
|
-
* @Author: WangHan
|
|
52
|
-
* @Date: 2025-01-03 15:00
|
|
53
|
-
*/
|
|
54
|
-
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
|
|
55
|
-
export declare const formItems: (items: any[]) => any[];
|
|
56
|
-
/**
|
|
57
|
-
* @title: 格式化商品数据
|
|
58
|
-
* @description:
|
|
59
|
-
* @param {any} lists
|
|
60
|
-
* @return {*}
|
|
61
|
-
* @Author: WangHan
|
|
62
|
-
* @Date: 2024-11-29 17:36
|
|
63
|
-
*/
|
|
64
|
-
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
|
|
65
|
-
_origin: any;
|
|
66
|
-
id: any;
|
|
67
|
-
_id: any;
|
|
68
|
-
name: any;
|
|
69
|
-
price: any;
|
|
70
|
-
total: any;
|
|
71
|
-
origin_total: any;
|
|
72
|
-
num: any;
|
|
73
|
-
image: any;
|
|
74
|
-
isShowNote: boolean;
|
|
75
|
-
note: any;
|
|
76
|
-
like_status: any;
|
|
77
|
-
bundle: any;
|
|
78
|
-
options: any;
|
|
79
|
-
errorMessage: string;
|
|
80
|
-
product_option_string: any;
|
|
81
|
-
discount_reason: any;
|
|
82
|
-
resource_id: any;
|
|
83
|
-
relation_form_name: any;
|
|
84
|
-
holder_title: any;
|
|
85
|
-
start_date: any;
|
|
86
|
-
end_date: any;
|
|
87
|
-
holder_id: any;
|
|
88
|
-
isNormalProduct: boolean;
|
|
89
|
-
locale: any;
|
|
90
|
-
symbol: any;
|
|
91
|
-
items: any[];
|
|
92
|
-
}[];
|
|
93
|
-
/**
|
|
94
|
-
* @title: 禁用日期
|
|
95
|
-
* @description:
|
|
96
|
-
* @param {any} current
|
|
97
|
-
* @param {string} position
|
|
98
|
-
* @param {any} startDate
|
|
99
|
-
* @return {*}
|
|
100
|
-
* @Author: WangHan
|
|
101
|
-
* @Date: 2024-12-03 17:51
|
|
102
|
-
*/
|
|
103
|
-
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
|
104
|
-
/**
|
|
105
|
-
* @title: 是否是跨日预约
|
|
106
|
-
* @description:
|
|
107
|
-
* @param {any} state
|
|
108
|
-
* @return {*}
|
|
109
|
-
* @Author: WangHan
|
|
110
|
-
* @Date: 2024-12-04 09:49
|
|
111
|
-
*/
|
|
112
|
-
export declare const isDayBooking: (state: any) => boolean;
|
|
113
|
-
export declare const isDaysBooking: (state: any) => boolean;
|
|
114
|
-
export declare const isEventBooking: (state: any) => boolean;
|
|
115
|
-
export declare const isAppointmentProduct: (item: any) => boolean;
|
|
116
|
-
/**
|
|
117
|
-
* @title: 是否是terminal上的跨日预约
|
|
118
|
-
* @description:
|
|
119
|
-
* @param {any} state
|
|
120
|
-
* @return {*}
|
|
121
|
-
* @Author: WangHan
|
|
122
|
-
* @Date: 2024-12-04 15:31
|
|
123
|
-
*/
|
|
124
|
-
export declare const isTerminalDayBooking: (state: any) => any;
|
|
125
|
-
export declare const formatDayDate: (_extend: any) => any;
|
|
126
|
-
/**
|
|
127
|
-
* @title: 根据营业日时间格式化时间
|
|
128
|
-
* @description:
|
|
129
|
-
* @param {any} state
|
|
130
|
-
* @return {*}
|
|
131
|
-
* @Author: WangHan
|
|
132
|
-
* @Date: 2024-12-04 12:07
|
|
133
|
-
*/
|
|
134
|
-
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
|
135
|
-
startDateTime: dayjs.Dayjs;
|
|
136
|
-
endDateTime: dayjs.Dayjs;
|
|
137
|
-
};
|
|
138
|
-
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
|
139
|
-
value: dayjs.Dayjs;
|
|
140
|
-
end_date: dayjs.Dayjs;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* @title: 初始化日期
|
|
144
|
-
* @description:
|
|
145
|
-
* @return {*}
|
|
146
|
-
* @Author: WangHan
|
|
147
|
-
* @Date: 2024-12-06 17:24
|
|
148
|
-
*/
|
|
149
|
-
export declare const initDate: () => {
|
|
150
|
-
value: dayjs.Dayjs;
|
|
151
|
-
end_date: dayjs.Dayjs;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* @title: 是否有预约商品
|
|
155
|
-
* @description:
|
|
156
|
-
* @return {*}
|
|
157
|
-
* @Author: WangHan
|
|
158
|
-
* @Date: 2024-12-12 15:47
|
|
159
|
-
*/
|
|
160
|
-
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
|
161
|
-
/**
|
|
162
|
-
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
|
163
|
-
* @description:
|
|
164
|
-
* @param {any} lists
|
|
165
|
-
* @return {*}
|
|
166
|
-
* @Author: WangHan
|
|
167
|
-
* @Date: 2024-12-13 16:44
|
|
168
|
-
*/
|
|
169
|
-
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
|
170
|
-
/**
|
|
171
|
-
* @title: 格式化表单数据
|
|
172
|
-
* @description:
|
|
173
|
-
* @param {any} state
|
|
174
|
-
* @return {*}
|
|
175
|
-
* @Author: WangHan
|
|
176
|
-
* @Date: 2024-12-30 22:19
|
|
177
|
-
*/
|
|
178
|
-
export declare const getPets: (state: any) => any;
|
|
179
|
-
/**
|
|
180
|
-
* @title: 得出预约商品
|
|
181
|
-
* @description:
|
|
182
|
-
* @param {any} state
|
|
183
|
-
* @return {*}
|
|
184
|
-
* @Author: WangHan
|
|
185
|
-
* @Date: 2024-12-30 22:26
|
|
186
|
-
*/
|
|
187
|
-
export declare const getAppointmentService: (state: any) => any;
|
|
188
|
-
/**
|
|
189
|
-
* @title: 判断是否打开删除宠物弹窗
|
|
190
|
-
* @description:
|
|
191
|
-
* @param {any} state
|
|
192
|
-
* @param {any} newVal
|
|
193
|
-
* @return {*}
|
|
194
|
-
* @Author: WangHan
|
|
195
|
-
* @Date: 2024-12-16 16:12
|
|
196
|
-
*/
|
|
197
|
-
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
|
198
|
-
ids: any;
|
|
199
|
-
lists: any;
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* @title: 当前选中的表单id
|
|
203
|
-
* @description:
|
|
204
|
-
* @param {any} state
|
|
205
|
-
* @return {*}
|
|
206
|
-
* @Author: WangHan
|
|
207
|
-
* @Date: 2024-12-17 14:40
|
|
208
|
-
*/
|
|
209
|
-
export declare const holderId: (state: any) => number;
|
|
210
|
-
/**
|
|
211
|
-
* @title: 更新套餐的价格
|
|
212
|
-
* @description:
|
|
213
|
-
* @param {any} currentValue
|
|
214
|
-
* @param {any} newBundleData
|
|
215
|
-
* @return {*}
|
|
216
|
-
* @Author: WangHan
|
|
217
|
-
* @Date: 2024-12-31 15:16
|
|
218
|
-
*/
|
|
219
|
-
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
|
220
|
-
/**
|
|
221
|
-
* @title: 更新预约商品报价单
|
|
222
|
-
* @description:
|
|
223
|
-
* @param {any} state
|
|
224
|
-
* @param {any} cacheItem
|
|
225
|
-
* @return {*}
|
|
226
|
-
* @Author: WangHan
|
|
227
|
-
* @Date: 2024-12-25 16:41
|
|
228
|
-
*/
|
|
229
|
-
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
|
230
|
-
multiDayPrices: any;
|
|
231
|
-
price: number;
|
|
232
|
-
}>;
|
|
233
|
-
/**
|
|
234
|
-
* @title: 更新普通商品报价单价格
|
|
235
|
-
* @description:
|
|
236
|
-
* @param {any} state
|
|
237
|
-
* @return {*}
|
|
238
|
-
* @Author: WangHan
|
|
239
|
-
* @Date: 2024-12-24 11:32
|
|
240
|
-
*/
|
|
241
|
-
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|