@pisell/private-materials 6.2.12 → 6.2.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.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/eventBooking/index.js +14 -0
- package/es/components/eventBooking/index.less +1 -1
- package/lib/components/eventBooking/index.js +11 -0
- package/lib/components/eventBooking/index.less +1 -1
- package/package.json +3 -3
- package/es/components/Sales/Checkout/utils.d.ts +0 -40
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- 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/index.d.ts +0 -3
- package/es/components/booking/info/utils.d.ts +0 -50
- package/es/components/booking/info2/index.d.ts +0 -12
- 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/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/locales.d.ts +0 -828
- package/es/components/booking/model.d.ts +0 -108
- package/es/components/eftposPay/const.d.ts +0 -184
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/manufacturer.d.ts +0 -7
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/index.d.ts +0 -26
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/components/walletList/index.d.ts +0 -28
- package/es/utils/index.d.ts +0 -23
- package/lib/components/Sales/Checkout/utils.d.ts +0 -40
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- 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/index.d.ts +0 -3
- package/lib/components/booking/info/utils.d.ts +0 -50
- package/lib/components/booking/info2/index.d.ts +0 -12
- 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/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/locales.d.ts +0 -828
- package/lib/components/booking/model.d.ts +0 -108
- package/lib/components/eftposPay/const.d.ts +0 -184
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/manufacturer.d.ts +0 -7
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/index.d.ts +0 -26
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/utils/index.d.ts +0 -23
@@ -58,6 +58,20 @@ var Content = function Content() {
|
|
58
58
|
}
|
59
59
|
getResourceList.run(params);
|
60
60
|
}, []);
|
61
|
+
useEffect(function () {
|
62
|
+
var setRealVH = function setRealVH() {
|
63
|
+
// window.innerHeight 会返回视口真实的高度(不包括工具栏)
|
64
|
+
var vh = window.innerHeight * 0.01;
|
65
|
+
document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
|
66
|
+
};
|
67
|
+
|
68
|
+
// 页面加载和窗口大小变化时都重新计算
|
69
|
+
setRealVH();
|
70
|
+
window.addEventListener('resize', setRealVH);
|
71
|
+
return function () {
|
72
|
+
window.removeEventListener('resize', setRealVH);
|
73
|
+
};
|
74
|
+
}, []);
|
61
75
|
return /*#__PURE__*/React.createElement("div", {
|
62
76
|
className: "event-booking-wrap ".concat(isMobile() ? 'event-booking-mobile-wrap' : '')
|
63
77
|
}, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(EventContent, null), isMobile() && (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key) !== 'select-category' ? /*#__PURE__*/React.createElement(Footer, null) : null);
|
@@ -66,6 +66,17 @@ var Content = () => {
|
|
66
66
|
}
|
67
67
|
getResourceList.run(params);
|
68
68
|
}, []);
|
69
|
+
(0, import_react.useEffect)(() => {
|
70
|
+
const setRealVH = () => {
|
71
|
+
const vh = window.innerHeight * 0.01;
|
72
|
+
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
73
|
+
};
|
74
|
+
setRealVH();
|
75
|
+
window.addEventListener("resize", setRealVH);
|
76
|
+
return () => {
|
77
|
+
window.removeEventListener("resize", setRealVH);
|
78
|
+
};
|
79
|
+
}, []);
|
69
80
|
return /* @__PURE__ */ import_react.default.createElement(
|
70
81
|
"div",
|
71
82
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.14",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -60,9 +60,9 @@
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
61
61
|
"decimal.js": "^10.4.3",
|
62
62
|
"@pisell/utils": "3.0.0",
|
63
|
+
"@pisell/materials": "3.3.39",
|
63
64
|
"@pisell/icon": "0.0.11",
|
64
|
-
"@pisell/date-picker": "3.0.4"
|
65
|
-
"@pisell/materials": "3.3.39"
|
65
|
+
"@pisell/date-picker": "3.0.4"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"react": "^18.0.0",
|
@@ -1,40 +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
|
-
/**
|
20
|
-
* @title: 格式化下单接口数据
|
21
|
-
* @description:
|
22
|
-
* @param {any} state saledModel数据源
|
23
|
-
* @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
|
24
|
-
* @Author: xiangfeng.xue
|
25
|
-
* @Date: 2025-01-21 17:57
|
26
|
-
*/
|
27
|
-
export declare const formatValues: (params: {
|
28
|
-
state: any;
|
29
|
-
platform: 'h5' | 'pc';
|
30
|
-
excludeDisabled?: boolean;
|
31
|
-
extra?: Record<string, any>;
|
32
|
-
}) => any;
|
33
|
-
/**
|
34
|
-
* @title: 获取拉开表单弹窗参数
|
35
|
-
* @param state
|
36
|
-
*/
|
37
|
-
export declare const getFormParams: (state: any) => {
|
38
|
-
product_id: any;
|
39
|
-
appointment_type: string;
|
40
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
interface CheckLoginParams {
|
2
|
-
isLogin: boolean;
|
3
|
-
openLoginModal: (params: {
|
4
|
-
callback: (status: string) => void;
|
5
|
-
}) => void;
|
6
|
-
isFormSubject: boolean;
|
7
|
-
utils: any;
|
8
|
-
accountLists: any[];
|
9
|
-
appointmentBooking: any;
|
10
|
-
getHolders: () => void;
|
11
|
-
}
|
12
|
-
export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
|
13
|
-
interface CheckHolderParams {
|
14
|
-
isFormSubject: boolean;
|
15
|
-
checkAccount: (type: string) => boolean;
|
16
|
-
carts: any[];
|
17
|
-
}
|
18
|
-
export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
|
19
|
-
interface CheckResourceParams {
|
20
|
-
carts: any[];
|
21
|
-
resources: any[];
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* @title: 检测资源数据
|
25
|
-
* @description:
|
26
|
-
* @param {CheckResourceParams} param1
|
27
|
-
* @return {*}
|
28
|
-
* @Author: WangHan
|
29
|
-
* @Date: 2025-04-29 18:02
|
30
|
-
*/
|
31
|
-
export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
|
32
|
-
interface CheckResourceParams {
|
33
|
-
carts: any[];
|
34
|
-
}
|
35
|
-
export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
|
36
|
-
interface AddHolderParams {
|
37
|
-
res: any;
|
38
|
-
bookingSubject: any;
|
39
|
-
accountLists: any[];
|
40
|
-
cartItem: any;
|
41
|
-
getHolders: () => void;
|
42
|
-
appointmentBooking: any;
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* @title: 添加holder
|
46
|
-
* @description:
|
47
|
-
* @param {any} res
|
48
|
-
* @param {any} bookingSubject
|
49
|
-
* @param {any} accountLists
|
50
|
-
* @param {any} e
|
51
|
-
* @return {*}
|
52
|
-
* @Author: WangHan
|
53
|
-
* @Date: 2025-05-10 18:25
|
54
|
-
*/
|
55
|
-
export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
|
56
|
-
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
|
-
nextStep: () => any;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* @title: 获取商品数据
|
21
|
-
* @description:
|
22
|
-
* @return {*}
|
23
|
-
* @Author: WangHan
|
24
|
-
* @Date: 2025-04-15 11:12
|
25
|
-
*/
|
26
|
-
export declare const useAppointmentBookingProduct: () => {
|
27
|
-
checkProductType: (productId: number) => Promise<any>;
|
28
|
-
getProducts: () => Promise<any>;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* @title: 更新购物车数据
|
32
|
-
* @description:
|
33
|
-
* @return {*}
|
34
|
-
* @Author: WangHan
|
35
|
-
* @Date: 2025-04-15 11:12
|
36
|
-
*/
|
37
|
-
export declare const useAppointmentBookingCart: () => void;
|
38
|
-
/**
|
39
|
-
* @title: 获取登录状态
|
40
|
-
* @description:
|
41
|
-
* @return {*}
|
42
|
-
* @Author: WangHan
|
43
|
-
* @Date: 2025-04-15 11:14
|
44
|
-
*/
|
45
|
-
export declare const useAppointmentBookingLogin: () => {
|
46
|
-
isLogin: boolean;
|
47
|
-
openLoginModal: (params: {
|
48
|
-
callback: any;
|
49
|
-
}) => void;
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
* @title: 获取账户
|
53
|
-
* @description:
|
54
|
-
* @return {*}
|
55
|
-
* @Author: WangHan
|
56
|
-
* @Date: 2025-04-15 11:15
|
57
|
-
*/
|
58
|
-
export declare const useAppointmentBookingAccount: () => {
|
59
|
-
accountLists: any;
|
60
|
-
getHolders: () => Promise<any>;
|
61
|
-
form_id: any;
|
62
|
-
addAccount: (val: any, type?: string) => Promise<any>;
|
63
|
-
checkAccount: (type: any) => any;
|
64
|
-
};
|
65
|
-
/**
|
66
|
-
* @title: 获取资源数据
|
67
|
-
* @description:
|
68
|
-
* @return {*}
|
69
|
-
* @Author: WangHan
|
70
|
-
* @Date: 2025-04-15 11:29
|
71
|
-
*/
|
72
|
-
export declare const useAppointmentBookingResource: () => {
|
73
|
-
getResourceTimeSlot: (index?: number) => Promise<void>;
|
74
|
-
getResourceList: () => {
|
75
|
-
resources: any;
|
76
|
-
resourceCodes: any;
|
77
|
-
};
|
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: () => 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
|
-
isRetailTemplate: any;
|
100
|
-
customPageId: any;
|
101
|
-
channel: any;
|
102
|
-
bookingSubject: any;
|
103
|
-
setOtherData: (key: string, val: any) => any;
|
104
|
-
getOtherData: (key: string) => any;
|
105
|
-
formName: any;
|
106
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) => any;
|
@@ -1,50 +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, businessUtils?: any) => any;
|
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 declare const editSessionProduct: (cacheItem: any, session: any) => {
|
47
|
-
duration: any;
|
48
|
-
start_time: any;
|
49
|
-
} | undefined;
|
50
|
-
export {};
|
@@ -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: any;
|
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[];
|