@pisell/private-materials 3.0.197 → 3.0.199
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/components/customSelect/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +2 -6
- package/es/components/booking/components/footer/amount.js +22 -45
- package/es/components/booking/components/footer/index.js +40 -84
- package/es/components/booking/components/footer/utils.js +32 -218
- package/es/components/booking/info/addServiceVariant/index.js +1 -8
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +13 -14
- package/es/components/booking/info/clientVariant/vertical/index.js +4 -33
- package/es/components/booking/info/main.js +8 -20
- package/es/components/booking/info/model.js +0 -3
- package/es/components/booking/info/pet/index.js +5 -54
- package/es/components/booking/info/service/addService/index.js +20 -127
- package/es/components/booking/info/service/addService/index.less +3 -13
- package/es/components/booking/info/service/addService/utils.d.ts +2 -11
- package/es/components/booking/info/service/addService/utils.js +24 -49
- package/es/components/booking/info/service/editService/index.js +41 -232
- package/es/components/booking/info/service/editService/index.less +13 -18
- package/es/components/booking/info/utils.d.ts +0 -9
- package/es/components/booking/info/utils.js +0 -13
- package/es/components/booking/locales.d.ts +0 -60
- package/es/components/booking/locales.js +3 -75
- package/es/components/booking/model.d.ts +1 -4
- package/es/components/booking/model.js +2 -4
- package/es/components/booking/utils.d.ts +3 -12
- package/es/components/booking/utils.js +22 -126
- package/es/components/eftpos/form/index.js +12 -6
- package/es/components/eftpos/group/index.d.ts +1 -2
- package/es/components/eftpos/group/index.js +1 -2
- package/es/components/eftpos/index.js +2 -2
- package/es/components/eftpos/receipt/index.d.ts +24 -0
- package/es/components/eftpos/receipt/index.js +96 -0
- package/es/components/eftposPay/helper.d.ts +1 -0
- package/es/components/eftposPay/helper.js +14 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/tyro/index.js +51 -20
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/lib/components/booking/components/customSelect/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +2 -6
- package/lib/components/booking/components/footer/amount.js +8 -26
- package/lib/components/booking/components/footer/index.js +4 -25
- package/lib/components/booking/components/footer/utils.js +31 -144
- package/lib/components/booking/info/addServiceVariant/index.js +0 -5
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +7 -8
- package/lib/components/booking/info/clientVariant/vertical/index.js +10 -36
- package/lib/components/booking/info/main.js +4 -11
- package/lib/components/booking/info/model.js +0 -3
- package/lib/components/booking/info/pet/index.js +25 -61
- package/lib/components/booking/info/service/addService/index.js +28 -95
- package/lib/components/booking/info/service/addService/index.less +3 -13
- package/lib/components/booking/info/service/addService/utils.d.ts +2 -11
- package/lib/components/booking/info/service/addService/utils.js +10 -31
- package/lib/components/booking/info/service/editService/index.js +122 -271
- package/lib/components/booking/info/service/editService/index.less +13 -18
- package/lib/components/booking/info/utils.d.ts +0 -9
- package/lib/components/booking/info/utils.js +0 -6
- package/lib/components/booking/locales.d.ts +0 -60
- package/lib/components/booking/locales.js +3 -63
- package/lib/components/booking/model.d.ts +1 -4
- package/lib/components/booking/model.js +2 -4
- package/lib/components/booking/utils.d.ts +3 -12
- package/lib/components/booking/utils.js +15 -79
- package/lib/components/eftpos/form/index.js +12 -6
- package/lib/components/eftpos/group/index.d.ts +1 -2
- package/lib/components/eftpos/group/index.js +0 -1
- package/lib/components/eftpos/index.js +2 -2
- package/lib/components/eftpos/receipt/index.d.ts +24 -0
- package/lib/components/eftpos/receipt/index.js +88 -0
- package/lib/components/eftposPay/helper.d.ts +1 -0
- package/lib/components/eftposPay/helper.js +21 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/tyro/index.js +36 -7
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/package.json +3 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -37
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -5
- package/es/components/booking/info/dateRange/index.js +0 -98
- package/es/components/booking/info/dateRange/index.less +0 -21
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/pet/ChangePetModal/index.js +0 -118
- package/es/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/Lists.js +0 -158
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/hooks/useSelectPet.js +0 -54
- package/es/components/booking/info/service2/index.d.ts +0 -3
- package/es/components/booking/info/service2/index.js +0 -58
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/status.js +0 -78
- package/es/components/booking/info/service2/utils.d.ts +0 -145
- package/es/components/booking/info/service2/utils.js +0 -436
- package/es/components/booking/materiels/holder/index.d.ts +0 -7
- package/es/components/booking/materiels/holder/index.js +0 -51
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/Provider.js +0 -86
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/Product.js +0 -96
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/index.js +0 -72
- package/es/components/shoppingCart/components/Cart/index.less +0 -68
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Empty/index.js +0 -14
- package/es/components/shoppingCart/components/Empty/index.less +0 -19
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Render/index.js +0 -68
- package/es/components/shoppingCart/components/Render/index.less +0 -2
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +0 -124
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.js +0 -23
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useClearCart.js +0 -54
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useContext.js +0 -5
- package/es/components/shoppingCart/index.d.ts +0 -4
- package/es/components/shoppingCart/index.js +0 -24
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/locales.js +0 -38
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/mock.js +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/status.js +0 -22
- package/es/components/shoppingCart/type.d.ts +0 -39
- package/es/components/shoppingCart/type.js +0 -1
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/shoppingCart/utils.js +0 -119
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +0 -59
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -5
- package/lib/components/booking/info/dateRange/index.js +0 -111
- package/lib/components/booking/info/dateRange/index.less +0 -21
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/pet/ChangePetModal/index.js +0 -110
- package/lib/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/Lists.js +0 -113
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +0 -50
- package/lib/components/booking/info/service2/index.d.ts +0 -3
- package/lib/components/booking/info/service2/index.js +0 -75
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/status.js +0 -81
- package/lib/components/booking/info/service2/utils.d.ts +0 -145
- package/lib/components/booking/info/service2/utils.js +0 -320
- package/lib/components/booking/materiels/holder/index.d.ts +0 -7
- package/lib/components/booking/materiels/holder/index.js +0 -65
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.js +0 -110
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.js +0 -89
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/index.js +0 -77
- package/lib/components/shoppingCart/components/Cart/index.less +0 -68
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Empty/index.js +0 -43
- package/lib/components/shoppingCart/components/Empty/index.less +0 -19
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Render/index.js +0 -79
- package/lib/components/shoppingCart/components/Render/index.less +0 -2
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +0 -116
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.js +0 -55
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useClearCart.js +0 -71
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useContext.js +0 -31
- package/lib/components/shoppingCart/index.d.ts +0 -4
- package/lib/components/shoppingCart/index.js +0 -60
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/locales.js +0 -56
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/mock.js +0 -76
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/status.js +0 -60
- package/lib/components/shoppingCart/type.d.ts +0 -39
- package/lib/components/shoppingCart/type.js +0 -17
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/shoppingCart/utils.js +0 -92
- package/lowcode/shopping-cart/meta.ts +0 -98
|
@@ -24,24 +24,20 @@ import Drawer from "../../../components/drawer";
|
|
|
24
24
|
import { Context } from "../../model";
|
|
25
25
|
import { formatAmount, locales } from '@pisell/utils';
|
|
26
26
|
import Duration from "../../../materiels/duration";
|
|
27
|
-
import
|
|
28
|
-
import { Input, Button, Select, Row, Col, Form, Alert, InputNumber, DatePicker } from 'antd';
|
|
27
|
+
import { Input, Button, Select, Row, Col, Form, Alert, InputNumber } from 'antd';
|
|
29
28
|
import "./index.less";
|
|
30
29
|
import CollapsibleList from "../../../components/collapsibleList";
|
|
31
30
|
import { renderBundles } from "../../../components/collapsibleList/utils";
|
|
32
31
|
import { useUpdateEffect, useMemoizedFn } from 'ahooks';
|
|
33
32
|
// import SelectTime from "../../../../../../../materials/src/components/select-time";
|
|
34
|
-
import { getErrorList, getServiceTimes, deleteCacheParams, getProductTotalPrice
|
|
33
|
+
import { getErrorList, getServiceTimes, deleteCacheParams, getProductTotalPrice } from "../../../utils";
|
|
35
34
|
import Like from "../like";
|
|
36
35
|
import { getNoResource } from "../../../mock";
|
|
37
36
|
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
|
|
38
37
|
import { PisellAdjustPriceInputNumber, Page } from '@pisell/materials';
|
|
39
|
-
import dayjs from 'dayjs';
|
|
40
|
-
import useSelectPet from "../../service2/hooks/useSelectPet";
|
|
41
|
-
import { disabledDate as _disabledDate, isDayBooking, formatDayTime, isAppointment } from "../../service2/utils";
|
|
42
38
|
var submitLock = false;
|
|
43
39
|
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$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _state$date, _state$date$value, _state$date$value$for,
|
|
40
|
+
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI4, _state$service$cacheI5, _state$service$cacheI7, _state$service$cacheI8, _state$service$cacheI9, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _state$date, _state$date$value, _state$date$value$for, _window$BaseMaterials, _state$service$cacheI19, _state$service7, _state$service7$cache, _state$service7$cache2, _state$service$cacheI20, _state$service$cacheI21, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$bookingConfig12;
|
|
45
41
|
var _Form$useForm = Form.useForm(),
|
|
46
42
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
47
43
|
form = _Form$useForm2[0];
|
|
@@ -50,8 +46,6 @@ var Info = function Info(_, ref) {
|
|
|
50
46
|
var useResource = Form.useWatch('resource', form);
|
|
51
47
|
var useStartTime = Form.useWatch('start_time', form);
|
|
52
48
|
var useDuration = Form.useWatch('duration', form);
|
|
53
|
-
var useStartDate = Form.useWatch('start_date', form);
|
|
54
|
-
var useEndDate = Form.useWatch('end_date', form);
|
|
55
49
|
var _useState = useState(false),
|
|
56
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
57
51
|
resourceLoading = _useState2[0],
|
|
@@ -64,11 +58,6 @@ var Info = function Info(_, ref) {
|
|
|
64
58
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
65
59
|
selectOpen = _useState4[0],
|
|
66
60
|
setSelectOpen = _useState4[1];
|
|
67
|
-
var _useSelectPet = useSelectPet(state),
|
|
68
|
-
holderLists = _useSelectPet.holderLists;
|
|
69
|
-
var isDay = useMemo(function () {
|
|
70
|
-
return isDayBooking(state);
|
|
71
|
-
}, [state.renderType]);
|
|
72
61
|
|
|
73
62
|
// 当前商品信息+ 表单信息
|
|
74
63
|
var getCurrentCacheItem = function getCurrentCacheItem(_cacheItem) {
|
|
@@ -189,8 +178,7 @@ var Info = function Info(_, ref) {
|
|
|
189
178
|
payload: {
|
|
190
179
|
resources: formatResources({
|
|
191
180
|
cacheItem: _cacheItem,
|
|
192
|
-
resourcesOrigin: _list
|
|
193
|
-
isDay: isDay
|
|
181
|
+
resourcesOrigin: _list
|
|
194
182
|
})
|
|
195
183
|
}
|
|
196
184
|
});
|
|
@@ -301,8 +289,8 @@ var Info = function Info(_, ref) {
|
|
|
301
289
|
return d.form_record_id == useResource;
|
|
302
290
|
});
|
|
303
291
|
if (item) {
|
|
304
|
-
var _item$_extend$usableT
|
|
305
|
-
var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 ? void 0 :
|
|
292
|
+
var _item$_extend$usableT;
|
|
293
|
+
var isMaxLimitRange = (_item$_extend$usableT = item._extend.usableTime) === null || _item$_extend$usableT === void 0 ? void 0 : _item$_extend$usableT._extend.isMaxLimitRange;
|
|
306
294
|
// unknown 为未知是否可用, 需要掉后端接口确定
|
|
307
295
|
if (isMaxLimitRange === 'unknown') {
|
|
308
296
|
// 调接口
|
|
@@ -367,24 +355,13 @@ var Info = function Info(_, ref) {
|
|
|
367
355
|
errorList: errorList
|
|
368
356
|
});
|
|
369
357
|
var _extend = _objectSpread(_objectSpread({}, _item._extend), values);
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
-
}
|
|
358
|
+
var _getServiceTimes = getServiceTimes({
|
|
359
|
+
_extend: _extend
|
|
360
|
+
}),
|
|
361
|
+
startDate = _getServiceTimes.startDate,
|
|
362
|
+
endDate = _getServiceTimes.endDate;
|
|
363
|
+
_extend.startDate = startDate;
|
|
364
|
+
_extend.endDate = endDate;
|
|
388
365
|
var _ref2 = (currentResource === null || currentResource === void 0 ? void 0 : (_currentResource$_ext = currentResource._extend) === null || _currentResource$_ext === void 0 ? void 0 : _currentResource$_ext.usableTime) || {},
|
|
389
366
|
relation_type = _ref2.relation_type,
|
|
390
367
|
item_id = _ref2.item_id,
|
|
@@ -426,14 +403,8 @@ var Info = function Info(_, ref) {
|
|
|
426
403
|
});
|
|
427
404
|
});
|
|
428
405
|
var setEditData = useMemoizedFn(function (_cacheItem, open) {
|
|
429
|
-
var _values;
|
|
430
406
|
var cacheItem = _cacheItem || state.service.cacheItem;
|
|
431
407
|
var values = cacheItem._extend;
|
|
432
|
-
|
|
433
|
-
// 没有折扣原因则清空
|
|
434
|
-
values = _objectSpread(_objectSpread({}, values), {}, {
|
|
435
|
-
discount_reason: ((_values = values) === null || _values === void 0 ? void 0 : _values.discount_reason) || ''
|
|
436
|
-
});
|
|
437
408
|
form.setFieldsValue(values);
|
|
438
409
|
if (state.renderType !== 'eventBooking') {
|
|
439
410
|
// 获取资源列表
|
|
@@ -466,7 +437,7 @@ var Info = function Info(_, ref) {
|
|
|
466
437
|
* @Date: 2024-01-09 14:06
|
|
467
438
|
*/
|
|
468
439
|
var errorList = useMemo(function () {
|
|
469
|
-
return getErrorList(currentResource, getCurrentCacheItem()
|
|
440
|
+
return getErrorList(currentResource, getCurrentCacheItem());
|
|
470
441
|
}, [currentResource, useDuration, useStartTime]);
|
|
471
442
|
|
|
472
443
|
/**
|
|
@@ -485,24 +456,12 @@ var Info = function Info(_, ref) {
|
|
|
485
456
|
}
|
|
486
457
|
}
|
|
487
458
|
}, [useStartTime, useDuration, state.renderType, state.service.resourcesOrigin, (_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.autoClose]);
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* @title: 是否在terminal上打开预约
|
|
491
|
-
* @description:
|
|
492
|
-
* @param {*} useMemo
|
|
493
|
-
* @return {*}
|
|
494
|
-
* @Author: WangHan
|
|
495
|
-
* @Date: 2024-12-04 19:02
|
|
496
|
-
*/
|
|
497
|
-
var isTerminalBooking = useMemo(function () {
|
|
498
|
-
return state.isBookingCreatePage || state.isTerminalDayBookingPage;
|
|
499
|
-
}, [state.isBookingCreatePage, state.isTerminalDayBookingPage]);
|
|
500
459
|
useEffect(function () {
|
|
501
460
|
// 预约创建页面并且打开了编辑弹窗
|
|
502
|
-
if (
|
|
461
|
+
if (state.isBookingCreatePage && state.service.editModal) {
|
|
503
462
|
setEditData(null, true);
|
|
504
463
|
}
|
|
505
|
-
}, [state.service.editModal,
|
|
464
|
+
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
506
465
|
|
|
507
466
|
/**
|
|
508
467
|
* @title: 资源 时间 发生变化时, 重新计算错误信息
|
|
@@ -513,7 +472,7 @@ var Info = function Info(_, ref) {
|
|
|
513
472
|
*/
|
|
514
473
|
useEffect(function () {
|
|
515
474
|
getErrorMsg();
|
|
516
|
-
}, [useResource, useStartTime, useDuration
|
|
475
|
+
}, [useResource, useStartTime, useDuration]);
|
|
517
476
|
|
|
518
477
|
/**
|
|
519
478
|
* @title: 价格发生变化,重新计算折扣
|
|
@@ -555,49 +514,23 @@ var Info = function Info(_, ref) {
|
|
|
555
514
|
*/
|
|
556
515
|
var getResourcesData = /*#__PURE__*/function () {
|
|
557
516
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
558
|
-
var
|
|
517
|
+
var data, _list;
|
|
559
518
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
560
519
|
while (1) switch (_context2.prev = _context2.next) {
|
|
561
520
|
case 0:
|
|
562
521
|
setResourceLoading(true);
|
|
563
522
|
_context2.prev = 1;
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
_context2.next = 13;
|
|
567
|
-
break;
|
|
568
|
-
}
|
|
569
|
-
format = 'YYYY-MM-DD HH:mm';
|
|
570
|
-
startDate = useStartDate || state.date.value;
|
|
571
|
-
endDate = useEndDate || state.date.end_date;
|
|
572
|
-
_formatDayTime = formatDayTime({
|
|
573
|
-
startDate: startDate,
|
|
574
|
-
endDate: endDate
|
|
575
|
-
}), startDateTime = _formatDayTime.startDateTime, endDateTime = _formatDayTime.endDateTime;
|
|
576
|
-
if (!dayjs(startDateTime).isAfter(dayjs(endDateTime))) {
|
|
577
|
-
_context2.next = 10;
|
|
578
|
-
break;
|
|
579
|
-
}
|
|
580
|
-
return _context2.abrupt("return");
|
|
581
|
-
case 10:
|
|
582
|
-
params.check_time = {
|
|
583
|
-
start_time: dayjs(startDateTime).format(format),
|
|
584
|
-
end_time: dayjs(endDateTime).format(format)
|
|
585
|
-
};
|
|
586
|
-
_context2.next = 14;
|
|
587
|
-
break;
|
|
588
|
-
case 13:
|
|
589
|
-
params.with_date_times = state.date.value.format('YYYY-MM-DD');
|
|
590
|
-
case 14:
|
|
591
|
-
_context2.next = 16;
|
|
592
|
-
return state.apis.getResources(_objectSpread({
|
|
523
|
+
_context2.next = 4;
|
|
524
|
+
return state.apis.getResources({
|
|
593
525
|
skip: 1,
|
|
594
526
|
num: 1000,
|
|
527
|
+
with_date_times: state.date.value.format('YYYY-MM-DD'),
|
|
595
528
|
codes: ['resources', 'therapist', 'table'],
|
|
596
529
|
_config: {
|
|
597
530
|
abort: true
|
|
598
531
|
}
|
|
599
|
-
}
|
|
600
|
-
case
|
|
532
|
+
});
|
|
533
|
+
case 4:
|
|
601
534
|
data = _context2.sent;
|
|
602
535
|
// 合并无资源
|
|
603
536
|
_list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
|
|
@@ -607,19 +540,19 @@ var Info = function Info(_, ref) {
|
|
|
607
540
|
resourcesOrigin: _list
|
|
608
541
|
}
|
|
609
542
|
});
|
|
610
|
-
_context2.next =
|
|
543
|
+
_context2.next = 12;
|
|
611
544
|
break;
|
|
612
|
-
case
|
|
613
|
-
_context2.prev =
|
|
545
|
+
case 9:
|
|
546
|
+
_context2.prev = 9;
|
|
614
547
|
_context2.t0 = _context2["catch"](1);
|
|
615
548
|
console.log(_context2.t0, 'err');
|
|
616
|
-
case
|
|
549
|
+
case 12:
|
|
617
550
|
setResourceLoading(false);
|
|
618
|
-
case
|
|
551
|
+
case 13:
|
|
619
552
|
case "end":
|
|
620
553
|
return _context2.stop();
|
|
621
554
|
}
|
|
622
|
-
}, _callee2, null, [[1,
|
|
555
|
+
}, _callee2, null, [[1, 9]]);
|
|
623
556
|
}));
|
|
624
557
|
return function getResourcesData() {
|
|
625
558
|
return _ref3.apply(this, arguments);
|
|
@@ -629,7 +562,7 @@ var Info = function Info(_, ref) {
|
|
|
629
562
|
setTimeout(function () {
|
|
630
563
|
getResourcesData();
|
|
631
564
|
}, 20);
|
|
632
|
-
}, [(_state$date = state.date) === null || _state$date === void 0 ? void 0 : (_state$date$value = _state$date.value) === null || _state$date$value === void 0 ? void 0 : (_state$date$value$for = _state$date$value.format) === null || _state$date$value$for === void 0 ? void 0 : _state$date$value$for.call(_state$date$value, 'YYYY-MM-DD')
|
|
565
|
+
}, [(_state$date = state.date) === null || _state$date === void 0 ? void 0 : (_state$date$value = _state$date.value) === null || _state$date$value === void 0 ? void 0 : (_state$date$value$for = _state$date$value.format) === null || _state$date$value$for === void 0 ? void 0 : _state$date$value$for.call(_state$date$value, 'YYYY-MM-DD')]);
|
|
633
566
|
|
|
634
567
|
/**
|
|
635
568
|
* @title: 编辑商品
|
|
@@ -726,89 +659,6 @@ var Info = function Info(_, ref) {
|
|
|
726
659
|
};
|
|
727
660
|
});
|
|
728
661
|
var SelectTime = (_window$BaseMaterials = window.BaseMaterials) === null || _window$BaseMaterials === void 0 ? void 0 : _window$BaseMaterials.SelectTime;
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* @title: 日期组件
|
|
732
|
-
* @description:
|
|
733
|
-
* @return {*}
|
|
734
|
-
* @Author: WangHan
|
|
735
|
-
* @Date: 2024-11-30 22:22
|
|
736
|
-
*/
|
|
737
|
-
var DateCom = function DateCom(position) {
|
|
738
|
-
return /*#__PURE__*/React.createElement(DatePicker, {
|
|
739
|
-
className: "pisell-lowcode__booking-service-select-date",
|
|
740
|
-
disabledDate: function disabledDate(current) {
|
|
741
|
-
return _disabledDate(current, position, useStartDate);
|
|
742
|
-
},
|
|
743
|
-
size: "large",
|
|
744
|
-
style: {
|
|
745
|
-
width: '100%'
|
|
746
|
-
},
|
|
747
|
-
format: state.locale === 'en' ? 'DD/MM/YYYY' : 'YYYY-MM-DD'
|
|
748
|
-
});
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* @title: 表单更新
|
|
753
|
-
* @description:
|
|
754
|
-
* @param {any} changedValues
|
|
755
|
-
* @return {*}
|
|
756
|
-
* @Author: WangHan
|
|
757
|
-
* @Date: 2024-12-04 14:39
|
|
758
|
-
*/
|
|
759
|
-
var onValuesChange = function onValuesChange(changedValues) {
|
|
760
|
-
// 跨日预约
|
|
761
|
-
if (isDay) {
|
|
762
|
-
// 根据时长更新结束时间
|
|
763
|
-
if (changedValues !== null && changedValues !== void 0 && changedValues.duration) {
|
|
764
|
-
return form.setFieldsValue({
|
|
765
|
-
end_date: dayjs(useStartDate).add(changedValues === null || changedValues === void 0 ? void 0 : changedValues.duration, 'day')
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
// 验证结束日期
|
|
770
|
-
if (changedValues !== null && changedValues !== void 0 && changedValues.start_date) {
|
|
771
|
-
var startDate = dayjs(changedValues === null || changedValues === void 0 ? void 0 : changedValues.start_date);
|
|
772
|
-
var endDate = dayjs(useEndDate);
|
|
773
|
-
// 如果开始日期大于结束日期,则清空数据
|
|
774
|
-
if (startDate.isAfter(endDate)) {
|
|
775
|
-
return form.setFieldsValue({
|
|
776
|
-
duration: undefined,
|
|
777
|
-
end_date: undefined
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
// 计算时长
|
|
783
|
-
if (changedValues !== null && changedValues !== void 0 && changedValues.start_date || changedValues !== null && changedValues !== void 0 && changedValues.end_date) {
|
|
784
|
-
var _cacheItem2 = getCurrentCacheItem();
|
|
785
|
-
var duration = getDays(_cacheItem2, 'days');
|
|
786
|
-
return form.setFieldsValue({
|
|
787
|
-
duration: duration
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* @title: 是否显示资源和时长
|
|
795
|
-
* @description:
|
|
796
|
-
* @param {*} useMemo
|
|
797
|
-
* @return {*}
|
|
798
|
-
* @Author: WangHan
|
|
799
|
-
* @Date: 2024-12-09 15:59
|
|
800
|
-
*/
|
|
801
|
-
var showResource = useMemo(function () {
|
|
802
|
-
if (state.renderType === 'eventBooking') {
|
|
803
|
-
return false;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
// 跨日预约
|
|
807
|
-
if (isDay) {
|
|
808
|
-
return isAppointment(state.service.cacheItem, state);
|
|
809
|
-
}
|
|
810
|
-
return true;
|
|
811
|
-
}, [state.service.cacheItem, state.renderType]);
|
|
812
662
|
return useMemo(function () {
|
|
813
663
|
var _state$service$cacheI10, _state$service6, _state$service6$cache, _state$service6$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;
|
|
814
664
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer
|
|
@@ -818,7 +668,7 @@ var Info = function Info(_, ref) {
|
|
|
818
668
|
zIndex: state.service.changeService ? 999 : 1000,
|
|
819
669
|
forceRender: true,
|
|
820
670
|
open: state.service.editModal && !((_state$service$cacheI10 = state.service.cacheItem) !== null && _state$service$cacheI10 !== void 0 && _state$service$cacheI10.autoClose),
|
|
821
|
-
title:
|
|
671
|
+
title: locales.getText('pisell2.text.edit-service'),
|
|
822
672
|
onClose: function onClose() {
|
|
823
673
|
dispatch({
|
|
824
674
|
type: 'setService',
|
|
@@ -834,8 +684,7 @@ var Info = function Info(_, ref) {
|
|
|
834
684
|
}, /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Form, {
|
|
835
685
|
layout: "vertical",
|
|
836
686
|
form: form,
|
|
837
|
-
onFinish: onFinish
|
|
838
|
-
onValuesChange: onValuesChange
|
|
687
|
+
onFinish: onFinish
|
|
839
688
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
840
689
|
style: {
|
|
841
690
|
width: '100%'
|
|
@@ -853,7 +702,7 @@ var Info = function Info(_, ref) {
|
|
|
853
702
|
className: "current-service-info-name"
|
|
854
703
|
}, ((_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$cache2.product_name) || '-'), /*#__PURE__*/React.createElement(Button, {
|
|
855
704
|
onClick: handleEdit
|
|
856
|
-
}, locales.getText('pisell2.text.edit')), !
|
|
705
|
+
}, locales.getText('pisell2.text.edit')), !state.isBookingCreatePage && /*#__PURE__*/React.createElement(Button, {
|
|
857
706
|
onClick: handleChange
|
|
858
707
|
}, locales.getText('pisell2.text.change'))), /*#__PURE__*/React.createElement(CollapsibleList, {
|
|
859
708
|
style: {
|
|
@@ -889,15 +738,15 @@ var Info = function Info(_, ref) {
|
|
|
889
738
|
name: "discount_reason"
|
|
890
739
|
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
891
740
|
size: "large"
|
|
892
|
-
}))) : null,
|
|
741
|
+
}))) : null, state.renderType !== 'eventBooking' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
|
|
893
742
|
span: 12
|
|
894
743
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
895
|
-
label: locales.getText(
|
|
896
|
-
name:
|
|
744
|
+
label: locales.getText('pisell2.text.start_time'),
|
|
745
|
+
name: "start_time",
|
|
897
746
|
rules: [{
|
|
898
747
|
required: true
|
|
899
748
|
}]
|
|
900
|
-
},
|
|
749
|
+
}, SelectTime ? /*#__PURE__*/React.createElement(SelectTime, {
|
|
901
750
|
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,
|
|
902
751
|
timePickerProps: {
|
|
903
752
|
style: {
|
|
@@ -909,15 +758,7 @@ var Info = function Info(_, ref) {
|
|
|
909
758
|
zoom: 0.8
|
|
910
759
|
}
|
|
911
760
|
}
|
|
912
|
-
}) : null)),
|
|
913
|
-
span: 12
|
|
914
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
915
|
-
label: locales.getText(isDay ? 'pisell2.text.end_date' : 'pisell2.text.end_time'),
|
|
916
|
-
name: "end_date",
|
|
917
|
-
rules: [{
|
|
918
|
-
required: true
|
|
919
|
-
}]
|
|
920
|
-
}, DateCom('end'))) : null, /*#__PURE__*/React.createElement(Col, {
|
|
761
|
+
}) : null)), /*#__PURE__*/React.createElement(Col, {
|
|
921
762
|
span: 12
|
|
922
763
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
923
764
|
label: locales.getText('pisell2.text.duration'),
|
|
@@ -927,17 +768,7 @@ var Info = function Info(_, ref) {
|
|
|
927
768
|
}]
|
|
928
769
|
}, /*#__PURE__*/React.createElement(Duration, _extends({}, durationProps, {
|
|
929
770
|
timeObj: timeObj
|
|
930
|
-
})))),
|
|
931
|
-
span: 12
|
|
932
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
933
|
-
label: locales.getText('pisell2.text.holder'),
|
|
934
|
-
name: "holder_id",
|
|
935
|
-
rules: [{
|
|
936
|
-
required: true
|
|
937
|
-
}]
|
|
938
|
-
}, /*#__PURE__*/React.createElement(Holder, {
|
|
939
|
-
size: "large"
|
|
940
|
-
}))) : null, /*#__PURE__*/React.createElement(Col, {
|
|
771
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
941
772
|
span: 24
|
|
942
773
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
943
774
|
required: true,
|
|
@@ -977,29 +808,7 @@ var Info = function Info(_, ref) {
|
|
|
977
808
|
}, /*#__PURE__*/React.createElement(InputNumber, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
978
809
|
hidden: true,
|
|
979
810
|
name: "like_status"
|
|
980
|
-
}, /*#__PURE__*/React.createElement(Input, null))),
|
|
981
|
-
span: 24
|
|
982
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
983
|
-
label: locales.getText('pisell2.text.quantity'),
|
|
984
|
-
name: "quantity",
|
|
985
|
-
rules: [{
|
|
986
|
-
required: true
|
|
987
|
-
}]
|
|
988
|
-
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
989
|
-
size: "large",
|
|
990
|
-
style: {
|
|
991
|
-
width: '100%'
|
|
992
|
-
},
|
|
993
|
-
min: 1,
|
|
994
|
-
max: 999999,
|
|
995
|
-
formatter: function formatter(value) {
|
|
996
|
-
if (value !== undefined) {
|
|
997
|
-
// 向下取整
|
|
998
|
-
return Math.floor(value);
|
|
999
|
-
}
|
|
1000
|
-
return value;
|
|
1001
|
-
}
|
|
1002
|
-
}))) : null))), showResource && errorList.map(function (d, i) {
|
|
811
|
+
}, /*#__PURE__*/React.createElement(Input, null)))))), state.renderType !== 'eventBooking' && errorList.map(function (d, i) {
|
|
1003
812
|
return /*#__PURE__*/React.createElement(Alert, {
|
|
1004
813
|
key: d.type,
|
|
1005
814
|
message: d.label,
|
|
@@ -1024,6 +833,6 @@ var Info = function Info(_, ref) {
|
|
|
1024
833
|
form.submit();
|
|
1025
834
|
}
|
|
1026
835
|
}, locales.getText('pisell2.text.apply'))))));
|
|
1027
|
-
}, [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$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.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
|
|
836
|
+
}, [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$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.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]);
|
|
1028
837
|
};
|
|
1029
838
|
export default /*#__PURE__*/forwardRef(Info);
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
.pisell-lowcode__booking-service-body-edit {
|
|
2
2
|
padding: 24px 32px 100px !important;
|
|
3
|
-
|
|
4
|
-
.pisell-lowcode__booking-service-select-date {
|
|
5
|
-
height: 40px;
|
|
6
|
-
.pisell-lowcode-picker-input > input {
|
|
7
|
-
font-size: 16px !important;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
3
|
}
|
|
11
4
|
|
|
5
|
+
|
|
12
6
|
.pisell-lowcode__booking-service-body-edit-footer {
|
|
13
7
|
position: absolute;
|
|
14
8
|
bottom: 0;
|
|
15
9
|
left: 0;
|
|
16
10
|
width: 100%;
|
|
17
|
-
border-top: 1px solid #
|
|
11
|
+
border-top: 1px solid #E7E8E9;
|
|
18
12
|
padding: 20px 32px;
|
|
19
13
|
display: flex;
|
|
20
14
|
align-items: center;
|
|
@@ -26,8 +20,8 @@
|
|
|
26
20
|
height: 48px;
|
|
27
21
|
width: 48px;
|
|
28
22
|
border-radius: 8px;
|
|
29
|
-
border: 1px solid var(--gray-300, #
|
|
30
|
-
background: var(--base-white, #
|
|
23
|
+
border: 1px solid var(--gray-300, #D0D5DD);
|
|
24
|
+
background: var(--base-white, #FFF);
|
|
31
25
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
32
26
|
cursor: pointer;
|
|
33
27
|
display: flex;
|
|
@@ -35,7 +29,7 @@
|
|
|
35
29
|
justify-content: center;
|
|
36
30
|
|
|
37
31
|
.pisell-lowcode__booking-service-delete-icon {
|
|
38
|
-
color: #
|
|
32
|
+
color: #B42318;
|
|
39
33
|
font-size: 20px;
|
|
40
34
|
}
|
|
41
35
|
}
|
|
@@ -52,12 +46,14 @@
|
|
|
52
46
|
.pisell-lowcode-select-selection-item {
|
|
53
47
|
.resource-option {
|
|
54
48
|
padding-left: 0;
|
|
49
|
+
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
.pisell-lowcode-select-item-option-content {
|
|
59
54
|
.resource-option {
|
|
60
55
|
padding-left: 0;
|
|
56
|
+
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
59
|
|
|
@@ -67,7 +63,7 @@
|
|
|
67
63
|
gap: 8px;
|
|
68
64
|
|
|
69
65
|
.resource-option-alert-icon {
|
|
70
|
-
color: #
|
|
66
|
+
color: #B42318;
|
|
71
67
|
cursor: pointer;
|
|
72
68
|
}
|
|
73
69
|
}
|
|
@@ -86,16 +82,16 @@
|
|
|
86
82
|
justify-content: center;
|
|
87
83
|
padding: 0;
|
|
88
84
|
|
|
89
|
-
.like-resource {
|
|
90
|
-
}
|
|
85
|
+
.like-resource {}
|
|
91
86
|
}
|
|
87
|
+
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
.current-service-info {
|
|
95
91
|
min-height: 40px;
|
|
96
92
|
cursor: pointer;
|
|
97
93
|
background-color: #ffffff;
|
|
98
|
-
border: 1px solid #
|
|
94
|
+
border: 1px solid #D0D5DD;
|
|
99
95
|
border-radius: 10px;
|
|
100
96
|
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
101
97
|
overflow: hidden;
|
|
@@ -113,11 +109,10 @@
|
|
|
113
109
|
flex: 1;
|
|
114
110
|
}
|
|
115
111
|
|
|
116
|
-
.current-service-info-change-btn {
|
|
117
|
-
}
|
|
112
|
+
.current-service-info-change-btn {}
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
&:hover {
|
|
121
116
|
border-color: #7f56d9;
|
|
122
117
|
}
|
|
123
|
-
}
|
|
118
|
+
}
|
|
@@ -22,12 +22,3 @@ export declare const isInterval: (time1: number, time2: number, interval?: numbe
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const formatServiceListByTime: (list: any[]) => any[];
|
|
24
24
|
export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @title: 是否是跨日预约
|
|
27
|
-
* @description:
|
|
28
|
-
* @param {number} shopId
|
|
29
|
-
* @return {*}
|
|
30
|
-
* @Author: WangHan
|
|
31
|
-
* @Date: 2024-11-29 11:19
|
|
32
|
-
*/
|
|
33
|
-
export declare const isDayBooking: (shopId: number) => boolean;
|
|
@@ -90,17 +90,4 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType) {
|
|
|
90
90
|
}
|
|
91
91
|
var booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191];
|
|
92
92
|
return booking4Shops.includes(shopId);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @title: 是否是跨日预约
|
|
97
|
-
* @description:
|
|
98
|
-
* @param {number} shopId
|
|
99
|
-
* @return {*}
|
|
100
|
-
* @Author: WangHan
|
|
101
|
-
* @Date: 2024-11-29 11:19
|
|
102
|
-
*/
|
|
103
|
-
export var isDayBooking = function isDayBooking(shopId) {
|
|
104
|
-
var dayBookingShops = [9];
|
|
105
|
-
return dayBookingShops.includes(shopId);
|
|
106
93
|
};
|