@pisell/private-materials 3.0.201 → 3.0.203
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/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -33
- package/es/components/booking/addons/model.d.ts +1 -1
- package/es/components/booking/components/footer/amount.js +5 -4
- package/es/components/booking/components/footer/utils.js +49 -29
- package/es/components/booking/forms/model.d.ts +1 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +54 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +93 -7
- package/es/components/booking/info/main.js +10 -9
- package/es/components/booking/info/pet/ChangePetModal/index.js +38 -23
- package/es/components/booking/info/service/addService/index.js +70 -99
- package/es/components/booking/info/service/addService/utils.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.js +55 -3
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +5 -0
- package/es/components/booking/info/service/editService/BookingList/index.js +39 -0
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/es/components/booking/info/service/editService/EditTabs/index.js +35 -0
- package/es/components/booking/info/service/editService/index.js +234 -142
- package/es/components/booking/info/service/serve.d.ts +10 -0
- package/es/components/booking/info/service/serve.js +28 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +55 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service/serviceManager/index.js +277 -0
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/utils.js +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Group/utils.js +146 -0
- package/es/components/booking/info/service2/Lists.js +27 -33
- package/es/components/booking/info/service2/index.d.ts +4 -1
- package/es/components/booking/info/service2/index.js +5 -6
- package/es/components/booking/info/service2/status.js +1 -1
- package/es/components/booking/info/service2/utils.d.ts +95 -3
- package/es/components/booking/info/service2/utils.js +678 -52
- package/es/components/booking/info/utils.d.ts +11 -0
- package/es/components/booking/info/utils.js +24 -0
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -1
- package/es/components/booking/utils.js +5 -4
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/step/index.d.ts +6 -6
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/Product.js +11 -39
- package/es/components/shoppingCart/components/Render/index.js +8 -7
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +12 -4
- package/es/components/shoppingCart/hooks/useClearCart.js +10 -5
- package/es/components/shoppingCart/type.d.ts +1 -1
- package/es/components/shoppingCart/utils.js +2 -5
- package/lib/components/booking/addons/model.d.ts +1 -1
- package/lib/components/booking/components/footer/amount.js +4 -3
- package/lib/components/booking/components/footer/utils.js +28 -28
- package/lib/components/booking/forms/model.d.ts +1 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +51 -1
- package/lib/components/booking/info/main.js +6 -5
- package/lib/components/booking/info/pet/ChangePetModal/index.js +33 -23
- package/lib/components/booking/info/service/addService/index.js +50 -92
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.js +27 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +5 -0
- package/lib/components/booking/info/service/editService/BookingList/index.js +55 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.js +75 -0
- package/lib/components/booking/info/service/editService/index.js +309 -234
- package/lib/components/booking/info/service/serve.d.ts +10 -0
- package/lib/components/booking/info/service/serve.js +7 -2
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +70 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service/serviceManager/index.js +207 -0
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Group/utils.js +142 -0
- package/lib/components/booking/info/service2/Lists.js +14 -12
- package/lib/components/booking/info/service2/index.d.ts +4 -1
- package/lib/components/booking/info/service2/index.js +5 -5
- package/lib/components/booking/info/service2/status.js +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +95 -3
- package/lib/components/booking/info/service2/utils.js +404 -48
- package/lib/components/booking/info/utils.d.ts +11 -0
- package/lib/components/booking/info/utils.js +35 -0
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -1
- package/lib/components/booking/utils.js +3 -4
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/step/index.d.ts +6 -6
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +6 -22
- package/lib/components/shoppingCart/components/Render/index.js +6 -10
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +12 -4
- package/lib/components/shoppingCart/hooks/useClearCart.js +4 -9
- package/lib/components/shoppingCart/type.d.ts +1 -1
- package/lib/components/shoppingCart/utils.js +2 -8
- package/package.json +4 -4
|
@@ -25,23 +25,30 @@ import { Context } from "../../model";
|
|
|
25
25
|
import { formatAmount, locales } from '@pisell/utils';
|
|
26
26
|
import Duration from "../../../materiels/duration";
|
|
27
27
|
import Holder from "../../../materiels/holder";
|
|
28
|
+
import '@pisell/materials';
|
|
28
29
|
import { Input, Button, Select, Row, Col, Form, Alert, InputNumber, DatePicker } from 'antd';
|
|
29
30
|
import "./index.less";
|
|
30
31
|
import CollapsibleList from "../../../components/collapsibleList";
|
|
31
32
|
import { renderBundles } from "../../../components/collapsibleList/utils";
|
|
32
33
|
import { useUpdateEffect, useMemoizedFn } from 'ahooks';
|
|
34
|
+
import BookingList from "./BookingList";
|
|
33
35
|
// import SelectTime from "../../../../../../../materials/src/components/select-time";
|
|
34
|
-
import { getErrorList,
|
|
36
|
+
import { getErrorList, getProductTotalPrice, getDays } from "../../../utils";
|
|
35
37
|
import Like from "../like";
|
|
36
38
|
import { getNoResource } from "../../../mock";
|
|
37
|
-
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
|
|
39
|
+
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj, getMultiDay } from "../addService/utils";
|
|
38
40
|
import { PisellAdjustPriceInputNumber, Page } from '@pisell/materials';
|
|
39
41
|
import dayjs from 'dayjs';
|
|
40
42
|
import useSelectPet from "../../service2/hooks/useSelectPet";
|
|
41
|
-
import { disabledDate as _disabledDate, isDayBooking, formatDayTime,
|
|
43
|
+
import { disabledDate as _disabledDate, isDayBooking, formatDayTime, isDayBookingProduct } from "../../service2/utils";
|
|
44
|
+
import { createBookingItemsByGroup, getGroupTotalPrice } from "../../service2/Group/utils";
|
|
45
|
+
import { isGroupBooking, filterItemByGroupId } from "../../service2/Group/utils";
|
|
46
|
+
import { getMultiDayPrices } from "../../utils";
|
|
47
|
+
import { useService } from "../serviceManager";
|
|
48
|
+
import EditTabs from "./EditTabs";
|
|
42
49
|
var submitLock = false;
|
|
43
50
|
var Info = function Info(_, ref) {
|
|
44
|
-
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$
|
|
51
|
+
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service4, _state$service4$cache, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service6$cache3, _state$service8, _state$service8$cache, _state$service8$cache2, _state$date, _state$date$value, _state$date$value$for, _state$date2, _window$BaseMaterials, _state$service$cacheI19, _state$service10, _state$service10$cach, _state$service10$cach2, _state$service$cacheI20, _state$service$cacheI21, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$bookingConfig12;
|
|
45
52
|
var _Form$useForm = Form.useForm(),
|
|
46
53
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
47
54
|
form = _Form$useForm2[0];
|
|
@@ -66,15 +73,26 @@ var Info = function Info(_, ref) {
|
|
|
66
73
|
setSelectOpen = _useState4[1];
|
|
67
74
|
var _useSelectPet = useSelectPet(state),
|
|
68
75
|
holderLists = _useSelectPet.holderLists;
|
|
69
|
-
var
|
|
76
|
+
var _useService = useService({
|
|
77
|
+
state: state,
|
|
78
|
+
dispatch: dispatch
|
|
79
|
+
}),
|
|
80
|
+
editBookingData = _useService.editBookingData,
|
|
81
|
+
editBooking = _useService.editBooking;
|
|
82
|
+
var _useState5 = useState('batch_edit'),
|
|
83
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
84
|
+
currentTab = _useState6[0],
|
|
85
|
+
setCurrentTab = _useState6[1];
|
|
86
|
+
var isDayBookingMode = useMemo(function () {
|
|
70
87
|
return isDayBooking(state);
|
|
71
|
-
}, [state.renderType]);
|
|
88
|
+
}, [state === null || state === void 0 ? void 0 : state.renderType]);
|
|
72
89
|
|
|
73
90
|
// 当前商品信息+ 表单信息
|
|
74
91
|
var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
|
|
92
|
+
var _state$service;
|
|
75
93
|
// 获取当前表单数据
|
|
76
94
|
var values = form.getFieldsValue();
|
|
77
|
-
var _item = _cacheItem || state.service.cacheItem;
|
|
95
|
+
var _item = _cacheItem || (state === null || state === void 0 ? void 0 : (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.cacheItem);
|
|
78
96
|
return _objectSpread(_objectSpread({}, _item), {}, {
|
|
79
97
|
_extend: _objectSpread(_objectSpread({}, _item === null || _item === void 0 ? void 0 : _item._extend), values)
|
|
80
98
|
});
|
|
@@ -190,7 +208,7 @@ var Info = function Info(_, ref) {
|
|
|
190
208
|
resources: formatResources({
|
|
191
209
|
cacheItem: _cacheItem,
|
|
192
210
|
resourcesOrigin: _list,
|
|
193
|
-
isDay:
|
|
211
|
+
isDay: isDayBookingMode
|
|
194
212
|
})
|
|
195
213
|
}
|
|
196
214
|
});
|
|
@@ -238,9 +256,13 @@ var Info = function Info(_, ref) {
|
|
|
238
256
|
}
|
|
239
257
|
var _list = _toConsumableArray(state.service.value);
|
|
240
258
|
var _id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
259
|
+
if (isGroupBooking(_id)) {
|
|
260
|
+
_list = filterItemByGroupId(_id, _list);
|
|
261
|
+
} else {
|
|
262
|
+
_list = _list.filter(function (d) {
|
|
263
|
+
return d._id !== _id;
|
|
264
|
+
});
|
|
265
|
+
}
|
|
244
266
|
dispatch({
|
|
245
267
|
type: 'setService',
|
|
246
268
|
payload: {
|
|
@@ -349,84 +371,49 @@ var Info = function Info(_, ref) {
|
|
|
349
371
|
* @Author: zhiwei.Wang
|
|
350
372
|
* @Date: 2024-01-09 14:04
|
|
351
373
|
*/
|
|
352
|
-
var onFinish = useMemoizedFn(function (
|
|
353
|
-
var
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
var _item = _objectSpread(_objectSpread({}, state.service.cacheItem), {}, {
|
|
366
|
-
autoClose: false,
|
|
367
|
-
errorList: errorList
|
|
368
|
-
});
|
|
369
|
-
var _extend = _objectSpread(_objectSpread({}, _item._extend), values);
|
|
370
|
-
|
|
371
|
-
// 跨日预约
|
|
372
|
-
if (isAppointment(state.service.cacheItem, state)) {
|
|
373
|
-
// _extend = formatDayTime(_extend);
|
|
374
|
-
|
|
375
|
-
// 更新商品数量和更新日期
|
|
376
|
-
_extend.quantity = useDuration || 1;
|
|
377
|
-
_extend.startDate = _extend === null || _extend === void 0 ? void 0 : _extend.start_date;
|
|
378
|
-
_extend.endDate = _extend === null || _extend === void 0 ? void 0 : _extend.end_date;
|
|
379
|
-
} else {
|
|
380
|
-
var _getServiceTimes = getServiceTimes({
|
|
381
|
-
_extend: _extend
|
|
382
|
-
}),
|
|
383
|
-
startDate = _getServiceTimes.startDate,
|
|
384
|
-
endDate = _getServiceTimes.endDate;
|
|
385
|
-
_extend.startDate = startDate;
|
|
386
|
-
_extend.endDate = endDate;
|
|
387
|
-
}
|
|
388
|
-
var _ref2 = (currentResource === null || currentResource === void 0 ? void 0 : (_currentResource$_ext = currentResource._extend) === null || _currentResource$_ext === void 0 ? void 0 : _currentResource$_ext.usableTime) || {},
|
|
389
|
-
relation_type = _ref2.relation_type,
|
|
390
|
-
item_id = _ref2.item_id,
|
|
391
|
-
schedule_id = _ref2.schedule_id;
|
|
392
|
-
_extend.relation_type = relation_type || 'form';
|
|
393
|
-
_extend.relation_id = item_id || (currentResource === null || currentResource === void 0 ? void 0 : currentResource.form_record_id) || 0;
|
|
394
|
-
_extend.schedule_id = schedule_id || 0;
|
|
395
|
-
if (_extend.bundle_edit !== undefined) {
|
|
396
|
-
_extend.bundle_edit = 1;
|
|
397
|
-
}
|
|
398
|
-
_item._extend = _extend;
|
|
399
|
-
_item._time = new Date().getTime();
|
|
400
|
-
var _id = _item === null || _item === void 0 ? void 0 : _item._id;
|
|
374
|
+
var onFinish = useMemoizedFn( /*#__PURE__*/function () {
|
|
375
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
|
|
376
|
+
var data;
|
|
377
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
378
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
379
|
+
case 0:
|
|
380
|
+
if (!submitLock) {
|
|
381
|
+
_context2.next = 2;
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
return _context2.abrupt("return");
|
|
385
|
+
case 2:
|
|
386
|
+
submitLock = true;
|
|
401
387
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
427
|
-
});
|
|
388
|
+
// 1500毫秒后解除
|
|
389
|
+
setTimeout(function () {
|
|
390
|
+
submitLock = false;
|
|
391
|
+
}, 1500);
|
|
392
|
+
_context2.next = 6;
|
|
393
|
+
return editBookingData({
|
|
394
|
+
changeValues: _objectSpread(_objectSpread({}, values), {}, {
|
|
395
|
+
errorList: errorList
|
|
396
|
+
})
|
|
397
|
+
});
|
|
398
|
+
case 6:
|
|
399
|
+
data = _context2.sent;
|
|
400
|
+
_context2.next = 9;
|
|
401
|
+
return editBooking({
|
|
402
|
+
booking: data
|
|
403
|
+
});
|
|
404
|
+
case 9:
|
|
405
|
+
case "end":
|
|
406
|
+
return _context2.stop();
|
|
407
|
+
}
|
|
408
|
+
}, _callee2);
|
|
409
|
+
}));
|
|
410
|
+
return function (_x4) {
|
|
411
|
+
return _ref2.apply(this, arguments);
|
|
412
|
+
};
|
|
413
|
+
}());
|
|
428
414
|
var setEditData = useMemoizedFn(function (_cacheItem, open) {
|
|
429
415
|
var _values;
|
|
416
|
+
setCurrentTab('batch_edit');
|
|
430
417
|
var cacheItem = _cacheItem || state.service.cacheItem;
|
|
431
418
|
var values = cacheItem._extend;
|
|
432
419
|
|
|
@@ -466,7 +453,7 @@ var Info = function Info(_, ref) {
|
|
|
466
453
|
* @Date: 2024-01-09 14:06
|
|
467
454
|
*/
|
|
468
455
|
var errorList = useMemo(function () {
|
|
469
|
-
return getErrorList(currentResource, getCurrentCacheItem(),
|
|
456
|
+
return getErrorList(currentResource, getCurrentCacheItem(), isDayBookingMode);
|
|
470
457
|
}, [currentResource, useDuration, useStartTime]);
|
|
471
458
|
|
|
472
459
|
/**
|
|
@@ -530,22 +517,33 @@ var Info = function Info(_, ref) {
|
|
|
530
517
|
// handleLikeResource("common");
|
|
531
518
|
// }, [useResource]);
|
|
532
519
|
var isDiscount = useMemo(function () {
|
|
533
|
-
var _state$
|
|
534
|
-
if (!((_state$
|
|
520
|
+
var _state$service2, _state$service3, _state$service3$cache;
|
|
521
|
+
if (!((_state$service2 = state.service) !== null && _state$service2 !== void 0 && _state$service2.cacheItem)) {
|
|
535
522
|
return false;
|
|
536
523
|
}
|
|
537
|
-
return useTotal != ((_state$
|
|
538
|
-
}, [useTotal, (_state$
|
|
524
|
+
return useTotal != ((_state$service3 = state.service) === null || _state$service3 === void 0 ? void 0 : (_state$service3$cache = _state$service3.cacheItem) === null || _state$service3$cache === void 0 ? void 0 : _state$service3$cache._extend.origin_total);
|
|
525
|
+
}, [useTotal, (_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$cache = _state$service4.cacheItem) === null || _state$service4$cache === void 0 ? void 0 : _state$service4$cache._extend.origin_total]);
|
|
539
526
|
useEffect(function () {
|
|
540
527
|
if (useResource === 0) {
|
|
541
528
|
handleLikeResource('common');
|
|
542
529
|
}
|
|
543
530
|
}, [useResource]);
|
|
544
531
|
var bundles = useMemo(function () {
|
|
545
|
-
var _state$
|
|
546
|
-
return ((_state$
|
|
547
|
-
}, [(_state$
|
|
548
|
-
|
|
532
|
+
var _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3;
|
|
533
|
+
return ((_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : (_state$service5$cache = _state$service5.cacheItem) === null || _state$service5$cache === void 0 ? void 0 : (_state$service5$cache2 = _state$service5$cache._extend) === null || _state$service5$cache2 === void 0 ? void 0 : (_state$service5$cache3 = _state$service5$cache2.other) === null || _state$service5$cache3 === void 0 ? void 0 : _state$service5$cache3.bundle) || [];
|
|
534
|
+
}, [(_state$service6 = state.service) === null || _state$service6 === void 0 ? void 0 : (_state$service6$cache = _state$service6.cacheItem) === null || _state$service6$cache === void 0 ? void 0 : (_state$service6$cache2 = _state$service6$cache._extend) === null || _state$service6$cache2 === void 0 ? void 0 : (_state$service6$cache3 = _state$service6$cache2.other) === null || _state$service6$cache3 === void 0 ? void 0 : _state$service6$cache3.bundle]);
|
|
535
|
+
var multiDayPrices = useMemo(function () {
|
|
536
|
+
var _state$service7, _state$service7$cache, _state$service7$cache2;
|
|
537
|
+
return Object.entries(getMultiDayPrices(((_state$service7 = state.service) === null || _state$service7 === void 0 ? void 0 : (_state$service7$cache = _state$service7.cacheItem) === null || _state$service7$cache === void 0 ? void 0 : (_state$service7$cache2 = _state$service7$cache._extend) === null || _state$service7$cache2 === void 0 ? void 0 : _state$service7$cache2.multi_day) || [])).map(function (_ref3) {
|
|
538
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
539
|
+
key = _ref4[0],
|
|
540
|
+
value = _ref4[1];
|
|
541
|
+
return {
|
|
542
|
+
key: key,
|
|
543
|
+
value: value
|
|
544
|
+
};
|
|
545
|
+
});
|
|
546
|
+
}, [(_state$service8 = state.service) === null || _state$service8 === void 0 ? void 0 : (_state$service8$cache = _state$service8.cacheItem) === null || _state$service8$cache === void 0 ? void 0 : (_state$service8$cache2 = _state$service8$cache._extend) === null || _state$service8$cache2 === void 0 ? void 0 : _state$service8$cache2.multi_day]);
|
|
549
547
|
/**
|
|
550
548
|
* @title: 获取资源列表数据
|
|
551
549
|
* @description:
|
|
@@ -554,16 +552,16 @@ var Info = function Info(_, ref) {
|
|
|
554
552
|
* @Date: 2024-01-09 13:38
|
|
555
553
|
*/
|
|
556
554
|
var getResourcesData = /*#__PURE__*/function () {
|
|
557
|
-
var
|
|
555
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
558
556
|
var params, format, startDate, endDate, _formatDayTime, startDateTime, endDateTime, data, _list;
|
|
559
|
-
return _regeneratorRuntime().wrap(function
|
|
560
|
-
while (1) switch (
|
|
557
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
558
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
561
559
|
case 0:
|
|
562
560
|
setResourceLoading(true);
|
|
563
|
-
|
|
561
|
+
_context3.prev = 1;
|
|
564
562
|
params = {};
|
|
565
|
-
if (!
|
|
566
|
-
|
|
563
|
+
if (!isDayBookingMode) {
|
|
564
|
+
_context3.next = 13;
|
|
567
565
|
break;
|
|
568
566
|
}
|
|
569
567
|
format = 'YYYY-MM-DD HH:mm';
|
|
@@ -574,21 +572,21 @@ var Info = function Info(_, ref) {
|
|
|
574
572
|
endDate: endDate
|
|
575
573
|
}), startDateTime = _formatDayTime.startDateTime, endDateTime = _formatDayTime.endDateTime;
|
|
576
574
|
if (!dayjs(startDateTime).isAfter(dayjs(endDateTime))) {
|
|
577
|
-
|
|
575
|
+
_context3.next = 10;
|
|
578
576
|
break;
|
|
579
577
|
}
|
|
580
|
-
return
|
|
578
|
+
return _context3.abrupt("return");
|
|
581
579
|
case 10:
|
|
582
580
|
params.check_time = {
|
|
583
581
|
start_time: dayjs(startDateTime).format(format),
|
|
584
582
|
end_time: dayjs(endDateTime).format(format)
|
|
585
583
|
};
|
|
586
|
-
|
|
584
|
+
_context3.next = 14;
|
|
587
585
|
break;
|
|
588
586
|
case 13:
|
|
589
587
|
params.with_date_times = state.date.value.format('YYYY-MM-DD');
|
|
590
588
|
case 14:
|
|
591
|
-
|
|
589
|
+
_context3.next = 16;
|
|
592
590
|
return state.apis.getResources(_objectSpread({
|
|
593
591
|
skip: 1,
|
|
594
592
|
num: 1000,
|
|
@@ -598,7 +596,7 @@ var Info = function Info(_, ref) {
|
|
|
598
596
|
}
|
|
599
597
|
}, params));
|
|
600
598
|
case 16:
|
|
601
|
-
data =
|
|
599
|
+
data = _context3.sent;
|
|
602
600
|
// 合并无资源
|
|
603
601
|
_list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
604
602
|
dispatch({
|
|
@@ -607,22 +605,22 @@ var Info = function Info(_, ref) {
|
|
|
607
605
|
resourcesOrigin: _list
|
|
608
606
|
}
|
|
609
607
|
});
|
|
610
|
-
|
|
608
|
+
_context3.next = 24;
|
|
611
609
|
break;
|
|
612
610
|
case 21:
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
console.log(
|
|
611
|
+
_context3.prev = 21;
|
|
612
|
+
_context3.t0 = _context3["catch"](1);
|
|
613
|
+
console.log(_context3.t0, 'err');
|
|
616
614
|
case 24:
|
|
617
615
|
setResourceLoading(false);
|
|
618
616
|
case 25:
|
|
619
617
|
case "end":
|
|
620
|
-
return
|
|
618
|
+
return _context3.stop();
|
|
621
619
|
}
|
|
622
|
-
},
|
|
620
|
+
}, _callee3, null, [[1, 21]]);
|
|
623
621
|
}));
|
|
624
622
|
return function getResourcesData() {
|
|
625
|
-
return
|
|
623
|
+
return _ref5.apply(this, arguments);
|
|
626
624
|
};
|
|
627
625
|
}();
|
|
628
626
|
useEffect(function () {
|
|
@@ -640,14 +638,14 @@ var Info = function Info(_, ref) {
|
|
|
640
638
|
* @Date: 2024-08-28 17:08
|
|
641
639
|
*/
|
|
642
640
|
var handleEdit = useMemoizedFn(function (e) {
|
|
643
|
-
var _item$_extend3;
|
|
641
|
+
var _item$_extend3, _state$client, _state$client$value;
|
|
644
642
|
// 当前商品
|
|
645
643
|
var item = state.service.cacheItem;
|
|
646
644
|
|
|
647
645
|
// 表单数据
|
|
648
646
|
var values = form.getFieldsValue();
|
|
649
647
|
var dayValue = {};
|
|
650
|
-
if (
|
|
648
|
+
if (isDayBookingMode) {
|
|
651
649
|
var _item$_extend, _item$_extend$other, _item$_extend$other$o, _item$_extend2, _item$_extend2$other;
|
|
652
650
|
// 格式化单规格
|
|
653
651
|
var option = (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : (_item$_extend$other$o = _item$_extend$other.option) === null || _item$_extend$other$o === void 0 ? void 0 : _item$_extend$other$o.map(function (o) {
|
|
@@ -666,12 +664,13 @@ var Info = function Info(_, ref) {
|
|
|
666
664
|
id: item.id,
|
|
667
665
|
date: state.date.value.format('YYYY-MM-DD'),
|
|
668
666
|
showConfig: {
|
|
669
|
-
option:
|
|
667
|
+
option: isDayBookingMode ? true : false,
|
|
670
668
|
session: false,
|
|
671
|
-
variant:
|
|
669
|
+
variant: isDayBookingMode ? true : false,
|
|
672
670
|
package: true
|
|
673
671
|
},
|
|
674
|
-
value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue)
|
|
672
|
+
value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue),
|
|
673
|
+
customer_id: isDayBookingMode ? ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id) || 1 : undefined
|
|
675
674
|
},
|
|
676
675
|
callback: function callback(e) {
|
|
677
676
|
var _cacheItem$_extend, _cacheItem$_extend$ot;
|
|
@@ -709,11 +708,12 @@ var Info = function Info(_, ref) {
|
|
|
709
708
|
cacheItem: cacheItem
|
|
710
709
|
}
|
|
711
710
|
});
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
711
|
+
setTimeout(function () {
|
|
712
|
+
updateMultiDay({
|
|
713
|
+
start_date: values.start_date,
|
|
714
|
+
end_date: values.end_date
|
|
715
|
+
});
|
|
716
|
+
}, 100);
|
|
717
717
|
}
|
|
718
718
|
});
|
|
719
719
|
});
|
|
@@ -768,6 +768,58 @@ var Info = function Info(_, ref) {
|
|
|
768
768
|
});
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
+
/**
|
|
772
|
+
* @title: 更新报价单价格
|
|
773
|
+
* @description:
|
|
774
|
+
* @param {any} param1
|
|
775
|
+
* @return {*}
|
|
776
|
+
* @Author: WangHan
|
|
777
|
+
* @Date: 2024-12-29 23:17
|
|
778
|
+
*/
|
|
779
|
+
var updateMultiDay = /*#__PURE__*/function () {
|
|
780
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref6) {
|
|
781
|
+
var start_date, end_date, duration, cacheItem, fieldsValues;
|
|
782
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
783
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
784
|
+
case 0:
|
|
785
|
+
start_date = _ref6.start_date, end_date = _ref6.end_date, duration = _ref6.duration;
|
|
786
|
+
_context4.next = 3;
|
|
787
|
+
return getMultiDay({
|
|
788
|
+
start_date: start_date,
|
|
789
|
+
end_date: end_date,
|
|
790
|
+
state: state,
|
|
791
|
+
cacheItem: getCurrentCacheItem()
|
|
792
|
+
});
|
|
793
|
+
case 3:
|
|
794
|
+
cacheItem = _context4.sent;
|
|
795
|
+
// 兼容时长为空的情况
|
|
796
|
+
if (duration !== undefined) {
|
|
797
|
+
cacheItem._extend.duration = duration;
|
|
798
|
+
}
|
|
799
|
+
cacheItem._extend.items = createBookingItemsByGroup(cacheItem);
|
|
800
|
+
cacheItem._extend = _objectSpread(_objectSpread({}, cacheItem._extend), getGroupTotalPrice(cacheItem._extend.items));
|
|
801
|
+
// 覆盖商品
|
|
802
|
+
dispatch({
|
|
803
|
+
type: 'setService',
|
|
804
|
+
payload: {
|
|
805
|
+
cacheItem: cacheItem
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
fieldsValues = {
|
|
809
|
+
total: cacheItem._extend.total
|
|
810
|
+
}; // 更新表单内的商品价格
|
|
811
|
+
form.setFieldsValue(fieldsValues);
|
|
812
|
+
case 10:
|
|
813
|
+
case "end":
|
|
814
|
+
return _context4.stop();
|
|
815
|
+
}
|
|
816
|
+
}, _callee4);
|
|
817
|
+
}));
|
|
818
|
+
return function updateMultiDay(_x5) {
|
|
819
|
+
return _ref7.apply(this, arguments);
|
|
820
|
+
};
|
|
821
|
+
}();
|
|
822
|
+
|
|
771
823
|
/**
|
|
772
824
|
* @title: 表单更新
|
|
773
825
|
* @description:
|
|
@@ -778,11 +830,19 @@ var Info = function Info(_, ref) {
|
|
|
778
830
|
*/
|
|
779
831
|
var onValuesChange = function onValuesChange(changedValues) {
|
|
780
832
|
// 跨日预约
|
|
781
|
-
if (
|
|
833
|
+
if (isDayBookingMode) {
|
|
782
834
|
// 根据时长更新结束时间
|
|
783
835
|
if (changedValues !== null && changedValues !== void 0 && changedValues.duration) {
|
|
784
|
-
|
|
785
|
-
|
|
836
|
+
var end_date = dayjs(useStartDate).add(changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration, 'day');
|
|
837
|
+
form.setFieldsValue({
|
|
838
|
+
end_date: end_date
|
|
839
|
+
});
|
|
840
|
+
|
|
841
|
+
// 跨日预约报价单
|
|
842
|
+
return updateMultiDay({
|
|
843
|
+
start_date: useStartDate,
|
|
844
|
+
end_date: end_date,
|
|
845
|
+
duration: changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration
|
|
786
846
|
});
|
|
787
847
|
}
|
|
788
848
|
|
|
@@ -803,6 +863,13 @@ var Info = function Info(_, ref) {
|
|
|
803
863
|
if (changedValues !== null && changedValues !== void 0 && changedValues.start_date || changedValues !== null && changedValues !== void 0 && changedValues.end_date) {
|
|
804
864
|
var _cacheItem2 = getCurrentCacheItem();
|
|
805
865
|
var duration = getDays(_cacheItem2, 'days');
|
|
866
|
+
var start_date = (changedValues === null || changedValues === void 0 ? void 0 : changedValues.start_date) || useStartDate;
|
|
867
|
+
var _end_date = (changedValues === null || changedValues === void 0 ? void 0 : changedValues.end_date) || useEndDate;
|
|
868
|
+
updateMultiDay({
|
|
869
|
+
start_date: start_date,
|
|
870
|
+
end_date: _end_date,
|
|
871
|
+
duration: duration
|
|
872
|
+
});
|
|
806
873
|
return form.setFieldsValue({
|
|
807
874
|
duration: duration
|
|
808
875
|
});
|
|
@@ -823,14 +890,21 @@ var Info = function Info(_, ref) {
|
|
|
823
890
|
return false;
|
|
824
891
|
}
|
|
825
892
|
|
|
826
|
-
// 跨日预约
|
|
827
|
-
if (
|
|
828
|
-
return
|
|
893
|
+
// 跨日预约 预约商品才展示
|
|
894
|
+
if (isDayBookingMode) {
|
|
895
|
+
return isDayBookingProduct(state.service.cacheItem, state);
|
|
829
896
|
}
|
|
830
897
|
return true;
|
|
831
898
|
}, [state.service.cacheItem, state.renderType]);
|
|
899
|
+
var items = useMemo(function () {
|
|
900
|
+
var _getCurrentCacheItem, _getCurrentCacheItem$;
|
|
901
|
+
return ((_getCurrentCacheItem = getCurrentCacheItem()) === null || _getCurrentCacheItem === void 0 ? void 0 : (_getCurrentCacheItem$ = _getCurrentCacheItem._extend) === null || _getCurrentCacheItem$ === void 0 ? void 0 : _getCurrentCacheItem$.items) || [];
|
|
902
|
+
}, [getCurrentCacheItem(), state.service.cacheItem, useLikeStatus, currentResource, useTotal]);
|
|
903
|
+
var isEditGroup = useMemo(function () {
|
|
904
|
+
return items.length;
|
|
905
|
+
}, [items]);
|
|
832
906
|
return useMemo(function () {
|
|
833
|
-
var _state$service$cacheI10, _state$
|
|
907
|
+
var _state$service$cacheI10, _state$service9, _state$service9$cache, _state$service9$cache2, _state$service$cacheI11, _state$service$cacheI12, _state$service$cacheI13, _state$service$cacheI14, _state$service$cacheI15, _state$service$cacheI16, _state$service$cacheI17, _state$service$cacheI18, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8;
|
|
834
908
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer
|
|
835
909
|
//通过zIndex的方式控制 添加商品 和 编辑服务弹窗的上下层级
|
|
836
910
|
, {
|
|
@@ -838,7 +912,7 @@ var Info = function Info(_, ref) {
|
|
|
838
912
|
zIndex: state.service.changeService ? 999 : 1000,
|
|
839
913
|
forceRender: true,
|
|
840
914
|
open: state.service.editModal && !((_state$service$cacheI10 = state.service.cacheItem) !== null && _state$service$cacheI10 !== void 0 && _state$service$cacheI10.autoClose),
|
|
841
|
-
title:
|
|
915
|
+
title: isDayBookingMode ? locales.getText('pisell2.text.edit-select-service') : locales.getText('pisell2.text.edit-service'),
|
|
842
916
|
onClose: function onClose() {
|
|
843
917
|
dispatch({
|
|
844
918
|
type: 'setService',
|
|
@@ -851,7 +925,25 @@ var Info = function Info(_, ref) {
|
|
|
851
925
|
}
|
|
852
926
|
}, /*#__PURE__*/React.createElement("div", {
|
|
853
927
|
className: "pisell-lowcode__booking-service-body-edit"
|
|
854
|
-
}, /*#__PURE__*/React.createElement(
|
|
928
|
+
}, isEditGroup ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EditTabs, {
|
|
929
|
+
value: currentTab,
|
|
930
|
+
onChange: function onChange(e) {
|
|
931
|
+
console.log(e);
|
|
932
|
+
setCurrentTab(e);
|
|
933
|
+
}
|
|
934
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
935
|
+
className: "",
|
|
936
|
+
style: {
|
|
937
|
+
display: currentTab === 'booking_list' ? 'block' : 'none'
|
|
938
|
+
}
|
|
939
|
+
}, /*#__PURE__*/React.createElement(BookingList, {
|
|
940
|
+
items: items
|
|
941
|
+
}))) : null, /*#__PURE__*/React.createElement("div", {
|
|
942
|
+
className: "",
|
|
943
|
+
style: {
|
|
944
|
+
display: currentTab === 'batch_edit' ? 'block' : 'none'
|
|
945
|
+
}
|
|
946
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
|
|
855
947
|
layout: "vertical",
|
|
856
948
|
form: form,
|
|
857
949
|
onFinish: onFinish,
|
|
@@ -871,7 +963,7 @@ var Info = function Info(_, ref) {
|
|
|
871
963
|
className: "current-service-info-name-wrap"
|
|
872
964
|
}, /*#__PURE__*/React.createElement("div", {
|
|
873
965
|
className: "current-service-info-name"
|
|
874
|
-
}, ((_state$
|
|
966
|
+
}, ((_state$service9 = state.service) === null || _state$service9 === void 0 ? void 0 : (_state$service9$cache = _state$service9.cacheItem) === null || _state$service9$cache === void 0 ? void 0 : (_state$service9$cache2 = _state$service9$cache._extend) === null || _state$service9$cache2 === void 0 ? void 0 : _state$service9$cache2.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
|
|
875
967
|
onClick: handleEdit
|
|
876
968
|
}, locales.getText('pisell2.text.edit')), !isTerminalBooking && /*#__PURE__*/React.createElement(Button, {
|
|
877
969
|
onClick: handleChange
|
|
@@ -912,12 +1004,12 @@ var Info = function Info(_, ref) {
|
|
|
912
1004
|
}))) : null, showResource && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
|
|
913
1005
|
span: 12
|
|
914
1006
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
915
|
-
label: locales.getText(
|
|
916
|
-
name:
|
|
1007
|
+
label: locales.getText(isDayBookingMode ? 'pisell2.text.start_date' : 'pisell2.text.start_time'),
|
|
1008
|
+
name: isDayBookingMode ? 'start_date' : 'start_time',
|
|
917
1009
|
rules: [{
|
|
918
1010
|
required: true
|
|
919
1011
|
}]
|
|
920
|
-
},
|
|
1012
|
+
}, isDayBookingMode ? DateCom('start') : SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
|
|
921
1013
|
slice: (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.config) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.basic) === null || _state$bookingConfig7 === void 0 ? void 0 : (_state$bookingConfig8 = _state$bookingConfig7.service_time) === null || _state$bookingConfig8 === void 0 ? void 0 : _state$bookingConfig8.value,
|
|
922
1014
|
timePickerProps: {
|
|
923
1015
|
style: {
|
|
@@ -929,10 +1021,10 @@ var Info = function Info(_, ref) {
|
|
|
929
1021
|
zoom: 0.8
|
|
930
1022
|
}
|
|
931
1023
|
}
|
|
932
|
-
}) : null)),
|
|
1024
|
+
}) : null)), isDayBookingMode ? /*#__PURE__*/React.createElement(Col, {
|
|
933
1025
|
span: 12
|
|
934
1026
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
935
|
-
label: locales.getText(
|
|
1027
|
+
label: locales.getText(isDayBookingMode ? 'pisell2.text.end_date' : 'pisell2.text.end_time'),
|
|
936
1028
|
name: "end_date",
|
|
937
1029
|
rules: [{
|
|
938
1030
|
required: true
|
|
@@ -947,7 +1039,7 @@ var Info = function Info(_, ref) {
|
|
|
947
1039
|
}]
|
|
948
1040
|
}, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
|
|
949
1041
|
timeObj: timeObj
|
|
950
|
-
})))),
|
|
1042
|
+
})))), isDayBookingMode && (holderLists === null || holderLists === void 0 ? void 0 : holderLists.length) > 0 ? /*#__PURE__*/React.createElement(Col, {
|
|
951
1043
|
span: 12
|
|
952
1044
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
953
1045
|
label: locales.getText('pisell2.text.holder'),
|
|
@@ -997,7 +1089,7 @@ var Info = function Info(_, ref) {
|
|
|
997
1089
|
}, /*#__PURE__*/React.createElement(InputNumber, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
998
1090
|
hidden: true,
|
|
999
1091
|
name: "like_status"
|
|
1000
|
-
}, /*#__PURE__*/React.createElement(Input, null))),
|
|
1092
|
+
}, /*#__PURE__*/React.createElement(Input, null))), isDayBookingMode && !isDayBookingProduct(state.service.cacheItem, state) ? /*#__PURE__*/React.createElement(Col, {
|
|
1001
1093
|
span: 24
|
|
1002
1094
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
1003
1095
|
label: locales.getText('pisell2.text.quantity'),
|
|
@@ -1029,7 +1121,7 @@ var Info = function Info(_, ref) {
|
|
|
1029
1121
|
marginBottom: 12
|
|
1030
1122
|
}
|
|
1031
1123
|
});
|
|
1032
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
1124
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
1033
1125
|
className: "pisell-lowcode__booking-service-body-edit-footer"
|
|
1034
1126
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1035
1127
|
className: "pisell-lowcode__booking-service-delete-wrap",
|
|
@@ -1044,6 +1136,6 @@ var Info = function Info(_, ref) {
|
|
|
1044
1136
|
form.submit();
|
|
1045
1137
|
}
|
|
1046
1138
|
}, locales.getText('pisell2.text.apply'))))));
|
|
1047
|
-
}, [state.service.changeService, state.service.editModal, (_state$service$cacheI19 = state.service.cacheItem) === null || _state$service$cacheI19 === void 0 ? void 0 : _state$service$cacheI19.autoClose, locales, (_state$
|
|
1139
|
+
}, [state.service.changeService, state.service.editModal, (_state$service$cacheI19 = state.service.cacheItem) === null || _state$service$cacheI19 === void 0 ? void 0 : _state$service$cacheI19.autoClose, locales, (_state$service10 = state.service) === null || _state$service10 === void 0 ? void 0 : (_state$service10$cach = _state$service10.cacheItem) === null || _state$service10$cach === void 0 ? void 0 : (_state$service10$cach2 = _state$service10$cach._extend) === null || _state$service10$cach2 === void 0 ? void 0 : _state$service10$cach2.product_name, bundles, state.amountSymbol, state.channelDisabledEdit, (_state$service$cacheI20 = state.service.cacheItem) === null || _state$service$cacheI20 === void 0 ? void 0 : (_state$service$cacheI21 = _state$service$cacheI20._extend) === null || _state$service$cacheI21 === void 0 ? void 0 : _state$service$cacheI21.origin_total, isDiscount, isReason, state.renderType, (_state$bookingConfig9 = state.bookingConfig) === null || _state$bookingConfig9 === void 0 ? void 0 : (_state$bookingConfig10 = _state$bookingConfig9.config) === null || _state$bookingConfig10 === void 0 ? void 0 : (_state$bookingConfig11 = _state$bookingConfig10.basic) === null || _state$bookingConfig11 === void 0 ? void 0 : (_state$bookingConfig12 = _state$bookingConfig11.service_time) === null || _state$bookingConfig12 === void 0 ? void 0 : _state$bookingConfig12.value, SelectTime, durationProps, timeObj, useResource, useLikeStatus, resourceLoading, selectOpen, state.service.resources, errorList, useTotal, useStartDate, useEndDate, showResource, holderLists, multiDayPrices, currentTab, items]);
|
|
1048
1140
|
};
|
|
1049
1141
|
export default /*#__PURE__*/forwardRef(Info);
|
|
@@ -1 +1,11 @@
|
|
|
1
1
|
export declare const getProductDetail: (id: string, params: any) => Promise<any>;
|
|
2
|
+
/**
|
|
3
|
+
* @title: 跨日预约获取预约商品报价单
|
|
4
|
+
* @description:
|
|
5
|
+
* @param {string} id
|
|
6
|
+
* @param {any} params
|
|
7
|
+
* @return {*}
|
|
8
|
+
* @Author: WangHan
|
|
9
|
+
* @Date: 2024-12-23 17:06
|
|
10
|
+
*/
|
|
11
|
+
export declare const postMultiDay: (id: string, params: any) => Promise<any>;
|