@pisell/private-materials 3.0.61 → 3.0.62
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/footer/index.js +11 -10
- package/es/components/booking/deposit/index.js +2 -1
- 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/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/model.d.ts +2 -1
- package/lib/components/booking/components/footer/index.js +3 -2
- package/lib/components/booking/deposit/index.js +2 -1
- 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/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 +3 -3
|
@@ -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: {
|
|
@@ -40,7 +40,7 @@ import { DownOutlined } from "@ant-design/icons";
|
|
|
40
40
|
* @Date: 2024-01-30 16:51
|
|
41
41
|
*/
|
|
42
42
|
var Footer = function Footer(props) {
|
|
43
|
-
var _context$appHelper, _store$getState, _store$getState$call, _store$getState$call$, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$addons2, _state$addons4, _state$
|
|
43
|
+
var _context$appHelper, _store$getState, _store$getState$call, _store$getState$call$, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$addons2, _state$addons4, _state$bookingDetail11;
|
|
44
44
|
var state = props.state,
|
|
45
45
|
buttons = props.buttons,
|
|
46
46
|
dispatch = props.dispatch,
|
|
@@ -444,7 +444,7 @@ var Footer = function Footer(props) {
|
|
|
444
444
|
}, [isEdit, checkoutLoading, isDisabled, state, source]);
|
|
445
445
|
var handleMenuClick = /*#__PURE__*/function () {
|
|
446
446
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e) {
|
|
447
|
-
var id, customer, res, _state$bookingDetail;
|
|
447
|
+
var id, customer, res, _state$bookingDetail, _state$bookingDetail2;
|
|
448
448
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
449
449
|
while (1) switch (_context6.prev = _context6.next) {
|
|
450
450
|
case 0:
|
|
@@ -473,7 +473,8 @@ var Footer = function Footer(props) {
|
|
|
473
473
|
id: id,
|
|
474
474
|
is_deposit: state.bookingDetail.is_deposit || Number((_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.deposit_amount),
|
|
475
475
|
deposit_payment_time: state.bookingDetail.deposit_payment_time,
|
|
476
|
-
customer: customer
|
|
476
|
+
customer: customer,
|
|
477
|
+
contacts: (_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.contacts
|
|
477
478
|
},
|
|
478
479
|
callback: function callback() {}
|
|
479
480
|
});
|
|
@@ -586,10 +587,10 @@ var Footer = function Footer(props) {
|
|
|
586
587
|
* @Date: 2024-01-30 16:58
|
|
587
588
|
*/
|
|
588
589
|
var isCheckout = useMemo(function () {
|
|
589
|
-
var _state$
|
|
590
|
+
var _state$bookingDetail3, _state$bookingDetail4, _state$bookingDetail5;
|
|
590
591
|
var list = ["unfulfilled", "partially_paid", "unpaid", "payment_processing"];
|
|
591
592
|
// (支付状态 = 已支付 || 部分付款 || 未付款 || 支付处理中) && 预约状态 !== 已取消
|
|
592
|
-
if (!state.bookingId || ((_state$
|
|
593
|
+
if (!state.bookingId || ((_state$bookingDetail3 = state.bookingDetail) === null || _state$bookingDetail3 === void 0 ? void 0 : (_state$bookingDetail4 = _state$bookingDetail3.bookings) === null || _state$bookingDetail4 === void 0 ? void 0 : _state$bookingDetail4.appointment_status) !== "cancelled" && list.includes(state === null || state === void 0 ? void 0 : (_state$bookingDetail5 = state.bookingDetail) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.payment_status) && !state.disabledEdit) {
|
|
593
594
|
return true;
|
|
594
595
|
} else {
|
|
595
596
|
if (total.notPaidAmount > 0) {
|
|
@@ -664,8 +665,8 @@ var Footer = function Footer(props) {
|
|
|
664
665
|
* 是否只有定金支付
|
|
665
666
|
*/
|
|
666
667
|
var isOnlyDeposit = useMemo(function () {
|
|
667
|
-
var _state$
|
|
668
|
-
if (state !== null && state !== void 0 && (_state$
|
|
668
|
+
var _state$bookingDetail6, _state$bookingDetail7, _state$bookingDetail8, _state$bookingDetail9;
|
|
669
|
+
if (state !== null && state !== void 0 && (_state$bookingDetail6 = state.bookingDetail) !== null && _state$bookingDetail6 !== void 0 && _state$bookingDetail6.deposit_payment_time && state !== null && state !== void 0 && (_state$bookingDetail7 = state.bookingDetail) !== null && _state$bookingDetail7 !== void 0 && (_state$bookingDetail8 = _state$bookingDetail7.payment_types) !== null && _state$bookingDetail8 !== void 0 && (_state$bookingDetail9 = _state$bookingDetail8.every) !== null && _state$bookingDetail9 !== void 0 && _state$bookingDetail9.call(_state$bookingDetail8, function (item) {
|
|
669
670
|
return item === 'deposit';
|
|
670
671
|
})) {
|
|
671
672
|
return true;
|
|
@@ -686,8 +687,8 @@ var Footer = function Footer(props) {
|
|
|
686
687
|
|
|
687
688
|
// 只有定金支付时,直接展示
|
|
688
689
|
if (isOnlyDeposit) {
|
|
689
|
-
var _state$
|
|
690
|
-
return "".concat(locales.getText("pisell2.text.deposit-paid"), " ").concat(formatAmount(state === null || state === void 0 ? void 0 : (_state$
|
|
690
|
+
var _state$bookingDetail10;
|
|
691
|
+
return "".concat(locales.getText("pisell2.text.deposit-paid"), " ").concat(formatAmount(state === null || state === void 0 ? void 0 : (_state$bookingDetail10 = state.bookingDetail) === null || _state$bookingDetail10 === void 0 ? void 0 : _state$bookingDetail10.deposit_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"), " ").concat(total.duration ? "(".concat(total.duration, ")") : "");
|
|
691
692
|
}
|
|
692
693
|
|
|
693
694
|
// 有退款金额时, 直接展示 退款:$8.00
|
|
@@ -811,7 +812,7 @@ var Footer = function Footer(props) {
|
|
|
811
812
|
className: "order-total-item-label"
|
|
812
813
|
}, locales.getText("pisell1.text.subtotal")), /*#__PURE__*/React.createElement("span", {
|
|
813
814
|
className: "order-total-item-value"
|
|
814
|
-
}, formatAmount(total.productAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), (((_state$
|
|
815
|
+
}, formatAmount(total.productAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), (((_state$bookingDetail11 = state.bookingDetail) === null || _state$bookingDetail11 === void 0 ? void 0 : _state$bookingDetail11.surcharge) || []).map(function (d) {
|
|
815
816
|
return /*#__PURE__*/React.createElement("div", {
|
|
816
817
|
className: "order-total-item",
|
|
817
818
|
key: d.id
|
|
@@ -54,7 +54,8 @@ var Deposit = function Deposit(props) {
|
|
|
54
54
|
id: id,
|
|
55
55
|
is_deposit: 1,
|
|
56
56
|
deposit_payment_time: bookingDetail.deposit_payment_time,
|
|
57
|
-
customer: bookingDetail.customer
|
|
57
|
+
customer: bookingDetail.customer,
|
|
58
|
+
contacts: bookingDetail === null || bookingDetail === void 0 ? void 0 : bookingDetail.contacts
|
|
58
59
|
},
|
|
59
60
|
callback: function callback() {}
|
|
60
61
|
});
|
|
@@ -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: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -89,7 +90,7 @@ export declare const walkInData: {
|
|
|
89
90
|
id: number;
|
|
90
91
|
nickname: string;
|
|
91
92
|
};
|
|
92
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
93
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
93
94
|
state: FormState;
|
|
94
95
|
} & {
|
|
95
96
|
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: {
|
|
@@ -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: {
|
|
@@ -238,7 +238,7 @@ var Footer = (props) => {
|
|
|
238
238
|
);
|
|
239
239
|
}, [isEdit, checkoutLoading, isDisabled, state, source]);
|
|
240
240
|
const handleMenuClick = async (e) => {
|
|
241
|
-
var _a2;
|
|
241
|
+
var _a2, _b2;
|
|
242
242
|
let id = state.bookingId;
|
|
243
243
|
let customer = state.bookingDetail.customer;
|
|
244
244
|
if (isEdit) {
|
|
@@ -253,7 +253,8 @@ var Footer = (props) => {
|
|
|
253
253
|
id,
|
|
254
254
|
is_deposit: state.bookingDetail.is_deposit || Number((_a2 = state.bookingDetail) == null ? void 0 : _a2.deposit_amount),
|
|
255
255
|
deposit_payment_time: state.bookingDetail.deposit_payment_time,
|
|
256
|
-
customer
|
|
256
|
+
customer,
|
|
257
|
+
contacts: (_b2 = state.bookingDetail) == null ? void 0 : _b2.contacts
|
|
257
258
|
},
|
|
258
259
|
callback: () => {
|
|
259
260
|
}
|
|
@@ -61,7 +61,8 @@ var Deposit = (props) => {
|
|
|
61
61
|
id,
|
|
62
62
|
is_deposit: 1,
|
|
63
63
|
deposit_payment_time: bookingDetail.deposit_payment_time,
|
|
64
|
-
customer: bookingDetail.customer
|
|
64
|
+
customer: bookingDetail.customer,
|
|
65
|
+
contacts: bookingDetail == null ? void 0 : bookingDetail.contacts
|
|
65
66
|
},
|
|
66
67
|
callback: () => {
|
|
67
68
|
}
|
|
@@ -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: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -89,7 +90,7 @@ export declare const walkInData: {
|
|
|
89
90
|
id: number;
|
|
90
91
|
nickname: string;
|
|
91
92
|
};
|
|
92
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
93
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
93
94
|
state: FormState;
|
|
94
95
|
} & {
|
|
95
96
|
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: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.62",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"ahooks": "^3.7.6",
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
|
-
"@pisell/date-picker": "1.0.69",
|
|
62
61
|
"@pisell/icon": "0.0.8",
|
|
63
|
-
"@pisell/utils": "1.0.24"
|
|
62
|
+
"@pisell/utils": "1.0.24",
|
|
63
|
+
"@pisell/date-picker": "1.0.69"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0",
|