@pisell/private-materials 3.0.70 → 3.0.71
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 +9 -9
- package/build/lowcode/view.js +7 -7
- 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/addButton/index.d.ts +1 -0
- package/es/components/booking/components/addButton/index.js +6 -2
- package/es/components/booking/components/customSelect/index.js +4 -2
- package/es/components/booking/components/footer/index.js +1 -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/client/index.js +2 -2
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/index.js +1 -1
- package/es/components/booking/info/model.d.ts +2 -1
- package/es/components/booking/info/notes/index.d.ts +1 -1
- package/es/components/booking/info/notes/index.js +4 -1
- package/es/components/booking/info/pet/index.js +3 -0
- package/es/components/booking/info/service/addService/index.js +6 -2
- package/es/components/booking/info/service/serviceList/index.js +1 -1
- package/es/components/booking/locales.d.ts +3 -3
- package/es/components/booking/locales.js +3 -3
- package/es/components/booking/model.d.ts +3 -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/addButton/index.d.ts +1 -0
- package/lib/components/booking/components/addButton/index.js +7 -4
- package/lib/components/booking/components/customSelect/index.js +3 -2
- package/lib/components/booking/components/footer/index.js +1 -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/client/index.js +2 -2
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/index.js +1 -1
- package/lib/components/booking/info/model.d.ts +2 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -1
- package/lib/components/booking/info/notes/index.js +4 -1
- package/lib/components/booking/info/pet/index.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +5 -1
- package/lib/components/booking/info/service/serviceList/index.js +1 -1
- package/lib/components/booking/locales.d.ts +3 -3
- package/lib/components/booking/locales.js +3 -3
- package/lib/components/booking/model.d.ts +3 -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 +1 -1
|
@@ -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: {
|
|
@@ -20,11 +20,15 @@ var AddButton = function AddButton(_ref) {
|
|
|
20
20
|
subTitle = _ref.subTitle,
|
|
21
21
|
style = _ref.style,
|
|
22
22
|
disabled = _ref.disabled,
|
|
23
|
-
loading = _ref.loading
|
|
23
|
+
loading = _ref.loading,
|
|
24
|
+
_ref$showDisabledMess = _ref.showDisabledMessage,
|
|
25
|
+
showDisabledMessage = _ref$showDisabledMess === void 0 ? true : _ref$showDisabledMess;
|
|
24
26
|
var _onClick = function _onClick() {
|
|
25
27
|
// 禁止点击则 提示先创建客户
|
|
26
28
|
if (disabled) {
|
|
27
|
-
|
|
29
|
+
if (showDisabledMessage) {
|
|
30
|
+
message.warning(locales.getText("pisell2.text.please-select-the-customer-first"));
|
|
31
|
+
}
|
|
28
32
|
} else {
|
|
29
33
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
30
34
|
}
|
|
@@ -68,7 +68,9 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
|
68
68
|
loadMore = props.loadMore,
|
|
69
69
|
modalOpen = props.modalOpen,
|
|
70
70
|
closeCallback = props.closeCallback,
|
|
71
|
-
autoFocus = props.autoFocus
|
|
71
|
+
autoFocus = props.autoFocus,
|
|
72
|
+
_props$showDropDown = props.showDropDown,
|
|
73
|
+
showDropDown = _props$showDropDown === void 0 ? true : _props$showDropDown;
|
|
72
74
|
var searchRef = useRef();
|
|
73
75
|
|
|
74
76
|
// 当前选择的值
|
|
@@ -356,7 +358,7 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
|
356
358
|
return /*#__PURE__*/React.createElement("div", {
|
|
357
359
|
className: classNames("pisell-lowcode__custom-select-card", previewItemClassName),
|
|
358
360
|
key: d[rowKey]
|
|
359
|
-
}, previewItemRender === null || previewItemRender === void 0 ? void 0 : previewItemRender(d), /*#__PURE__*/React.createElement("div", {
|
|
361
|
+
}, previewItemRender === null || previewItemRender === void 0 ? void 0 : previewItemRender(d), showDropDown && /*#__PURE__*/React.createElement("div", {
|
|
360
362
|
onClick: function onClick(e) {
|
|
361
363
|
e.preventDefault();
|
|
362
364
|
e.stopPropagation();
|
|
@@ -1104,7 +1104,7 @@ var Footer = function Footer(props) {
|
|
|
1104
1104
|
className: "order-total-item-label order-total-item-label-bold"
|
|
1105
1105
|
}, locales.getText("pisell2.text.refunded-amount")), /*#__PURE__*/React.createElement("span", {
|
|
1106
1106
|
className: "order-total-item-value"
|
|
1107
|
-
}, formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))) : null) : null), /*#__PURE__*/React.createElement("div", {
|
|
1107
|
+
}, formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))) : null) : null), !(state !== null && state !== void 0 && state.disableEventBookingEdit) && /*#__PURE__*/React.createElement("div", {
|
|
1108
1108
|
className: "pisell-lowcode__booking-footer-buttons"
|
|
1109
1109
|
}, /*#__PURE__*/React.createElement(FooterMenus, {
|
|
1110
1110
|
items: moreButton,
|
|
@@ -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;
|
|
@@ -367,7 +367,7 @@ var Info = function Info() {
|
|
|
367
367
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
368
368
|
className: "pisell-lowcode__booking-client",
|
|
369
369
|
onClick: function onClick() {
|
|
370
|
-
if (!isWalkIn) {
|
|
370
|
+
if (!isWalkIn || state !== null && state !== void 0 && state.disableEventBookingEdit) {
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
373
|
handleOpenClientModal();
|
|
@@ -390,7 +390,7 @@ var Info = function Info() {
|
|
|
390
390
|
className: "pisell-lowcode__booking-client-info-email"
|
|
391
391
|
}, (_state$client$value5 = state.client.value) === null || _state$client$value5 === void 0 ? void 0 : _state$client$value5.email) : null, (_state$client$value6 = state.client.value) !== null && _state$client$value6 !== void 0 && _state$client$value6.phone ? /*#__PURE__*/React.createElement("div", {
|
|
392
392
|
className: "pisell-lowcode__booking-client-info-phone"
|
|
393
|
-
}, (_state$client$value7 = state.client.value) === null || _state$client$value7 === void 0 ? void 0 : _state$client$value7.phone) : null)), /*#__PURE__*/React.createElement("div", {
|
|
393
|
+
}, (_state$client$value7 = state.client.value) === null || _state$client$value7 === void 0 ? void 0 : _state$client$value7.phone) : null)), !(state !== null && state !== void 0 && state.disableEventBookingEdit) && /*#__PURE__*/React.createElement("div", {
|
|
394
394
|
className: "pisell-lowcode__booking-client-info-right"
|
|
395
395
|
}, isWalkIn ? /*#__PURE__*/React.createElement(PlusCircle, {
|
|
396
396
|
className: "pisell-lowcode__booking-client-add-icon"
|
|
@@ -85,7 +85,7 @@ var Info = Provider(function (props) {
|
|
|
85
85
|
};
|
|
86
86
|
var header = useMemo(function () {
|
|
87
87
|
if ((globalState === null || globalState === void 0 ? void 0 : globalState.renderType) === "eventBooking") {
|
|
88
|
-
return locales.getText("pisell2.text.enroll");
|
|
88
|
+
return locales.getText("pisell2.text.enroll.detail");
|
|
89
89
|
}
|
|
90
90
|
return globalState !== null && globalState !== void 0 && globalState.bookingId ? /*#__PURE__*/React.createElement(Header, {
|
|
91
91
|
state: modal.state,
|
|
@@ -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: {
|
|
@@ -63,6 +63,9 @@ var Notes = function Notes() {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
+
if (orderNote.length === 0 && modal.state.disableEventBookingEdit) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
66
69
|
return /*#__PURE__*/React.createElement(NoteBlock, {
|
|
67
70
|
noteType: "order",
|
|
68
71
|
maxLength: 1,
|
|
@@ -71,7 +74,7 @@ var Notes = function Notes() {
|
|
|
71
74
|
notes: orderNote,
|
|
72
75
|
apis: modal === null || modal === void 0 ? void 0 : (_modal$state6 = modal.state) === null || _modal$state6 === void 0 ? void 0 : _modal$state6.apis,
|
|
73
76
|
placeholder: locales.getText("pisell2.text.add-order-notes"),
|
|
74
|
-
isEdit:
|
|
77
|
+
isEdit: false,
|
|
75
78
|
onChange: function onChange(e, type, noteType) {
|
|
76
79
|
noteChange({
|
|
77
80
|
note: e,
|
|
@@ -443,6 +443,7 @@ var Pet = function Pet() {
|
|
|
443
443
|
closeCallback: function closeCallback() {
|
|
444
444
|
searchChange("");
|
|
445
445
|
},
|
|
446
|
+
showDropDown: !state.disableEventBookingEdit,
|
|
446
447
|
searchChange: searchChange,
|
|
447
448
|
searchValue: params.search,
|
|
448
449
|
loadMore: loadMore,
|
|
@@ -487,6 +488,8 @@ var Pet = function Pet() {
|
|
|
487
488
|
style: {
|
|
488
489
|
margin: 0
|
|
489
490
|
},
|
|
491
|
+
disabled: state.disableEventBookingEdit,
|
|
492
|
+
showDisabledMessage: !state.disableEventBookingEdit,
|
|
490
493
|
addCallback: function () {
|
|
491
494
|
var _addCallback2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
492
495
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -219,7 +219,6 @@ var Info = function Info() {
|
|
|
219
219
|
is_eject: isEject ? 1 : 0
|
|
220
220
|
},
|
|
221
221
|
callback: function callback(e) {
|
|
222
|
-
var _state$service;
|
|
223
222
|
var cacheItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
224
223
|
product_id: item.id,
|
|
225
224
|
_id: getUniqueId(),
|
|
@@ -248,7 +247,12 @@ var Info = function Info() {
|
|
|
248
247
|
cacheItem: cacheItem,
|
|
249
248
|
state: state
|
|
250
249
|
});
|
|
251
|
-
|
|
250
|
+
if (state.renderType === 'eventBooking') {
|
|
251
|
+
cacheItem.autoClose = false;
|
|
252
|
+
} else {
|
|
253
|
+
var _state$service;
|
|
254
|
+
cacheItem.autoClose = !_isEdit && (cacheItem._extend.resource || cacheItem._extend.resource === 0 || (((_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.resourcesOrigin) || []).length === 1);
|
|
255
|
+
}
|
|
252
256
|
dispatch({
|
|
253
257
|
type: "setService",
|
|
254
258
|
payload: {
|
|
@@ -27,7 +27,7 @@ var ServiceList = function ServiceList() {
|
|
|
27
27
|
maxLimit: locales.getText("pisell2.text.status.service-error-3")
|
|
28
28
|
};
|
|
29
29
|
var handleEditService = function handleEditService(item) {
|
|
30
|
-
if (state.disabledEdit) {
|
|
30
|
+
if (state.disabledEdit || state.disableEventBookingEdit) {
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
dispatch({
|
|
@@ -40,7 +40,7 @@ declare const _default: {
|
|
|
40
40
|
'pisell2.text.add-notes': string;
|
|
41
41
|
'pisell2.text.notes': string;
|
|
42
42
|
'pisell2.text.new-appointment': string;
|
|
43
|
-
'pisell2.text.enroll': string;
|
|
43
|
+
'pisell2.text.enroll.detail': string;
|
|
44
44
|
'pisell2.text.add-products-successfully': string;
|
|
45
45
|
'pisell2.text.add': string;
|
|
46
46
|
'pisell2.text.created-successfully': string;
|
|
@@ -194,7 +194,7 @@ declare const _default: {
|
|
|
194
194
|
'pisell2.text.add-notes': string;
|
|
195
195
|
'pisell2.text.notes': string;
|
|
196
196
|
'pisell2.text.new-appointment': string;
|
|
197
|
-
'pisell2.text.enroll': string;
|
|
197
|
+
'pisell2.text.enroll.detail': string;
|
|
198
198
|
'pisell2.text.add-products-successfully': string;
|
|
199
199
|
'pisell2.text.refund': string;
|
|
200
200
|
'pisell2.text.refund-amount': string;
|
|
@@ -343,7 +343,7 @@ declare const _default: {
|
|
|
343
343
|
'pisell2.text.add-notes': string;
|
|
344
344
|
'pisell2.text.notes': string;
|
|
345
345
|
'pisell2.text.new-appointment': string;
|
|
346
|
-
'pisell2.text.enroll': string;
|
|
346
|
+
'pisell2.text.enroll.detail': string;
|
|
347
347
|
'pisell2.text.add-products-successfully': string;
|
|
348
348
|
'pisell2.text.add': string;
|
|
349
349
|
'pisell2.text.created-successfully': string;
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
'pisell2.text.add-notes': 'Add Notes',
|
|
41
41
|
'pisell2.text.notes': 'Notes',
|
|
42
42
|
'pisell2.text.new-appointment': 'New appointment',
|
|
43
|
-
'pisell2.text.enroll': '
|
|
43
|
+
'pisell2.text.enroll.detail': 'Details',
|
|
44
44
|
'pisell2.text.add-products-successfully': 'Add products successfully',
|
|
45
45
|
'pisell2.text.add': 'Add',
|
|
46
46
|
'pisell2.text.created-successfully': 'Appointment created',
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
209
209
|
'pisell2.text.add-notes': '添加备注',
|
|
210
210
|
'pisell2.text.notes': '备注',
|
|
211
211
|
'pisell2.text.new-appointment': '新预约',
|
|
212
|
-
'pisell2.text.enroll': '
|
|
212
|
+
'pisell2.text.enroll.detail': '详情',
|
|
213
213
|
'pisell2.text.add-products-successfully': '添加商品成功',
|
|
214
214
|
'pisell2.text.refund': '退款',
|
|
215
215
|
'pisell2.text.refund-amount': '退款金额',
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
378
378
|
'pisell2.text.add-notes': '添加備注',
|
|
379
379
|
'pisell2.text.notes': '備注',
|
|
380
380
|
'pisell2.text.new-appointment': '新預約',
|
|
381
|
-
'pisell2.text.enroll': '
|
|
381
|
+
'pisell2.text.enroll.detail': '詳情',
|
|
382
382
|
'pisell2.text.add-products-successfully': '添加商品成功',
|
|
383
383
|
//
|
|
384
384
|
'pisell2.text.add': '添加',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -85,12 +86,13 @@ export interface FormState {
|
|
|
85
86
|
end_time: string;
|
|
86
87
|
productIds: number[];
|
|
87
88
|
};
|
|
89
|
+
disableEventBookingEdit?: boolean;
|
|
88
90
|
}
|
|
89
91
|
export declare const walkInData: {
|
|
90
92
|
id: number;
|
|
91
93
|
nickname: string;
|
|
92
94
|
};
|
|
93
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
95
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
94
96
|
state: FormState;
|
|
95
97
|
} & {
|
|
96
98
|
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: {
|
|
@@ -46,13 +46,16 @@ var AddButton = ({
|
|
|
46
46
|
subTitle,
|
|
47
47
|
style,
|
|
48
48
|
disabled,
|
|
49
|
-
loading
|
|
49
|
+
loading,
|
|
50
|
+
showDisabledMessage = true
|
|
50
51
|
}) => {
|
|
51
52
|
const _onClick = () => {
|
|
52
53
|
if (disabled) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
if (showDisabledMessage) {
|
|
55
|
+
import_antd.message.warning(
|
|
56
|
+
import_utils.locales.getText("pisell2.text.please-select-the-customer-first")
|
|
57
|
+
);
|
|
58
|
+
}
|
|
56
59
|
} else {
|
|
57
60
|
onClick == null ? void 0 : onClick();
|
|
58
61
|
}
|
|
@@ -72,7 +72,8 @@ var CustomSelect = (props, ref) => {
|
|
|
72
72
|
loadMore,
|
|
73
73
|
modalOpen,
|
|
74
74
|
closeCallback,
|
|
75
|
-
autoFocus
|
|
75
|
+
autoFocus,
|
|
76
|
+
showDropDown = true
|
|
76
77
|
} = props;
|
|
77
78
|
const searchRef = (0, import_react.useRef)();
|
|
78
79
|
const [_value, set_value] = (0, import_react.useState)([]);
|
|
@@ -206,7 +207,7 @@ var CustomSelect = (props, ref) => {
|
|
|
206
207
|
key: d[rowKey]
|
|
207
208
|
},
|
|
208
209
|
previewItemRender == null ? void 0 : previewItemRender(d),
|
|
209
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
210
|
+
showDropDown && /* @__PURE__ */ import_react.default.createElement(
|
|
210
211
|
"div",
|
|
211
212
|
{
|
|
212
213
|
onClick: (e) => {
|
|
@@ -748,7 +748,7 @@ var Footer = (props) => {
|
|
|
748
748
|
2,
|
|
749
749
|
(state == null ? void 0 : state.amountSymbol) || "$"
|
|
750
750
|
))) : null) : null
|
|
751
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-buttons" }, /* @__PURE__ */ import_react.default.createElement(
|
|
751
|
+
), !(state == null ? void 0 : state.disableEventBookingEdit) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-buttons" }, /* @__PURE__ */ import_react.default.createElement(
|
|
752
752
|
import_FooterMenus.default,
|
|
753
753
|
{
|
|
754
754
|
items: moreButton,
|
|
@@ -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;
|
|
@@ -272,7 +272,7 @@ var Info = () => {
|
|
|
272
272
|
{
|
|
273
273
|
className: "pisell-lowcode__booking-client",
|
|
274
274
|
onClick: () => {
|
|
275
|
-
if (!isWalkIn) {
|
|
275
|
+
if (!isWalkIn || (state == null ? void 0 : state.disableEventBookingEdit)) {
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
278
|
handleOpenClientModal();
|
|
@@ -286,7 +286,7 @@ var Info = () => {
|
|
|
286
286
|
icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-name" }, getNickname(state.client.value)), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_c = state.client.value) == null ? void 0 : _c.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-email" }, (_d = state.client.value) == null ? void 0 : _d.email) : null, ((_e = state.client.value) == null ? void 0 : _e.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-phone" }, (_f = state.client.value) == null ? void 0 : _f.phone) : null)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-right" }, isWalkIn ? /* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__booking-client-add-icon" }) : /* @__PURE__ */ import_react.default.createElement(
|
|
289
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-name" }, getNickname(state.client.value)), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in")) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_c = state.client.value) == null ? void 0 : _c.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-email" }, (_d = state.client.value) == null ? void 0 : _d.email) : null, ((_e = state.client.value) == null ? void 0 : _e.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-phone" }, (_f = state.client.value) == null ? void 0 : _f.phone) : null)), !(state == null ? void 0 : state.disableEventBookingEdit) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-right" }, isWalkIn ? /* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__booking-client-add-icon" }) : /* @__PURE__ */ import_react.default.createElement(
|
|
290
290
|
import_antd.Dropdown,
|
|
291
291
|
{
|
|
292
292
|
menu: {
|
|
@@ -107,7 +107,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
107
107
|
};
|
|
108
108
|
const header = (0, import_react.useMemo)(() => {
|
|
109
109
|
if ((globalState == null ? void 0 : globalState.renderType) === "eventBooking") {
|
|
110
|
-
return import_utils.locales.getText("pisell2.text.enroll");
|
|
110
|
+
return import_utils.locales.getText("pisell2.text.enroll.detail");
|
|
111
111
|
}
|
|
112
112
|
return (globalState == null ? void 0 : globalState.bookingId) ? /* @__PURE__ */ import_react.default.createElement(import_header.default, { state: modal.state, dispatch: modal.dispatch }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { height: 20 } });
|
|
113
113
|
}, [
|
|
@@ -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: {
|
|
@@ -88,6 +88,9 @@ var Notes = () => {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
+
if (orderNote.length === 0 && modal.state.disableEventBookingEdit) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
91
94
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
92
95
|
import_NoteBlock.default,
|
|
93
96
|
{
|
|
@@ -98,7 +101,7 @@ var Notes = () => {
|
|
|
98
101
|
notes: orderNote,
|
|
99
102
|
apis: (_c = modal == null ? void 0 : modal.state) == null ? void 0 : _c.apis,
|
|
100
103
|
placeholder: import_utils.locales.getText("pisell2.text.add-order-notes"),
|
|
101
|
-
isEdit:
|
|
104
|
+
isEdit: false,
|
|
102
105
|
onChange: (e, type, noteType) => {
|
|
103
106
|
noteChange({
|
|
104
107
|
note: e,
|
|
@@ -322,6 +322,7 @@ var Pet = () => {
|
|
|
322
322
|
closeCallback: () => {
|
|
323
323
|
searchChange("");
|
|
324
324
|
},
|
|
325
|
+
showDropDown: !state.disableEventBookingEdit,
|
|
325
326
|
searchChange,
|
|
326
327
|
searchValue: params.search,
|
|
327
328
|
loadMore,
|
|
@@ -363,6 +364,8 @@ var Pet = () => {
|
|
|
363
364
|
},
|
|
364
365
|
addButtonProps: {
|
|
365
366
|
style: { margin: 0 },
|
|
367
|
+
disabled: state.disableEventBookingEdit,
|
|
368
|
+
showDisabledMessage: !state.disableEventBookingEdit,
|
|
366
369
|
addCallback: async () => {
|
|
367
370
|
addCallback();
|
|
368
371
|
}
|
|
@@ -186,7 +186,11 @@ var Info = () => {
|
|
|
186
186
|
cacheItem.new = 0;
|
|
187
187
|
}
|
|
188
188
|
cacheItem._extend = (0, import_utils2.getProductExtend)({ cacheItem, state });
|
|
189
|
-
|
|
189
|
+
if (state.renderType === "eventBooking") {
|
|
190
|
+
cacheItem.autoClose = false;
|
|
191
|
+
} else {
|
|
192
|
+
cacheItem.autoClose = !_isEdit && (cacheItem._extend.resource || cacheItem._extend.resource === 0 || (((_b2 = state.service) == null ? void 0 : _b2.resourcesOrigin) || []).length === 1);
|
|
193
|
+
}
|
|
190
194
|
dispatch({
|
|
191
195
|
type: "setService",
|
|
192
196
|
payload: {
|
|
@@ -47,7 +47,7 @@ var ServiceList = () => {
|
|
|
47
47
|
maxLimit: import_utils.locales.getText("pisell2.text.status.service-error-3")
|
|
48
48
|
};
|
|
49
49
|
const handleEditService = (item) => {
|
|
50
|
-
if (state.disabledEdit) {
|
|
50
|
+
if (state.disabledEdit || state.disableEventBookingEdit) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
dispatch({
|
|
@@ -40,7 +40,7 @@ declare const _default: {
|
|
|
40
40
|
'pisell2.text.add-notes': string;
|
|
41
41
|
'pisell2.text.notes': string;
|
|
42
42
|
'pisell2.text.new-appointment': string;
|
|
43
|
-
'pisell2.text.enroll': string;
|
|
43
|
+
'pisell2.text.enroll.detail': string;
|
|
44
44
|
'pisell2.text.add-products-successfully': string;
|
|
45
45
|
'pisell2.text.add': string;
|
|
46
46
|
'pisell2.text.created-successfully': string;
|
|
@@ -194,7 +194,7 @@ declare const _default: {
|
|
|
194
194
|
'pisell2.text.add-notes': string;
|
|
195
195
|
'pisell2.text.notes': string;
|
|
196
196
|
'pisell2.text.new-appointment': string;
|
|
197
|
-
'pisell2.text.enroll': string;
|
|
197
|
+
'pisell2.text.enroll.detail': string;
|
|
198
198
|
'pisell2.text.add-products-successfully': string;
|
|
199
199
|
'pisell2.text.refund': string;
|
|
200
200
|
'pisell2.text.refund-amount': string;
|
|
@@ -343,7 +343,7 @@ declare const _default: {
|
|
|
343
343
|
'pisell2.text.add-notes': string;
|
|
344
344
|
'pisell2.text.notes': string;
|
|
345
345
|
'pisell2.text.new-appointment': string;
|
|
346
|
-
'pisell2.text.enroll': string;
|
|
346
|
+
'pisell2.text.enroll.detail': string;
|
|
347
347
|
'pisell2.text.add-products-successfully': string;
|
|
348
348
|
'pisell2.text.add': string;
|
|
349
349
|
'pisell2.text.created-successfully': string;
|