@pisell/private-materials 3.0.203 → 3.0.205
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.css +1 -1
- package/build/lowcode/render/default/view.js +27 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +33 -18
- package/es/components/booking/components/customSelect/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +2 -6
- package/es/components/booking/components/footer/amount.js +22 -46
- package/es/components/booking/components/footer/index.js +40 -84
- package/es/components/booking/components/footer/utils.js +35 -266
- package/es/components/booking/forms/model.d.ts +1 -1
- package/es/components/booking/info/addServiceVariant/index.js +1 -8
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +13 -14
- package/es/components/booking/info/clientVariant/vertical/index.js +9 -124
- package/es/components/booking/info/main.js +15 -28
- package/es/components/booking/info/model.js +0 -3
- package/es/components/booking/info/pet/index.js +5 -54
- package/es/components/booking/info/service/addService/index.js +96 -187
- package/es/components/booking/info/service/addService/index.less +3 -13
- package/es/components/booking/info/service/addService/utils.d.ts +2 -12
- package/es/components/booking/info/service/addService/utils.js +26 -103
- package/es/components/booking/info/service/editService/index.js +132 -435
- package/es/components/booking/info/service/editService/index.less +13 -18
- package/es/components/booking/info/service/serve.d.ts +0 -10
- package/es/components/booking/info/service/serve.js +0 -28
- package/es/components/booking/info/utils.d.ts +0 -20
- package/es/components/booking/info/utils.js +0 -37
- package/es/components/booking/locales.d.ts +0 -66
- package/es/components/booking/locales.js +3 -81
- package/es/components/booking/model.d.ts +1 -5
- package/es/components/booking/model.js +2 -4
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -1
- package/es/components/booking/utils.d.ts +3 -12
- package/es/components/booking/utils.js +26 -143
- package/es/components/eftpos/form/index.js +12 -6
- package/es/components/eftpos/group/index.d.ts +1 -2
- package/es/components/eftpos/group/index.js +1 -2
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftpos/index.js +2 -2
- package/es/components/eftpos/receipt/index.d.ts +24 -0
- package/es/components/eftpos/receipt/index.js +96 -0
- package/es/components/eftposPay/app.d.ts +11 -0
- package/es/components/eftposPay/app.js +173 -0
- package/es/components/eftposPay/component/fail/failCustom.js +1 -0
- package/es/components/eftposPay/component/fail/index.js +1 -0
- package/es/components/eftposPay/component/manual/index.js +4 -1
- package/es/components/eftposPay/component/step/index.d.ts +6 -6
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/const.d.ts +27 -1
- package/es/components/eftposPay/const.js +22 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/device.js +2 -2
- package/es/components/eftposPay/helper.d.ts +6 -0
- package/es/components/eftposPay/helper.js +24 -4
- package/es/components/eftposPay/hooks.d.ts +2 -1
- package/es/components/eftposPay/hooks.js +22 -16
- package/es/components/eftposPay/index.d.ts +1 -1
- package/es/components/eftposPay/index.js +130 -179
- package/es/components/eftposPay/locales.d.ts +15 -0
- package/es/components/eftposPay/locales.js +15 -0
- package/es/components/eftposPay/payo/config.js +20 -8
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tip.d.ts +10 -0
- package/es/components/eftposPay/tip.js +177 -0
- package/es/components/eftposPay/tip.less +9 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/tyro/index.js +55 -22
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eftposPay/windcave/windcave.js +17 -6
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/lib/components/booking/components/customSelect/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +2 -6
- package/lib/components/booking/components/footer/amount.js +8 -27
- package/lib/components/booking/components/footer/index.js +4 -25
- package/lib/components/booking/components/footer/utils.js +35 -161
- package/lib/components/booking/forms/model.d.ts +1 -1
- package/lib/components/booking/info/addServiceVariant/index.js +0 -5
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +7 -8
- package/lib/components/booking/info/clientVariant/vertical/index.js +11 -87
- package/lib/components/booking/info/main.js +9 -17
- package/lib/components/booking/info/model.js +0 -3
- package/lib/components/booking/info/pet/index.js +25 -61
- package/lib/components/booking/info/service/addService/index.js +84 -115
- package/lib/components/booking/info/service/addService/index.less +3 -13
- package/lib/components/booking/info/service/addService/utils.d.ts +2 -12
- package/lib/components/booking/info/service/addService/utils.js +10 -58
- package/lib/components/booking/info/service/editService/index.js +182 -425
- package/lib/components/booking/info/service/editService/index.less +13 -18
- package/lib/components/booking/info/service/serve.d.ts +0 -10
- package/lib/components/booking/info/service/serve.js +2 -7
- package/lib/components/booking/info/utils.d.ts +0 -20
- package/lib/components/booking/info/utils.js +0 -41
- package/lib/components/booking/locales.d.ts +0 -66
- package/lib/components/booking/locales.js +3 -69
- package/lib/components/booking/model.d.ts +1 -5
- package/lib/components/booking/model.js +2 -4
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +3 -12
- package/lib/components/booking/utils.js +18 -89
- package/lib/components/eftpos/form/index.js +12 -6
- package/lib/components/eftpos/group/index.d.ts +1 -2
- package/lib/components/eftpos/group/index.js +0 -1
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftpos/index.js +2 -2
- package/lib/components/eftpos/receipt/index.d.ts +24 -0
- package/lib/components/eftpos/receipt/index.js +88 -0
- package/lib/components/eftposPay/app.d.ts +11 -0
- package/lib/components/eftposPay/app.js +166 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +1 -1
- package/lib/components/eftposPay/component/fail/index.js +1 -1
- package/lib/components/eftposPay/component/manual/index.js +19 -5
- package/lib/components/eftposPay/component/step/index.d.ts +6 -6
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/const.d.ts +27 -1
- package/lib/components/eftposPay/const.js +18 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/device.js +2 -2
- package/lib/components/eftposPay/helper.d.ts +6 -0
- package/lib/components/eftposPay/helper.js +29 -4
- package/lib/components/eftposPay/hooks.d.ts +2 -1
- package/lib/components/eftposPay/hooks.js +8 -2
- package/lib/components/eftposPay/index.d.ts +1 -1
- package/lib/components/eftposPay/index.js +106 -144
- package/lib/components/eftposPay/locales.d.ts +15 -0
- package/lib/components/eftposPay/locales.js +15 -0
- package/lib/components/eftposPay/payo/config.js +33 -9
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tip.d.ts +10 -0
- package/lib/components/eftposPay/tip.js +159 -0
- package/lib/components/eftposPay/tip.less +9 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/tyro/index.js +40 -9
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eftposPay/windcave/windcave.js +29 -6
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/package.json +5 -5
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -38
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +0 -54
- package/es/components/booking/info/dateRange/index.d.ts +0 -5
- package/es/components/booking/info/dateRange/index.js +0 -98
- package/es/components/booking/info/dateRange/index.less +0 -21
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/pet/ChangePetModal/index.js +0 -134
- package/es/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/es/components/booking/info/service/editService/BookingList/index.js +0 -39
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/EditTabs/index.js +0 -35
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +0 -55
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceManager/index.js +0 -277
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/utils.js +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/Group/utils.js +0 -146
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/Lists.js +0 -152
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/hooks/useSelectPet.js +0 -54
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/index.js +0 -57
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/status.js +0 -78
- package/es/components/booking/info/service2/utils.d.ts +0 -237
- package/es/components/booking/info/service2/utils.js +0 -1064
- package/es/components/booking/materiels/holder/index.d.ts +0 -7
- package/es/components/booking/materiels/holder/index.js +0 -51
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/Provider.js +0 -86
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/Product.js +0 -68
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/index.js +0 -72
- package/es/components/shoppingCart/components/Cart/index.less +0 -68
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Empty/index.js +0 -14
- package/es/components/shoppingCart/components/Empty/index.less +0 -19
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Render/index.js +0 -69
- package/es/components/shoppingCart/components/Render/index.less +0 -2
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +0 -132
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.js +0 -23
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useClearCart.js +0 -59
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useContext.js +0 -5
- package/es/components/shoppingCart/index.d.ts +0 -4
- package/es/components/shoppingCart/index.js +0 -24
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/locales.js +0 -38
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/mock.js +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/status.js +0 -22
- package/es/components/shoppingCart/type.d.ts +0 -39
- package/es/components/shoppingCart/type.js +0 -1
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/shoppingCart/utils.js +0 -116
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +0 -60
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -5
- package/lib/components/booking/info/dateRange/index.js +0 -111
- package/lib/components/booking/info/dateRange/index.less +0 -21
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/pet/ChangePetModal/index.js +0 -121
- package/lib/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/lib/components/booking/info/service/editService/BookingList/index.js +0 -55
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/EditTabs/index.js +0 -75
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +0 -70
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceManager/index.js +0 -207
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/Group/utils.js +0 -142
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/Lists.js +0 -115
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +0 -50
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/index.js +0 -75
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/status.js +0 -81
- package/lib/components/booking/info/service2/utils.d.ts +0 -237
- package/lib/components/booking/info/service2/utils.js +0 -678
- package/lib/components/booking/materiels/holder/index.d.ts +0 -7
- package/lib/components/booking/materiels/holder/index.js +0 -65
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.js +0 -110
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.js +0 -73
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/index.js +0 -77
- package/lib/components/shoppingCart/components/Cart/index.less +0 -68
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Empty/index.js +0 -43
- package/lib/components/shoppingCart/components/Empty/index.less +0 -19
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Render/index.js +0 -75
- package/lib/components/shoppingCart/components/Render/index.less +0 -2
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +0 -124
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.js +0 -55
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useClearCart.js +0 -66
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useContext.js +0 -31
- package/lib/components/shoppingCart/index.d.ts +0 -4
- package/lib/components/shoppingCart/index.js +0 -60
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/locales.js +0 -56
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/mock.js +0 -76
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/status.js +0 -60
- package/lib/components/shoppingCart/type.d.ts +0 -39
- package/lib/components/shoppingCart/type.js +0 -17
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/shoppingCart/utils.js +0 -86
- package/lowcode/shopping-cart/meta.ts +0 -98
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
.pisell-lowcode__booking-service-body-edit {
|
|
2
2
|
padding: 24px 32px 100px !important;
|
|
3
|
-
|
|
4
|
-
.pisell-lowcode__booking-service-select-date {
|
|
5
|
-
height: 40px;
|
|
6
|
-
.pisell-lowcode-picker-input > input {
|
|
7
|
-
font-size: 16px !important;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
3
|
}
|
|
11
4
|
|
|
5
|
+
|
|
12
6
|
.pisell-lowcode__booking-service-body-edit-footer {
|
|
13
7
|
position: absolute;
|
|
14
8
|
bottom: 0;
|
|
15
9
|
left: 0;
|
|
16
10
|
width: 100%;
|
|
17
|
-
border-top: 1px solid #
|
|
11
|
+
border-top: 1px solid #E7E8E9;
|
|
18
12
|
padding: 20px 32px;
|
|
19
13
|
display: flex;
|
|
20
14
|
align-items: center;
|
|
@@ -26,8 +20,8 @@
|
|
|
26
20
|
height: 48px;
|
|
27
21
|
width: 48px;
|
|
28
22
|
border-radius: 8px;
|
|
29
|
-
border: 1px solid var(--gray-300, #
|
|
30
|
-
background: var(--base-white, #
|
|
23
|
+
border: 1px solid var(--gray-300, #D0D5DD);
|
|
24
|
+
background: var(--base-white, #FFF);
|
|
31
25
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
32
26
|
cursor: pointer;
|
|
33
27
|
display: flex;
|
|
@@ -35,7 +29,7 @@
|
|
|
35
29
|
justify-content: center;
|
|
36
30
|
|
|
37
31
|
.pisell-lowcode__booking-service-delete-icon {
|
|
38
|
-
color: #
|
|
32
|
+
color: #B42318;
|
|
39
33
|
font-size: 20px;
|
|
40
34
|
}
|
|
41
35
|
}
|
|
@@ -52,12 +46,14 @@
|
|
|
52
46
|
.pisell-lowcode-select-selection-item {
|
|
53
47
|
.resource-option {
|
|
54
48
|
padding-left: 0;
|
|
49
|
+
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
.pisell-lowcode-select-item-option-content {
|
|
59
54
|
.resource-option {
|
|
60
55
|
padding-left: 0;
|
|
56
|
+
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
59
|
|
|
@@ -67,7 +63,7 @@
|
|
|
67
63
|
gap: 8px;
|
|
68
64
|
|
|
69
65
|
.resource-option-alert-icon {
|
|
70
|
-
color: #
|
|
66
|
+
color: #B42318;
|
|
71
67
|
cursor: pointer;
|
|
72
68
|
}
|
|
73
69
|
}
|
|
@@ -86,16 +82,16 @@
|
|
|
86
82
|
justify-content: center;
|
|
87
83
|
padding: 0;
|
|
88
84
|
|
|
89
|
-
.like-resource {
|
|
90
|
-
}
|
|
85
|
+
.like-resource {}
|
|
91
86
|
}
|
|
87
|
+
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
.current-service-info {
|
|
95
91
|
min-height: 40px;
|
|
96
92
|
cursor: pointer;
|
|
97
93
|
background-color: #ffffff;
|
|
98
|
-
border: 1px solid #
|
|
94
|
+
border: 1px solid #D0D5DD;
|
|
99
95
|
border-radius: 10px;
|
|
100
96
|
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
101
97
|
overflow: hidden;
|
|
@@ -113,11 +109,10 @@
|
|
|
113
109
|
flex: 1;
|
|
114
110
|
}
|
|
115
111
|
|
|
116
|
-
.current-service-info-change-btn {
|
|
117
|
-
}
|
|
112
|
+
.current-service-info-change-btn {}
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
&:hover {
|
|
121
116
|
border-color: #7f56d9;
|
|
122
117
|
}
|
|
123
|
-
}
|
|
118
|
+
}
|
|
@@ -1,11 +1 @@
|
|
|
1
1
|
export declare const getProductDetail: (id: string, params: any) => Promise<any>;
|
|
2
|
-
/**
|
|
3
|
-
* @title: 跨日预约获取预约商品报价单
|
|
4
|
-
* @description:
|
|
5
|
-
* @param {string} id
|
|
6
|
-
* @param {any} params
|
|
7
|
-
* @return {*}
|
|
8
|
-
* @Author: WangHan
|
|
9
|
-
* @Date: 2024-12-23 17:06
|
|
10
|
-
*/
|
|
11
|
-
export declare const postMultiDay: (id: string, params: any) => Promise<any>;
|
|
@@ -19,17 +19,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/booking/info/service/serve.ts
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
|
-
getProductDetail: () => getProductDetail
|
|
23
|
-
postMultiDay: () => postMultiDay
|
|
22
|
+
getProductDetail: () => getProductDetail
|
|
24
23
|
});
|
|
25
24
|
module.exports = __toCommonJS(serve_exports);
|
|
26
25
|
var import_utils = require("../../utils");
|
|
27
26
|
var getProductDetail = async (id, params) => import_utils.request.getRequest().get(`/shop/product/query/${id}`, params);
|
|
28
|
-
var postMultiDay = async (id, params) => import_utils.request.getRequest().post(`/shop/product/multi-day/detail/${id}`, params, {
|
|
29
|
-
useCache: true
|
|
30
|
-
});
|
|
31
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
32
28
|
0 && (module.exports = {
|
|
33
|
-
getProductDetail
|
|
34
|
-
postMultiDay
|
|
29
|
+
getProductDetail
|
|
35
30
|
});
|
|
@@ -22,23 +22,3 @@ export declare const isInterval: (time1: number, time2: number, interval?: numbe
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const formatServiceListByTime: (list: any[]) => any[];
|
|
24
24
|
export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
|
|
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 {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
|
|
29
19
|
// src/components/booking/info/utils.ts
|
|
@@ -31,15 +21,12 @@ var utils_exports = {};
|
|
|
31
21
|
__export(utils_exports, {
|
|
32
22
|
formatServiceListByTime: () => formatServiceListByTime,
|
|
33
23
|
getIsBundleOrCombination: () => getIsBundleOrCombination,
|
|
34
|
-
getMultiDayPrices: () => getMultiDayPrices,
|
|
35
24
|
isBooking4Shop: () => isBooking4Shop,
|
|
36
|
-
isDayBooking: () => isDayBooking,
|
|
37
25
|
isInterval: () => isInterval,
|
|
38
26
|
moveItemToFront: () => moveItemToFront,
|
|
39
27
|
uniqueByField: () => uniqueByField
|
|
40
28
|
});
|
|
41
29
|
module.exports = __toCommonJS(utils_exports);
|
|
42
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
43
30
|
var getIsBundleOrCombination = (productDetail) => {
|
|
44
31
|
var _a;
|
|
45
32
|
if ((_a = productDetail == null ? void 0 : productDetail.bundle_group) == null ? void 0 : _a.length) {
|
|
@@ -69,9 +56,6 @@ var moveItemToFront = (arr, targetId) => {
|
|
|
69
56
|
return arr;
|
|
70
57
|
};
|
|
71
58
|
var isInterval = (time1, time2, interval = 1e3) => {
|
|
72
|
-
if (time2 === time1) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
59
|
return Math.abs(time2 - time1) < interval;
|
|
76
60
|
};
|
|
77
61
|
var formatServiceListByTime = (list) => {
|
|
@@ -102,36 +86,11 @@ var isBooking4Shop = (shopId, renderType) => {
|
|
|
102
86
|
const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191];
|
|
103
87
|
return booking4Shops.includes(shopId);
|
|
104
88
|
};
|
|
105
|
-
function generateDateRange(start, end) {
|
|
106
|
-
const dateRange = [];
|
|
107
|
-
let currentDate = (0, import_dayjs.default)(start);
|
|
108
|
-
while (currentDate.isBefore((0, import_dayjs.default)(end).add(1, "day"))) {
|
|
109
|
-
dateRange.push(currentDate.format("YYYY-MM-DD"));
|
|
110
|
-
currentDate = currentDate.add(1, "day");
|
|
111
|
-
}
|
|
112
|
-
return dateRange;
|
|
113
|
-
}
|
|
114
|
-
var getMultiDayPrices = (data) => {
|
|
115
|
-
const result = {};
|
|
116
|
-
data.forEach((entry) => {
|
|
117
|
-
const dateRange = generateDateRange(entry.start_date, entry.end_date);
|
|
118
|
-
dateRange.forEach((date) => {
|
|
119
|
-
result[date] = entry;
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
return result;
|
|
123
|
-
};
|
|
124
|
-
var isDayBooking = (shopId) => {
|
|
125
|
-
const dayBookingShops = [9];
|
|
126
|
-
return dayBookingShops.includes(shopId);
|
|
127
|
-
};
|
|
128
89
|
// Annotate the CommonJS export names for ESM import in node:
|
|
129
90
|
0 && (module.exports = {
|
|
130
91
|
formatServiceListByTime,
|
|
131
92
|
getIsBundleOrCombination,
|
|
132
|
-
getMultiDayPrices,
|
|
133
93
|
isBooking4Shop,
|
|
134
|
-
isDayBooking,
|
|
135
94
|
isInterval,
|
|
136
95
|
moveItemToFront,
|
|
137
96
|
uniqueByField
|
|
@@ -33,11 +33,6 @@ declare const _default: {
|
|
|
33
33
|
'pisell2.text.start_time': string;
|
|
34
34
|
'pisell2.text.duration': string;
|
|
35
35
|
'pisell2.text.resource': string;
|
|
36
|
-
'pisell2.text.end_time': string;
|
|
37
|
-
'pisell2.text.start_date': string;
|
|
38
|
-
'pisell2.text.end_date': string;
|
|
39
|
-
'pisell2.text.quantity': string;
|
|
40
|
-
'pisell2.text.holder': string;
|
|
41
36
|
'pisell2.text.warnings': string;
|
|
42
37
|
'pisell2.text.order-notes': string;
|
|
43
38
|
'pisell2.text.add-order-notes': string;
|
|
@@ -53,7 +48,6 @@ declare const _default: {
|
|
|
53
48
|
'pisell2.text.updated': string;
|
|
54
49
|
'pisell2.text.appointment-updated': string;
|
|
55
50
|
'pisell2.text.please-create-an-appointment-first': string;
|
|
56
|
-
'pisell2.text.day': (val: number) => string;
|
|
57
51
|
'pisell2.text.min': string;
|
|
58
52
|
'pisell2.text.h': string;
|
|
59
53
|
'pisell2.text.other': string;
|
|
@@ -224,22 +218,6 @@ declare const _default: {
|
|
|
224
218
|
'pisell2.booking.info.text.create-new': string;
|
|
225
219
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
226
220
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
227
|
-
'pisell2.text.open.items': string;
|
|
228
|
-
'pisell2.text.cart.of': (val: any) => string;
|
|
229
|
-
'pisell2.text.no.selected': string;
|
|
230
|
-
'pisell2.text.select.items': string;
|
|
231
|
-
'pisell2.text.edit-select-service': string;
|
|
232
|
-
'pisell2.text.missing.reservation.title': string;
|
|
233
|
-
'pisell2.text.missing.reservation.content': string;
|
|
234
|
-
'pisell2.text.confirm': string;
|
|
235
|
-
'pisell2.text.cancel': string;
|
|
236
|
-
'pisell2.text.change.pet.title': string;
|
|
237
|
-
'pisell2.text.change.pet.content': string;
|
|
238
|
-
'pisell2.text.change.pet.content1': string;
|
|
239
|
-
'pisell2.text.change.pet.confirm': string;
|
|
240
|
-
'pisell2.text.change.pet.cancel': string;
|
|
241
|
-
'pisell2.text.booking-list': string;
|
|
242
|
-
'pisell2.text.edit-booking': string;
|
|
243
221
|
};
|
|
244
222
|
'zh-CN': {
|
|
245
223
|
'pisell2.text.refunded-amount': string;
|
|
@@ -278,11 +256,6 @@ declare const _default: {
|
|
|
278
256
|
'pisell2.text.discount': string;
|
|
279
257
|
'pisell2.text.discount-reason': string;
|
|
280
258
|
'pisell2.text.start_time': string;
|
|
281
|
-
'pisell2.text.end_time': string;
|
|
282
|
-
'pisell2.text.start_date': string;
|
|
283
|
-
'pisell2.text.end_date': string;
|
|
284
|
-
'pisell2.text.quantity': string;
|
|
285
|
-
'pisell2.text.holder': string;
|
|
286
259
|
'pisell2.text.duration': string;
|
|
287
260
|
'pisell2.text.resource': string;
|
|
288
261
|
'pisell2.text.warnings': string;
|
|
@@ -302,7 +275,6 @@ declare const _default: {
|
|
|
302
275
|
'pisell2.text.appointment-updated': string;
|
|
303
276
|
'pisell2.text.updated': string;
|
|
304
277
|
'pisell2.text.please-create-an-appointment-first': string;
|
|
305
|
-
'pisell2.text.day': (val: number) => string;
|
|
306
278
|
'pisell2.text.min': string;
|
|
307
279
|
'pisell2.text.h': string;
|
|
308
280
|
'pisell2.text.other': string;
|
|
@@ -466,22 +438,6 @@ declare const _default: {
|
|
|
466
438
|
'pisell2.booking.info.text.create-new': string;
|
|
467
439
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
468
440
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
469
|
-
'pisell2.text.open.items': string;
|
|
470
|
-
'pisell2.text.cart.of': (val: any) => string;
|
|
471
|
-
'pisell2.text.no.selected': string;
|
|
472
|
-
'pisell2.text.select.items': string;
|
|
473
|
-
'pisell2.text.edit-select-service': string;
|
|
474
|
-
'pisell2.text.missing.reservation.title': string;
|
|
475
|
-
'pisell2.text.missing.reservation.content': string;
|
|
476
|
-
'pisell2.text.confirm': string;
|
|
477
|
-
'pisell2.text.cancel': string;
|
|
478
|
-
'pisell2.text.change.pet.title': string;
|
|
479
|
-
'pisell2.text.change.pet.content': string;
|
|
480
|
-
'pisell2.text.change.pet.content1': string;
|
|
481
|
-
'pisell2.text.change.pet.confirm': string;
|
|
482
|
-
'pisell2.text.change.pet.cancel': string;
|
|
483
|
-
'pisell2.text.booking-list': string;
|
|
484
|
-
'pisell2.text.edit-booking': string;
|
|
485
441
|
};
|
|
486
442
|
'zh-HK': {
|
|
487
443
|
'pisell2.text.refunded-amount': string;
|
|
@@ -520,11 +476,6 @@ declare const _default: {
|
|
|
520
476
|
'pisell2.text.discount': string;
|
|
521
477
|
'pisell2.text.discount-reason': string;
|
|
522
478
|
'pisell2.text.start_time': string;
|
|
523
|
-
'pisell2.text.end_time': string;
|
|
524
|
-
'pisell2.text.start_date': string;
|
|
525
|
-
'pisell2.text.end_date': string;
|
|
526
|
-
'pisell2.text.quantity': string;
|
|
527
|
-
'pisell2.text.holder': string;
|
|
528
479
|
'pisell2.text.duration': string;
|
|
529
480
|
'pisell2.text.resource': string;
|
|
530
481
|
'pisell2.text.warnings': string;
|
|
@@ -542,7 +493,6 @@ declare const _default: {
|
|
|
542
493
|
'pisell2.text.appointment-updated': string;
|
|
543
494
|
'pisell2.text.updated': string;
|
|
544
495
|
'pisell2.text.please-create-an-appointment-first': string;
|
|
545
|
-
'pisell2.text.day': (val: number) => string;
|
|
546
496
|
'pisell2.text.min': string;
|
|
547
497
|
'pisell2.text.h': string;
|
|
548
498
|
'pisell2.text.other': string;
|
|
@@ -708,22 +658,6 @@ declare const _default: {
|
|
|
708
658
|
'pisell2.booking.info.text.create-new': string;
|
|
709
659
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
710
660
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
711
|
-
'pisell2.text.open.items': string;
|
|
712
|
-
'pisell2.text.cart.of': (val: any) => string;
|
|
713
|
-
'pisell2.text.no.selected': string;
|
|
714
|
-
'pisell2.text.select.items': string;
|
|
715
|
-
'pisell2.text.edit-select-service': string;
|
|
716
|
-
'pisell2.text.missing.reservation.title': string;
|
|
717
|
-
'pisell2.text.missing.reservation.content': string;
|
|
718
|
-
'pisell2.text.confirm': string;
|
|
719
|
-
'pisell2.text.cancel': string;
|
|
720
|
-
'pisell2.text.change.pet.title': string;
|
|
721
|
-
'pisell2.text.change.pet.content': string;
|
|
722
|
-
'pisell2.text.change.pet.content1': string;
|
|
723
|
-
'pisell2.text.change.pet.confirm': string;
|
|
724
|
-
'pisell2.text.change.pet.cancel': string;
|
|
725
|
-
'pisell2.text.booking-list': string;
|
|
726
|
-
'pisell2.text.edit-booking': string;
|
|
727
661
|
};
|
|
728
662
|
};
|
|
729
663
|
export default _default;
|
|
@@ -68,11 +68,6 @@ var locales_default = {
|
|
|
68
68
|
"pisell2.text.start_time": "Start time",
|
|
69
69
|
"pisell2.text.duration": "Duration",
|
|
70
70
|
"pisell2.text.resource": "Resource",
|
|
71
|
-
"pisell2.text.end_time": "End time",
|
|
72
|
-
"pisell2.text.start_date": "Start date",
|
|
73
|
-
"pisell2.text.end_date": "End date",
|
|
74
|
-
"pisell2.text.quantity": "Quantity",
|
|
75
|
-
"pisell2.text.holder": "Holder",
|
|
76
71
|
"pisell2.text.warnings": "Warnings",
|
|
77
72
|
"pisell2.text.order-notes": "Order notes",
|
|
78
73
|
"pisell2.text.add-order-notes": "Add Order note",
|
|
@@ -88,7 +83,6 @@ var locales_default = {
|
|
|
88
83
|
"pisell2.text.updated": " updated",
|
|
89
84
|
"pisell2.text.appointment-updated": "Appointment updated",
|
|
90
85
|
"pisell2.text.please-create-an-appointment-first": "Please create an appointment first",
|
|
91
|
-
"pisell2.text.day": (val) => `${val > 1 ? "days" : "day"}`,
|
|
92
86
|
"pisell2.text.min": "min",
|
|
93
87
|
"pisell2.text.h": "h",
|
|
94
88
|
"pisell2.text.other": "Other",
|
|
@@ -279,23 +273,7 @@ var locales_default = {
|
|
|
279
273
|
"pisell2.booking.info.text.clear-all": "Clear all",
|
|
280
274
|
"pisell2.booking.info.text.create-new": "Create new",
|
|
281
275
|
"pisell2.booking.info.text.form-agreement-yes": "Yes",
|
|
282
|
-
"pisell2.booking.info.text.form-agreement-no": "No"
|
|
283
|
-
"pisell2.text.open.items": "Open items",
|
|
284
|
-
"pisell2.text.cart.of": (val) => `Cart of ${val}`,
|
|
285
|
-
"pisell2.text.no.selected": "No items selected",
|
|
286
|
-
"pisell2.text.select.items": "Select items",
|
|
287
|
-
"pisell2.text.edit-select-service": "Edit items",
|
|
288
|
-
"pisell2.text.missing.reservation.title": "Missing Reservation Type",
|
|
289
|
-
"pisell2.text.missing.reservation.content": "You have not selected a reservation type, Please select one before proceeding.",
|
|
290
|
-
"pisell2.text.confirm": "Confirm",
|
|
291
|
-
"pisell2.text.cancel": "Cancel",
|
|
292
|
-
"pisell2.text.change.pet.title": "You have changed the holder information. Do you want to keep the items under their name?",
|
|
293
|
-
"pisell2.text.change.pet.content": "Selecting “Keep” will move the items to Open Items. Selecting “Discard” will clear all items under the holder’s name.",
|
|
294
|
-
"pisell2.text.change.pet.content1": "Reservation-type items cannot be added to the Open Items cart and will be removed.",
|
|
295
|
-
"pisell2.text.change.pet.confirm": "Keep (Add to open items)",
|
|
296
|
-
"pisell2.text.change.pet.cancel": "Discard (Clear items)",
|
|
297
|
-
"pisell2.text.booking-list": "List",
|
|
298
|
-
"pisell2.text.edit-booking": "Edit"
|
|
276
|
+
"pisell2.booking.info.text.form-agreement-no": "No"
|
|
299
277
|
},
|
|
300
278
|
"zh-CN": {
|
|
301
279
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -334,11 +312,6 @@ var locales_default = {
|
|
|
334
312
|
"pisell2.text.discount": "折扣",
|
|
335
313
|
"pisell2.text.discount-reason": "折扣原因",
|
|
336
314
|
"pisell2.text.start_time": "开始时间",
|
|
337
|
-
"pisell2.text.end_time": "结束时间",
|
|
338
|
-
"pisell2.text.start_date": "开始日期",
|
|
339
|
-
"pisell2.text.end_date": "结束日期",
|
|
340
|
-
"pisell2.text.quantity": "数量",
|
|
341
|
-
"pisell2.text.holder": "预约主体",
|
|
342
315
|
"pisell2.text.duration": "时长",
|
|
343
316
|
"pisell2.text.resource": "资源",
|
|
344
317
|
"pisell2.text.warnings": "个警告",
|
|
@@ -359,7 +332,6 @@ var locales_default = {
|
|
|
359
332
|
"pisell2.text.appointment-updated": "预约已更新",
|
|
360
333
|
"pisell2.text.updated": "已更新",
|
|
361
334
|
"pisell2.text.please-create-an-appointment-first": "请先创建预约",
|
|
362
|
-
"pisell2.text.day": (val) => "天",
|
|
363
335
|
"pisell2.text.min": "分钟",
|
|
364
336
|
"pisell2.text.h": "小时",
|
|
365
337
|
"pisell2.text.other": "未分类",
|
|
@@ -547,23 +519,7 @@ var locales_default = {
|
|
|
547
519
|
"pisell2.booking.info.text.clear-all": "清空",
|
|
548
520
|
"pisell2.booking.info.text.create-new": "新建",
|
|
549
521
|
"pisell2.booking.info.text.form-agreement-yes": "是",
|
|
550
|
-
"pisell2.booking.info.text.form-agreement-no": "否"
|
|
551
|
-
"pisell2.text.open.items": "公共购物车",
|
|
552
|
-
"pisell2.text.cart.of": (val) => `${val}的购物车`,
|
|
553
|
-
"pisell2.text.no.selected": "未选择任何项目",
|
|
554
|
-
"pisell2.text.select.items": "选择项目",
|
|
555
|
-
"pisell2.text.edit-select-service": "编辑项目",
|
|
556
|
-
"pisell2.text.missing.reservation.title": "缺少预约类型",
|
|
557
|
-
"pisell2.text.missing.reservation.content": "您尚未选择预约类型,请在继续操作前选择。",
|
|
558
|
-
"pisell2.text.confirm": "确定",
|
|
559
|
-
"pisell2.text.cancel": "取消",
|
|
560
|
-
"pisell2.text.change.pet.title": "您已变更持有人信息,是否保留该持有人名下的商品?",
|
|
561
|
-
"pisell2.text.change.pet.content": "选择“保留”将商品添加到未分配商品(公共购物车)中;选择“不保留”将清空该持有人名下的所有商品。",
|
|
562
|
-
"pisell2.text.change.pet.content1": "预约类商品无法添加到公共购物车,将会被删除。",
|
|
563
|
-
"pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
|
|
564
|
-
"pisell2.text.change.pet.cancel": "不保留(清空商品)",
|
|
565
|
-
"pisell2.text.booking-list": "列表",
|
|
566
|
-
"pisell2.text.edit-booking": "编辑"
|
|
522
|
+
"pisell2.booking.info.text.form-agreement-no": "否"
|
|
567
523
|
},
|
|
568
524
|
"zh-HK": {
|
|
569
525
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -602,11 +558,6 @@ var locales_default = {
|
|
|
602
558
|
"pisell2.text.discount": "折扣",
|
|
603
559
|
"pisell2.text.discount-reason": "折扣原因",
|
|
604
560
|
"pisell2.text.start_time": "開始時間",
|
|
605
|
-
"pisell2.text.end_time": "結束時間",
|
|
606
|
-
"pisell2.text.start_date": "開始日期",
|
|
607
|
-
"pisell2.text.end_date": "結束日期",
|
|
608
|
-
"pisell2.text.quantity": "數量",
|
|
609
|
-
"pisell2.text.holder": "預約主體",
|
|
610
561
|
"pisell2.text.duration": "時長",
|
|
611
562
|
"pisell2.text.resource": "資源",
|
|
612
563
|
"pisell2.text.warnings": "個警告",
|
|
@@ -625,7 +576,6 @@ var locales_default = {
|
|
|
625
576
|
"pisell2.text.appointment-updated": "預約已更新",
|
|
626
577
|
"pisell2.text.updated": "已更新",
|
|
627
578
|
"pisell2.text.please-create-an-appointment-first": "請先創建預約",
|
|
628
|
-
"pisell2.text.day": (val) => "天",
|
|
629
579
|
"pisell2.text.min": "分鍾",
|
|
630
580
|
"pisell2.text.h": "小時",
|
|
631
581
|
"pisell2.text.other": "未分類",
|
|
@@ -815,22 +765,6 @@ var locales_default = {
|
|
|
815
765
|
"pisell2.booking.info.text.clear-all": "清空",
|
|
816
766
|
"pisell2.booking.info.text.create-new": "新建",
|
|
817
767
|
"pisell2.booking.info.text.form-agreement-yes": "是",
|
|
818
|
-
"pisell2.booking.info.text.form-agreement-no": "否"
|
|
819
|
-
"pisell2.text.open.items": "公共購物車",
|
|
820
|
-
"pisell2.text.cart.of": (val) => `${val}的購物車`,
|
|
821
|
-
"pisell2.text.no.selected": "未選擇任何項目",
|
|
822
|
-
"pisell2.text.select.items": "選擇項目",
|
|
823
|
-
"pisell2.text.edit-select-service": "編輯項目",
|
|
824
|
-
"pisell2.text.missing.reservation.title": "缺少預約類型",
|
|
825
|
-
"pisell2.text.missing.reservation.content": "您尚未選擇預約類型,請在繼續操作前選擇。",
|
|
826
|
-
"pisell2.text.confirm": "確定",
|
|
827
|
-
"pisell2.text.cancel": "取消",
|
|
828
|
-
"pisell2.text.change.pet.title": "您已變更持有人信息,是否保留該持有人名下的商品?",
|
|
829
|
-
"pisell2.text.change.pet.content": "選擇“保留”將商品添加到未分配商品(公共購物車)中;選擇“不保留”將清空該持有人名下的所有商品。",
|
|
830
|
-
"pisell2.text.change.pet.content1": "預約類商品無法添加到公共購物車,將會被刪除。",
|
|
831
|
-
"pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
|
|
832
|
-
"pisell2.text.change.pet.cancel": "不保留(清空商品)",
|
|
833
|
-
"pisell2.text.booking-list": "列表",
|
|
834
|
-
"pisell2.text.edit-booking": "編輯"
|
|
768
|
+
"pisell2.booking.info.text.form-agreement-no": "否"
|
|
835
769
|
}
|
|
836
770
|
};
|
|
@@ -29,7 +29,6 @@ export interface FormState {
|
|
|
29
29
|
};
|
|
30
30
|
date: {
|
|
31
31
|
value: any;
|
|
32
|
-
end_date: any;
|
|
33
32
|
edit: boolean;
|
|
34
33
|
};
|
|
35
34
|
service: {
|
|
@@ -76,7 +75,7 @@ export interface FormState {
|
|
|
76
75
|
bookingId: string | number;
|
|
77
76
|
bookingDetail: any;
|
|
78
77
|
channelDisabledEdit: boolean;
|
|
79
|
-
renderType?: 'eventBooking'
|
|
78
|
+
renderType?: 'eventBooking';
|
|
80
79
|
modalOpen?: boolean;
|
|
81
80
|
isTerminal?: boolean;
|
|
82
81
|
isFranchisee?: boolean;
|
|
@@ -97,9 +96,6 @@ export interface FormState {
|
|
|
97
96
|
/** 是否terminal创建booking页面 */
|
|
98
97
|
isBookingCreatePage?: boolean;
|
|
99
98
|
loading: boolean;
|
|
100
|
-
isTerminalDayBookingPage?: boolean;
|
|
101
|
-
activeCartId?: any[];
|
|
102
|
-
isDayBooking: boolean;
|
|
103
99
|
}
|
|
104
100
|
export declare const walkInData: {
|
|
105
101
|
id: number;
|
|
@@ -72,8 +72,7 @@ var defaultState = {
|
|
|
72
72
|
value: walkInData
|
|
73
73
|
},
|
|
74
74
|
date: {
|
|
75
|
-
value: (0, import_dayjs.default)()
|
|
76
|
-
end_date: (0, import_dayjs.default)().add(1, "days")
|
|
75
|
+
value: (0, import_dayjs.default)()
|
|
77
76
|
},
|
|
78
77
|
service: {
|
|
79
78
|
addModal: false,
|
|
@@ -124,8 +123,7 @@ var defaultState = {
|
|
|
124
123
|
action: (props) => {
|
|
125
124
|
console.log(props);
|
|
126
125
|
},
|
|
127
|
-
bookingId: 0
|
|
128
|
-
activeCartId: [0]
|
|
126
|
+
bookingId: 0
|
|
129
127
|
};
|
|
130
128
|
var { Provider, Context } = (0, import_utils.miniRedux)({
|
|
131
129
|
namespace: "state",
|
|
@@ -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: {
|
|
@@ -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: {
|
|
@@ -21,7 +21,7 @@ export declare const request: Request;
|
|
|
21
21
|
* @Author: zhiwei.Wang
|
|
22
22
|
* @Date: 2024-04-26 14:00
|
|
23
23
|
*/
|
|
24
|
-
export declare const getDiscountTime: (service_times: number
|
|
24
|
+
export declare const getDiscountTime: (service_times: number) => string;
|
|
25
25
|
/**
|
|
26
26
|
* @title: 时间切片
|
|
27
27
|
* @description:
|
|
@@ -31,7 +31,7 @@ export declare const getDiscountTime: (service_times: number, isDay?: boolean) =
|
|
|
31
31
|
* @Author: zhiwei.Wang
|
|
32
32
|
* @Date: 2024-04-26 13:59
|
|
33
33
|
*/
|
|
34
|
-
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string
|
|
34
|
+
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string) => {
|
|
35
35
|
timeSlices: {
|
|
36
36
|
label: string;
|
|
37
37
|
value: string;
|
|
@@ -115,7 +115,7 @@ export declare const getServiceTimes: (service: any) => {
|
|
|
115
115
|
startDate: dayjs.Dayjs;
|
|
116
116
|
endDate: dayjs.Dayjs;
|
|
117
117
|
};
|
|
118
|
-
export declare const getErrorList: (resource: any, cacheItem: any
|
|
118
|
+
export declare const getErrorList: (resource: any, cacheItem: any) => {
|
|
119
119
|
label: any;
|
|
120
120
|
type: string;
|
|
121
121
|
}[];
|
|
@@ -131,15 +131,6 @@ export declare const formatResource: (resourceItem: any, cacheItem?: any, format
|
|
|
131
131
|
export declare const getLastServer: (list: any) => any;
|
|
132
132
|
export declare const getCacheParams: () => any;
|
|
133
133
|
export declare const deleteCacheParams: () => void;
|
|
134
|
-
/**
|
|
135
|
-
* @title: 获取跨日预约的时长
|
|
136
|
-
* @description:
|
|
137
|
-
* @param {any} cacheItem
|
|
138
|
-
* @return {*}
|
|
139
|
-
* @Author: WangHan
|
|
140
|
-
* @Date: 2024-12-01 22:43
|
|
141
|
-
*/
|
|
142
|
-
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
143
134
|
/**
|
|
144
135
|
* @title: 创建一个服务商品
|
|
145
136
|
* @description:
|