@pisell/private-materials 3.4.43 → 3.4.44
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 +9 -1
- package/build/lowcode/preview.js +149 -149
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/customSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +75 -73
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +12 -3
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/customSelect/index.js +1 -1
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +93 -68
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info2/index.js +5 -4
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +12 -3
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/package.json +4 -2
|
@@ -14,7 +14,7 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
14
14
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
15
15
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
16
|
import { useState, useEffect, useMemo } from 'react';
|
|
17
|
-
import { locales } from
|
|
17
|
+
import { locales } from '@pisell/utils';
|
|
18
18
|
import { usePisellOS } from "../../hooks/useEngineContext";
|
|
19
19
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
20
20
|
import { sortResources, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
|
|
@@ -37,7 +37,7 @@ export var contextUtils = function contextUtils() {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @title: 监听步骤发生变化
|
|
40
|
-
* @description:
|
|
40
|
+
* @description:
|
|
41
41
|
* @return {*}
|
|
42
42
|
* @Author: WangHan
|
|
43
43
|
* @Date: 2025-04-15 11:11
|
|
@@ -143,56 +143,56 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
143
143
|
var currentSelectedResources = appointmentBooking.getOtherData('current_selected_resources');
|
|
144
144
|
|
|
145
145
|
// 先确定点击时的步骤,如果当前步骤是选择服务
|
|
146
|
-
if (!isRetailTemplate && currentKey ===
|
|
146
|
+
if (!isRetailTemplate && currentKey === 'select-service') {
|
|
147
147
|
var _appointmentBooking$o, _stepList, _stepList2;
|
|
148
148
|
var _ref3 = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.productModuleParams) || {},
|
|
149
149
|
bookingProcess = _ref3.bookingProcess;
|
|
150
|
-
var isDateSelectedFirst = bookingProcess ===
|
|
150
|
+
var isDateSelectedFirst = bookingProcess === 'date_first';
|
|
151
151
|
var hasResourceStep = (_stepList = stepList) === null || _stepList === void 0 ? void 0 : _stepList.find(function (item) {
|
|
152
|
-
return (item === null || item === void 0 ? void 0 : item.key) ===
|
|
152
|
+
return (item === null || item === void 0 ? void 0 : item.key) === 'select-resource';
|
|
153
153
|
});
|
|
154
154
|
var hasSelectGuestStep = (_stepList2 = stepList) === null || _stepList2 === void 0 || (_stepList2 = _stepList2.find(function (item) {
|
|
155
|
-
return (item === null || item === void 0 ? void 0 : item.key) ===
|
|
155
|
+
return (item === null || item === void 0 ? void 0 : item.key) === 'select-guest';
|
|
156
156
|
})) === null || _stepList2 === void 0 ? void 0 : _stepList2.key;
|
|
157
157
|
// 判断购物车里是否全是是普通商品
|
|
158
158
|
var isAllNormalProduct = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.isCartAllNormalProducts();
|
|
159
159
|
if (isAllNormalProduct) {
|
|
160
|
-
removeStep(
|
|
161
|
-
removeStep(
|
|
160
|
+
removeStep('select-resource');
|
|
161
|
+
removeStep('select-time');
|
|
162
162
|
removeStep('fill-form');
|
|
163
163
|
if (!isDateSelectedFirst) {
|
|
164
|
-
removeStep(
|
|
164
|
+
removeStep('select-date');
|
|
165
165
|
}
|
|
166
166
|
} else if (!hasResourceStep) {
|
|
167
167
|
// 如果不全是普通商品,并且还没有选择资源步骤,证明之前被删除过,要给她加回来
|
|
168
168
|
// 判断当前步骤里有没有添加预约人,如果有的话则应该是在添加预约人之后添加步骤
|
|
169
|
-
var targetKey = hasSelectGuestStep ? hasSelectGuestStep :
|
|
169
|
+
var targetKey = hasSelectGuestStep ? hasSelectGuestStep : 'select-service';
|
|
170
170
|
var isHasDurationProduct = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.isCartHasDurationProduct();
|
|
171
171
|
// 如果购物车里有 duration 商品(目前来说,只能是纯 duration 商品)
|
|
172
172
|
if (isHasDurationProduct) {
|
|
173
173
|
// 如果是先选商品,则添加日期、资源、时间步骤
|
|
174
174
|
if (!isDateSelectedFirst) {
|
|
175
175
|
appointmentBooking.addStep({
|
|
176
|
-
key:
|
|
177
|
-
description: locales.getText(
|
|
176
|
+
key: 'select-date',
|
|
177
|
+
description: locales.getText('pisell2.appointment.select.date')
|
|
178
178
|
}, targetKey);
|
|
179
|
-
targetKey =
|
|
179
|
+
targetKey = 'select-date';
|
|
180
180
|
}
|
|
181
181
|
// 如果是先选日期,则添加资源、时间
|
|
182
182
|
appointmentBooking.addStep({
|
|
183
|
-
key:
|
|
184
|
-
description: locales.getText(
|
|
183
|
+
key: 'select-resource',
|
|
184
|
+
description: locales.getText('pisell2.appointment.select.resource')
|
|
185
185
|
}, targetKey);
|
|
186
|
-
targetKey =
|
|
186
|
+
targetKey = 'select-resource';
|
|
187
187
|
appointmentBooking.addStep({
|
|
188
|
-
key:
|
|
189
|
-
description: locales.getText(
|
|
188
|
+
key: 'select-time',
|
|
189
|
+
description: locales.getText('pisell2.appointment.select.time')
|
|
190
190
|
}, targetKey);
|
|
191
191
|
} else {
|
|
192
192
|
// 如果购物车里是session 商品,则只添加选择资源步骤
|
|
193
193
|
appointmentBooking.addStep({
|
|
194
|
-
key:
|
|
195
|
-
description: locales.getText(
|
|
194
|
+
key: 'select-resource',
|
|
195
|
+
description: locales.getText('pisell2.appointment.select.resource')
|
|
196
196
|
}, targetKey);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -381,7 +381,6 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
381
381
|
// // getHolders();
|
|
382
382
|
// // }
|
|
383
383
|
// // }
|
|
384
|
-
|
|
385
384
|
// // 继续后续流程
|
|
386
385
|
// checkHolder()
|
|
387
386
|
// }
|
|
@@ -434,7 +433,7 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
|
|
|
434
433
|
|
|
435
434
|
/**
|
|
436
435
|
* @title: 获取商品数据
|
|
437
|
-
* @description:
|
|
436
|
+
* @description:
|
|
438
437
|
* @return {*}
|
|
439
438
|
* @Author: WangHan
|
|
440
439
|
* @Date: 2025-04-15 11:12
|
|
@@ -525,7 +524,7 @@ export var useAppointmentBookingProduct = function useAppointmentBookingProduct(
|
|
|
525
524
|
|
|
526
525
|
/**
|
|
527
526
|
* @title: 更新购物车数据
|
|
528
|
-
* @description:
|
|
527
|
+
* @description:
|
|
529
528
|
* @return {*}
|
|
530
529
|
* @Author: WangHan
|
|
531
530
|
* @Date: 2025-04-15 11:12
|
|
@@ -612,7 +611,7 @@ export var useAppointmentBookingCart = function useAppointmentBookingCart() {
|
|
|
612
611
|
|
|
613
612
|
/**
|
|
614
613
|
* @title: 获取登录状态
|
|
615
|
-
* @description:
|
|
614
|
+
* @description:
|
|
616
615
|
* @return {*}
|
|
617
616
|
* @Author: WangHan
|
|
618
617
|
* @Date: 2025-04-15 11:14
|
|
@@ -640,7 +639,7 @@ export var useAppointmentBookingLogin = function useAppointmentBookingLogin() {
|
|
|
640
639
|
|
|
641
640
|
/**
|
|
642
641
|
* @title: 获取账户
|
|
643
|
-
* @description:
|
|
642
|
+
* @description:
|
|
644
643
|
* @return {*}
|
|
645
644
|
* @Author: WangHan
|
|
646
645
|
* @Date: 2025-04-15 11:15
|
|
@@ -790,7 +789,7 @@ export var useAppointmentBookingAccount = function useAppointmentBookingAccount(
|
|
|
790
789
|
|
|
791
790
|
/**
|
|
792
791
|
* @title: 获取资源数据
|
|
793
|
-
* @description:
|
|
792
|
+
* @description:
|
|
794
793
|
* @return {*}
|
|
795
794
|
* @Author: WangHan
|
|
796
795
|
* @Date: 2025-04-15 11:29
|
|
@@ -855,7 +854,7 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
855
854
|
|
|
856
855
|
/**
|
|
857
856
|
* @title: 是否跳过资源选择步骤
|
|
858
|
-
* @description:
|
|
857
|
+
* @description:
|
|
859
858
|
* @return {*}
|
|
860
859
|
* @Author: WangHan
|
|
861
860
|
* @Date: 2025-04-21 11:47
|
|
@@ -937,13 +936,13 @@ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
|
|
|
937
936
|
|
|
938
937
|
/**
|
|
939
938
|
* @title: 获取预约配置
|
|
940
|
-
* @description:
|
|
939
|
+
* @description:
|
|
941
940
|
* @return {*}
|
|
942
941
|
* @Author: WangHan
|
|
943
942
|
* @Date: 2025-04-24 18:15
|
|
944
943
|
*/
|
|
945
944
|
export var useAppointmentBookingSetting = function useAppointmentBookingSetting() {
|
|
946
|
-
var _appointmentBooking$o4, _appointmentBooking$o5;
|
|
945
|
+
var _appointmentBooking$o4, _appointmentBooking$o5, _appointmentBooking$o6;
|
|
947
946
|
var utils = contextUtils();
|
|
948
947
|
var _ref28 = useAppointmentBookingContext(),
|
|
949
948
|
appointmentBooking = _ref28.appointmentBooking;
|
|
@@ -977,6 +976,7 @@ export var useAppointmentBookingSetting = function useAppointmentBookingSetting(
|
|
|
977
976
|
bookingSubject: bookingSubject,
|
|
978
977
|
setOtherData: setOtherData,
|
|
979
978
|
getOtherData: getOtherData,
|
|
980
|
-
formName: formName
|
|
979
|
+
formName: formName,
|
|
980
|
+
bookingSetting: (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o6 = appointmentBooking.otherParams) === null || _appointmentBooking$o6 === void 0 ? void 0 : _appointmentBooking$o6.bookingSetting) || {}
|
|
981
981
|
};
|
|
982
982
|
};
|
|
@@ -117,6 +117,7 @@ declare const _default: {
|
|
|
117
117
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
118
118
|
'pisell2.text.goodpass.login': string;
|
|
119
119
|
'pisell2.text.goodpass.login-tip': string;
|
|
120
|
+
'pisell2.text.contact-info.title': string;
|
|
120
121
|
};
|
|
121
122
|
'zh-CN': {
|
|
122
123
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -236,6 +237,7 @@ declare const _default: {
|
|
|
236
237
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
237
238
|
'pisell2.text.goodpass.login': string;
|
|
238
239
|
'pisell2.text.goodpass.login-tip': string;
|
|
240
|
+
'pisell2.text.contact-info.title': string;
|
|
239
241
|
};
|
|
240
242
|
'zh-HK': {
|
|
241
243
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -355,6 +357,7 @@ declare const _default: {
|
|
|
355
357
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
356
358
|
'pisell2.text.goodpass.login': string;
|
|
357
359
|
'pisell2.text.goodpass.login-tip': string;
|
|
360
|
+
'pisell2.text.contact-info.title': string;
|
|
358
361
|
};
|
|
359
362
|
};
|
|
360
363
|
export default _default;
|
|
@@ -132,9 +132,10 @@ export default {
|
|
|
132
132
|
'pisell2.text.goodpass.code': 'Code',
|
|
133
133
|
'pisell2.text.goodpass.enter-code': 'Enter Code',
|
|
134
134
|
'pisell2.text.goodpass.code-invalid': 'Current code is invalid',
|
|
135
|
-
'pisell2.text.goodpass.code-invalid-cart':
|
|
135
|
+
'pisell2.text.goodpass.code-invalid-cart': 'No eligible items in the cart',
|
|
136
136
|
'pisell2.text.goodpass.login': 'Login',
|
|
137
|
-
'pisell2.text.goodpass.login-tip': ' for member benefit Or use account credit'
|
|
137
|
+
'pisell2.text.goodpass.login-tip': ' for member benefit Or use account credit',
|
|
138
|
+
'pisell2.text.contact-info.title': 'Contact info'
|
|
138
139
|
},
|
|
139
140
|
'zh-CN': {
|
|
140
141
|
'pisell2.event.calendar.limit.unavailable': '不可预约',
|
|
@@ -269,9 +270,10 @@ export default {
|
|
|
269
270
|
'pisell2.text.goodpass.code': '券码',
|
|
270
271
|
'pisell2.text.goodpass.enter-code': '请输入券码',
|
|
271
272
|
'pisell2.text.goodpass.code-invalid': '当前券码不可用',
|
|
272
|
-
'pisell2.text.goodpass.code-invalid-cart':
|
|
273
|
+
'pisell2.text.goodpass.code-invalid-cart': '当前购物车中无可用商品',
|
|
273
274
|
'pisell2.text.goodpass.login': '登录',
|
|
274
|
-
'pisell2.text.goodpass.login-tip': '以获取会员福利或使用账户积分'
|
|
275
|
+
'pisell2.text.goodpass.login-tip': '以获取会员福利或使用账户积分',
|
|
276
|
+
'pisell2.text.contact-info.title': '联系信息'
|
|
275
277
|
},
|
|
276
278
|
'zh-HK': {
|
|
277
279
|
'pisell2.event.calendar.limit.unavailable': '不可預約',
|
|
@@ -406,8 +408,9 @@ export default {
|
|
|
406
408
|
'pisell2.text.goodpass.code': '券碼',
|
|
407
409
|
'pisell2.text.goodpass.enter-code': '請輸入券碼',
|
|
408
410
|
'pisell2.text.goodpass.code-invalid': '當前券碼不可用',
|
|
409
|
-
'pisell2.text.goodpass.code-invalid-cart':
|
|
411
|
+
'pisell2.text.goodpass.code-invalid-cart': '當前購物車中無可用商品',
|
|
410
412
|
'pisell2.text.goodpass.login': '登錄',
|
|
411
|
-
'pisell2.text.goodpass.login-tip': '以獲取會員福利或使用賬戶積分'
|
|
413
|
+
'pisell2.text.goodpass.login-tip': '以獲取會員福利或使用賬戶積分',
|
|
414
|
+
'pisell2.text.contact-info.title': '聯繫信息'
|
|
412
415
|
}
|
|
413
416
|
};
|
|
@@ -424,7 +424,7 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
|
424
424
|
marginTop: 16,
|
|
425
425
|
height: 44
|
|
426
426
|
},
|
|
427
|
-
placeholder: locales.getText('pisell2.text.search'),
|
|
427
|
+
placeholder: locales.getText('pisell2.booking.text.search-placeholder'),
|
|
428
428
|
value: search,
|
|
429
429
|
allowClear: true,
|
|
430
430
|
onChange: function onChange(e) {
|
|
@@ -176,7 +176,7 @@ var Footer = function Footer(props) {
|
|
|
176
176
|
|
|
177
177
|
// info 是否有编辑
|
|
178
178
|
var infoEdit = useMemo(function () {
|
|
179
|
-
var _state$client, _state$date, _state$pet, _state$service, _state$notes, _state$contacts;
|
|
179
|
+
var _state$client, _state$date, _state$pet, _state$service, _state$notes, _state$contacts, _state$contacts_info;
|
|
180
180
|
if (!state.bookingId) {
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
@@ -198,6 +198,9 @@ var Footer = function Footer(props) {
|
|
|
198
198
|
if ((_state$contacts = state.contacts) !== null && _state$contacts !== void 0 && _state$contacts.edit) {
|
|
199
199
|
return true;
|
|
200
200
|
}
|
|
201
|
+
if ((_state$contacts_info = state.contacts_info) !== null && _state$contacts_info !== void 0 && _state$contacts_info.edit) {
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
201
204
|
return false;
|
|
202
205
|
}, [state]);
|
|
203
206
|
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import dayjs from
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
8
|
import { flexibleObj, isNowTime, getNowTime } from "../../utils";
|
|
9
9
|
import { isWalkIn } from "../../utils";
|
|
10
10
|
import { getSumCapacity } from "../../info2/utilsByBooking";
|
|
@@ -12,10 +12,10 @@ import { getDays } from "../../utils";
|
|
|
12
12
|
import { appointmentTypes } from "../../info/service2/status";
|
|
13
13
|
import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule } from "../../info/service2/utils";
|
|
14
14
|
import { isArr, locales, sendWarningLog } from '@pisell/utils';
|
|
15
|
-
import { PisellToast } from
|
|
15
|
+
import { PisellToast } from '@pisell/materials';
|
|
16
16
|
var formatNote = function formatNote(data) {
|
|
17
17
|
var _data$notes;
|
|
18
|
-
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) ||
|
|
18
|
+
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || '';
|
|
19
19
|
};
|
|
20
20
|
var formatCustomer = function formatCustomer(data) {
|
|
21
21
|
var _data$client, _data$client2, _data$client3, _data$client4, _data$client5, _data$client6;
|
|
@@ -34,7 +34,7 @@ var formatCustomer = function formatCustomer(data) {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @title: 套餐单规格信息
|
|
37
|
-
* @description:
|
|
37
|
+
* @description:
|
|
38
38
|
* @param {any} option
|
|
39
39
|
* @return {*}
|
|
40
40
|
* @Author: zhiwei.Wang
|
|
@@ -46,9 +46,9 @@ export var formatProductOption = function formatProductOption(option) {
|
|
|
46
46
|
}
|
|
47
47
|
return option.map(function (d) {
|
|
48
48
|
return {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
num: d.num,
|
|
50
|
+
option_group_item_id: d.product_option_item_id || d.option_group_item_id,
|
|
51
|
+
option_group_id: d.option_group_id
|
|
52
52
|
// "add_price": Number(d?.add_price),
|
|
53
53
|
};
|
|
54
54
|
});
|
|
@@ -56,7 +56,7 @@ export var formatProductOption = function formatProductOption(option) {
|
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* @title: 添加套餐警告
|
|
59
|
-
* @description:
|
|
59
|
+
* @description:
|
|
60
60
|
* @param {any} data
|
|
61
61
|
* @return {*}
|
|
62
62
|
* @Author: WangHan
|
|
@@ -77,7 +77,7 @@ var log = function log(data) {
|
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* @title: 套餐信息
|
|
80
|
-
* @description:
|
|
80
|
+
* @description:
|
|
81
81
|
* @param {any} bundle
|
|
82
82
|
* @return {*}
|
|
83
83
|
* @Author: zhiwei.Wang
|
|
@@ -99,16 +99,16 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
99
99
|
} catch (error) {}
|
|
100
100
|
return bundle.map(function (d) {
|
|
101
101
|
return {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
bundle_group_id: d.group_id,
|
|
103
|
+
bundle_id: d.id,
|
|
104
|
+
bundle_product_id: (d === null || d === void 0 ? void 0 : d._bundle_product_id) || (d === null || d === void 0 ? void 0 : d.product_id),
|
|
105
|
+
bundle_variant_id: d.bundle_variant_id,
|
|
106
|
+
num: d.num,
|
|
107
|
+
extension_id: d.extension_id,
|
|
108
|
+
extension_type: d.extension_type,
|
|
109
109
|
// "price": Number(d?.price),
|
|
110
110
|
// "price_type": d?.price_type,
|
|
111
|
-
|
|
111
|
+
option: formatProductOption(d.option)
|
|
112
112
|
};
|
|
113
113
|
});
|
|
114
114
|
};
|
|
@@ -189,7 +189,7 @@ var formatResource = function formatResource(service) {
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* @title: 格式化子预约的holder数据
|
|
192
|
-
* @description:
|
|
192
|
+
* @description:
|
|
193
193
|
* @param {any} state
|
|
194
194
|
* @param {any} item
|
|
195
195
|
* @param {any} values
|
|
@@ -220,7 +220,7 @@ var formatHolders = function formatHolders(state, item, values) {
|
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* @title: 格式化商品单价
|
|
223
|
-
* @description:
|
|
223
|
+
* @description:
|
|
224
224
|
* @param {any} item
|
|
225
225
|
* @return {*}
|
|
226
226
|
* @Author: WangHan
|
|
@@ -304,7 +304,7 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
|
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* @title: 格式化商品数据
|
|
307
|
-
* @description:
|
|
307
|
+
* @description:
|
|
308
308
|
* @param {any} item
|
|
309
309
|
* @return {*}
|
|
310
310
|
* @Author: WangHan
|
|
@@ -325,30 +325,30 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
325
325
|
return item.type !== 'product';
|
|
326
326
|
});
|
|
327
327
|
return {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
328
|
+
num: quantity || item._extend.quantity,
|
|
329
|
+
price: formatProductPrice(item),
|
|
330
|
+
source_product_price: getSourceProductPrice(item),
|
|
331
|
+
product_id: (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
|
|
332
|
+
discount_amount: notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
333
|
+
product_discount_reason: item._extend.discount_reason || '',
|
|
334
|
+
is_charge_tax: item.is_charge_tax,
|
|
335
|
+
note: (item === null || item === void 0 ? void 0 : item.note) || '',
|
|
336
|
+
discountway: item._extend.discountway || 'num',
|
|
337
|
+
discount_per: item._extend.discount_per,
|
|
338
|
+
discount_type: item._extend.discount_type || discount_type,
|
|
339
|
+
order_detail_id: item._extend.order_detail_id || 0,
|
|
340
|
+
product_bundle: formatProductBundle((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 || (_item$_extend15 = _item$_extend15.other) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.bundle),
|
|
341
|
+
bundle_edit: item._extend.bundle_edit,
|
|
342
|
+
product_option_item: formatProductOption((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 || (_item$_extend16 = _item$_extend16.other) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.option),
|
|
343
|
+
product_variant_id: ((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.product_variant_id) || 0,
|
|
344
|
+
discount_list: notManualDiscount,
|
|
345
345
|
metadata: formatMetaData(item, false)
|
|
346
346
|
};
|
|
347
347
|
};
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
350
|
* @title: 格式化跨日预约下的普通商品
|
|
351
|
-
* @description:
|
|
351
|
+
* @description:
|
|
352
352
|
* @param {any} data
|
|
353
353
|
* @param {any} booking_item
|
|
354
354
|
* @return {*}
|
|
@@ -374,7 +374,7 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
|
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
376
|
* @title: 格式化跨日预约商品列表
|
|
377
|
-
* @description:
|
|
377
|
+
* @description:
|
|
378
378
|
* @param {any} data
|
|
379
379
|
* @return {*}
|
|
380
380
|
* @Author: WangHan
|
|
@@ -424,7 +424,7 @@ var getHolderByIndex = function getHolderByIndex(holder, index) {
|
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
426
|
* @title: 预约商品信息
|
|
427
|
-
* @description:
|
|
427
|
+
* @description:
|
|
428
428
|
* @param {any} data
|
|
429
429
|
* @return {*}
|
|
430
430
|
* @Author: zhiwei.Wang
|
|
@@ -455,12 +455,12 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
455
455
|
var eventOtherParams = data.eventOtherParams;
|
|
456
456
|
var bookings = [];
|
|
457
457
|
var obj = {};
|
|
458
|
-
list.forEach(function (item
|
|
458
|
+
list.forEach(function (item) {
|
|
459
459
|
var _item$_extend25;
|
|
460
460
|
var start_date = item._extend.startDate.format('YYYY-MM-DD');
|
|
461
461
|
var end_date = item._extend.endDate.format('YYYY-MM-DD');
|
|
462
|
-
var end_time = item._extend.endDate.format(
|
|
463
|
-
var start_time = item._extend.startDate.format(
|
|
462
|
+
var end_time = item._extend.endDate.format('HH:mm');
|
|
463
|
+
var start_time = item._extend.startDate.format('HH:mm');
|
|
464
464
|
|
|
465
465
|
// 更新当前时间
|
|
466
466
|
if (isNowTime(item._extend.start_time)) {
|
|
@@ -500,26 +500,25 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
500
500
|
// 后续出现不需要设置 metadata.multiDayPrices. 节省体积
|
|
501
501
|
var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.groupId];
|
|
502
502
|
var booking = _objectSpread(_objectSpread({
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
503
|
+
product: formatProducts(item),
|
|
504
|
+
relation_products: formatRelationDetails(item._extend.relation_details),
|
|
505
|
+
id: item.booking_id || 0,
|
|
506
|
+
relation_id: item._extend.relation_id || 0,
|
|
507
|
+
like_status: item._extend.like_status || 'common',
|
|
508
|
+
relation_type: item._extend.relation_type || '',
|
|
509
|
+
is_all: false,
|
|
510
|
+
schedule_id: item._extend.schedule_id || 0,
|
|
511
|
+
end_time: end_time,
|
|
512
|
+
sub_type: isDay ? 'days' : getSubType(item),
|
|
513
|
+
select_date: start_date,
|
|
514
|
+
start_time: start_time,
|
|
515
|
+
end_date: end_date,
|
|
516
|
+
start_date: start_date,
|
|
517
|
+
duration: isDay ? 0 : flexibleObj.getValue(item._extend.duration),
|
|
518
|
+
number: item._extend.capacity ? getSumCapacity({
|
|
519
519
|
cacheItem: item
|
|
520
520
|
}) : item._extend.number || 1,
|
|
521
|
-
|
|
522
|
-
// 当groupId第一次出现时,需要设置metadata.multiDayPrices, 否则不用
|
|
521
|
+
resources: formatResource(item),
|
|
523
522
|
"metadata": formatMetaData(item, !isSetGroupId)
|
|
524
523
|
}, eventOtherParams || {}), dayParams);
|
|
525
524
|
|
|
@@ -533,11 +532,11 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
533
532
|
}
|
|
534
533
|
for (var i = 0; i < (item._extend.quantity || 1); i++) {
|
|
535
534
|
bookings.push(_objectSpread(_objectSpread({}, booking), {}, {
|
|
536
|
-
|
|
537
|
-
|
|
535
|
+
product: formatProducts(item, 1),
|
|
536
|
+
number: item._extend.capacity ? getSumCapacity({
|
|
538
537
|
cacheItem: item
|
|
539
538
|
}, false) : item._extend.number || 1,
|
|
540
|
-
|
|
539
|
+
holder: getHolderByIndex(booking.holder, i)
|
|
541
540
|
}));
|
|
542
541
|
}
|
|
543
542
|
});
|
|
@@ -546,7 +545,7 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
546
545
|
|
|
547
546
|
/**
|
|
548
547
|
* @title: 普通商品
|
|
549
|
-
* @description:
|
|
548
|
+
* @description:
|
|
550
549
|
* @param {any} data
|
|
551
550
|
* @return {*}
|
|
552
551
|
* @Author: WangHan
|
|
@@ -587,7 +586,7 @@ var formatNormalProducts = function formatNormalProducts(data) {
|
|
|
587
586
|
|
|
588
587
|
/**
|
|
589
588
|
* @title: 预约主体信息
|
|
590
|
-
* @description:
|
|
589
|
+
* @description:
|
|
591
590
|
* @param {any} state
|
|
592
591
|
* @param {any} values
|
|
593
592
|
* @return {*}
|
|
@@ -620,15 +619,15 @@ var formatHolder = function formatHolder(state, values) {
|
|
|
620
619
|
|
|
621
620
|
// https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/2778666/detail/53001549?spaceKey=menutech
|
|
622
621
|
export var formatValues = function formatValues(state) {
|
|
623
|
-
var _values, _values3;
|
|
622
|
+
var _values, _values3, _state$contacts_info;
|
|
624
623
|
var values = {
|
|
625
|
-
type: state.renderType === 'eventBooking' ?
|
|
626
|
-
platform: state.isBookingTicket2 ?
|
|
627
|
-
sales_channel:
|
|
628
|
-
order_sales_channel: state.isBookingTicket2 ?
|
|
624
|
+
type: state.renderType === 'eventBooking' ? 'event_booking_v2' : 'appointment_booking',
|
|
625
|
+
platform: state.isBookingTicket2 ? 'pos' : 'shop',
|
|
626
|
+
sales_channel: 'my_pisel',
|
|
627
|
+
order_sales_channel: state.isBookingTicket2 ? 'pos' : 'online_store',
|
|
629
628
|
bookings: [],
|
|
630
629
|
customer_id: 1,
|
|
631
|
-
customer_name:
|
|
630
|
+
customer_name: '',
|
|
632
631
|
holder: {},
|
|
633
632
|
relation_products: [],
|
|
634
633
|
metadata: {}
|
|
@@ -655,7 +654,7 @@ export var formatValues = function formatValues(state) {
|
|
|
655
654
|
// 主体
|
|
656
655
|
values.holder = formatHolder(state, values);
|
|
657
656
|
if (isDay || isEvent) {
|
|
658
|
-
values.relation_products = formatRelationProducts(state, isDay ?
|
|
657
|
+
values.relation_products = formatRelationProducts(state, isDay ? 'day' : 'event');
|
|
659
658
|
} else {
|
|
660
659
|
var _values$relation_prod;
|
|
661
660
|
values.relation_products = formatNormalProducts(state);
|
|
@@ -684,6 +683,9 @@ export var formatValues = function formatValues(state) {
|
|
|
684
683
|
if (!((_values3 = values) !== null && _values3 !== void 0 && (_values3 = _values3.bookings) !== null && _values3 !== void 0 && _values3.length)) {
|
|
685
684
|
values.type = 'virtual';
|
|
686
685
|
}
|
|
686
|
+
|
|
687
|
+
// 联系信息
|
|
688
|
+
values.contacts_info = ((_state$contacts_info = state.contacts_info) === null || _state$contacts_info === void 0 ? void 0 : _state$contacts_info.value) || null;
|
|
687
689
|
return values;
|
|
688
690
|
};
|
|
689
691
|
|
|
@@ -9,7 +9,7 @@ import useSendModal from "./sendModal/useSendModal";
|
|
|
9
9
|
import SendModal from "./sendModal";
|
|
10
10
|
import { locales } from '@pisell/utils';
|
|
11
11
|
var Footer = function Footer(_ref) {
|
|
12
|
-
var _state$
|
|
12
|
+
var _state$client2, _state$contacts_info2, _state$form, _state$client3;
|
|
13
13
|
var state = _ref.state,
|
|
14
14
|
reload = _ref.reload;
|
|
15
15
|
var _useSendModal = useSendModal(state === null || state === void 0 ? void 0 : state.bookingId),
|
|
@@ -38,17 +38,31 @@ var Footer = function Footer(_ref) {
|
|
|
38
38
|
};
|
|
39
39
|
}();
|
|
40
40
|
var defaultValues = useMemo(function () {
|
|
41
|
-
var _state$
|
|
41
|
+
var _state$contacts_info, _state$client;
|
|
42
|
+
// 优先取contacts_info中的phone和email,如果不存在则取客户信息中的phone和email
|
|
43
|
+
var _ref3 = ((_state$contacts_info = state.contacts_info) === null || _state$contacts_info === void 0 ? void 0 : _state$contacts_info.value) || {},
|
|
44
|
+
contactsEmail = _ref3.email,
|
|
45
|
+
contactsPhone = _ref3.phone;
|
|
46
|
+
var _ref4 = ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value) || {},
|
|
47
|
+
clientEmail = _ref4.email,
|
|
48
|
+
clientPhone = _ref4.phone,
|
|
49
|
+
clientCode = _ref4.country_calling_code;
|
|
50
|
+
var email = contactsEmail || clientEmail;
|
|
51
|
+
var phone = (contactsPhone === null || contactsPhone === void 0 ? void 0 : contactsPhone.phone) || clientPhone;
|
|
52
|
+
var code = (contactsPhone === null || contactsPhone === void 0 ? void 0 : contactsPhone.country_calling_code) || clientCode || '+61';
|
|
53
|
+
if (!code.startsWith('+')) {
|
|
54
|
+
code = "+".concat(code);
|
|
55
|
+
}
|
|
42
56
|
return {
|
|
43
|
-
sendSms: !!
|
|
44
|
-
sendEmail: !!
|
|
45
|
-
email:
|
|
57
|
+
sendSms: !!phone,
|
|
58
|
+
sendEmail: !!email,
|
|
59
|
+
email: email,
|
|
46
60
|
phone: {
|
|
47
|
-
code:
|
|
48
|
-
phone:
|
|
61
|
+
code: code,
|
|
62
|
+
phone: phone
|
|
49
63
|
}
|
|
50
64
|
};
|
|
51
|
-
}, [(_state$
|
|
65
|
+
}, [(_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : _state$client2.value, (_state$contacts_info2 = state.contacts_info) === null || _state$contacts_info2 === void 0 ? void 0 : _state$contacts_info2.value]);
|
|
52
66
|
if (!state.bookingId || !(state !== null && state !== void 0 && (_state$form = state.form) !== null && _state$form !== void 0 && _state$form.forms.length)) {
|
|
53
67
|
return null;
|
|
54
68
|
}
|
|
@@ -65,8 +79,8 @@ var Footer = function Footer(_ref) {
|
|
|
65
79
|
block: true,
|
|
66
80
|
type: "primary",
|
|
67
81
|
onClick: handleOpen
|
|
68
|
-
}, locales.getText('pisell2.text.send-form-reminder')), /*#__PURE__*/React.createElement(SendModal, {
|
|
69
|
-
refreshKey: (_state$
|
|
82
|
+
}, locales.getText('pisell2.text.send-form-reminder')), open && /*#__PURE__*/React.createElement(SendModal, {
|
|
83
|
+
refreshKey: (_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id,
|
|
70
84
|
open: open,
|
|
71
85
|
onCancel: function onCancel() {
|
|
72
86
|
return setOpen(false);
|
|
@@ -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<any>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|