@pisell/private-materials 3.0.155 → 3.0.157-gray

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.
Files changed (128) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/addons/index.js +10 -7
  12. package/es/components/booking/addons/model.d.ts +2 -1
  13. package/es/components/booking/components/TabProduct/index.js +1 -1
  14. package/es/components/booking/components/customSelect/index.js +5 -1
  15. package/es/components/booking/components/drawer/index.d.ts +3 -3
  16. package/es/components/booking/components/drawer/index.js +15 -13
  17. package/es/components/booking/components/drawer/index.less +8 -6
  18. package/es/components/booking/components/footer/index.js +24 -10
  19. package/es/components/booking/dashboard/index.d.ts +20 -0
  20. package/es/components/booking/dashboard/index.js +253 -0
  21. package/es/components/booking/dashboard/serve.d.ts +1 -0
  22. package/es/components/booking/dashboard/serve.js +27 -0
  23. package/es/components/booking/deposit/EditDepositModal/index.less +3 -0
  24. package/es/components/booking/forms/forms.d.ts +1 -0
  25. package/es/components/booking/forms/forms.js +4 -2
  26. package/es/components/booking/forms/model.d.ts +2 -1
  27. package/es/components/booking/forms/single/index.d.ts +1 -1
  28. package/es/components/booking/forms/single/index.js +4 -3
  29. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  30. package/es/components/booking/info/addServiceVariant/index.js +33 -0
  31. package/es/components/booking/info/client/index.js +35 -15
  32. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +4 -4
  33. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +59 -32
  34. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +3 -0
  35. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.js +14 -0
  36. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +4 -3
  37. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +41 -35
  38. package/es/components/booking/info/clientVariant/vertical/index.d.ts +1 -1
  39. package/es/components/booking/info/clientVariant/vertical/index.js +32 -14
  40. package/es/components/booking/info/clientVariant/vertical/index.less +37 -11
  41. package/es/components/booking/info/date/index.js +1 -0
  42. package/es/components/booking/info/date/index.less +2 -0
  43. package/es/components/booking/info/header/index.js +13 -12
  44. package/es/components/booking/info/index.less +9 -0
  45. package/es/components/booking/info/main.js +10 -1
  46. package/es/components/booking/info/pet/index.js +1 -1
  47. package/es/components/booking/info/service/addService/index.d.ts +8 -2
  48. package/es/components/booking/info/service/addService/index.js +92 -44
  49. package/es/components/booking/info/service/addService/index.less +27 -1
  50. package/es/components/booking/info/service/addTimeModal/index.js +1 -0
  51. package/es/components/booking/info/service/addTimeModal/index.less +1 -1
  52. package/es/components/booking/info/service/editService/index.js +14 -15
  53. package/es/components/booking/info/service/serviceList/index.js +2 -1
  54. package/es/components/booking/info/utils.js +1 -1
  55. package/es/components/booking/info2/index.js +10 -1
  56. package/es/components/booking/locales.d.ts +48 -0
  57. package/es/components/booking/locales.js +51 -3
  58. package/es/components/booking/model.d.ts +4 -0
  59. package/es/components/booking/notes/index.d.ts +1 -1
  60. package/es/components/booking/notes/model.d.ts +2 -1
  61. package/es/components/booking/payments/model.d.ts +2 -1
  62. package/es/components/booking/utils.d.ts +1 -1
  63. package/es/components/booking/utils.js +54 -51
  64. package/es/components/schedules/index.d.ts +1 -1
  65. package/es/components/schedules/model.d.ts +2 -1
  66. package/es/index.d.ts +2 -0
  67. package/es/index.js +3 -1
  68. package/lib/components/booking/addons/index.js +2 -5
  69. package/lib/components/booking/addons/model.d.ts +2 -1
  70. package/lib/components/booking/components/TabProduct/index.js +1 -1
  71. package/lib/components/booking/components/customSelect/index.js +2 -1
  72. package/lib/components/booking/components/drawer/index.d.ts +3 -3
  73. package/lib/components/booking/components/drawer/index.js +13 -11
  74. package/lib/components/booking/components/drawer/index.less +8 -6
  75. package/lib/components/booking/components/footer/index.js +19 -15
  76. package/lib/components/booking/dashboard/index.d.ts +20 -0
  77. package/lib/components/booking/dashboard/index.js +251 -0
  78. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  79. package/lib/components/booking/dashboard/serve.js +33 -0
  80. package/lib/components/booking/deposit/EditDepositModal/index.less +3 -0
  81. package/lib/components/booking/forms/forms.d.ts +1 -0
  82. package/lib/components/booking/forms/forms.js +5 -2
  83. package/lib/components/booking/forms/model.d.ts +2 -1
  84. package/lib/components/booking/forms/single/index.d.ts +1 -1
  85. package/lib/components/booking/forms/single/index.js +4 -2
  86. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  87. package/lib/components/booking/info/addServiceVariant/index.js +58 -0
  88. package/lib/components/booking/info/client/index.js +33 -21
  89. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +4 -4
  90. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +33 -13
  91. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +3 -0
  92. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.js +36 -0
  93. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +4 -3
  94. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +43 -11
  95. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +1 -1
  96. package/lib/components/booking/info/clientVariant/vertical/index.js +121 -88
  97. package/lib/components/booking/info/clientVariant/vertical/index.less +37 -11
  98. package/lib/components/booking/info/date/index.js +1 -0
  99. package/lib/components/booking/info/date/index.less +2 -0
  100. package/lib/components/booking/info/header/index.js +14 -12
  101. package/lib/components/booking/info/index.less +9 -0
  102. package/lib/components/booking/info/main.js +14 -1
  103. package/lib/components/booking/info/pet/index.js +2 -1
  104. package/lib/components/booking/info/service/addService/index.d.ts +8 -2
  105. package/lib/components/booking/info/service/addService/index.js +69 -30
  106. package/lib/components/booking/info/service/addService/index.less +27 -1
  107. package/lib/components/booking/info/service/addTimeModal/index.js +1 -0
  108. package/lib/components/booking/info/service/addTimeModal/index.less +1 -1
  109. package/lib/components/booking/info/service/editService/index.js +17 -13
  110. package/lib/components/booking/info/service/serviceList/index.js +4 -3
  111. package/lib/components/booking/info/utils.js +1 -1
  112. package/lib/components/booking/info2/index.js +14 -1
  113. package/lib/components/booking/locales.d.ts +48 -0
  114. package/lib/components/booking/locales.js +51 -3
  115. package/lib/components/booking/model.d.ts +4 -0
  116. package/lib/components/booking/notes/index.d.ts +1 -1
  117. package/lib/components/booking/notes/model.d.ts +2 -1
  118. package/lib/components/booking/payments/model.d.ts +2 -1
  119. package/lib/components/booking/utils.d.ts +1 -1
  120. package/lib/components/booking/utils.js +57 -22
  121. package/lib/components/schedules/index.d.ts +1 -1
  122. package/lib/components/schedules/model.d.ts +2 -1
  123. package/lib/index.d.ts +2 -0
  124. package/lib/index.js +6 -0
  125. package/lowcode/booking-dashboard/meta.ts +137 -0
  126. package/lowcode/booking-vertical-add-service/meta.ts +124 -0
  127. package/lowcode/vertical-add-service/meta.ts +71 -0
  128. package/package.json +3 -3
@@ -63,13 +63,16 @@ var shopList = [
63
63
  6848,
64
64
  6305
65
65
  ];
66
- var Info = ({ onEdit }) => {
66
+ var Info = (props) => {
67
67
  var _a, _b, _c, _d;
68
+ const { onEdit, drawerProps, renderMode } = props;
68
69
  const [search, setSearch] = (0, import_react.useState)("");
69
- const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
70
+ let { state, dispatch } = (0, import_react.useContext)(import_model.Context);
70
71
  const [loading, setLoading] = (0, import_react.useState)(false);
71
72
  const searchRef = (0, import_react.useRef)();
72
73
  const context = (0, import_useEngineContext.default)();
74
+ state = state || (props == null ? void 0 : props.state);
75
+ dispatch = dispatch || (props == null ? void 0 : props.dispatch);
73
76
  import_utils3.request.setRequest(context.appHelper.utils.request);
74
77
  const setDefaultService = async (list) => {
75
78
  if (state.renderType !== "eventBooking") {
@@ -120,7 +123,7 @@ var Info = ({ onEdit }) => {
120
123
  }
121
124
  });
122
125
  };
123
- const getServices = async () => {
126
+ const getServices = async (params) => {
124
127
  var _a2;
125
128
  setLoading(true);
126
129
  let data = await state.apis.getServices({
@@ -134,8 +137,10 @@ var Info = ({ onEdit }) => {
134
137
  with_count: ["bundleGroup", "optionGroup"],
135
138
  order_by_string: "sort:desc",
136
139
  status: "published",
137
- _config: {
138
- useCache: true
140
+ ...state.isBookingCreatePage ? { schedule_date: params == null ? void 0 : params.schedule_date } : {
141
+ _config: {
142
+ useCache: true
143
+ }
139
144
  }
140
145
  });
141
146
  setLoading(false);
@@ -211,6 +216,9 @@ var Info = ({ onEdit }) => {
211
216
  cacheItem._id = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._id;
212
217
  cacheItem.new = 0;
213
218
  }
219
+ if (renderMode === "current") {
220
+ cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
221
+ }
214
222
  cacheItem._extend = (0, import_utils2.getProductExtend)({ cacheItem, state });
215
223
  if (state.renderType === "eventBooking") {
216
224
  cacheItem.autoClose = false;
@@ -244,7 +252,8 @@ var Info = ({ onEdit }) => {
244
252
  }, [search, (_a = state.service) == null ? void 0 : _a.services]);
245
253
  console.log("state.service.renderList", renderList);
246
254
  const isService = (0, import_react.useMemo)(() => {
247
- return state.service.value.length > 0;
255
+ var _a2, _b2;
256
+ return ((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length) > 0;
248
257
  }, [state.service.value]);
249
258
  (0, import_react.useEffect)(() => {
250
259
  var _a2, _b2, _c2, _d2, _e, _f, _g;
@@ -268,12 +277,24 @@ var Info = ({ onEdit }) => {
268
277
  setSearch("");
269
278
  }
270
279
  }, [state.service.addModal]);
280
+ const currentDate = (0, import_react.useMemo)(() => {
281
+ return state.date.value.format("YYYY-MM-DD");
282
+ }, [state.date.value]);
283
+ console.log(currentDate, "currentDate");
284
+ (0, import_react.useEffect)(() => {
285
+ if (renderMode === "current") {
286
+ getServices({ schedule_date: currentDate });
287
+ }
288
+ }, [renderMode, currentDate]);
271
289
  (0, import_react.useEffect)(() => {
272
290
  if (state.renderType === "eventBooking" && state.modalOpen) {
273
291
  getServices();
274
292
  }
275
293
  }, [state.renderType, state.modalOpen]);
276
294
  const addButton = (0, import_react.useMemo)(() => {
295
+ if (state.isBookingCreatePage) {
296
+ return /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
297
+ }
277
298
  if (state.renderType === "eventBooking") {
278
299
  return isService ? /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } }) : /* @__PURE__ */ import_react.default.createElement(
279
300
  import_addButton.default,
@@ -302,12 +323,50 @@ var Info = ({ onEdit }) => {
302
323
  state.service.value,
303
324
  loading
304
325
  ]);
326
+ const isRenderCurrent = (0, import_react.useMemo)(() => {
327
+ return renderMode === "current";
328
+ }, [renderMode]);
305
329
  return (0, import_react.useMemo)(() => {
306
330
  var _a2, _b2;
331
+ const header = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-header" }, /* @__PURE__ */ import_react.default.createElement(
332
+ import_antd.Input,
333
+ {
334
+ ref: searchRef,
335
+ prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
336
+ style: { marginTop: 16, height: 44 },
337
+ placeholder: import_utils4.locales.getText("pisell2.text.search"),
338
+ allowClear: true,
339
+ value: search,
340
+ onChange: (e) => {
341
+ setSearch(e.target.value);
342
+ }
343
+ }
344
+ ));
345
+ const content = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body" }, /* @__PURE__ */ import_react.default.createElement(
346
+ import_TabProduct.default,
347
+ {
348
+ list: renderList,
349
+ amountSymbol: state.amountSymbol,
350
+ onChange: handleSelectProduct,
351
+ scrollDom: isRenderCurrent ? ".pisell-lowcode__booking-vertical-add-service-wrap" : ".booking-server-wrap .pisell-lowcode-drawer-body "
352
+ }
353
+ ));
354
+ if (renderMode === "current") {
355
+ return /* @__PURE__ */ import_react.default.createElement(
356
+ "div",
357
+ {
358
+ className: "pisell-lowcode__booking-vertical-add-service-wrap",
359
+ style: { width: "100%", height: "100%", overflow: "auto" }
360
+ },
361
+ header,
362
+ content
363
+ );
364
+ }
307
365
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2.autoClose) && /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }), addButton, /* @__PURE__ */ import_react.default.createElement(
308
366
  import_drawer.default,
309
367
  {
310
- open: state.service.addModal,
368
+ titleNoWrap: true,
369
+ open: state.service.addModal && !state.isBookingCreatePage,
311
370
  title: import_utils4.locales.getText("pisell2.text.select-service"),
312
371
  rootClassName: "booking-server-wrap",
313
372
  onClose: () => {
@@ -319,30 +378,10 @@ var Info = ({ onEdit }) => {
319
378
  }
320
379
  });
321
380
  },
322
- header: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-header" }, /* @__PURE__ */ import_react.default.createElement(
323
- import_antd.Input,
324
- {
325
- ref: searchRef,
326
- prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
327
- style: { marginTop: 16, height: 44 },
328
- placeholder: import_utils4.locales.getText("pisell2.text.search"),
329
- allowClear: true,
330
- value: search,
331
- onChange: (e) => {
332
- setSearch(e.target.value);
333
- }
334
- }
335
- ))
381
+ header,
382
+ ...drawerProps || {}
336
383
  },
337
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body" }, /* @__PURE__ */ import_react.default.createElement(
338
- import_TabProduct.default,
339
- {
340
- list: renderList,
341
- amountSymbol: state.amountSymbol,
342
- onChange: handleSelectProduct,
343
- scrollDom: ".booking-server-wrap .pisell-lowcode-drawer-body"
344
- }
345
- ))
384
+ content
346
385
  ));
347
386
  }, [
348
387
  (_d = (_c = state.service) == null ? void 0 : _c.cacheItem) == null ? void 0 : _d.autoClose,
@@ -3,7 +3,33 @@
3
3
  // border-bottom: 1px solid var(--gray-300, #D0D5DD);
4
4
  }
5
5
 
6
-
7
6
  .pisell-lowcode__booking-service-body {
8
7
  background: var(--gray-50, #F9FAFB);
8
+ }
9
+
10
+ .pisell-lowcode__booking-vertical-add-service-wrap {
11
+ &::-webkit-scrollbar {
12
+ display: none !important;
13
+ }
14
+ .pisell-lowcode__booking-service-header {
15
+ background-color: #fff;
16
+ top: 0;
17
+ position: sticky;
18
+ z-index: 2;
19
+ padding: 16px !important;
20
+ margin: 0;
21
+ .pisell-lowcode-input-affix-wrapper {
22
+ margin: 0 !important;
23
+ }
24
+ }
25
+ .booking-category-list {
26
+ padding: 0 16px !important;
27
+ }
28
+ .pisell-lowcode__booking-service-body {
29
+ .booking-tab-product {
30
+ .booking-tabs-wrap {
31
+ top: 76px !important;
32
+ }
33
+ }
34
+ }
9
35
  }
@@ -453,6 +453,7 @@ var AddTimeModal = () => {
453
453
  return /* @__PURE__ */ import_react.default.createElement(
454
454
  import_drawer.default,
455
455
  {
456
+ titleNoWrap: true,
456
457
  open: state.service.addTimeModal,
457
458
  title: import_utils.locales.getText("page.booking.text.add-time"),
458
459
  rootClassName: "booking-server-wrap",
@@ -20,7 +20,7 @@
20
20
  margin: 10px 0;
21
21
  flex: 0 0 100%;
22
22
  position: sticky;
23
- top: 95px;
23
+ top: 58px !important;
24
24
  z-index: 1;
25
25
  }
26
26
 
@@ -49,7 +49,7 @@ var import_mock = require("../../../mock");
49
49
  var import_utils4 = require("../addService/utils");
50
50
  var submitLock = false;
51
51
  var Info = (_, ref) => {
52
- 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;
52
+ 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
53
  const [form] = import_antd.Form.useForm();
54
54
  const useTotal = import_antd.Form.useWatch("total", form);
55
55
  const useLikeStatus = import_antd.Form.useWatch("like_status", form);
@@ -117,7 +117,7 @@ var Info = (_, ref) => {
117
117
  } catch (err) {
118
118
  }
119
119
  }, [useDuration, flexibleOption]);
120
- const getResources = async (cacheItem) => {
120
+ const getResources = async (cacheItem, open) => {
121
121
  console.log("getResources2");
122
122
  try {
123
123
  let _list = state.service.resourcesOrigin || [];
@@ -142,7 +142,7 @@ var Info = (_, ref) => {
142
142
  }, 200);
143
143
  } else {
144
144
  setTimeout(() => {
145
- if (selectOpen === void 0) {
145
+ if (selectOpen === void 0 || open) {
146
146
  setSelectOpen(true);
147
147
  }
148
148
  }, 500);
@@ -265,12 +265,12 @@ var Info = (_, ref) => {
265
265
  }
266
266
  });
267
267
  });
268
- const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
268
+ const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem, open) => {
269
269
  let cacheItem = _cacheItem || state.service.cacheItem;
270
270
  let values = cacheItem._extend;
271
271
  form.setFieldsValue(values);
272
272
  if (state.renderType !== "eventBooking") {
273
- getResources(_cacheItem);
273
+ getResources(cacheItem, open);
274
274
  }
275
275
  });
276
276
  const isReason = (0, import_react.useMemo)(() => {
@@ -297,7 +297,10 @@ var Info = (_, ref) => {
297
297
  (_f = state.service.cacheItem) == null ? void 0 : _f.autoClose
298
298
  ]);
299
299
  (0, import_react.useEffect)(() => {
300
- }, [state.service.editModal]);
300
+ if (state.isBookingCreatePage && state.service.editModal) {
301
+ setEditData(null, true);
302
+ }
303
+ }, [state.service.editModal, state.isBookingCreatePage]);
301
304
  (0, import_react.useEffect)(() => {
302
305
  getErrorMsg();
303
306
  }, [useResource, useStartTime, useDuration]);
@@ -346,7 +349,7 @@ var Info = (_, ref) => {
346
349
  setTimeout(() => {
347
350
  getResourcesData();
348
351
  }, 20);
349
- }, [state.date.value]);
352
+ }, [(_q = (_p = (_o = state.date) == null ? void 0 : _o.value) == null ? void 0 : _p.format) == null ? void 0 : _q.call(_p, "YYYY-MM-DD")]);
350
353
  const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
351
354
  const item = state.service.cacheItem;
352
355
  let values = form.getFieldsValue();
@@ -412,12 +415,13 @@ var Info = (_, ref) => {
412
415
  init: setEditData
413
416
  };
414
417
  });
415
- const SelectTime = (_o = window.BaseMaterials) == null ? void 0 : _o.SelectTime;
418
+ const SelectTime = (_r = window.BaseMaterials) == null ? void 0 : _r.SelectTime;
416
419
  return (0, import_react.useMemo)(() => {
417
420
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2;
418
421
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
419
422
  import_drawer.default,
420
423
  {
424
+ titleNoWrap: true,
421
425
  zIndex: state.service.changeService ? 999 : 1e3,
422
426
  forceRender: true,
423
427
  open: state.service.editModal && !((_a2 = state.service.cacheItem) == null ? void 0 : _a2.autoClose),
@@ -433,7 +437,7 @@ var Info = (_, ref) => {
433
437
  });
434
438
  }
435
439
  },
436
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__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")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
440
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__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(
437
441
  import_collapsibleList.default,
438
442
  {
439
443
  style: { marginTop: bundles.length ? "8px" : 0 },
@@ -599,17 +603,17 @@ var Info = (_, ref) => {
599
603
  }, [
600
604
  state.service.changeService,
601
605
  state.service.editModal,
602
- (_p = state.service.cacheItem) == null ? void 0 : _p.autoClose,
606
+ (_s = state.service.cacheItem) == null ? void 0 : _s.autoClose,
603
607
  import_utils.locales,
604
- (_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name,
608
+ (_v = (_u = (_t = state.service) == null ? void 0 : _t.cacheItem) == null ? void 0 : _u._extend) == null ? void 0 : _v.product_name,
605
609
  bundles,
606
610
  state.amountSymbol,
607
611
  state.channelDisabledEdit,
608
- (_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total,
612
+ (_x = (_w = state.service.cacheItem) == null ? void 0 : _w._extend) == null ? void 0 : _x.origin_total,
609
613
  isDiscount,
610
614
  isReason,
611
615
  state.renderType,
612
- (_y = (_x = (_w = (_v = state.bookingConfig) == null ? void 0 : _v.config) == null ? void 0 : _w.basic) == null ? void 0 : _x.service_time) == null ? void 0 : _y.value,
616
+ (_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,
613
617
  SelectTime,
614
618
  durationProps,
615
619
  timeObj,
@@ -40,6 +40,7 @@ var import_mock = require("../../../mock");
40
40
  var import_utils2 = require("../../../utils");
41
41
  var import_serviceItem = __toESM(require("../serviceItem"));
42
42
  var ServiceList = ({ onEdit }) => {
43
+ var _a, _b;
43
44
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
44
45
  const errorTypes = {
45
46
  product: import_utils.locales.getText("pisell2.text.status.service-error-1"),
@@ -108,9 +109,9 @@ var ServiceList = ({ onEdit }) => {
108
109
  }
109
110
  });
110
111
  };
111
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, state.service.value.map((d) => {
112
- var _a;
113
- const resourceItem = getResourceItem((_a = d._extend) == null ? void 0 : _a.resource);
112
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, (_b = (_a = state.service) == null ? void 0 : _a.value) == null ? void 0 : _b.map((d) => {
113
+ var _a2;
114
+ const resourceItem = getResourceItem((_a2 = d._extend) == null ? void 0 : _a2.resource);
114
115
  let errorMessage = getErrorMessage(d, resourceItem);
115
116
  return /* @__PURE__ */ import_react.default.createElement(
116
117
  import_serviceItem.default,
@@ -83,7 +83,7 @@ var isBooking4Shop = (shopId, renderType) => {
83
83
  if (renderType === "eventBooking") {
84
84
  return false;
85
85
  }
86
- const booking4Shops = [1350, 1401, 3013, 7154, 7572];
86
+ const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007];
87
87
  return booking4Shops.includes(shopId);
88
88
  };
89
89
  // Annotate the CommonJS export names for ESM import in node:
@@ -52,6 +52,7 @@ var import_date2 = require("../info/date");
52
52
  var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
53
53
  var import_notes = __toESM(require("../info/notes"));
54
54
  var import_info = require("../info/index.less");
55
+ var import_antd = require("antd");
55
56
  var defaultModules = {
56
57
  client: 1,
57
58
  date: 1,
@@ -196,7 +197,19 @@ var Info = (0, import_model.Provider)((props) => {
196
197
  },
197
198
  bodyClassName: "booking-info-warp"
198
199
  },
199
- /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((_l = modal.state) == null ? void 0 : _l.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, modules.service ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, modal.state.date.value ? /* @__PURE__ */ import_react.default.createElement(import_service.default, null) : null) : null, notes, slot ? slot : null)
200
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((_l = modal.state) == null ? void 0 : _l.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
201
+ import_antd.Skeleton,
202
+ {
203
+ loading: globalState.loading,
204
+ round: true,
205
+ active: true,
206
+ avatar: false,
207
+ style: { paddingTop: 20 }
208
+ },
209
+ modules.service ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, modal.state.date.value ? /* @__PURE__ */ import_react.default.createElement(import_service.default, null) : null) : null,
210
+ notes,
211
+ slot ? slot : null
212
+ ))
200
213
  ) : null);
201
214
  });
202
215
  var info2_default = Info;
@@ -195,6 +195,22 @@ declare const _default: {
195
195
  'page.booking.text.please-choose-an-option-1': string;
196
196
  'page.booking.text.please-choose-an-option-2': string;
197
197
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
198
+ 'pisell2.booking.dashboard.groups-on-site-now': string;
199
+ 'pisell2.booking.dashboard.groups-on-site-now-tip': string;
200
+ 'pisell2.booking.dashboard.people-on-site-now': string;
201
+ 'pisell2.booking.dashboard.people-on-site-now-tip': string;
202
+ 'pisell2.booking.dashboard.total-visitors-today': string;
203
+ 'pisell2.booking.dashboard.total-visitors-today-tip': string;
204
+ 'pisell2.booking.dashboard.ongoing-visitors': string;
205
+ 'pisell2.booking.dashboard.ongoing-visitors-tip': string;
206
+ 'pisell2.booking.dashboard.upcoming-visitors': string;
207
+ 'pisell2.booking.dashboard.upcoming-visitors-tip': string;
208
+ 'pisell2.booking.dashboard.overdue-visitors': string;
209
+ 'pisell2.booking.dashboard.overdue-visitors-tip': string;
210
+ 'pisell2.booking.dashboard.completed-visitors': string;
211
+ 'pisell2.booking.dashboard.completed-visitors-tip': string;
212
+ 'pisell2.booking.dashboard.departed-visitors': string;
213
+ 'pisell2.booking.dashboard.departed-visitors-tip': string;
198
214
  };
199
215
  'zh-CN': {
200
216
  'pisell2.text.refunded-amount': string;
@@ -392,6 +408,22 @@ declare const _default: {
392
408
  'page.booking.text.please-choose-an-option-1': string;
393
409
  'page.booking.text.please-choose-an-option-2': string;
394
410
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
411
+ 'pisell2.booking.dashboard.groups-on-site-now': string;
412
+ 'pisell2.booking.dashboard.groups-on-site-now-tip': string;
413
+ 'pisell2.booking.dashboard.people-on-site-now': string;
414
+ 'pisell2.booking.dashboard.people-on-site-now-tip': string;
415
+ 'pisell2.booking.dashboard.total-visitors-today': string;
416
+ 'pisell2.booking.dashboard.total-visitors-today-tip': string;
417
+ 'pisell2.booking.dashboard.ongoing-visitors': string;
418
+ 'pisell2.booking.dashboard.ongoing-visitors-tip': string;
419
+ 'pisell2.booking.dashboard.upcoming-visitors': string;
420
+ 'pisell2.booking.dashboard.upcoming-visitors-tip': string;
421
+ 'pisell2.booking.dashboard.overdue-visitors': string;
422
+ 'pisell2.booking.dashboard.overdue-visitors-tip': string;
423
+ 'pisell2.booking.dashboard.completed-visitors': string;
424
+ 'pisell2.booking.dashboard.completed-visitors-tip': string;
425
+ 'pisell2.booking.dashboard.departed-visitors': string;
426
+ 'pisell2.booking.dashboard.departed-visitors-tip': string;
395
427
  };
396
428
  'zh-HK': {
397
429
  'pisell2.text.refunded-amount': string;
@@ -589,6 +621,22 @@ declare const _default: {
589
621
  'page.booking.text.please-choose-an-option-1': string;
590
622
  'page.booking.text.please-choose-an-option-2': string;
591
623
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
624
+ 'pisell2.booking.dashboard.groups-on-site-now': string;
625
+ 'pisell2.booking.dashboard.groups-on-site-now-tip': string;
626
+ 'pisell2.booking.dashboard.people-on-site-now': string;
627
+ 'pisell2.booking.dashboard.people-on-site-now-tip': string;
628
+ 'pisell2.booking.dashboard.total-visitors-today': string;
629
+ 'pisell2.booking.dashboard.total-visitors-today-tip': string;
630
+ 'pisell2.booking.dashboard.ongoing-visitors': string;
631
+ 'pisell2.booking.dashboard.ongoing-visitors-tip': string;
632
+ 'pisell2.booking.dashboard.upcoming-visitors': string;
633
+ 'pisell2.booking.dashboard.upcoming-visitors-tip': string;
634
+ 'pisell2.booking.dashboard.overdue-visitors': string;
635
+ 'pisell2.booking.dashboard.overdue-visitors-tip': string;
636
+ 'pisell2.booking.dashboard.completed-visitors': string;
637
+ 'pisell2.booking.dashboard.completed-visitors-tip': string;
638
+ 'pisell2.booking.dashboard.departed-visitors': string;
639
+ 'pisell2.booking.dashboard.departed-visitors-tip': string;
592
640
  };
593
641
  };
594
642
  export default _default;
@@ -250,7 +250,23 @@ var locales_default = {
250
250
  "page.booking.text.please-choose-an-option": "Please choose an option:",
251
251
  "page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
252
252
  "page.booking.text.please-choose-an-option-2": "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)",
253
- "page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`
253
+ "page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`,
254
+ "pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
255
+ "pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
256
+ "pisell2.booking.dashboard.people-on-site-now": "People on-site now",
257
+ "pisell2.booking.dashboard.people-on-site-now-tip": "Tip: Total number of people who have checked in and are currently on-site",
258
+ "pisell2.booking.dashboard.total-visitors-today": "Total visitors today",
259
+ "pisell2.booking.dashboard.total-visitors-today-tip": "Tip: Total number of visitors today, regardless of check-in status",
260
+ "pisell2.booking.dashboard.ongoing-visitors": "Ongoing visitors",
261
+ "pisell2.booking.dashboard.ongoing-visitors-tip": "Tip: Total number of visitors who have passed the start time, regardless of check-in status",
262
+ "pisell2.booking.dashboard.upcoming-visitors": "Upcoming visitors",
263
+ "pisell2.booking.dashboard.upcoming-visitors-tip": "Tip: Total number of visitors expected to arrive in the near future",
264
+ "pisell2.booking.dashboard.overdue-visitors": "Overdue visitors",
265
+ "pisell2.booking.dashboard.overdue-visitors-tip": "Tip: Total number of visitors whose playtime has expired but have not yet left the venue",
266
+ "pisell2.booking.dashboard.completed-visitors": "Completed visitors",
267
+ "pisell2.booking.dashboard.completed-visitors-tip": "Tip: Total number of visitors whose playtime has ended, regardless of whether they have left the venue",
268
+ "pisell2.booking.dashboard.departed-visitors": "Departed visitors",
269
+ "pisell2.booking.dashboard.departed-visitors-tip": "Tip: Total number of visitors who checked in and have left the venue today"
254
270
  },
255
271
  "zh-CN": {
256
272
  "pisell2.text.refunded-amount": "已退金额",
@@ -473,7 +489,23 @@ var locales_default = {
473
489
  "page.booking.text.please-choose-an-option": "请选择:",
474
490
  "page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
475
491
  "page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
476
- "page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`
492
+ "page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`,
493
+ "pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
494
+ "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
495
+ "pisell2.booking.dashboard.people-on-site-now": "当前在场人数",
496
+ "pisell2.booking.dashboard.people-on-site-now-tip": "提示:已检票并在场内的总人数",
497
+ "pisell2.booking.dashboard.total-visitors-today": "今日游客总数",
498
+ "pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的游客总人数,无论是否检票入场",
499
+ "pisell2.booking.dashboard.ongoing-visitors": "进行中的游客",
500
+ "pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已过开始时间的游客总数,无论是否检票",
501
+ "pisell2.booking.dashboard.upcoming-visitors": "即将到达的游客",
502
+ "pisell2.booking.dashboard.upcoming-visitors-tip": "提示:预计将在未来到场的游客总人数",
503
+ "pisell2.booking.dashboard.overdue-visitors": "超时的游客",
504
+ "pisell2.booking.dashboard.overdue-visitors-tip": "提示:游玩时间已过,但尚未离场的游客总人数",
505
+ "pisell2.booking.dashboard.completed-visitors": "已完成的游客",
506
+ "pisell2.booking.dashboard.completed-visitors-tip": "提示:游玩时长已结束的游客总人数,无论是否离场",
507
+ "pisell2.booking.dashboard.departed-visitors": "已离场的游客",
508
+ "pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已检票并离场的游客总人数"
477
509
  },
478
510
  "zh-HK": {
479
511
  "pisell2.text.refunded-amount": "已退金額",
@@ -696,6 +728,22 @@ var locales_default = {
696
728
  "page.booking.text.please-choose-an-option": "請選擇:",
697
729
  "page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
698
730
  "page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
699
- "page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`
731
+ "page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`,
732
+ "pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
733
+ "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
734
+ "pisell2.booking.dashboard.people-on-site-now": "當前在場人數",
735
+ "pisell2.booking.dashboard.people-on-site-now-tip": "提示:已檢票並在場內的總人數",
736
+ "pisell2.booking.dashboard.total-visitors-today": "今日遊客總數",
737
+ "pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的遊客總人數,無論是否檢票入場",
738
+ "pisell2.booking.dashboard.ongoing-visitors": "進行中的遊客",
739
+ "pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已過開始時間的遊客總數,無論是否檢票",
740
+ "pisell2.booking.dashboard.upcoming-visitors": "即將到達的遊客",
741
+ "pisell2.booking.dashboard.upcoming-visitors-tip": "提示:預計將在未來到場的遊客總人數",
742
+ "pisell2.booking.dashboard.overdue-visitors": "超時的遊客",
743
+ "pisell2.booking.dashboard.overdue-visitors-tip": "提示:遊玩時間已過,但尚未離場的遊客總人數",
744
+ "pisell2.booking.dashboard.completed-visitors": "已完成的遊客",
745
+ "pisell2.booking.dashboard.completed-visitors-tip": "提示:遊玩時長已結束的遊客總人數,無論是否離場",
746
+ "pisell2.booking.dashboard.departed-visitors": "已離場的遊客",
747
+ "pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已檢票並離場的遊客總人數"
700
748
  }
701
749
  };
@@ -3,6 +3,7 @@ export interface FormState {
3
3
  amountSymbol: string;
4
4
  apis: {
5
5
  getClients: (par?: any) => any;
6
+ getClientsEs: (par?: any) => any;
6
7
  getServices: (par?: any) => any;
7
8
  getResources: (par?: any) => any;
8
9
  getProducts: (par?: any) => any;
@@ -92,6 +93,9 @@ export interface FormState {
92
93
  disableEventBookingEdit?: boolean;
93
94
  /** 关闭自动打开选择服务弹窗 */
94
95
  closeAutoOpenService?: boolean;
96
+ /** 是否terminal创建booking页面 */
97
+ isBookingCreatePage?: boolean;
98
+ loading: boolean;
95
99
  }
96
100
  export declare const walkInData: {
97
101
  id: number;
@@ -4,5 +4,5 @@ export interface InfoProps {
4
4
  globalState: any;
5
5
  setGlobalState: any;
6
6
  }
7
- declare const Notes: any;
7
+ declare const Notes: (props: any) => any;
8
8
  export default Notes;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -62,7 +62,7 @@ export declare const getServeStartTime: (start_time: string) => string;
62
62
  * @Date: 2024-04-26 14:04
63
63
  */
64
64
  export declare const getServiceTime: (item: any, currentDate: any) => string;
65
- export declare const findNextSlice: ({ timeSlices, index, date }: {
65
+ export declare const findNextSlice: ({ timeSlices, index, date, }: {
66
66
  timeSlices: any[];
67
67
  index?: number | undefined;
68
68
  date?: string | undefined;