@pisell/private-materials 3.0.198 → 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 +142 -142
- 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 +10 -10
- package/es/components/booking/addons/model.d.ts +1 -1
- 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/payments/index.d.ts +1 -1
- 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/addons/model.d.ts +1 -1
- 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/payments/index.d.ts +1 -1
- 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 +4 -4
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -38
- 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 -119
- 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 -60
- 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 -111
- 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
|
@@ -38,7 +38,6 @@ var import_drawer = __toESM(require("../../../components/drawer"));
|
|
|
38
38
|
var import_model = require("../../model");
|
|
39
39
|
var import_utils = require("@pisell/utils");
|
|
40
40
|
var import_duration = __toESM(require("../../../materiels/duration"));
|
|
41
|
-
var import_holder = __toESM(require("../../../materiels/holder"));
|
|
42
41
|
var import_antd = require("antd");
|
|
43
42
|
var import_index = require("./index.less");
|
|
44
43
|
var import_collapsibleList = __toESM(require("../../../components/collapsibleList"));
|
|
@@ -49,27 +48,18 @@ var import_like = __toESM(require("../like"));
|
|
|
49
48
|
var import_mock = require("../../../mock");
|
|
50
49
|
var import_utils4 = require("../addService/utils");
|
|
51
50
|
var import_materials = require("@pisell/materials");
|
|
52
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
53
|
-
var import_useSelectPet = __toESM(require("../../service2/hooks/useSelectPet"));
|
|
54
|
-
var import_utils5 = require("../../service2/utils");
|
|
55
51
|
var submitLock = false;
|
|
56
52
|
var Info = (_, ref) => {
|
|
57
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
|
|
58
54
|
const [form] = import_antd.Form.useForm();
|
|
59
55
|
const useTotal = import_antd.Form.useWatch("total", form);
|
|
60
56
|
const useLikeStatus = import_antd.Form.useWatch("like_status", form);
|
|
61
57
|
const useResource = import_antd.Form.useWatch("resource", form);
|
|
62
58
|
const useStartTime = import_antd.Form.useWatch("start_time", form);
|
|
63
59
|
const useDuration = import_antd.Form.useWatch("duration", form);
|
|
64
|
-
const useStartDate = import_antd.Form.useWatch("start_date", form);
|
|
65
|
-
const useEndDate = import_antd.Form.useWatch("end_date", form);
|
|
66
60
|
const [resourceLoading, setResourceLoading] = (0, import_react.useState)(false);
|
|
67
61
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
68
62
|
const [selectOpen, setSelectOpen] = (0, import_react.useState)();
|
|
69
|
-
const { holderLists } = (0, import_useSelectPet.default)(state);
|
|
70
|
-
const isDay = (0, import_react.useMemo)(() => {
|
|
71
|
-
return (0, import_utils5.isDayBooking)(state);
|
|
72
|
-
}, [state.renderType]);
|
|
73
63
|
const getCurrentCacheItem = (_cacheItem) => {
|
|
74
64
|
let values = form.getFieldsValue();
|
|
75
65
|
let _item = _cacheItem || state.service.cacheItem;
|
|
@@ -142,8 +132,7 @@ var Info = (_, ref) => {
|
|
|
142
132
|
payload: {
|
|
143
133
|
resources: (0, import_utils4.formatResources)({
|
|
144
134
|
cacheItem: _cacheItem,
|
|
145
|
-
resourcesOrigin: _list
|
|
146
|
-
isDay
|
|
135
|
+
resourcesOrigin: _list
|
|
147
136
|
})
|
|
148
137
|
}
|
|
149
138
|
});
|
|
@@ -199,11 +188,11 @@ var Info = (_, ref) => {
|
|
|
199
188
|
});
|
|
200
189
|
});
|
|
201
190
|
const getErrorMsg = () => {
|
|
202
|
-
var _a2
|
|
191
|
+
var _a2;
|
|
203
192
|
const list = state.service.resources;
|
|
204
193
|
let item = list.find((d) => d.form_record_id == useResource);
|
|
205
194
|
if (item) {
|
|
206
|
-
const isMaxLimitRange = (
|
|
195
|
+
const isMaxLimitRange = (_a2 = item._extend.usableTime) == null ? void 0 : _a2._extend.isMaxLimitRange;
|
|
207
196
|
if (isMaxLimitRange === "unknown") {
|
|
208
197
|
}
|
|
209
198
|
}
|
|
@@ -245,15 +234,9 @@ var Info = (_, ref) => {
|
|
|
245
234
|
..._item._extend,
|
|
246
235
|
...values
|
|
247
236
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
_extend.endDate = _extend == null ? void 0 : _extend.end_date;
|
|
252
|
-
} else {
|
|
253
|
-
const { startDate, endDate } = (0, import_utils3.getServiceTimes)({ _extend });
|
|
254
|
-
_extend.startDate = startDate;
|
|
255
|
-
_extend.endDate = endDate;
|
|
256
|
-
}
|
|
237
|
+
const { startDate, endDate } = (0, import_utils3.getServiceTimes)({ _extend });
|
|
238
|
+
_extend.startDate = startDate;
|
|
239
|
+
_extend.endDate = endDate;
|
|
257
240
|
const { relation_type, item_id, schedule_id } = ((_a2 = currentResource == null ? void 0 : currentResource._extend) == null ? void 0 : _a2.usableTime) || {};
|
|
258
241
|
_extend.relation_type = relation_type || "form";
|
|
259
242
|
_extend.relation_id = item_id || (currentResource == null ? void 0 : currentResource.form_record_id) || 0;
|
|
@@ -286,10 +269,6 @@ var Info = (_, ref) => {
|
|
|
286
269
|
const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem, open) => {
|
|
287
270
|
let cacheItem = _cacheItem || state.service.cacheItem;
|
|
288
271
|
let values = cacheItem._extend;
|
|
289
|
-
values = {
|
|
290
|
-
...values,
|
|
291
|
-
discount_reason: (values == null ? void 0 : values.discount_reason) || ""
|
|
292
|
-
};
|
|
293
272
|
form.setFieldsValue(values);
|
|
294
273
|
if (state.renderType !== "eventBooking") {
|
|
295
274
|
getResources(cacheItem, open);
|
|
@@ -302,7 +281,7 @@ var Info = (_, ref) => {
|
|
|
302
281
|
return cPrice !== oPrice;
|
|
303
282
|
}, [useTotal, (_e = (_d = state.service.cacheItem) == null ? void 0 : _d._extend) == null ? void 0 : _e.origin_total]);
|
|
304
283
|
const errorList = (0, import_react.useMemo)(() => {
|
|
305
|
-
return (0, import_utils3.getErrorList)(currentResource, getCurrentCacheItem()
|
|
284
|
+
return (0, import_utils3.getErrorList)(currentResource, getCurrentCacheItem());
|
|
306
285
|
}, [currentResource, useDuration, useStartTime]);
|
|
307
286
|
(0, import_ahooks.useUpdateEffect)(() => {
|
|
308
287
|
var _a2;
|
|
@@ -318,17 +297,14 @@ var Info = (_, ref) => {
|
|
|
318
297
|
state.service.resourcesOrigin,
|
|
319
298
|
(_f = state.service.cacheItem) == null ? void 0 : _f.autoClose
|
|
320
299
|
]);
|
|
321
|
-
const isTerminalBooking = (0, import_react.useMemo)(() => {
|
|
322
|
-
return state.isBookingCreatePage || state.isTerminalDayBookingPage;
|
|
323
|
-
}, [state.isBookingCreatePage, state.isTerminalDayBookingPage]);
|
|
324
300
|
(0, import_react.useEffect)(() => {
|
|
325
|
-
if (
|
|
301
|
+
if (state.isBookingCreatePage && state.service.editModal) {
|
|
326
302
|
setEditData(null, true);
|
|
327
303
|
}
|
|
328
|
-
}, [state.service.editModal,
|
|
304
|
+
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
329
305
|
(0, import_react.useEffect)(() => {
|
|
330
306
|
getErrorMsg();
|
|
331
|
-
}, [useResource, useStartTime, useDuration
|
|
307
|
+
}, [useResource, useStartTime, useDuration]);
|
|
332
308
|
(0, import_react.useEffect)(() => {
|
|
333
309
|
getDiscount();
|
|
334
310
|
}, [useTotal, (_h = (_g = state.service.cacheItem) == null ? void 0 : _g._extend) == null ? void 0 : _h.origin_total]);
|
|
@@ -351,30 +327,12 @@ var Info = (_, ref) => {
|
|
|
351
327
|
const getResourcesData = async () => {
|
|
352
328
|
setResourceLoading(true);
|
|
353
329
|
try {
|
|
354
|
-
let params = {};
|
|
355
|
-
if (isDay) {
|
|
356
|
-
const format = "YYYY-MM-DD HH:mm";
|
|
357
|
-
const startDate = useStartDate || state.date.value;
|
|
358
|
-
const endDate = useEndDate || state.date.end_date;
|
|
359
|
-
const { startDateTime, endDateTime } = (0, import_utils5.formatDayTime)({
|
|
360
|
-
startDate,
|
|
361
|
-
endDate
|
|
362
|
-
});
|
|
363
|
-
if ((0, import_dayjs.default)(startDateTime).isAfter((0, import_dayjs.default)(endDateTime)))
|
|
364
|
-
return;
|
|
365
|
-
params.check_time = {
|
|
366
|
-
start_time: (0, import_dayjs.default)(startDateTime).format(format),
|
|
367
|
-
end_time: (0, import_dayjs.default)(endDateTime).format(format)
|
|
368
|
-
};
|
|
369
|
-
} else {
|
|
370
|
-
params.with_date_times = state.date.value.format("YYYY-MM-DD");
|
|
371
|
-
}
|
|
372
330
|
let data = await state.apis.getResources({
|
|
373
331
|
skip: 1,
|
|
374
332
|
num: 1e3,
|
|
333
|
+
with_date_times: state.date.value.format("YYYY-MM-DD"),
|
|
375
334
|
codes: ["resources", "therapist", "table"],
|
|
376
|
-
_config: { abort: true }
|
|
377
|
-
...params
|
|
335
|
+
_config: { abort: true }
|
|
378
336
|
});
|
|
379
337
|
let _list = [(0, import_mock.getNoResource)()].concat((data == null ? void 0 : data.list) || []);
|
|
380
338
|
dispatch({
|
|
@@ -392,12 +350,7 @@ var Info = (_, ref) => {
|
|
|
392
350
|
setTimeout(() => {
|
|
393
351
|
getResourcesData();
|
|
394
352
|
}, 20);
|
|
395
|
-
}, [
|
|
396
|
-
(_q = (_p = (_o = state.date) == null ? void 0 : _o.value) == null ? void 0 : _p.format) == null ? void 0 : _q.call(_p, "YYYY-MM-DD"),
|
|
397
|
-
(_r = state.date) == null ? void 0 : _r.end_date,
|
|
398
|
-
useStartDate,
|
|
399
|
-
useEndDate
|
|
400
|
-
]);
|
|
353
|
+
}, [(_q = (_p = (_o = state.date) == null ? void 0 : _o.value) == null ? void 0 : _p.format) == null ? void 0 : _q.call(_p, "YYYY-MM-DD")]);
|
|
401
354
|
const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
|
|
402
355
|
const item = state.service.cacheItem;
|
|
403
356
|
let values = form.getFieldsValue();
|
|
@@ -463,54 +416,7 @@ var Info = (_, ref) => {
|
|
|
463
416
|
init: setEditData
|
|
464
417
|
};
|
|
465
418
|
});
|
|
466
|
-
const SelectTime = (
|
|
467
|
-
const DateCom = (position) => {
|
|
468
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
469
|
-
import_antd.DatePicker,
|
|
470
|
-
{
|
|
471
|
-
className: "pisell-lowcode__booking-service-select-date",
|
|
472
|
-
disabledDate: (current) => (0, import_utils5.disabledDate)(current, position, useStartDate),
|
|
473
|
-
size: "large",
|
|
474
|
-
style: { width: "100%" },
|
|
475
|
-
format: state.locale === "en" ? "DD/MM/YYYY" : "YYYY-MM-DD"
|
|
476
|
-
}
|
|
477
|
-
);
|
|
478
|
-
};
|
|
479
|
-
const onValuesChange = (changedValues) => {
|
|
480
|
-
if (isDay) {
|
|
481
|
-
if (changedValues == null ? void 0 : changedValues.duration) {
|
|
482
|
-
return form.setFieldsValue({
|
|
483
|
-
end_date: (0, import_dayjs.default)(useStartDate).add(changedValues == null ? void 0 : changedValues.duration, "day")
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
if (changedValues == null ? void 0 : changedValues.start_date) {
|
|
487
|
-
const startDate = (0, import_dayjs.default)(changedValues == null ? void 0 : changedValues.start_date);
|
|
488
|
-
const endDate = (0, import_dayjs.default)(useEndDate);
|
|
489
|
-
if (startDate.isAfter(endDate)) {
|
|
490
|
-
return form.setFieldsValue({
|
|
491
|
-
duration: void 0,
|
|
492
|
-
end_date: void 0
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
if ((changedValues == null ? void 0 : changedValues.start_date) || (changedValues == null ? void 0 : changedValues.end_date)) {
|
|
497
|
-
const cacheItem = getCurrentCacheItem();
|
|
498
|
-
const duration = (0, import_utils3.getDays)(cacheItem, "days");
|
|
499
|
-
return form.setFieldsValue({
|
|
500
|
-
duration
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
const showResource = (0, import_react.useMemo)(() => {
|
|
506
|
-
if (state.renderType === "eventBooking") {
|
|
507
|
-
return false;
|
|
508
|
-
}
|
|
509
|
-
if (isDay) {
|
|
510
|
-
return (0, import_utils5.isAppointment)(state.service.cacheItem, state);
|
|
511
|
-
}
|
|
512
|
-
return true;
|
|
513
|
-
}, [state.service.cacheItem, state.renderType]);
|
|
419
|
+
const SelectTime = (_r = window.BaseMaterials) == null ? void 0 : _r.SelectTime;
|
|
514
420
|
return (0, import_react.useMemo)(() => {
|
|
515
421
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2;
|
|
516
422
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -520,7 +426,7 @@ var Info = (_, ref) => {
|
|
|
520
426
|
zIndex: state.service.changeService ? 999 : 1e3,
|
|
521
427
|
forceRender: true,
|
|
522
428
|
open: state.service.editModal && !((_a2 = state.service.cacheItem) == null ? void 0 : _a2.autoClose),
|
|
523
|
-
title:
|
|
429
|
+
title: import_utils.locales.getText("pisell2.text.edit-service"),
|
|
524
430
|
onClose: () => {
|
|
525
431
|
dispatch({
|
|
526
432
|
type: "setService",
|
|
@@ -532,177 +438,126 @@ var Info = (_, ref) => {
|
|
|
532
438
|
});
|
|
533
439
|
}
|
|
534
440
|
},
|
|
535
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Page, null, /* @__PURE__ */ import_react.default.createElement(
|
|
536
|
-
|
|
441
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Page, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_d2 = (_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
|
442
|
+
import_collapsibleList.default,
|
|
443
|
+
{
|
|
444
|
+
style: { marginTop: bundles.length ? "8px" : 0 },
|
|
445
|
+
list: bundles,
|
|
446
|
+
renderItem: (item) => (0, import_utils2.renderBundles)(item, state.amountSymbol)
|
|
447
|
+
}
|
|
448
|
+
)))), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
449
|
+
import_antd.Form.Item,
|
|
537
450
|
{
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
451
|
+
label: import_utils.locales.getText("pisell2.text.price"),
|
|
452
|
+
name: "total",
|
|
453
|
+
rules: [{ required: true }],
|
|
454
|
+
extra: useTotal !== ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
|
|
455
|
+
(0, import_utils.formatAmount)(
|
|
456
|
+
(_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total,
|
|
457
|
+
2,
|
|
458
|
+
state.amountSymbol
|
|
459
|
+
),
|
|
460
|
+
(0, import_utils.formatAmount)(useTotal, 2, state.amountSymbol)
|
|
461
|
+
)
|
|
542
462
|
},
|
|
543
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
544
|
-
|
|
463
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
464
|
+
import_materials.PisellAdjustPriceInputNumber,
|
|
545
465
|
{
|
|
546
|
-
style: {
|
|
547
|
-
|
|
548
|
-
|
|
466
|
+
style: { width: "100%" },
|
|
467
|
+
min: 0,
|
|
468
|
+
precision: 2,
|
|
469
|
+
prefix: state.amountSymbol,
|
|
470
|
+
disabled: state.channelDisabledEdit,
|
|
471
|
+
originValue: ((_j2 = (_i2 = state.service.cacheItem) == null ? void 0 : _i2._extend) == null ? void 0 : _j2.origin_total) || 0,
|
|
472
|
+
placeholder: ((_l2 = (_k2 = state.service.cacheItem) == null ? void 0 : _k2._extend) == null ? void 0 : _l2.origin_total) || "0"
|
|
549
473
|
}
|
|
550
|
-
)
|
|
551
|
-
|
|
474
|
+
)
|
|
475
|
+
)), isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
476
|
+
import_antd.Form.Item,
|
|
477
|
+
{
|
|
478
|
+
label: import_utils.locales.getText("pisell2.text.discount-reason"),
|
|
479
|
+
name: "discount_reason"
|
|
480
|
+
},
|
|
481
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
|
|
482
|
+
)) : null, state.renderType !== "eventBooking" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
483
|
+
import_antd.Form.Item,
|
|
484
|
+
{
|
|
485
|
+
label: import_utils.locales.getText("pisell2.text.start_time"),
|
|
486
|
+
name: "start_time",
|
|
487
|
+
rules: [{ required: true }]
|
|
488
|
+
},
|
|
489
|
+
SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
490
|
+
SelectTime,
|
|
552
491
|
{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
2,
|
|
560
|
-
state.amountSymbol
|
|
561
|
-
),
|
|
562
|
-
(0, import_utils.formatAmount)(useTotal, 2, state.amountSymbol)
|
|
563
|
-
)
|
|
564
|
-
},
|
|
565
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
566
|
-
import_materials.PisellAdjustPriceInputNumber,
|
|
567
|
-
{
|
|
568
|
-
style: { width: "100%" },
|
|
569
|
-
min: 0,
|
|
570
|
-
precision: 2,
|
|
571
|
-
prefix: state.amountSymbol,
|
|
572
|
-
disabled: state.channelDisabledEdit,
|
|
573
|
-
originValue: ((_j2 = (_i2 = state.service.cacheItem) == null ? void 0 : _i2._extend) == null ? void 0 : _j2.origin_total) || 0,
|
|
574
|
-
placeholder: ((_l2 = (_k2 = state.service.cacheItem) == null ? void 0 : _k2._extend) == null ? void 0 : _l2.origin_total) || "0"
|
|
492
|
+
slice: (_p2 = (_o2 = (_n2 = (_m2 = state.bookingConfig) == null ? void 0 : _m2.config) == null ? void 0 : _n2.basic) == null ? void 0 : _o2.service_time) == null ? void 0 : _p2.value,
|
|
493
|
+
timePickerProps: {
|
|
494
|
+
style: { width: "100%" }
|
|
495
|
+
},
|
|
496
|
+
timeProps: {
|
|
497
|
+
style: { zoom: 0.8 }
|
|
575
498
|
}
|
|
576
|
-
|
|
577
|
-
)
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
499
|
+
}
|
|
500
|
+
) : null
|
|
501
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
502
|
+
import_antd.Form.Item,
|
|
503
|
+
{
|
|
504
|
+
label: import_utils.locales.getText("pisell2.text.duration"),
|
|
505
|
+
name: "duration",
|
|
506
|
+
rules: [{ required: true }]
|
|
507
|
+
},
|
|
508
|
+
/* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
|
|
509
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
510
|
+
import_antd.Form.Item,
|
|
511
|
+
{
|
|
512
|
+
required: true,
|
|
513
|
+
label: import_utils.locales.getText("pisell2.text.resource")
|
|
514
|
+
},
|
|
515
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "resource-col" }, /* @__PURE__ */ import_react.default.createElement(
|
|
516
|
+
import_antd.Button,
|
|
586
517
|
{
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
)
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
isDay ? DateCom("start") : SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
594
|
-
SelectTime,
|
|
595
|
-
{
|
|
596
|
-
slice: (_p2 = (_o2 = (_n2 = (_m2 = state.bookingConfig) == null ? void 0 : _m2.config) == null ? void 0 : _n2.basic) == null ? void 0 : _o2.service_time) == null ? void 0 : _p2.value,
|
|
597
|
-
timePickerProps: {
|
|
598
|
-
style: { width: "100%" }
|
|
599
|
-
},
|
|
600
|
-
timeProps: {
|
|
601
|
-
style: { zoom: 0.8 }
|
|
602
|
-
}
|
|
518
|
+
className: "resource-col-like-wrap",
|
|
519
|
+
disabled: !useResource,
|
|
520
|
+
onClick: () => {
|
|
521
|
+
handleLikeResource(
|
|
522
|
+
useLikeStatus === "like" ? "common" : "like"
|
|
523
|
+
);
|
|
603
524
|
}
|
|
604
|
-
) : null
|
|
605
|
-
)), isDay ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
606
|
-
import_antd.Form.Item,
|
|
607
|
-
{
|
|
608
|
-
label: import_utils.locales.getText(
|
|
609
|
-
isDay ? "pisell2.text.end_date" : "pisell2.text.end_time"
|
|
610
|
-
),
|
|
611
|
-
name: "end_date",
|
|
612
|
-
rules: [{ required: true }]
|
|
613
|
-
},
|
|
614
|
-
DateCom("end")
|
|
615
|
-
)) : null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
616
|
-
import_antd.Form.Item,
|
|
617
|
-
{
|
|
618
|
-
label: import_utils.locales.getText("pisell2.text.duration"),
|
|
619
|
-
name: "duration",
|
|
620
|
-
rules: [{ required: true }]
|
|
621
525
|
},
|
|
622
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
623
|
-
|
|
624
|
-
import_antd.Form.Item,
|
|
625
|
-
{
|
|
626
|
-
label: import_utils.locales.getText("pisell2.text.holder"),
|
|
627
|
-
name: "holder_id",
|
|
628
|
-
rules: [{ required: true }]
|
|
629
|
-
},
|
|
630
|
-
/* @__PURE__ */ import_react.default.createElement(import_holder.default, { size: "large" })
|
|
631
|
-
)) : null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
632
|
-
import_antd.Form.Item,
|
|
633
|
-
{
|
|
634
|
-
required: true,
|
|
635
|
-
label: import_utils.locales.getText("pisell2.text.resource")
|
|
636
|
-
},
|
|
637
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "resource-col" }, /* @__PURE__ */ import_react.default.createElement(
|
|
638
|
-
import_antd.Button,
|
|
639
|
-
{
|
|
640
|
-
className: "resource-col-like-wrap",
|
|
641
|
-
disabled: !useResource,
|
|
642
|
-
onClick: () => {
|
|
643
|
-
handleLikeResource(
|
|
644
|
-
useLikeStatus === "like" ? "common" : "like"
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
649
|
-
import_like.default,
|
|
650
|
-
{
|
|
651
|
-
status: useLikeStatus
|
|
652
|
-
}
|
|
653
|
-
)
|
|
654
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
655
|
-
import_antd.Form.Item,
|
|
526
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
527
|
+
import_like.default,
|
|
656
528
|
{
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
662
|
-
import_antd.Select,
|
|
663
|
-
{
|
|
664
|
-
loading: resourceLoading,
|
|
665
|
-
size: "large",
|
|
666
|
-
allowClear: true,
|
|
667
|
-
showSearch: true,
|
|
668
|
-
open: selectOpen,
|
|
669
|
-
onDropdownVisibleChange: setSelectOpen,
|
|
670
|
-
filterOption: (str, option) => {
|
|
671
|
-
return (option.labelText || "").toLowerCase().includes((str || "").toLowerCase());
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
renderOptions(
|
|
675
|
-
state.service.resources || [],
|
|
676
|
-
"form_record_id",
|
|
677
|
-
"label",
|
|
678
|
-
"resource"
|
|
679
|
-
)
|
|
680
|
-
)
|
|
681
|
-
))
|
|
682
|
-
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "like_status" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, null))), isDay && !(0, import_utils5.isAppointment)(state.service.cacheItem, state) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
|
|
529
|
+
status: useLikeStatus
|
|
530
|
+
}
|
|
531
|
+
)
|
|
532
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
683
533
|
import_antd.Form.Item,
|
|
684
534
|
{
|
|
685
|
-
|
|
686
|
-
|
|
535
|
+
name: "resource",
|
|
536
|
+
noStyle: true,
|
|
687
537
|
rules: [{ required: true }]
|
|
688
538
|
},
|
|
689
539
|
/* @__PURE__ */ import_react.default.createElement(
|
|
690
|
-
import_antd.
|
|
540
|
+
import_antd.Select,
|
|
691
541
|
{
|
|
542
|
+
loading: resourceLoading,
|
|
692
543
|
size: "large",
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
}
|
|
700
|
-
return value;
|
|
544
|
+
allowClear: true,
|
|
545
|
+
showSearch: true,
|
|
546
|
+
open: selectOpen,
|
|
547
|
+
onDropdownVisibleChange: setSelectOpen,
|
|
548
|
+
filterOption: (str, option) => {
|
|
549
|
+
return (option.labelText || "").toLowerCase().includes((str || "").toLowerCase());
|
|
701
550
|
}
|
|
702
|
-
}
|
|
551
|
+
},
|
|
552
|
+
renderOptions(
|
|
553
|
+
state.service.resources || [],
|
|
554
|
+
"form_record_id",
|
|
555
|
+
"label",
|
|
556
|
+
"resource"
|
|
557
|
+
)
|
|
703
558
|
)
|
|
704
|
-
))
|
|
705
|
-
)),
|
|
559
|
+
))
|
|
560
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "like_status" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, null)))))), state.renderType !== "eventBooking" && errorList.map((d, i) => {
|
|
706
561
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
707
562
|
import_antd.Alert,
|
|
708
563
|
{
|
|
@@ -736,17 +591,17 @@ var Info = (_, ref) => {
|
|
|
736
591
|
}, [
|
|
737
592
|
state.service.changeService,
|
|
738
593
|
state.service.editModal,
|
|
739
|
-
(
|
|
594
|
+
(_s = state.service.cacheItem) == null ? void 0 : _s.autoClose,
|
|
740
595
|
import_utils.locales,
|
|
741
|
-
(
|
|
596
|
+
(_v = (_u = (_t = state.service) == null ? void 0 : _t.cacheItem) == null ? void 0 : _u._extend) == null ? void 0 : _v.product_name,
|
|
742
597
|
bundles,
|
|
743
598
|
state.amountSymbol,
|
|
744
599
|
state.channelDisabledEdit,
|
|
745
|
-
(
|
|
600
|
+
(_x = (_w = state.service.cacheItem) == null ? void 0 : _w._extend) == null ? void 0 : _x.origin_total,
|
|
746
601
|
isDiscount,
|
|
747
602
|
isReason,
|
|
748
603
|
state.renderType,
|
|
749
|
-
(
|
|
604
|
+
(_B = (_A = (_z = (_y = state.bookingConfig) == null ? void 0 : _y.config) == null ? void 0 : _z.basic) == null ? void 0 : _A.service_time) == null ? void 0 : _B.value,
|
|
750
605
|
SelectTime,
|
|
751
606
|
durationProps,
|
|
752
607
|
timeObj,
|
|
@@ -756,11 +611,7 @@ var Info = (_, ref) => {
|
|
|
756
611
|
selectOpen,
|
|
757
612
|
state.service.resources,
|
|
758
613
|
errorList,
|
|
759
|
-
useTotal
|
|
760
|
-
useStartDate,
|
|
761
|
-
useEndDate,
|
|
762
|
-
showResource,
|
|
763
|
-
holderLists
|
|
614
|
+
useTotal
|
|
764
615
|
]);
|
|
765
616
|
};
|
|
766
617
|
var editService_default = (0, import_react.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;
|