@pisell/private-materials 6.8.37 → 6.8.39
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/info2/service/editNormalService/index.js +4 -3
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +5 -4
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -0
- package/package.json +3 -3
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
|
@@ -9,6 +9,7 @@ import { useMemoizedFn } from 'ahooks';
|
|
|
9
9
|
import SkuDetailModal from "../../../../../pro/skuDetailModal";
|
|
10
10
|
import { Context } from "../../../info/model";
|
|
11
11
|
import { setProductPrice } from "../editService/utils";
|
|
12
|
+
import { formatDataKey } from "../../../../ticketBooking/components/addServiceVariant/utils";
|
|
12
13
|
var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
14
|
var _ref = useContext(Context),
|
|
14
15
|
state = _ref.state,
|
|
@@ -29,7 +30,8 @@ var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29
30
|
modalRef.current.open({
|
|
30
31
|
id: payload.productId,
|
|
31
32
|
date: payload.date,
|
|
32
|
-
is_eject: payload.isEject
|
|
33
|
+
is_eject: payload.isEject,
|
|
34
|
+
productData: payload.productData
|
|
33
35
|
});
|
|
34
36
|
return;
|
|
35
37
|
}
|
|
@@ -86,8 +88,6 @@ var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
86
88
|
origin_total: data.total
|
|
87
89
|
});
|
|
88
90
|
var e = {
|
|
89
|
-
key: payload.productId,
|
|
90
|
-
rowKey: payload.productId,
|
|
91
91
|
product_id: payload.productId,
|
|
92
92
|
price: skuValue.price || 0,
|
|
93
93
|
product_variant_id: skuValue.product_variant_id || 0,
|
|
@@ -95,6 +95,7 @@ var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
95
95
|
option: skuValue.option || [],
|
|
96
96
|
quantity: quantity
|
|
97
97
|
};
|
|
98
|
+
e = formatDataKey(e);
|
|
98
99
|
payload.callback(e, undefined, detail, false);
|
|
99
100
|
return;
|
|
100
101
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const formatVariantGroupTitle: (title: any, variant_group?: never[]) => string | undefined;
|
|
2
2
|
export declare const createCacheItem: (detail: any, values: any, state: any) => any;
|
|
3
|
+
export declare const formatDataKey: (data: any) => any;
|
|
3
4
|
export declare const isVariant: (item: any) => boolean;
|
|
4
5
|
export declare const isOption: (item: any) => boolean;
|
|
5
6
|
export declare const isBundle: (item: any) => boolean;
|
|
@@ -58,7 +58,7 @@ export var createCacheItem = function createCacheItem(detail, values, state) {
|
|
|
58
58
|
});
|
|
59
59
|
return cacheItem;
|
|
60
60
|
};
|
|
61
|
-
var formatDataKey = function formatDataKey(data) {
|
|
61
|
+
export var formatDataKey = function formatDataKey(data) {
|
|
62
62
|
var _data$option, _data$bundle;
|
|
63
63
|
var _data = _objectSpread({}, data);
|
|
64
64
|
var key = "".concat(_data.product_id);
|
|
@@ -37,6 +37,7 @@ var import_ahooks = require("ahooks");
|
|
|
37
37
|
var import_skuDetailModal = __toESM(require("../../../../../pro/skuDetailModal"));
|
|
38
38
|
var import_model = require("../../../info/model");
|
|
39
39
|
var import_utils = require("../editService/utils");
|
|
40
|
+
var import_utils2 = require("../../../../ticketBooking/components/addServiceVariant/utils");
|
|
40
41
|
var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
|
|
41
42
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
42
43
|
const modalRef = (0, import_react.useRef)(null);
|
|
@@ -50,7 +51,8 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
|
|
|
50
51
|
modalRef.current.open({
|
|
51
52
|
id: payload.productId,
|
|
52
53
|
date: payload.date,
|
|
53
|
-
is_eject: payload.isEject
|
|
54
|
+
is_eject: payload.isEject,
|
|
55
|
+
productData: payload.productData
|
|
54
56
|
});
|
|
55
57
|
return;
|
|
56
58
|
}
|
|
@@ -100,9 +102,7 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
|
|
|
100
102
|
},
|
|
101
103
|
origin_total: data.total
|
|
102
104
|
};
|
|
103
|
-
|
|
104
|
-
key: payload.productId,
|
|
105
|
-
rowKey: payload.productId,
|
|
105
|
+
let e = {
|
|
106
106
|
product_id: payload.productId,
|
|
107
107
|
price: skuValue.price || 0,
|
|
108
108
|
product_variant_id: skuValue.product_variant_id || 0,
|
|
@@ -110,6 +110,7 @@ var EditNormalService = (0, import_react.forwardRef)((props, ref) => {
|
|
|
110
110
|
option: skuValue.option || [],
|
|
111
111
|
quantity
|
|
112
112
|
};
|
|
113
|
+
e = (0, import_utils2.formatDataKey)(e);
|
|
113
114
|
payload.callback(e, void 0, detail, false);
|
|
114
115
|
return;
|
|
115
116
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const formatVariantGroupTitle: (title: any, variant_group?: never[]) => string | undefined;
|
|
2
2
|
export declare const createCacheItem: (detail: any, values: any, state: any) => any;
|
|
3
|
+
export declare const formatDataKey: (data: any) => any;
|
|
3
4
|
export declare const isVariant: (item: any) => boolean;
|
|
4
5
|
export declare const isOption: (item: any) => boolean;
|
|
5
6
|
export declare const isBundle: (item: any) => boolean;
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var utils_exports = {};
|
|
21
21
|
__export(utils_exports, {
|
|
22
22
|
createCacheItem: () => createCacheItem,
|
|
23
|
+
formatDataKey: () => formatDataKey,
|
|
23
24
|
formatVariantGroupTitle: () => formatVariantGroupTitle,
|
|
24
25
|
genValues: () => genValues,
|
|
25
26
|
getHandleSetService: () => getHandleSetService,
|
|
@@ -165,6 +166,7 @@ var getHandleSetService = () => {
|
|
|
165
166
|
// Annotate the CommonJS export names for ESM import in node:
|
|
166
167
|
0 && (module.exports = {
|
|
167
168
|
createCacheItem,
|
|
169
|
+
formatDataKey,
|
|
168
170
|
formatVariantGroupTitle,
|
|
169
171
|
genValues,
|
|
170
172
|
getHandleSetService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.39",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"react-infinite-scroll-component": "^6.1.0",
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
|
-
"@pisell/date-picker": "3.0.7",
|
|
80
79
|
"@pisell/materials": "6.8.7",
|
|
80
|
+
"@pisell/icon": "0.0.11",
|
|
81
81
|
"@pisell/utils": "3.0.2",
|
|
82
|
-
"@pisell/
|
|
82
|
+
"@pisell/date-picker": "3.0.7"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|