@pisell/private-materials 3.3.101 → 3.3.102

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.
@@ -714,7 +714,7 @@ var Info = function Info(_, ref) {
714
714
  other.session = e.session;
715
715
 
716
716
  // 重新生成商品
717
- cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
717
+ cacheItem = _objectSpread(_objectSpread(_objectSpread({}, item), _detail), {}, {
718
718
  product_id: item.id,
719
719
  _id: item === null || item === void 0 ? void 0 : item._id,
720
720
  _key: e.key,
@@ -455,6 +455,7 @@ var Info = (_, ref) => {
455
455
  const other = JSON.parse(JSON.stringify(e2));
456
456
  other.session = e2.session;
457
457
  let cacheItem = {
458
+ ...item,
458
459
  ..._detail,
459
460
  product_id: item.id,
460
461
  _id: item == null ? void 0 : item._id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.101",
3
+ "version": "3.3.102",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,41 +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 checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
31
- /**
32
- * @title: 格式化商品单价
33
- * @description:
34
- * @param {any} item
35
- * @return {*}
36
- * @Author: WangHan
37
- * @Date: 2024-12-23 12:05
38
- */
39
- export declare const formatProductPrice: (item: any) => number;
40
- export declare const formatValues: (state: any) => any;
41
- export declare const checkHolderIsError: (state: any) => any;
@@ -1,41 +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 checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
31
- /**
32
- * @title: 格式化商品单价
33
- * @description:
34
- * @param {any} item
35
- * @return {*}
36
- * @Author: WangHan
37
- * @Date: 2024-12-23 12:05
38
- */
39
- export declare const formatProductPrice: (item: any) => number;
40
- export declare const formatValues: (state: any) => any;
41
- export declare const checkHolderIsError: (state: any) => any;