@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
|
@@ -18,7 +18,6 @@ import { locales } from '@pisell/utils';
|
|
|
18
18
|
import { Button } from '@pisell/materials';
|
|
19
19
|
import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
20
20
|
import { useAppointmentBookingLogin, useAppointmentBookingResource, useAppointmentBookingAccount, useShopDiscount, useAppointmentBookingStep, useAppointmentBookingSetting, useAppointmentBooking } from "../../../hooks";
|
|
21
|
-
import { PisellToast } from '@pisell/materials';
|
|
22
21
|
import { useAppointmentBookingContext } from "../../../context";
|
|
23
22
|
import { formatCarts, hasResourceFormId, Toast } from "../../../utils";
|
|
24
23
|
import { checkLogin, checkHolder, checkResource, handleContinueStep } from "../utils";
|
|
@@ -318,15 +317,6 @@ var ContinueButton = function ContinueButton(_ref) {
|
|
|
318
317
|
return appointmentBooking.getDateRange();
|
|
319
318
|
case 13:
|
|
320
319
|
selected = _context3.sent;
|
|
321
|
-
if (selected !== null && selected !== void 0 && selected.length) {
|
|
322
|
-
_context3.next = 17;
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
PisellToast({
|
|
326
|
-
content: locales.getText('pisell2.appointment.no.available.time')
|
|
327
|
-
});
|
|
328
|
-
return _context3.abrupt("return");
|
|
329
|
-
case 17:
|
|
330
320
|
handleContinueStep(key, {
|
|
331
321
|
handleCheckResource: handleCheckResource,
|
|
332
322
|
currentStep: currentStep,
|
|
@@ -348,17 +338,17 @@ var ContinueButton = function ContinueButton(_ref) {
|
|
|
348
338
|
onIsErrorResource: onIsErrorResource,
|
|
349
339
|
stepList: stepList
|
|
350
340
|
});
|
|
351
|
-
_context3.next =
|
|
341
|
+
_context3.next = 20;
|
|
352
342
|
break;
|
|
353
|
-
case
|
|
354
|
-
_context3.prev =
|
|
343
|
+
case 17:
|
|
344
|
+
_context3.prev = 17;
|
|
355
345
|
_context3.t0 = _context3["catch"](0);
|
|
356
346
|
console.log(_context3.t0, 'handleContinue_error');
|
|
357
|
-
case
|
|
347
|
+
case 20:
|
|
358
348
|
case "end":
|
|
359
349
|
return _context3.stop();
|
|
360
350
|
}
|
|
361
|
-
}, _callee3, null, [[0,
|
|
351
|
+
}, _callee3, null, [[0, 17]]);
|
|
362
352
|
}));
|
|
363
353
|
return function handleContinue() {
|
|
364
354
|
return _ref5.apply(this, arguments);
|
|
@@ -37,7 +37,6 @@ var import_utils = require("@pisell/utils");
|
|
|
37
37
|
var import_materials = require("@pisell/materials");
|
|
38
38
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
39
39
|
var import_hooks = require("../../../hooks");
|
|
40
|
-
var import_materials2 = require("@pisell/materials");
|
|
41
40
|
var import_context = require("../../../context");
|
|
42
41
|
var import_utils2 = require("../../../utils");
|
|
43
42
|
var import_utils3 = require("../utils");
|
|
@@ -189,12 +188,6 @@ var ContinueButton = ({
|
|
|
189
188
|
if (handleCheckAccount()) return;
|
|
190
189
|
}
|
|
191
190
|
const selected = await appointmentBooking.getDateRange();
|
|
192
|
-
if (!(selected == null ? void 0 : selected.length)) {
|
|
193
|
-
(0, import_materials2.PisellToast)({
|
|
194
|
-
content: import_utils.locales.getText("pisell2.appointment.no.available.time")
|
|
195
|
-
});
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
191
|
(0, import_utils3.handleContinueStep)(key, {
|
|
199
192
|
handleCheckResource,
|
|
200
193
|
currentStep,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
63
|
"@pisell/materials": "3.3.2",
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/
|
|
64
|
+
"@pisell/date-picker": "3.0.2",
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|
|
@@ -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>;
|
|
@@ -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,6 +0,0 @@
|
|
|
1
|
-
export declare const getResourceList: (params: any, bookingId?: number) => Promise<{
|
|
2
|
-
list: any[];
|
|
3
|
-
listMap: any;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const createBookings: (params: any) => Promise<any>;
|
|
6
|
-
export declare const editBookings: (params: any, id?: number) => Promise<any>;
|