@pisell/private-materials 3.0.200 → 3.0.201
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/addons/model.d.ts +1 -1
- package/es/components/booking/info/service/editService/index.js +14 -5
- package/es/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -1
- package/lib/components/booking/info/service/editService/index.js +14 -4
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
4
4
|
state: FormState;
|
|
5
5
|
} & {
|
|
6
6
|
dispatch: (params: {
|
|
@@ -640,12 +640,24 @@ var Info = function Info(_, ref) {
|
|
|
640
640
|
* @Date: 2024-08-28 17:08
|
|
641
641
|
*/
|
|
642
642
|
var handleEdit = useMemoizedFn(function (e) {
|
|
643
|
-
var _item$
|
|
643
|
+
var _item$_extend3;
|
|
644
644
|
// 当前商品
|
|
645
645
|
var item = state.service.cacheItem;
|
|
646
646
|
|
|
647
647
|
// 表单数据
|
|
648
648
|
var values = form.getFieldsValue();
|
|
649
|
+
var dayValue = {};
|
|
650
|
+
if (isDay) {
|
|
651
|
+
var _item$_extend, _item$_extend$other, _item$_extend$other$o, _item$_extend2, _item$_extend2$other;
|
|
652
|
+
// 格式化单规格
|
|
653
|
+
var option = (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : (_item$_extend$other$o = _item$_extend$other.option) === null || _item$_extend$other$o === void 0 ? void 0 : _item$_extend$other$o.map(function (o) {
|
|
654
|
+
return _objectSpread(_objectSpread({}, o), {}, {
|
|
655
|
+
option_group_item_id: o.product_option_item_id
|
|
656
|
+
});
|
|
657
|
+
});
|
|
658
|
+
dayValue.product_variant = ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : (_item$_extend2$other = _item$_extend2.other) === null || _item$_extend2$other === void 0 ? void 0 : _item$_extend2$other.product_variant_id) || 0;
|
|
659
|
+
dayValue.product_option = option || [];
|
|
660
|
+
}
|
|
649
661
|
|
|
650
662
|
// 打开商品详情弹窗
|
|
651
663
|
state.action({
|
|
@@ -659,10 +671,7 @@ var Info = function Info(_, ref) {
|
|
|
659
671
|
variant: isDay ? true : false,
|
|
660
672
|
package: true
|
|
661
673
|
},
|
|
662
|
-
value: _objectSpread(_objectSpread({}, item._extend.other)
|
|
663
|
-
product_variant: ((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : _item$_extend$other.product_variant_id) || 0,
|
|
664
|
-
product_option: ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : (_item$_extend2$other = _item$_extend2.other) === null || _item$_extend2$other === void 0 ? void 0 : _item$_extend2$other.option) || []
|
|
665
|
-
})
|
|
674
|
+
value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue)
|
|
666
675
|
},
|
|
667
676
|
callback: function callback(e) {
|
|
668
677
|
var _cacheItem$_extend, _cacheItem$_extend$ot;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
4
4
|
state: FormState;
|
|
5
5
|
} & {
|
|
6
6
|
dispatch: (params: {
|
|
@@ -399,9 +399,20 @@ var Info = (_, ref) => {
|
|
|
399
399
|
useEndDate
|
|
400
400
|
]);
|
|
401
401
|
const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
|
|
402
|
-
var _a2, _b2, _c2, _d2;
|
|
402
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
403
403
|
const item = state.service.cacheItem;
|
|
404
404
|
let values = form.getFieldsValue();
|
|
405
|
+
let dayValue = {};
|
|
406
|
+
if (isDay) {
|
|
407
|
+
const option = (_c2 = (_b2 = (_a2 = item._extend) == null ? void 0 : _a2.other) == null ? void 0 : _b2.option) == null ? void 0 : _c2.map((o) => {
|
|
408
|
+
return {
|
|
409
|
+
...o,
|
|
410
|
+
option_group_item_id: o.product_option_item_id
|
|
411
|
+
};
|
|
412
|
+
});
|
|
413
|
+
dayValue.product_variant = ((_e2 = (_d2 = item._extend) == null ? void 0 : _d2.other) == null ? void 0 : _e2.product_variant_id) || 0;
|
|
414
|
+
dayValue.product_option = option || [];
|
|
415
|
+
}
|
|
405
416
|
state.action({
|
|
406
417
|
type: "pisell1.handleOpenProductModal",
|
|
407
418
|
data: {
|
|
@@ -414,9 +425,8 @@ var Info = (_, ref) => {
|
|
|
414
425
|
package: true
|
|
415
426
|
},
|
|
416
427
|
value: {
|
|
417
|
-
...item._extend.other,
|
|
418
|
-
|
|
419
|
-
product_option: ((_d2 = (_c2 = item._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.option) || []
|
|
428
|
+
...((_f2 = item._extend) == null ? void 0 : _f2.other) || {},
|
|
429
|
+
...dayValue
|
|
420
430
|
}
|
|
421
431
|
},
|
|
422
432
|
callback: (e2) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.201",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
63
|
"@pisell/icon": "0.0.11",
|
|
64
64
|
"@pisell/date-picker": "3.0.1",
|
|
65
|
-
"@pisell/materials": "3.0.
|
|
65
|
+
"@pisell/materials": "3.0.61"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|