@pisell/private-materials 6.5.15 → 6.5.17

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 (231) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  15. package/es/components/booking/deposit/index.d.ts +0 -1
  16. package/es/components/booking/forms/single/index.d.ts +0 -1
  17. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  18. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/info/header/index.d.ts +0 -1
  21. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  22. package/es/components/booking/info/index.d.ts +0 -1
  23. package/es/components/booking/info/notes/index.d.ts +0 -1
  24. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  25. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  26. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  27. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  28. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  29. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  30. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  31. package/es/components/booking/utils.d.ts +2 -2
  32. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  33. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  34. package/es/components/eftpos/form/index.d.ts +0 -1
  35. package/es/components/eftpos/hooks.d.ts +0 -1
  36. package/es/components/eftpos/index.d.ts +0 -1
  37. package/es/components/eftpos/pos.d.ts +0 -1
  38. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  39. package/es/components/eftposPay/amount.d.ts +0 -1
  40. package/es/components/eftposPay/app.d.ts +0 -1
  41. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  42. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  43. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  44. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  45. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  46. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  47. package/es/components/eftposPay/hooks.d.ts +2 -2
  48. package/es/components/eftposPay/index.d.ts +0 -1
  49. package/es/components/eftposPay/pay.d.ts +0 -1
  50. package/es/components/eftposPay/store/index.d.ts +4 -4
  51. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  52. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  53. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  61. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  62. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  63. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  68. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  69. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  70. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  71. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  72. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  73. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  74. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  75. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  76. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  77. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  78. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  79. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  80. package/es/components/schedules/products/index.d.ts +0 -1
  81. package/es/components/schedules/resources/index.d.ts +0 -1
  82. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  83. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  84. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  85. package/es/components/schedules/schedules/index.d.ts +0 -1
  86. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  87. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  88. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  89. package/es/components/taxSelect/index.d.ts +0 -1
  90. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
  91. package/es/components/ticketBooking/components/addServiceVariant/addService.js +14 -3
  92. package/es/components/ticketBooking/components/menuBar/index.js +5 -4
  93. package/es/components/ticketBooking/components/menuBar/index.less +5 -0
  94. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -0
  95. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
  96. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +36 -12
  97. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  98. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  99. package/es/hooks/useEngineContext.d.ts +1 -0
  100. package/es/hooks/useEngineContext.js +7 -0
  101. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  102. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  103. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  104. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  105. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  106. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
  107. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
  108. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
  109. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  110. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  111. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  112. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  113. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  114. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  115. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  116. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  117. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  118. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  119. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  120. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  121. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  122. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  123. package/lib/components/appointmentBooking/index.d.ts +0 -1
  124. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  125. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  126. package/lib/components/booking/deposit/index.d.ts +0 -1
  127. package/lib/components/booking/forms/single/index.d.ts +0 -1
  128. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  129. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  130. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  131. package/lib/components/booking/info/header/index.d.ts +0 -1
  132. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  133. package/lib/components/booking/info/index.d.ts +0 -1
  134. package/lib/components/booking/info/notes/index.d.ts +0 -1
  135. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  136. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  137. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  138. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  139. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  140. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  141. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  142. package/lib/components/booking/utils.d.ts +2 -2
  143. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  144. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
  145. package/lib/components/eftpos/form/index.d.ts +0 -1
  146. package/lib/components/eftpos/hooks.d.ts +0 -1
  147. package/lib/components/eftpos/index.d.ts +0 -1
  148. package/lib/components/eftpos/pos.d.ts +0 -1
  149. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  150. package/lib/components/eftposPay/amount.d.ts +0 -1
  151. package/lib/components/eftposPay/app.d.ts +0 -1
  152. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  153. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  154. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  155. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  156. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  157. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  158. package/lib/components/eftposPay/hooks.d.ts +2 -2
  159. package/lib/components/eftposPay/index.d.ts +0 -1
  160. package/lib/components/eftposPay/pay.d.ts +0 -1
  161. package/lib/components/eftposPay/store/index.d.ts +4 -4
  162. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  163. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  165. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  170. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  171. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  172. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  173. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  174. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  175. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  176. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  177. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  178. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  179. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  180. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  181. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  182. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  183. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  184. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  185. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  186. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  187. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  188. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  189. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  190. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  191. package/lib/components/schedules/products/index.d.ts +0 -1
  192. package/lib/components/schedules/resources/index.d.ts +0 -1
  193. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  194. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  195. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  196. package/lib/components/schedules/schedules/index.d.ts +0 -1
  197. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  198. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  199. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  200. package/lib/components/taxSelect/index.d.ts +0 -1
  201. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
  202. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -2
  203. package/lib/components/ticketBooking/components/menuBar/index.js +5 -4
  204. package/lib/components/ticketBooking/components/menuBar/index.less +5 -0
  205. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -0
  206. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
  207. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +23 -5
  208. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  209. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  210. package/lib/hooks/useEngineContext.d.ts +1 -0
  211. package/lib/hooks/useEngineContext.js +10 -2
  212. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  213. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  214. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  215. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  216. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  217. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
  218. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
  219. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
  220. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  221. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  222. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  223. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  224. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  225. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  226. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  227. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  228. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
  229. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  230. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
  231. package/package.json +1 -1
@@ -20,7 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  import { getUniqueId, locales, sendWarningLog } from '@pisell/utils';
21
21
  import React, { useEffect, useMemo, useRef, useState } from 'react';
22
22
  import { useMemoizedFn } from 'ahooks';
23
- import useEngineContext from "../../../../hooks/useEngineContext";
23
+ import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContext";
24
24
  import { isSessionProduct, request, getProductTotalPrice, getIsEject, getIsOnlySession } from "../../../booking/utils";
25
25
  import { getProductExtend } from "../../../booking/info2/service/addService/utils";
26
26
  import { holderId, isDaysBooking, isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
@@ -58,6 +58,7 @@ var AddSerivce = function AddSerivce(props) {
58
58
  onGetProductsReady = props.onGetProductsReady,
59
59
  productDisplayConfig = props.productDisplayConfig;
60
60
  var context = useEngineContext();
61
+ var platform = usePlatform();
61
62
  var notAvailableRef = useRef(null);
62
63
  var isLoadedServiceRef = useRef(false);
63
64
  request.setRequest(context.appHelper.utils.request);
@@ -107,7 +108,7 @@ var AddSerivce = function AddSerivce(props) {
107
108
  // }
108
109
  // }, [state?.service?.value]);
109
110
 
110
- var _useProducts = useProducts(),
111
+ var _useProducts = useProducts(notAvailableRef),
111
112
  getProducts = _useProducts.getProducts,
112
113
  products = _useProducts.products,
113
114
  loading = _useProducts.loading,
@@ -996,7 +997,7 @@ var AddSerivce = function AddSerivce(props) {
996
997
  return state.date.value.format('YYYY-MM-DD HH:mm:ss');
997
998
  }, [state.date.value]);
998
999
  useEffect(function () {
999
- if (renderMode === 'current' && state.bookingConfig) {
1000
+ if (renderMode === 'current' && state.bookingConfig && platform !== 'shop') {
1000
1001
  getProducts({
1001
1002
  schedule_date: currentDate,
1002
1003
  customer_id: customerId,
@@ -1008,6 +1009,16 @@ var AddSerivce = function AddSerivce(props) {
1008
1009
  });
1009
1010
  }
1010
1011
  }, [renderMode, customerId, menuList]);
1012
+ useEffect(function () {
1013
+ if (renderMode === 'current' && state.bookingConfig && platform === 'shop') {
1014
+ getProducts({
1015
+ schedule_date: currentDate,
1016
+ customer_id: customerId,
1017
+ menu_list_ids: menuList,
1018
+ schedule_datetime: currentDatetime
1019
+ });
1020
+ }
1021
+ }, [renderMode, currentDate, customerId, menuList, currentDatetime]);
1011
1022
 
1012
1023
  // 产品展示配置,支持字符串预设或完整配置对象
1013
1024
  var finalDisplayConfig = useMemo(function () {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useNetworkStatus, NetworkStatus, NetworkStatusColor } from "../../hooks/useNetworkStatus";
3
3
  import "./index.less";
4
4
  import { Menu } from 'antd';
5
- import { SettingOutlined } from '@ant-design/icons';
5
+ import { ReloadOutlined, SettingOutlined } from '@ant-design/icons';
6
6
  import { locales } from '@pisell/utils';
7
7
  import { ConfigProvider, Iconfont } from '@pisell/materials';
8
8
  var index = function index(props) {
@@ -32,12 +32,13 @@ var index = function index(props) {
32
32
  })
33
33
  }];
34
34
  var items = [{
35
+ key: 'reload',
36
+ label: locales.getText('pisell2.ticket-booking.reload'),
37
+ icon: /*#__PURE__*/React.createElement(ReloadOutlined, null)
38
+ }, {
35
39
  key: '1',
36
40
  icon: /*#__PURE__*/React.createElement(SettingOutlined, null),
37
41
  children: [{
38
- key: 'reload',
39
- label: locales.getText('pisell2.ticket-booking.reload')
40
- }, {
41
42
  key: 'version',
42
43
  label: '6.4.38'
43
44
  }
@@ -120,5 +120,10 @@
120
120
  bottom: 44px;
121
121
  left: 6px;
122
122
  z-index: 99999;
123
+ .pisell-lowcode-menu {
124
+ li {
125
+ padding-top: 6px;
126
+ }
127
+ }
123
128
  }
124
129
  }
@@ -1343,6 +1343,7 @@ var TicketBooking = function TicketBooking(props) {
1343
1343
  }), isShowFloatButtons && /*#__PURE__*/React.createElement(FloatButtons, {
1344
1344
  items: floatButtons
1345
1345
  })), isShowTimeBar && /*#__PURE__*/React.createElement(TimeBar, {
1346
+ setNowTime: _getProducts,
1346
1347
  onCreateClick: handleCreateClick,
1347
1348
  setGlobalState: setState,
1348
1349
  globalState: state,
@@ -7,7 +7,7 @@ interface IGetProductsParams {
7
7
  interface IGetScheduleTimePointsParams {
8
8
  menu_list_ids?: number[];
9
9
  }
10
- export declare const useProducts: () => {
10
+ export declare const useProducts: (notAvailableRef: any) => {
11
11
  getScheduleTimePoints: (params?: IGetScheduleTimePointsParams) => Promise<void>;
12
12
  getProducts: (params?: IGetProductsParams) => Promise<void>;
13
13
  products: any[];
@@ -16,11 +16,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import { useMemoizedFn } from 'ahooks';
17
17
  import { useBookingTicket } from "./bookingTicket";
18
18
  import { useState, useEffect, useRef } from 'react';
19
- import useEngineContext from "../../../../hooks/useEngineContext";
19
+ import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContext";
20
20
  import dayjs from 'dayjs';
21
- export var useProducts = function useProducts() {
21
+ export var useProducts = function useProducts(notAvailableRef) {
22
22
  var bookingTicket = useBookingTicket();
23
23
  var context = useEngineContext();
24
+ var platform = usePlatform();
24
25
  var _useState = useState([]),
25
26
  _useState2 = _slicedToArray(_useState, 2),
26
27
  products = _useState2[0],
@@ -29,6 +30,7 @@ export var useProducts = function useProducts() {
29
30
  _useState4 = _slicedToArray(_useState3, 2),
30
31
  loading = _useState4[0],
31
32
  setLoading = _useState4[1];
33
+ var isFirstLoadRef = useRef(true);
32
34
 
33
35
  // 日程时间段列表 HH:mm格式
34
36
  var _useState5 = useState([]),
@@ -39,23 +41,36 @@ export var useProducts = function useProducts() {
39
41
  var paramsRef = useRef(undefined);
40
42
  var getProducts = useMemoizedFn( /*#__PURE__*/function () {
41
43
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
42
- var products;
44
+ var _products, _notAvailableRef$curr;
43
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
44
46
  while (1) switch (_context.prev = _context.next) {
45
47
  case 0:
46
48
  setLoading(true);
49
+ _context.prev = 1;
47
50
  paramsRef.current = params;
48
- _context.next = 4;
51
+ _context.next = 5;
49
52
  return bookingTicket.loadProducts(params);
50
- case 4:
51
- products = _context.sent;
52
- setProducts(products);
53
+ case 5:
54
+ _products = _context.sent;
55
+ setProducts(_products);
56
+ setLoading(false);
57
+ isFirstLoadRef.current = false;
58
+ _context.next = 16;
59
+ break;
60
+ case 11:
61
+ _context.prev = 11;
62
+ _context.t0 = _context["catch"](1);
63
+ // 只有在第一次加载或之前有数据时才显示 notAvailable
64
+ if ((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.code) === 607100 && (isFirstLoadRef.current || products.length > 0)) {
65
+ (_notAvailableRef$curr = notAvailableRef.current) === null || _notAvailableRef$curr === void 0 || _notAvailableRef$curr.open();
66
+ }
53
67
  setLoading(false);
54
- case 7:
68
+ isFirstLoadRef.current = false;
69
+ case 16:
55
70
  case "end":
56
71
  return _context.stop();
57
72
  }
58
- }, _callee);
73
+ }, _callee, null, [[1, 11]]);
59
74
  }));
60
75
  return function (_x) {
61
76
  return _ref.apply(this, arguments);
@@ -64,6 +79,9 @@ export var useProducts = function useProducts() {
64
79
 
65
80
  // 注册任务函数并在 scheduleTimePoints 改变时添加定时任务
66
81
  useEffect(function () {
82
+ if (platform === 'shop') {
83
+ return;
84
+ }
67
85
  try {
68
86
  var _context$appHelper, _context$appHelper$ge;
69
87
  var app = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getApp) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper);
@@ -165,12 +183,18 @@ export var useProducts = function useProducts() {
165
183
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
166
184
  while (1) switch (_context3.prev = _context3.next) {
167
185
  case 0:
168
- _context3.next = 2;
169
- return bookingTicket.getScheduleTimePoints(params);
186
+ if (!(platform === 'shop')) {
187
+ _context3.next = 2;
188
+ break;
189
+ }
190
+ return _context3.abrupt("return");
170
191
  case 2:
192
+ _context3.next = 4;
193
+ return bookingTicket.getScheduleTimePoints(params);
194
+ case 4:
171
195
  scheduleTimePoints = _context3.sent;
172
196
  setScheduleTimePoints(scheduleTimePoints);
173
- case 4:
197
+ case 6:
174
198
  case "end":
175
199
  return _context3.stop();
176
200
  }
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
1
  declare const useEngineContext: () => any;
2
2
  export declare const usePisellOS: () => any;
3
+ export declare const usePlatform: () => any;
3
4
  export default useEngineContext;
@@ -14,4 +14,11 @@ export var usePisellOS = function usePisellOS() {
14
14
  pisellos = _ref.pisellos;
15
15
  return pisellos;
16
16
  };
17
+ export var usePlatform = function usePlatform() {
18
+ var _context$appHelper2;
19
+ var context = useEngineContext();
20
+ var _ref2 = (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {},
21
+ platform = _ref2.platform;
22
+ return platform;
23
+ };
17
24
  export default useEngineContext;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA1: (props: any) => JSX.Element;
4
3
  export default SkuCardA1;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA2: (props: any) => JSX.Element;
4
3
  export default SkuCardA2;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA5: (props: any) => JSX.Element;
4
3
  export default SkuCardA5;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardA9: (props: any) => JSX.Element;
4
3
  export default SkuCardA9;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SkuCardCustom: (props: any) => JSX.Element;
4
3
  export default SkuCardCustom;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const CardCom: ({ props, className }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Cover: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Price: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const SubTitle: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const Title: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductCardConfig } from '../../type';
4
3
  declare const TooltipTags: ({ props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WarningLists: (props: any) => JSX.Element | null;
4
3
  export default WarningLists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SkuCard: {
3
2
  (props: any): JSX.Element | null;
4
3
  A1: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SCOProps } from './types';
3
2
  import './index.less';
4
3
  declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VertifyEmail: (props: {
3
4
  email: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CashKeyboardBaseProps } from './types';
2
3
  import './index.less';
3
4
  declare const CashKeyboardIntact: (props: CashKeyboardBaseProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CashKeyboardBaseProps } from './types';
3
2
  export interface CashKeyboardProps extends CashKeyboardBaseProps {
4
3
  containerProps?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useRightItems: (props: {
2
3
  rightItemsStyle?: any;
3
4
  doneText?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AppointmentBooking: () => JSX.Element;
4
3
  export default AppointmentBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: (props: any) => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
3
4
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentPlugin: () => JSX.Element;
3
2
  export default PaymentPlugin;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellWalletPassCardProps } from '../../types';
2
3
  export declare const TestModule: () => JSX.Element;
3
4
  declare const ConflictModal: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };