@pisell/private-materials 3.0.38 → 3.0.40
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/render/default/view.js +3 -3
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/index.js +1 -1
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/TabProduct/productItem/index.js +12 -12
- package/es/components/booking/components/footer/index.js +27 -4
- package/es/components/booking/deposit/EditDepositModal/index.js +5 -3
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +2 -1
- package/es/components/booking/info/service/addService/index.js +1 -1
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/model.d.ts +2 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/index.js +1 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/TabProduct/productItem/index.js +2 -12
- package/lib/components/booking/components/footer/index.js +22 -2
- package/lib/components/booking/deposit/EditDepositModal/index.js +0 -5
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +2 -1
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/model.d.ts +2 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/package.json +2 -2
|
@@ -274,7 +274,7 @@ var Addons = Provider(function (props) {
|
|
|
274
274
|
var _list = _toConsumableArray(state.addons.value);
|
|
275
275
|
|
|
276
276
|
// 是否有单规格 组合规格 套餐, 如果没有不需要打开弹窗
|
|
277
|
-
var isEject = type === "detail" || item.
|
|
277
|
+
var isEject = type === "detail" || item.bundle_group_count > 0;
|
|
278
278
|
state.action({
|
|
279
279
|
type: "pisell1.handleOpenProductModal",
|
|
280
280
|
data: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -17,21 +17,21 @@ var ProductItem = function ProductItem(_ref) {
|
|
|
17
17
|
}
|
|
18
18
|
}, item.cover ? /*#__PURE__*/React.createElement("img", {
|
|
19
19
|
src: image.ali(item.cover, 100),
|
|
20
|
-
className: "server-product-cover"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
20
|
+
className: "server-product-cover"
|
|
21
|
+
// onClick={(e) => {
|
|
22
|
+
// e.preventDefault();
|
|
23
|
+
// e.stopPropagation();
|
|
24
|
+
// onClick(item, "detail");
|
|
25
|
+
// }}
|
|
26
26
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
27
27
|
className: "server-product-content"
|
|
28
28
|
}, /*#__PURE__*/React.createElement("span", {
|
|
29
|
-
className: "server-product-title"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
29
|
+
className: "server-product-title"
|
|
30
|
+
// onClick={(e) => {
|
|
31
|
+
// e.preventDefault();
|
|
32
|
+
// e.stopPropagation();
|
|
33
|
+
// onClick(item, "detail");
|
|
34
|
+
// }}
|
|
35
35
|
}, item.title), /*#__PURE__*/React.createElement("div", {
|
|
36
36
|
className: "server-product-time"
|
|
37
37
|
}, getDiscountTime(item.service_times)), /*#__PURE__*/React.createElement("div", {
|
|
@@ -39,7 +39,7 @@ import useEngineContext from "../../../../hooks/useEngineContext";
|
|
|
39
39
|
* @Date: 2024-01-30 16:51
|
|
40
40
|
*/
|
|
41
41
|
var Footer = function Footer(props) {
|
|
42
|
-
var _context$appHelper, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$addons2, _state$addons4, _state$
|
|
42
|
+
var _context$appHelper, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$addons2, _state$addons4, _state$bookingDetail8;
|
|
43
43
|
var state = props.state,
|
|
44
44
|
buttons = props.buttons,
|
|
45
45
|
dispatch = props.dispatch,
|
|
@@ -571,6 +571,19 @@ var Footer = function Footer(props) {
|
|
|
571
571
|
return [];
|
|
572
572
|
}, [buttons, total, isEdit, checkoutLoading, isDisabled, state.bookingId, source, state.appointment_status, buttonMap, loading, isCheckout]);
|
|
573
573
|
|
|
574
|
+
/**
|
|
575
|
+
* 是否只有定金支付
|
|
576
|
+
*/
|
|
577
|
+
var isOnlyDeposit = useMemo(function () {
|
|
578
|
+
var _state$bookingDetail3, _state$bookingDetail4, _state$bookingDetail5, _state$bookingDetail6;
|
|
579
|
+
if (state !== null && state !== void 0 && (_state$bookingDetail3 = state.bookingDetail) !== null && _state$bookingDetail3 !== void 0 && _state$bookingDetail3.deposit_payment_time && state !== null && state !== void 0 && (_state$bookingDetail4 = state.bookingDetail) !== null && _state$bookingDetail4 !== void 0 && (_state$bookingDetail5 = _state$bookingDetail4.payment_types) !== null && _state$bookingDetail5 !== void 0 && (_state$bookingDetail6 = _state$bookingDetail5.every) !== null && _state$bookingDetail6 !== void 0 && _state$bookingDetail6.call(_state$bookingDetail5, function (item) {
|
|
580
|
+
return item === 'deposit';
|
|
581
|
+
})) {
|
|
582
|
+
return true;
|
|
583
|
+
}
|
|
584
|
+
return false;
|
|
585
|
+
}, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
|
|
586
|
+
|
|
574
587
|
/**
|
|
575
588
|
* @title: 总计文案
|
|
576
589
|
* @description:
|
|
@@ -582,6 +595,12 @@ var Footer = function Footer(props) {
|
|
|
582
595
|
var totalText = useMemo(function () {
|
|
583
596
|
var str = "";
|
|
584
597
|
|
|
598
|
+
// 只有定金支付时,直接展示
|
|
599
|
+
if (isOnlyDeposit) {
|
|
600
|
+
var _state$bookingDetail7;
|
|
601
|
+
return "".concat(locales.getText("pisell2.text.deposit-paid"), " ").concat(formatAmount(state === null || state === void 0 ? void 0 : (_state$bookingDetail7 = state.bookingDetail) === null || _state$bookingDetail7 === void 0 ? void 0 : _state$bookingDetail7.deposit_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"), " ").concat(total.duration ? "(".concat(total.duration, ")") : "");
|
|
602
|
+
}
|
|
603
|
+
|
|
585
604
|
// 有退款金额时, 直接展示 退款:$8.00
|
|
586
605
|
if (total.totalRefundAmount > 0) {
|
|
587
606
|
return "".concat(locales.getText("pisell2.text.refunded-amount"), ": ").concat(formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"));
|
|
@@ -600,7 +619,7 @@ var Footer = function Footer(props) {
|
|
|
600
619
|
str = str + " (".concat(total.duration, ")");
|
|
601
620
|
}
|
|
602
621
|
return str;
|
|
603
|
-
}, [state, total, state.bookingId]);
|
|
622
|
+
}, [state, total, state.bookingId, isOnlyDeposit]);
|
|
604
623
|
|
|
605
624
|
/**
|
|
606
625
|
* @title: 欠款文案
|
|
@@ -612,12 +631,16 @@ var Footer = function Footer(props) {
|
|
|
612
631
|
*/
|
|
613
632
|
var arrearsText = useMemo(function () {
|
|
614
633
|
var str = "";
|
|
634
|
+
// 只有定金支付时不展示退款金额
|
|
635
|
+
if (isOnlyDeposit) {
|
|
636
|
+
return str;
|
|
637
|
+
}
|
|
615
638
|
// 欠款
|
|
616
639
|
if (total.dueAmount < 0) {
|
|
617
640
|
str = "".concat(locales.getText("pisell1.text.refund-customer"), ": ").concat(formatAmount(total.dueAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"));
|
|
618
641
|
}
|
|
619
642
|
return str;
|
|
620
|
-
}, [state, total]);
|
|
643
|
+
}, [state, total, isOnlyDeposit]);
|
|
621
644
|
|
|
622
645
|
/**
|
|
623
646
|
* @title: 税费文案
|
|
@@ -699,7 +722,7 @@ var Footer = function Footer(props) {
|
|
|
699
722
|
className: "order-total-item-label"
|
|
700
723
|
}, locales.getText("pisell1.text.subtotal")), /*#__PURE__*/React.createElement("span", {
|
|
701
724
|
className: "order-total-item-value"
|
|
702
|
-
}, formatAmount(total.productAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), (((_state$
|
|
725
|
+
}, formatAmount(total.productAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), (((_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.surcharge) || []).map(function (d) {
|
|
703
726
|
return /*#__PURE__*/React.createElement("div", {
|
|
704
727
|
className: "order-total-item",
|
|
705
728
|
key: d.id
|
|
@@ -55,9 +55,11 @@ var EditDepositModal = function EditDepositModal(props, ref) {
|
|
|
55
55
|
if (!amount) {
|
|
56
56
|
return message.error(locales.getText("pisell2.text.deposit-amount-message3"));
|
|
57
57
|
}
|
|
58
|
-
if (amount > totalAmount) {
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
// if (amount > totalAmount) {
|
|
59
|
+
// return message.error(
|
|
60
|
+
// locales.getText("pisell2.text.deposit-amount-message2")
|
|
61
|
+
// );
|
|
62
|
+
// }
|
|
61
63
|
onChange(amount);
|
|
62
64
|
setOpen(false);
|
|
63
65
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const Booking: (props: any) =>
|
|
1
|
+
declare const Booking: (props: any) => any;
|
|
2
2
|
export default Booking;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
3
|
export declare const walkInData: {
|
|
3
4
|
id: number;
|
|
4
5
|
nickname: string;
|
|
5
6
|
};
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
7
8
|
state: FormState;
|
|
8
9
|
} & {
|
|
9
10
|
dispatch: (params: {
|
|
@@ -187,7 +187,7 @@ var Info = function Info() {
|
|
|
187
187
|
};
|
|
188
188
|
var handleSelectProduct = function handleSelectProduct(item, type) {
|
|
189
189
|
// 是否有单规格 组合规格 套餐, 如果没有不需要打开弹窗
|
|
190
|
-
var isEject = type === "detail" || item.
|
|
190
|
+
var isEject = type === "detail" || item.bundle_group_count > 0;
|
|
191
191
|
state.action({
|
|
192
192
|
type: "pisell1.handleOpenProductModal",
|
|
193
193
|
data: {
|
|
@@ -140,6 +140,7 @@ declare const _default: {
|
|
|
140
140
|
'pisell2.text.deposit-delete': string;
|
|
141
141
|
'pisell2.text.deposit-delete-message-title': string;
|
|
142
142
|
'pisell2.text.deposit-delete-message': string;
|
|
143
|
+
'pisell2.text.deposit-paid': string;
|
|
143
144
|
};
|
|
144
145
|
'zh-CN': {
|
|
145
146
|
'pisell2.text.refunded-amount': string;
|
|
@@ -282,6 +283,7 @@ declare const _default: {
|
|
|
282
283
|
'pisell2.text.deposit-delete': string;
|
|
283
284
|
'pisell2.text.deposit-delete-message-title': string;
|
|
284
285
|
'pisell2.text.deposit-delete-message': string;
|
|
286
|
+
'pisell2.text.deposit-paid': string;
|
|
285
287
|
};
|
|
286
288
|
'zh-HK': {
|
|
287
289
|
'pisell2.text.refunded-amount': string;
|
|
@@ -424,6 +426,7 @@ declare const _default: {
|
|
|
424
426
|
'pisell2.text.deposit-delete': string;
|
|
425
427
|
'pisell2.text.deposit-delete-message-title': string;
|
|
426
428
|
'pisell2.text.deposit-delete-message': string;
|
|
429
|
+
'pisell2.text.deposit-paid': string;
|
|
427
430
|
};
|
|
428
431
|
};
|
|
429
432
|
export default _default;
|
|
@@ -154,7 +154,8 @@ export default {
|
|
|
154
154
|
'pisell2.text.deposit-amount-message3': "Please enter the deposit amount",
|
|
155
155
|
'pisell2.text.deposit-delete': "Delete deposit",
|
|
156
156
|
'pisell2.text.deposit-delete-message-title': "Prompt",
|
|
157
|
-
'pisell2.text.deposit-delete-message': "It cannot be restored after deletion. Please confirm the operation."
|
|
157
|
+
'pisell2.text.deposit-delete-message': "It cannot be restored after deletion. Please confirm the operation.",
|
|
158
|
+
'pisell2.text.deposit-paid': "Deposite paid"
|
|
158
159
|
},
|
|
159
160
|
'zh-CN': {
|
|
160
161
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -316,7 +317,8 @@ export default {
|
|
|
316
317
|
'pisell2.text.deposit-amount-message3': "请输入定金金额",
|
|
317
318
|
'pisell2.text.deposit-delete': "删除定金",
|
|
318
319
|
'pisell2.text.deposit-delete-message-title': "提示",
|
|
319
|
-
'pisell2.text.deposit-delete-message': "删除后不可恢复,请确认操作"
|
|
320
|
+
'pisell2.text.deposit-delete-message': "删除后不可恢复,请确认操作",
|
|
321
|
+
'pisell2.text.deposit-paid': "已付定金"
|
|
320
322
|
},
|
|
321
323
|
'zh-HK': {
|
|
322
324
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -478,6 +480,7 @@ export default {
|
|
|
478
480
|
'pisell2.text.deposit-amount-message3': "請輸入定金金額",
|
|
479
481
|
'pisell2.text.deposit-delete': "刪除定金",
|
|
480
482
|
'pisell2.text.deposit-delete-message-title': "提示",
|
|
481
|
-
'pisell2.text.deposit-delete-message': "刪除後不可恢復,請確認操作"
|
|
483
|
+
'pisell2.text.deposit-delete-message': "刪除後不可恢復,請確認操作",
|
|
484
|
+
'pisell2.text.deposit-paid': "已付定金"
|
|
482
485
|
}
|
|
483
486
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -86,7 +87,7 @@ export declare const walkInData: {
|
|
|
86
87
|
id: number;
|
|
87
88
|
nickname: string;
|
|
88
89
|
};
|
|
89
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
90
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
90
91
|
state: FormState;
|
|
91
92
|
} & {
|
|
92
93
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,7 +69,7 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
72
73
|
state: FormState;
|
|
73
74
|
} & {
|
|
74
75
|
dispatch: (params: {
|
|
@@ -209,7 +209,7 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
209
209
|
};
|
|
210
210
|
const handleAddProduct = (item, type) => {
|
|
211
211
|
let _list = [...state.addons.value];
|
|
212
|
-
const isEject = type === "detail" || item.
|
|
212
|
+
const isEject = type === "detail" || item.bundle_group_count > 0;
|
|
213
213
|
state.action({
|
|
214
214
|
type: "pisell1.handleOpenProductModal",
|
|
215
215
|
data: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -57,23 +57,13 @@ var ProductItem = ({
|
|
|
57
57
|
"img",
|
|
58
58
|
{
|
|
59
59
|
src: import_utils.image.ali(item.cover, 100),
|
|
60
|
-
className: "server-product-cover"
|
|
61
|
-
onClick: (e) => {
|
|
62
|
-
e.preventDefault();
|
|
63
|
-
e.stopPropagation();
|
|
64
|
-
onClick(item, "detail");
|
|
65
|
-
}
|
|
60
|
+
className: "server-product-cover"
|
|
66
61
|
}
|
|
67
62
|
) : null,
|
|
68
63
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
69
64
|
"span",
|
|
70
65
|
{
|
|
71
|
-
className: "server-product-title"
|
|
72
|
-
onClick: (e) => {
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
e.stopPropagation();
|
|
75
|
-
onClick(item, "detail");
|
|
76
|
-
}
|
|
66
|
+
className: "server-product-title"
|
|
77
67
|
},
|
|
78
68
|
item.title
|
|
79
69
|
), /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-time" }, (0, import_utils2.getDiscountTime)(item.service_times)), /* @__PURE__ */ import_react.default.createElement("div", { className: "server-product-price" }, (0, import_utils.formatAmount)(item.price, 2, amountSymbol)))
|
|
@@ -339,8 +339,25 @@ var Footer = (props) => {
|
|
|
339
339
|
loading,
|
|
340
340
|
isCheckout
|
|
341
341
|
]);
|
|
342
|
+
const isOnlyDeposit = (0, import_react.useMemo)(() => {
|
|
343
|
+
var _a2, _b2, _c2, _d2;
|
|
344
|
+
if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_payment_time) && ((_d2 = (_c2 = (_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_types) == null ? void 0 : _c2.every) == null ? void 0 : _d2.call(_c2, (item) => item === "deposit"))) {
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
347
|
+
return false;
|
|
348
|
+
}, [state == null ? void 0 : state.bookingDetail]);
|
|
342
349
|
const totalText = (0, import_react.useMemo)(() => {
|
|
350
|
+
var _a2;
|
|
343
351
|
let str = "";
|
|
352
|
+
if (isOnlyDeposit) {
|
|
353
|
+
return `${import_utils.locales.getText(
|
|
354
|
+
"pisell2.text.deposit-paid"
|
|
355
|
+
)} ${(0, import_utils.formatAmount)(
|
|
356
|
+
(_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_amount,
|
|
357
|
+
2,
|
|
358
|
+
(state == null ? void 0 : state.amountSymbol) || "$"
|
|
359
|
+
)} ${total.duration ? `(${total.duration})` : ""}`;
|
|
360
|
+
}
|
|
344
361
|
if (total.totalRefundAmount > 0) {
|
|
345
362
|
return `${import_utils.locales.getText(
|
|
346
363
|
"pisell2.text.refunded-amount"
|
|
@@ -368,9 +385,12 @@ var Footer = (props) => {
|
|
|
368
385
|
str = str + ` (${total.duration})`;
|
|
369
386
|
}
|
|
370
387
|
return str;
|
|
371
|
-
}, [state, total, state.bookingId]);
|
|
388
|
+
}, [state, total, state.bookingId, isOnlyDeposit]);
|
|
372
389
|
const arrearsText = (0, import_react.useMemo)(() => {
|
|
373
390
|
let str = "";
|
|
391
|
+
if (isOnlyDeposit) {
|
|
392
|
+
return str;
|
|
393
|
+
}
|
|
374
394
|
if (total.dueAmount < 0) {
|
|
375
395
|
str = `${import_utils.locales.getText("pisell1.text.refund-customer")}: ${(0, import_utils.formatAmount)(
|
|
376
396
|
total.dueAmount,
|
|
@@ -379,7 +399,7 @@ var Footer = (props) => {
|
|
|
379
399
|
)}`;
|
|
380
400
|
}
|
|
381
401
|
return str;
|
|
382
|
-
}, [state, total]);
|
|
402
|
+
}, [state, total, isOnlyDeposit]);
|
|
383
403
|
const taxText = (0, import_react.useMemo)(() => {
|
|
384
404
|
if (!(state == null ? void 0 : state.bookingDetail)) {
|
|
385
405
|
return "";
|
|
@@ -72,11 +72,6 @@ var EditDepositModal = (props, ref) => {
|
|
|
72
72
|
import_utils.locales.getText("pisell2.text.deposit-amount-message3")
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
if (amount > totalAmount) {
|
|
76
|
-
return import_antd.message.error(
|
|
77
|
-
import_utils.locales.getText("pisell2.text.deposit-amount-message2")
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
75
|
onChange(amount);
|
|
81
76
|
setOpen(false);
|
|
82
77
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const Booking: (props: any) =>
|
|
1
|
+
declare const Booking: (props: any) => any;
|
|
2
2
|
export default Booking;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
3
|
export declare const walkInData: {
|
|
3
4
|
id: number;
|
|
4
5
|
nickname: string;
|
|
5
6
|
};
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
7
8
|
state: FormState;
|
|
8
9
|
} & {
|
|
9
10
|
dispatch: (params: {
|
|
@@ -141,7 +141,7 @@ var Info = () => {
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
const handleSelectProduct = (item, type) => {
|
|
144
|
-
const isEject = type === "detail" || item.
|
|
144
|
+
const isEject = type === "detail" || item.bundle_group_count > 0;
|
|
145
145
|
state.action({
|
|
146
146
|
type: "pisell1.handleOpenProductModal",
|
|
147
147
|
data: {
|
|
@@ -140,6 +140,7 @@ declare const _default: {
|
|
|
140
140
|
'pisell2.text.deposit-delete': string;
|
|
141
141
|
'pisell2.text.deposit-delete-message-title': string;
|
|
142
142
|
'pisell2.text.deposit-delete-message': string;
|
|
143
|
+
'pisell2.text.deposit-paid': string;
|
|
143
144
|
};
|
|
144
145
|
'zh-CN': {
|
|
145
146
|
'pisell2.text.refunded-amount': string;
|
|
@@ -282,6 +283,7 @@ declare const _default: {
|
|
|
282
283
|
'pisell2.text.deposit-delete': string;
|
|
283
284
|
'pisell2.text.deposit-delete-message-title': string;
|
|
284
285
|
'pisell2.text.deposit-delete-message': string;
|
|
286
|
+
'pisell2.text.deposit-paid': string;
|
|
285
287
|
};
|
|
286
288
|
'zh-HK': {
|
|
287
289
|
'pisell2.text.refunded-amount': string;
|
|
@@ -424,6 +426,7 @@ declare const _default: {
|
|
|
424
426
|
'pisell2.text.deposit-delete': string;
|
|
425
427
|
'pisell2.text.deposit-delete-message-title': string;
|
|
426
428
|
'pisell2.text.deposit-delete-message': string;
|
|
429
|
+
'pisell2.text.deposit-paid': string;
|
|
427
430
|
};
|
|
428
431
|
};
|
|
429
432
|
export default _default;
|
|
@@ -172,7 +172,8 @@ var locales_default = {
|
|
|
172
172
|
"pisell2.text.deposit-amount-message3": "Please enter the deposit amount",
|
|
173
173
|
"pisell2.text.deposit-delete": "Delete deposit",
|
|
174
174
|
"pisell2.text.deposit-delete-message-title": "Prompt",
|
|
175
|
-
"pisell2.text.deposit-delete-message": "It cannot be restored after deletion. Please confirm the operation."
|
|
175
|
+
"pisell2.text.deposit-delete-message": "It cannot be restored after deletion. Please confirm the operation.",
|
|
176
|
+
"pisell2.text.deposit-paid": "Deposite paid"
|
|
176
177
|
},
|
|
177
178
|
"zh-CN": {
|
|
178
179
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -328,7 +329,8 @@ var locales_default = {
|
|
|
328
329
|
"pisell2.text.deposit-amount-message3": "请输入定金金额",
|
|
329
330
|
"pisell2.text.deposit-delete": "删除定金",
|
|
330
331
|
"pisell2.text.deposit-delete-message-title": "提示",
|
|
331
|
-
"pisell2.text.deposit-delete-message": "删除后不可恢复,请确认操作"
|
|
332
|
+
"pisell2.text.deposit-delete-message": "删除后不可恢复,请确认操作",
|
|
333
|
+
"pisell2.text.deposit-paid": "已付定金"
|
|
332
334
|
},
|
|
333
335
|
"zh-HK": {
|
|
334
336
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -484,6 +486,7 @@ var locales_default = {
|
|
|
484
486
|
"pisell2.text.deposit-amount-message3": "請輸入定金金額",
|
|
485
487
|
"pisell2.text.deposit-delete": "刪除定金",
|
|
486
488
|
"pisell2.text.deposit-delete-message-title": "提示",
|
|
487
|
-
"pisell2.text.deposit-delete-message": "刪除後不可恢復,請確認操作"
|
|
489
|
+
"pisell2.text.deposit-delete-message": "刪除後不可恢復,請確認操作",
|
|
490
|
+
"pisell2.text.deposit-paid": "已付定金"
|
|
488
491
|
}
|
|
489
492
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -86,7 +87,7 @@ export declare const walkInData: {
|
|
|
86
87
|
id: number;
|
|
87
88
|
nickname: string;
|
|
88
89
|
};
|
|
89
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
90
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
90
91
|
state: FormState;
|
|
91
92
|
} & {
|
|
92
93
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|