@pisell/private-materials 6.6.1 → 6.6.3
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 +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -11
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +37 -39
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +16 -30
- package/package.json +1 -1
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
4
3
|
order: any;
|
|
@@ -29,11 +28,4 @@ export interface PayGroup {
|
|
|
29
28
|
pay_number?: string;
|
|
30
29
|
_order: any;
|
|
31
30
|
}
|
|
32
|
-
export declare const Provider:
|
|
33
|
-
state: FormState;
|
|
34
|
-
} & {
|
|
35
|
-
dispatch: (params: {
|
|
36
|
-
type: string;
|
|
37
|
-
payload: any;
|
|
38
|
-
}) => void;
|
|
39
|
-
}>;
|
|
31
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -313,18 +313,19 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
313
313
|
cacheItem.autoClose = false;
|
|
314
314
|
}
|
|
315
315
|
if (!cacheItem.autoClose) {
|
|
316
|
-
_context2.next =
|
|
316
|
+
_context2.next = 37;
|
|
317
317
|
break;
|
|
318
318
|
}
|
|
319
319
|
cacheItem.autoClose = false;
|
|
320
320
|
cacheItem._serviceKey = genServiceKey(cacheItem);
|
|
321
|
+
cacheItem._holderKey = genHolderKey(cacheItem);
|
|
321
322
|
if (!isMultiDay) {
|
|
322
|
-
_context2.next =
|
|
323
|
+
_context2.next = 30;
|
|
323
324
|
break;
|
|
324
325
|
}
|
|
325
|
-
_context2.next =
|
|
326
|
+
_context2.next = 30;
|
|
326
327
|
return getMultiDayCacheItem();
|
|
327
|
-
case
|
|
328
|
+
case 30:
|
|
328
329
|
_addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, stateRef.current, isMultiDay), _list = _addService2.list, quantity = _addService2.quantity;
|
|
329
330
|
if (!notShowToast) {
|
|
330
331
|
handleAddToast(cacheItem.title, quantity || 1);
|
|
@@ -345,7 +346,8 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
345
346
|
price: s === null || s === void 0 ? void 0 : s.price,
|
|
346
347
|
_id: s === null || s === void 0 ? void 0 : s._id,
|
|
347
348
|
_key: s === null || s === void 0 ? void 0 : s._key,
|
|
348
|
-
_serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey
|
|
349
|
+
_serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey,
|
|
350
|
+
_holderKey: s === null || s === void 0 ? void 0 : s._holderKey
|
|
349
351
|
};
|
|
350
352
|
});
|
|
351
353
|
sendData = {
|
|
@@ -377,17 +379,17 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
377
379
|
changeService: false
|
|
378
380
|
}
|
|
379
381
|
});
|
|
380
|
-
_context2.next =
|
|
382
|
+
_context2.next = 43;
|
|
381
383
|
break;
|
|
382
|
-
case
|
|
384
|
+
case 37:
|
|
383
385
|
(_window$openBookingEd = (_window = window).openBookingEditModal) === null || _window$openBookingEd === void 0 || _window$openBookingEd.call(_window);
|
|
384
386
|
if (!isMultiDay) {
|
|
385
|
-
_context2.next =
|
|
387
|
+
_context2.next = 41;
|
|
386
388
|
break;
|
|
387
389
|
}
|
|
388
|
-
_context2.next =
|
|
390
|
+
_context2.next = 41;
|
|
389
391
|
return getMultiDayCacheItem(true);
|
|
390
|
-
case
|
|
392
|
+
case 41:
|
|
391
393
|
dispatch({
|
|
392
394
|
type: 'setService',
|
|
393
395
|
payload: {
|
|
@@ -398,7 +400,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
398
400
|
}
|
|
399
401
|
});
|
|
400
402
|
onEdit === null || onEdit === void 0 || onEdit(cacheItem);
|
|
401
|
-
case
|
|
403
|
+
case 43:
|
|
402
404
|
case "end":
|
|
403
405
|
return _context2.stop();
|
|
404
406
|
}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
addWalletCard: any;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
walletDetailState: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
-
}
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
-
state: RechargeState;
|
|
8
|
-
} & {
|
|
9
|
-
dispatch: (params: {
|
|
10
|
-
type: string;
|
|
11
|
-
payload: any;
|
|
12
|
-
}) => void;
|
|
13
|
-
}>;
|
|
14
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
selectedGiftOptionId: string | null;
|
|
4
|
-
cardList: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
}>;
|
|
9
|
-
selectedItem: {
|
|
10
|
-
id?: string;
|
|
11
|
-
gift_price?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
variant_id?: string;
|
|
15
|
-
};
|
|
16
|
-
productId?: string;
|
|
17
|
-
detailId?: string;
|
|
18
|
-
total: string | number;
|
|
19
|
-
rechargeModalOpen: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
-
state: RechargeState;
|
|
23
|
-
} & {
|
|
24
|
-
dispatch: (params: {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
|
@@ -14,6 +14,7 @@ import dayjs from 'dayjs';
|
|
|
14
14
|
import { DatePicker, Page } from '@pisell/materials';
|
|
15
15
|
import { Select, Form } from 'antd';
|
|
16
16
|
import { locales } from '@pisell/utils';
|
|
17
|
+
import { disabledDate } from "../../components/booking/info/dateRange";
|
|
17
18
|
import "./MultiDayTimeSelect.less";
|
|
18
19
|
|
|
19
20
|
// 类型断言以支持RangePicker
|
|
@@ -74,7 +75,7 @@ var MultiDayTimeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
74
75
|
return isEn ? 'DD/MM/YYYY' : 'YYYY-MM-DD';
|
|
75
76
|
}, [locale]);
|
|
76
77
|
|
|
77
|
-
// 生成时长选项(1-maxDays
|
|
78
|
+
// 生成时长选项(1-maxDays天),如果当前选中值超过maxDays,追加一个禁用的选项
|
|
78
79
|
var durationOptions = useMemo(function () {
|
|
79
80
|
var options = [];
|
|
80
81
|
for (var i = 1; i <= maxDays; i++) {
|
|
@@ -83,8 +84,17 @@ var MultiDayTimeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
83
84
|
value: i
|
|
84
85
|
});
|
|
85
86
|
}
|
|
87
|
+
// 如果当前选中的duration超过maxDays,追加一个禁用的选项用于显示
|
|
88
|
+
var currentDuration = internalValue === null || internalValue === void 0 ? void 0 : internalValue.duration;
|
|
89
|
+
if (currentDuration && currentDuration > maxDays) {
|
|
90
|
+
options.push({
|
|
91
|
+
label: "".concat(currentDuration, " ").concat(currentDuration === 1 ? locale === 'en' ? 'day' : '天' : locale === 'en' ? 'days' : '天'),
|
|
92
|
+
value: currentDuration,
|
|
93
|
+
disabled: true
|
|
94
|
+
});
|
|
95
|
+
}
|
|
86
96
|
return options;
|
|
87
|
-
}, [maxDays, locale]);
|
|
97
|
+
}, [maxDays, locale, internalValue === null || internalValue === void 0 ? void 0 : internalValue.duration]);
|
|
88
98
|
|
|
89
99
|
// 初始化内部值
|
|
90
100
|
useEffect(function () {
|
|
@@ -129,20 +139,25 @@ var MultiDayTimeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
129
139
|
var finalDuration = days;
|
|
130
140
|
|
|
131
141
|
// 如果超过maxDays,调整为开始日期+maxDays,但保留结束日期的时间
|
|
132
|
-
if (days > maxDays) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
// if (days > maxDays) {
|
|
143
|
+
// // 获取结束日期的时间部分(时、分、秒、毫秒)
|
|
144
|
+
// const endTime = {
|
|
145
|
+
// hour: dates[1].hour(),
|
|
146
|
+
// minute: dates[1].minute(),
|
|
147
|
+
// second: dates[1].second(),
|
|
148
|
+
// millisecond: dates[1].millisecond(),
|
|
149
|
+
// };
|
|
150
|
+
// // 计算最大结束日期(开始日期 + maxDays)
|
|
151
|
+
// finalEndDate = dates[0].add(maxDays, 'day');
|
|
152
|
+
// // 应用结束日期的时间
|
|
153
|
+
// finalEndDate = finalEndDate
|
|
154
|
+
// .hour(endTime.hour)
|
|
155
|
+
// .minute(endTime.minute)
|
|
156
|
+
// .second(endTime.second)
|
|
157
|
+
// .millisecond(endTime.millisecond);
|
|
158
|
+
// finalDuration = maxDays;
|
|
159
|
+
// }
|
|
160
|
+
|
|
146
161
|
if (days > 0) {
|
|
147
162
|
var newValue = {
|
|
148
163
|
startDate: dates[0],
|
|
@@ -195,34 +210,16 @@ var MultiDayTimeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
195
210
|
var handleEndDateChange = function handleEndDateChange(date) {
|
|
196
211
|
if (date && internalValue) {
|
|
197
212
|
var days = date.diff(internalValue.startDate, 'day');
|
|
198
|
-
var finalEndDate = date;
|
|
199
|
-
var finalDuration = days;
|
|
200
|
-
|
|
201
|
-
// 如果超过maxDays,调整为开始日期+maxDays,但保留结束日期的时间
|
|
202
|
-
if (days > maxDays) {
|
|
203
|
-
// 获取结束日期的时间部分(时、分、秒、毫秒)
|
|
204
|
-
var endTime = {
|
|
205
|
-
hour: date.hour(),
|
|
206
|
-
minute: date.minute(),
|
|
207
|
-
second: date.second(),
|
|
208
|
-
millisecond: date.millisecond()
|
|
209
|
-
};
|
|
210
|
-
// 计算最大结束日期(开始日期 + maxDays)
|
|
211
|
-
finalEndDate = internalValue.startDate.add(maxDays, 'day');
|
|
212
|
-
// 应用结束日期的时间
|
|
213
|
-
finalEndDate = finalEndDate.hour(endTime.hour).minute(endTime.minute).second(endTime.second).millisecond(endTime.millisecond);
|
|
214
|
-
finalDuration = maxDays;
|
|
215
|
-
}
|
|
216
213
|
if (days > 0) {
|
|
217
214
|
var newValue = {
|
|
218
215
|
startDate: internalValue.startDate,
|
|
219
|
-
endDate:
|
|
220
|
-
duration:
|
|
216
|
+
endDate: date,
|
|
217
|
+
duration: days
|
|
221
218
|
};
|
|
222
219
|
updateValue(newValue);
|
|
223
220
|
form.setFieldsValue({
|
|
224
|
-
endDate:
|
|
225
|
-
duration:
|
|
221
|
+
endDate: date,
|
|
222
|
+
duration: days
|
|
226
223
|
});
|
|
227
224
|
}
|
|
228
225
|
}
|
|
@@ -337,7 +334,8 @@ var MultiDayTimeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
337
334
|
format: formatLocale,
|
|
338
335
|
isHideCustomSelect: true,
|
|
339
336
|
endDateDays: 1,
|
|
340
|
-
disabled: disabled
|
|
337
|
+
disabled: disabled,
|
|
338
|
+
disabledDate: disabledDate
|
|
341
339
|
})))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
342
340
|
label: durationLabel || locales.getText('pisell2.text.duration'),
|
|
343
341
|
name: "duration",
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
4
3
|
order: any;
|
|
@@ -29,11 +28,4 @@ export interface PayGroup {
|
|
|
29
28
|
pay_number?: string;
|
|
30
29
|
_order: any;
|
|
31
30
|
}
|
|
32
|
-
export declare const Provider:
|
|
33
|
-
state: FormState;
|
|
34
|
-
} & {
|
|
35
|
-
dispatch: (params: {
|
|
36
|
-
type: string;
|
|
37
|
-
payload: any;
|
|
38
|
-
}) => void;
|
|
39
|
-
}>;
|
|
31
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -265,6 +265,7 @@ var AddSerivce = (props) => {
|
|
|
265
265
|
if (cacheItem.autoClose) {
|
|
266
266
|
cacheItem.autoClose = false;
|
|
267
267
|
cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
|
|
268
|
+
cacheItem._holderKey = (0, import_utils6.genHolderKey)(cacheItem);
|
|
268
269
|
if (isMultiDay) {
|
|
269
270
|
await getMultiDayCacheItem();
|
|
270
271
|
}
|
|
@@ -295,7 +296,8 @@ var AddSerivce = (props) => {
|
|
|
295
296
|
price: s == null ? void 0 : s.price,
|
|
296
297
|
_id: s == null ? void 0 : s._id,
|
|
297
298
|
_key: s == null ? void 0 : s._key,
|
|
298
|
-
_serviceKey: s == null ? void 0 : s._serviceKey
|
|
299
|
+
_serviceKey: s == null ? void 0 : s._serviceKey,
|
|
300
|
+
_holderKey: s == null ? void 0 : s._holderKey
|
|
299
301
|
};
|
|
300
302
|
});
|
|
301
303
|
const sendData = {
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
addWalletCard: any;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
walletDetailState: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|