@pisell/private-materials 6.8.12 → 6.8.13
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/ticketBooking/components/addServiceVariant/addService.js +39 -22
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +39 -22
- package/package.json +2 -2
|
@@ -36,6 +36,7 @@ import { createCacheItem, genValues, isBundle, isOption, setHandleSetService } f
|
|
|
36
36
|
import { useToast } from '@pisell/materials';
|
|
37
37
|
import { useIsActive } from "../../context/IsActiveContext";
|
|
38
38
|
import { SelectHolderModal } from "../../../booking/utils/selectHolderModal";
|
|
39
|
+
import { getOpenNormalServiceHandler } from "../../../booking/info2/service/openNormalService";
|
|
39
40
|
var productListLayout = {
|
|
40
41
|
grid: true,
|
|
41
42
|
config: '12:12'
|
|
@@ -624,29 +625,45 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
624
625
|
var isSession = isSessionProduct(item);
|
|
625
626
|
var isOnlySession = getIsOnlySession(item);
|
|
626
627
|
var isEject = getIsEject(item, type);
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
628
|
+
if (isNormalProductByDurationSchedule(item) || !isSession && isEject) {
|
|
629
|
+
var openNormalService = getOpenNormalServiceHandler();
|
|
630
|
+
if (openNormalService) {
|
|
631
|
+
openNormalService({
|
|
632
|
+
mode: 'create',
|
|
633
|
+
productId: item.id,
|
|
634
|
+
date: state.date.value.format('YYYY-MM-DD'),
|
|
635
|
+
isEject: isEject ? 1 : 0,
|
|
636
|
+
onClose: function onClose() {
|
|
637
|
+
setCurrentProduct(null);
|
|
638
|
+
},
|
|
639
|
+
callback: createProductModalCallback(item)
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
} else {
|
|
643
|
+
state.action({
|
|
644
|
+
type: 'pisell1.handleOpenProductModal',
|
|
645
|
+
data: {
|
|
646
|
+
id: item.id,
|
|
647
|
+
date: state.date.value.format('YYYY-MM-DD'),
|
|
648
|
+
productDetail: item,
|
|
649
|
+
showConfig: {
|
|
650
|
+
option: true,
|
|
651
|
+
session: isSession,
|
|
652
|
+
variant: true,
|
|
653
|
+
package: true,
|
|
654
|
+
number: getIsShowNumber(item, state)
|
|
655
|
+
},
|
|
656
|
+
isOnlySession: isOnlySession,
|
|
657
|
+
is_eject: isEject ? 1 : 0,
|
|
658
|
+
customer_id: customerId,
|
|
659
|
+
isOS: isSession
|
|
639
660
|
},
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
setCurrentProduct(null);
|
|
647
|
-
},
|
|
648
|
-
callback: createProductModalCallback(item)
|
|
649
|
-
});
|
|
661
|
+
onCancel: function onCancel() {
|
|
662
|
+
setCurrentProduct(null);
|
|
663
|
+
},
|
|
664
|
+
callback: createProductModalCallback(item)
|
|
665
|
+
});
|
|
666
|
+
}
|
|
650
667
|
});
|
|
651
668
|
|
|
652
669
|
// 处理产品选择
|
|
@@ -51,6 +51,7 @@ var import_utils7 = require("./utils");
|
|
|
51
51
|
var import_materials = require("@pisell/materials");
|
|
52
52
|
var import_IsActiveContext = require("../../context/IsActiveContext");
|
|
53
53
|
var import_selectHolderModal = require("../../../booking/utils/selectHolderModal");
|
|
54
|
+
var import_openNormalService = require("../../../booking/info2/service/openNormalService");
|
|
54
55
|
var productListLayout = {
|
|
55
56
|
grid: true,
|
|
56
57
|
config: "12:12"
|
|
@@ -488,29 +489,45 @@ var AddSerivce = (props) => {
|
|
|
488
489
|
const isSession = (0, import_utils2.isSessionProduct)(item);
|
|
489
490
|
const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
|
|
490
491
|
const isEject = (0, import_utils2.getIsEject)(item, type);
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
492
|
+
if ((0, import_utils4.isNormalProductByDurationSchedule)(item) || !isSession && isEject) {
|
|
493
|
+
const openNormalService = (0, import_openNormalService.getOpenNormalServiceHandler)();
|
|
494
|
+
if (openNormalService) {
|
|
495
|
+
openNormalService({
|
|
496
|
+
mode: "create",
|
|
497
|
+
productId: item.id,
|
|
498
|
+
date: state.date.value.format("YYYY-MM-DD"),
|
|
499
|
+
isEject: isEject ? 1 : 0,
|
|
500
|
+
onClose: () => {
|
|
501
|
+
setCurrentProduct(null);
|
|
502
|
+
},
|
|
503
|
+
callback: createProductModalCallback(item)
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
} else {
|
|
507
|
+
state.action({
|
|
508
|
+
type: "pisell1.handleOpenProductModal",
|
|
509
|
+
data: {
|
|
510
|
+
id: item.id,
|
|
511
|
+
date: state.date.value.format("YYYY-MM-DD"),
|
|
512
|
+
productDetail: item,
|
|
513
|
+
showConfig: {
|
|
514
|
+
option: true,
|
|
515
|
+
session: isSession,
|
|
516
|
+
variant: true,
|
|
517
|
+
package: true,
|
|
518
|
+
number: (0, import_utils6.getIsShowNumber)(item, state)
|
|
519
|
+
},
|
|
520
|
+
isOnlySession,
|
|
521
|
+
is_eject: isEject ? 1 : 0,
|
|
522
|
+
customer_id: customerId,
|
|
523
|
+
isOS: isSession
|
|
503
524
|
},
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
setCurrentProduct(null);
|
|
511
|
-
},
|
|
512
|
-
callback: createProductModalCallback(item)
|
|
513
|
-
});
|
|
525
|
+
onCancel: () => {
|
|
526
|
+
setCurrentProduct(null);
|
|
527
|
+
},
|
|
528
|
+
callback: createProductModalCallback(item)
|
|
529
|
+
});
|
|
530
|
+
}
|
|
514
531
|
});
|
|
515
532
|
const handleSelectProduct = (0, import_ahooks.useMemoizedFn)(
|
|
516
533
|
async (item, type = "select") => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.13",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,8 +76,8 @@
|
|
|
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/icon": "0.0.11",
|
|
80
79
|
"@pisell/materials": "6.8.4",
|
|
80
|
+
"@pisell/icon": "0.0.11",
|
|
81
81
|
"@pisell/utils": "3.0.2",
|
|
82
82
|
"@pisell/date-picker": "3.0.7"
|
|
83
83
|
},
|