@pisell/private-materials 6.2.20 → 6.2.22

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 (268) 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.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Cart/utils.d.ts +63 -0
  8. package/es/components/Sales/Checkout/index.d.ts +37 -0
  9. package/es/components/Sales/Checkout/serve.d.ts +15 -0
  10. package/es/components/Sales/Customer/index.d.ts +25 -0
  11. package/es/components/Sales/Event/Detail.d.ts +30 -0
  12. package/es/components/Sales/Event/serve.d.ts +49 -0
  13. package/es/components/Sales/Summary/index.d.ts +35 -0
  14. package/es/components/Sales/Summary/serve.d.ts +1 -0
  15. package/es/components/Sales/Summary/utils.d.ts +51 -0
  16. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  17. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  18. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  19. package/es/components/appointmentBooking/components/Content/index.js +19 -12
  20. package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  21. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  22. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  23. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  24. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  25. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  26. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  27. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  28. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  29. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  30. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  31. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  32. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  33. package/es/components/appointmentBooking/index.d.ts +3 -0
  34. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  35. package/es/components/booking/components/customSelect/index.js +0 -1
  36. package/es/components/booking/components/footer/index.d.ts +11 -0
  37. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  38. package/es/components/booking/components/voucher/index.d.ts +3 -0
  39. package/es/components/booking/editBookingModal/index.js +58 -29
  40. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  41. package/es/components/booking/editBookingModal/serve.js +19 -11
  42. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  43. package/es/components/booking/hooks/useClearCart.js +8 -11
  44. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  45. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  46. package/es/components/booking/info/client/index.d.ts +4 -0
  47. package/es/components/booking/info/client/index.js +2 -3
  48. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  49. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  50. package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
  51. package/es/components/booking/info/index.d.ts +4 -0
  52. package/es/components/booking/info/service/Lists.d.ts +2 -0
  53. package/es/components/booking/info/service/Lists.js +26 -36
  54. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  55. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  56. package/es/components/booking/info/service/editService/index.js +10 -15
  57. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  58. package/es/components/booking/info/service2/utils.d.ts +247 -0
  59. package/es/components/booking/info/service2/utils.js +21 -20
  60. package/es/components/booking/info2/index.d.ts +12 -0
  61. package/es/components/booking/info2/index.js +0 -1
  62. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  63. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  64. package/es/components/booking/info2/service/addService/utils.js +4 -7
  65. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  66. package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
  67. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  68. package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
  69. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  70. package/es/components/booking/info2/service/editService/index.js +168 -264
  71. package/es/components/booking/info2/service/index.d.ts +4 -0
  72. package/es/components/booking/info2/service/index.js +15 -19
  73. package/es/components/booking/info2/utils.d.ts +4 -0
  74. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  75. package/es/components/booking/locales.d.ts +828 -0
  76. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  77. package/es/components/booking/materiels/duration/index.js +2 -9
  78. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  79. package/es/components/booking/model.d.ts +108 -0
  80. package/es/components/booking/utils.d.ts +2 -2
  81. package/es/components/eftposPay/amount.d.ts +1 -1
  82. package/es/components/eftposPay/const.d.ts +184 -0
  83. package/es/components/eftposPay/device.d.ts +1 -1
  84. package/es/components/eftposPay/hooks.d.ts +35 -0
  85. package/es/components/eftposPay/index.d.ts +4 -0
  86. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  87. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  88. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  89. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  90. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  91. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  92. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  93. package/es/components/eftposPay/pay.d.ts +20 -0
  94. package/es/components/eftposPay/store/index.d.ts +355 -0
  95. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  97. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  98. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  99. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  104. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  105. package/es/components/eventBooking/index.d.ts +3 -0
  106. package/es/components/eventBooking/locales.d.ts +246 -0
  107. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  108. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  109. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  111. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  112. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  113. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  114. package/es/components/pay/toC/index.d.ts +3 -0
  115. package/es/components/pay/toC/locales.d.ts +289 -0
  116. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  117. package/es/components/productSelect/index.d.ts +26 -0
  118. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  119. package/es/components/shoppingCart/components/Cart/Product.js +41 -48
  120. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  121. package/es/components/shoppingCart/components/Cart/index.js +18 -21
  122. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  123. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -177
  124. package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  125. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  126. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  127. package/es/components/ticketBooking/components/timeBar/index.js +71 -78
  128. package/es/components/ticketBooking/index.d.ts +7 -0
  129. package/es/components/ticketBooking/locales.d.ts +174 -0
  130. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  131. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  132. package/es/components/walletList/index.d.ts +28 -0
  133. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  134. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  135. package/es/utils/index.d.ts +23 -0
  136. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  137. package/lib/components/Sales/Checkout/index.d.ts +37 -0
  138. package/lib/components/Sales/Checkout/serve.d.ts +15 -0
  139. package/lib/components/Sales/Customer/index.d.ts +25 -0
  140. package/lib/components/Sales/Event/Detail.d.ts +30 -0
  141. package/lib/components/Sales/Event/serve.d.ts +49 -0
  142. package/lib/components/Sales/Summary/index.d.ts +35 -0
  143. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  144. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  145. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  146. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  147. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  148. package/lib/components/appointmentBooking/components/Content/index.js +7 -2
  149. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  150. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  151. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  152. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  153. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  154. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  155. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  156. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  157. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  158. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  159. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  160. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  161. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  162. package/lib/components/appointmentBooking/index.d.ts +3 -0
  163. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  164. package/lib/components/booking/components/customSelect/index.js +0 -1
  165. package/lib/components/booking/components/footer/index.d.ts +11 -0
  166. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  167. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  168. package/lib/components/booking/editBookingModal/index.js +56 -21
  169. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  170. package/lib/components/booking/editBookingModal/serve.js +12 -6
  171. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  172. package/lib/components/booking/hooks/useClearCart.js +13 -16
  173. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  174. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  175. package/lib/components/booking/info/client/index.d.ts +4 -0
  176. package/lib/components/booking/info/client/index.js +4 -5
  177. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  178. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  179. package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
  180. package/lib/components/booking/info/index.d.ts +4 -0
  181. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  182. package/lib/components/booking/info/service/Lists.js +23 -35
  183. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  184. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  185. package/lib/components/booking/info/service/editService/index.js +1 -7
  186. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  187. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  188. package/lib/components/booking/info/service2/utils.js +17 -17
  189. package/lib/components/booking/info2/index.d.ts +12 -0
  190. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  191. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  192. package/lib/components/booking/info2/service/addService/utils.js +3 -5
  193. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  194. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
  195. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  196. package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
  197. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  198. package/lib/components/booking/info2/service/editService/index.js +72 -137
  199. package/lib/components/booking/info2/service/index.d.ts +4 -0
  200. package/lib/components/booking/info2/service/index.js +9 -13
  201. package/lib/components/booking/info2/utils.d.ts +4 -0
  202. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  203. package/lib/components/booking/locales.d.ts +828 -0
  204. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  205. package/lib/components/booking/materiels/duration/index.js +2 -7
  206. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  207. package/lib/components/booking/model.d.ts +108 -0
  208. package/lib/components/booking/utils.d.ts +2 -2
  209. package/lib/components/eftposPay/amount.d.ts +1 -1
  210. package/lib/components/eftposPay/const.d.ts +184 -0
  211. package/lib/components/eftposPay/device.d.ts +1 -1
  212. package/lib/components/eftposPay/hooks.d.ts +35 -0
  213. package/lib/components/eftposPay/index.d.ts +4 -0
  214. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  215. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  216. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  217. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  218. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  219. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  220. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  221. package/lib/components/eftposPay/pay.d.ts +20 -0
  222. package/lib/components/eftposPay/store/index.d.ts +355 -0
  223. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  225. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  226. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  227. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  228. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  230. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  231. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  232. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  233. package/lib/components/eventBooking/index.d.ts +3 -0
  234. package/lib/components/eventBooking/locales.d.ts +246 -0
  235. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  236. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  237. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  238. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  239. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  240. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  241. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  242. package/lib/components/pay/toC/index.d.ts +3 -0
  243. package/lib/components/pay/toC/locales.d.ts +289 -0
  244. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  245. package/lib/components/productSelect/index.d.ts +26 -0
  246. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  247. package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
  248. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  249. package/lib/components/shoppingCart/components/Cart/index.js +15 -18
  250. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  251. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -145
  252. package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  253. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  254. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  255. package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
  256. package/lib/components/ticketBooking/index.d.ts +7 -0
  257. package/lib/components/ticketBooking/locales.d.ts +174 -0
  258. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  259. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  260. package/lib/components/walletList/index.d.ts +28 -0
  261. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  262. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  263. package/lib/utils/index.d.ts +23 -0
  264. package/package.json +3 -3
  265. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  266. package/es/components/booking/info/service/editService/constants.js +0 -3
  267. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  268. package/lib/components/booking/info/service/editService/constants.js +0 -31
@@ -14,7 +14,7 @@ import { useMemoizedFn } from 'ahooks';
14
14
  import { getProductExtend } from "../../info2/service/addService/utils";
15
15
  import useAddHolder from "../hooks/useAddHolder";
16
16
  var Lists = function Lists(_ref) {
17
- var _state$service2;
17
+ var _state$service;
18
18
  var onEdit = _ref.onEdit,
19
19
  onChange = _ref.onChange,
20
20
  onAction = _ref.onAction,
@@ -36,8 +36,6 @@ var Lists = function Lists(_ref) {
36
36
  * @Date: 2024-11-29 16:35
37
37
  */
38
38
  var handleChange = useMemoizedFn(function (currentItem, type, other) {
39
- console.time('handleChange');
40
- console.log(window.pp1 = performance.now(), '打开商品');
41
39
  if (state.disabledEdit || state.disableEventBookingEdit) {
42
40
  return;
43
41
  }
@@ -61,7 +59,9 @@ var Lists = function Lists(_ref) {
61
59
  editModal: true,
62
60
  cacheItem: cacheItem
63
61
  });
64
- return onEdit === null || onEdit === void 0 ? void 0 : onEdit(cacheItem, type);
62
+ return onEdit === null || onEdit === void 0 ? void 0 : onEdit(_objectSpread(_objectSpread({}, product), {}, {
63
+ new: 0
64
+ }), type);
65
65
  }
66
66
  var params = {
67
67
  editModal: false,
@@ -95,37 +95,27 @@ var Lists = function Lists(_ref) {
95
95
  isShowEditProduct: !state.isBookingCreatePage
96
96
  };
97
97
  }, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage]);
98
- var products = useMemo(function () {
99
- var _state$service;
100
- console.time('products');
101
- var p = formatProducts((state === null || state === void 0 || (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value) || [], state, false, true, isParallelResource);
102
- console.timeEnd('products');
103
- return p;
104
- }, [state === null || state === void 0 || (_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.value, state]);
105
- return useMemo(function () {
106
- console.log('render List');
107
- return /*#__PURE__*/React.createElement(CartContext.Provider, {
108
- value: {
109
- state: state
110
- }
111
- }, /*#__PURE__*/React.createElement(ShoppingCart, {
112
- isParallelResource: isParallelResource,
113
- onAction: onAction,
114
- onChange: handleChange,
115
- isOpenGroup: false,
116
- isHideClearCart: true,
117
- onAddProduct: function onAddProduct() {
118
- return onChange({
119
- addModal: true
120
- });
121
- }
122
- // onActiveKey={handleActiveKey}
123
- // collapseParams={CollapseParams}
124
- ,
125
- productParams: _objectSpread(_objectSpread({}, productParams), {}, {
126
- products: products
127
- })
128
- }));
129
- }, [products, state, productParams]);
98
+ return /*#__PURE__*/React.createElement(CartContext.Provider, {
99
+ value: {
100
+ state: state
101
+ }
102
+ }, /*#__PURE__*/React.createElement(ShoppingCart, {
103
+ isParallelResource: isParallelResource,
104
+ onAction: onAction,
105
+ onChange: handleChange,
106
+ isOpenGroup: false,
107
+ isHideClearCart: true,
108
+ onAddProduct: function onAddProduct() {
109
+ return onChange({
110
+ addModal: true
111
+ });
112
+ }
113
+ // onActiveKey={handleActiveKey}
114
+ // collapseParams={CollapseParams}
115
+ ,
116
+ productParams: _objectSpread(_objectSpread({}, productParams), {}, {
117
+ products: formatProducts((state === null || state === void 0 || (_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value) || [], state, false, true, isParallelResource)
118
+ })
119
+ }));
130
120
  };
131
121
  export default Lists;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -45,15 +45,12 @@ import Like from "../like";
45
45
  import { editSessionProduct, getMultiDayPrices } from "../../utils";
46
46
  import { useService } from "../serviceManager";
47
47
  import EditTabs from "./EditTabs";
48
- import { getIsPartyRoomResourceShop } from "./constants";
49
- import useEngineContext from "../../../../../hooks/useEngineContext";
50
48
  var submitLock = false;
51
49
  var Info = function Info(_, ref) {
52
50
  var _state$bookingConfig2, _state$service$cacheI4, _state$service$cacheI6, _state$service$cacheI7, _state$service4, _state$service6, _state$service8, _state$date, _state$date$format, _state$date2, _window$BaseMaterials, _state$service$cacheI13, _state$service10, _state$service$cacheI14, _state$bookingConfig4;
53
51
  var _Form$useForm = Form.useForm(),
54
52
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
55
53
  form = _Form$useForm2[0];
56
- var context = useEngineContext();
57
54
  var useTotal = Form.useWatch('total', form);
58
55
  var useLikeStatus = Form.useWatch('like_status', form);
59
56
  var useResource = Form.useWatch('resource', form);
@@ -572,7 +569,7 @@ var Info = function Info(_, ref) {
572
569
  */
573
570
  var getResourcesData = /*#__PURE__*/function () {
574
571
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
575
- var _context$appHelper$ut, _context$appHelper$ut2, params, format, startDate, endDate, _formatDayTime, startDateTime, endDateTime, isPartyRoomResourceShop, codes, data, _list;
572
+ var params, format, startDate, endDate, _formatDayTime, startDateTime, endDateTime, data, _list;
576
573
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
577
574
  while (1) switch (_context3.prev = _context3.next) {
578
575
  case 0:
@@ -605,18 +602,16 @@ var Info = function Info(_, ref) {
605
602
  case 13:
606
603
  params.with_date_times = state.date.value.format('YYYY-MM-DD');
607
604
  case 14:
608
- isPartyRoomResourceShop = getIsPartyRoomResourceShop((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id);
609
- codes = isPartyRoomResourceShop ? ['resources', 'therapist', 'table', 'party_room'] : ['resources', 'therapist', 'table'];
610
- _context3.next = 18;
605
+ _context3.next = 16;
611
606
  return state.apis.getResources(_objectSpread({
612
607
  skip: 1,
613
608
  num: 1000,
614
- codes: codes,
609
+ codes: ['resources', 'therapist', 'table'],
615
610
  _config: {
616
611
  abort: true
617
612
  }
618
613
  }, params));
619
- case 18:
614
+ case 16:
620
615
  data = _context3.sent;
621
616
  // 合并无资源
622
617
  _list = [getNoResource()].concat((data === null || data === void 0 ? void 0 : data.list) || []);
@@ -626,19 +621,19 @@ var Info = function Info(_, ref) {
626
621
  resourcesOrigin: _list
627
622
  }
628
623
  });
629
- _context3.next = 26;
624
+ _context3.next = 24;
630
625
  break;
631
- case 23:
632
- _context3.prev = 23;
626
+ case 21:
627
+ _context3.prev = 21;
633
628
  _context3.t0 = _context3["catch"](1);
634
629
  console.log(_context3.t0, 'err');
635
- case 26:
630
+ case 24:
636
631
  setResourceLoading(false);
637
- case 27:
632
+ case 25:
638
633
  case "end":
639
634
  return _context3.stop();
640
635
  }
641
- }, _callee3, null, [[1, 23]]);
636
+ }, _callee3, null, [[1, 21]]);
642
637
  }));
643
638
  return function getResourcesData() {
644
639
  return _ref5.apply(this, arguments);
@@ -0,0 +1,20 @@
1
+ export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
2
+ renderMode?: any;
3
+ onEdit?: any;
4
+ state?: any;
5
+ dispatch?: any;
6
+ }) => {
7
+ createBookingData: ({ product }: any) => Promise<any>;
8
+ editBookingData: ({ changeValues }: {
9
+ changeValues: any;
10
+ }) => Promise<any>;
11
+ createBooking: ({ booking }: {
12
+ booking: any;
13
+ }) => Promise<void>;
14
+ editBooking: ({ booking }: {
15
+ booking: any;
16
+ }) => Promise<void>;
17
+ goEditPanel: ({ booking }: {
18
+ booking: any;
19
+ }) => void;
20
+ };
@@ -0,0 +1,247 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
+ /**
4
+ * @title: 获取资源名称
5
+ * @description:
6
+ * @param {any} id
7
+ * @param {any} state
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-11-29 18:02
11
+ */
12
+ export declare const getResourceItem: (id: any, state: any) => any;
13
+ /**
14
+ * @title: 错误提示
15
+ * @description:
16
+ * @param {any} service
17
+ * @param {any} resourceItem
18
+ * @return {*}
19
+ * @Author: WangHan
20
+ * @Date: 2024-11-29 18:41
21
+ */
22
+ export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
+ /**
24
+ * @title: 格式化主体列表
25
+ * @description:
26
+ * @param {any} lists
27
+ * @param {boolean} isOpenGroup
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-04 11:27
31
+ */
32
+ export declare const formatHolderLists: (lists: any) => any;
33
+ export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
+ /**
35
+ * @title: 是否是预约商品
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: WangHan
39
+ * @Date: 2024-12-06 11:24
40
+ */
41
+ export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
+ export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
43
+ /**
44
+ * @title: 更新商品数据
45
+ * @description:
46
+ * @param {any} state
47
+ * @param currentItem
48
+ * @param {string} type
49
+ * @param {any} other
50
+ * @param actions
51
+ * @return {*}
52
+ * @Author: WangHan
53
+ * @Date: 2025-01-03 15:00
54
+ */
55
+ export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
+ export declare const formItems: (items: any[]) => any[];
57
+ export declare const getIsSubjectRequire: (state: any) => boolean;
58
+ export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
+ export declare const isAllNormalProduct: (items: any[]) => boolean;
60
+ export declare const isAllNormalProductByState: (state: any) => boolean;
61
+ /**
62
+ * @title: 格式化商品数据
63
+ * @description:
64
+ * @param {any} lists
65
+ * @return {*}
66
+ * @Author: WangHan
67
+ * @Date: 2024-11-29 17:36
68
+ */
69
+ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
70
+ _origin: any;
71
+ id: any;
72
+ _id: any;
73
+ name: any;
74
+ price: any;
75
+ total: number;
76
+ origin_total: number;
77
+ num: any;
78
+ image: any;
79
+ isShowNote: boolean;
80
+ note: any;
81
+ like_status: any;
82
+ bundle: any;
83
+ options: any;
84
+ errorMessage: string;
85
+ product_option_string: any;
86
+ discount_reason: any;
87
+ resource_id: any;
88
+ relation_form_name: any;
89
+ holder_title: any;
90
+ start_date: any;
91
+ end_date: any;
92
+ holder_id: any;
93
+ isNormalProduct: boolean;
94
+ locale: any;
95
+ symbol: any;
96
+ relation_products: any;
97
+ items: any[];
98
+ }[];
99
+ /**
100
+ * @title: 禁用日期
101
+ * @description:
102
+ * @param {any} current
103
+ * @param {string} position
104
+ * @param {any} startDate
105
+ * @return {*}
106
+ * @Author: WangHan
107
+ * @Date: 2024-12-03 17:51
108
+ */
109
+ export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
110
+ /**
111
+ * @title: 是否是跨日预约
112
+ * @description:
113
+ * @param {any} state
114
+ * @return {*}
115
+ * @Author: WangHan
116
+ * @Date: 2024-12-04 09:49
117
+ */
118
+ export declare const isDayBooking: (state: any) => boolean;
119
+ export declare const isDaysBooking: (state: any) => boolean;
120
+ export declare const isEventBooking: (state: any) => boolean;
121
+ export declare const isAppointmentProduct: (item: any) => boolean;
122
+ /**
123
+ * @title: 是否是terminal上的跨日预约
124
+ * @description:
125
+ * @param {any} state
126
+ * @return {*}
127
+ * @Author: WangHan
128
+ * @Date: 2024-12-04 15:31
129
+ */
130
+ export declare const isTerminalDayBooking: (state: any) => any;
131
+ export declare const formatDayDate: (_extend: any) => any;
132
+ /**
133
+ * @title: 根据营业日时间格式化时间
134
+ * @description:
135
+ * @param {any} state
136
+ * @return {*}
137
+ * @Author: WangHan
138
+ * @Date: 2024-12-04 12:07
139
+ */
140
+ export declare const formatDayTime: ({ startDate, endDate }: any) => {
141
+ startDateTime: dayjs.Dayjs;
142
+ endDateTime: dayjs.Dayjs;
143
+ };
144
+ export declare const formatDateTime: (start_date: any, end_date: any) => {
145
+ value: dayjs.Dayjs;
146
+ end_date: dayjs.Dayjs;
147
+ };
148
+ /**
149
+ * @title: 初始化日期
150
+ * @description:
151
+ * @return {*}
152
+ * @Author: WangHan
153
+ * @Date: 2024-12-06 17:24
154
+ */
155
+ export declare const initDate: () => {
156
+ value: dayjs.Dayjs;
157
+ end_date: dayjs.Dayjs;
158
+ };
159
+ /**
160
+ * @title: 是否有预约商品
161
+ * @description:
162
+ * @return {*}
163
+ * @Author: WangHan
164
+ * @Date: 2024-12-12 15:47
165
+ */
166
+ export declare const isHasDayAppointmentProduct: (state: any) => boolean;
167
+ /**
168
+ * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
169
+ * @description:
170
+ * @param {any} lists
171
+ * @return {*}
172
+ * @Author: WangHan
173
+ * @Date: 2024-12-13 16:44
174
+ */
175
+ export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
176
+ /**
177
+ * @title: 格式化表单数据
178
+ * @description:
179
+ * @param {any} state
180
+ * @return {*}
181
+ * @Author: WangHan
182
+ * @Date: 2024-12-30 22:19
183
+ */
184
+ export declare const getPets: (state: any) => any;
185
+ /**
186
+ * @title: 得出预约商品
187
+ * @description:
188
+ * @param {any} state
189
+ * @return {*}
190
+ * @Author: WangHan
191
+ * @Date: 2024-12-30 22:26
192
+ */
193
+ export declare const getAppointmentService: (state: any) => any;
194
+ /**
195
+ * @title: 判断是否打开删除宠物弹窗
196
+ * @description:
197
+ * @param {any} state
198
+ * @param {any} newVal
199
+ * @return {*}
200
+ * @Author: WangHan
201
+ * @Date: 2024-12-16 16:12
202
+ */
203
+ export declare const isOpenDeletePet: (state: any, newVal: any) => {
204
+ ids: any;
205
+ lists: any;
206
+ };
207
+ /**
208
+ * @title: 当前选中的表单id
209
+ * @description:
210
+ * @param {any} state
211
+ * @return {*}
212
+ * @Author: WangHan
213
+ * @Date: 2024-12-17 14:40
214
+ */
215
+ export declare const holderId: (state: any) => number;
216
+ /**
217
+ * @title: 更新套餐的价格
218
+ * @description:
219
+ * @param {any} currentValue
220
+ * @param {any} newBundleData
221
+ * @return {*}
222
+ * @Author: WangHan
223
+ * @Date: 2024-12-31 15:16
224
+ */
225
+ export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
226
+ /**
227
+ * @title: 更新预约商品报价单
228
+ * @description:
229
+ * @param {any} state
230
+ * @param {any} cacheItem
231
+ * @return {*}
232
+ * @Author: WangHan
233
+ * @Date: 2024-12-25 16:41
234
+ */
235
+ export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
236
+ multiDayPrices: any;
237
+ price: number;
238
+ }>;
239
+ /**
240
+ * @title: 更新普通商品报价单价格
241
+ * @description:
242
+ * @param {any} state
243
+ * @return {*}
244
+ * @Author: WangHan
245
+ * @Date: 2024-12-24 11:32
246
+ */
247
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -691,28 +691,29 @@ export var formatProducts = function formatProducts(lists, state) {
691
691
  _origin: item
692
692
  });
693
693
  };
694
+
695
+ // 将商品分为组商品和非组商品
696
+ lists.forEach(function (item) {
697
+ var _item$_extend28;
698
+ if (!(item !== null && item !== void 0 && (_item$_extend28 = item._extend) !== null && _item$_extend28 !== void 0 && _item$_extend28.groupId)) {
699
+ normalList.push(formItem(item));
700
+ } else {
701
+ groupList.push(item);
702
+ }
703
+ });
704
+
705
+ // 根据item._extend.groupId 进行分组
706
+ var groups = groupList.reduce(function (prev, item) {
707
+ var _item$_extend29;
708
+ var groupId = item === null || item === void 0 || (_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.groupId;
709
+ if (!prev[groupId]) {
710
+ prev[groupId] = [];
711
+ }
712
+ prev[groupId].push(item);
713
+ return prev;
714
+ }, {});
694
715
  console.log(normalList, 'normalList');
695
716
  if (isRenderGroup) {
696
- // 将商品分为组商品和非组商品
697
- lists.forEach(function (item) {
698
- var _item$_extend28;
699
- if (!(item !== null && item !== void 0 && (_item$_extend28 = item._extend) !== null && _item$_extend28 !== void 0 && _item$_extend28.groupId)) {
700
- normalList.push(formItem(item));
701
- } else {
702
- groupList.push(item);
703
- }
704
- });
705
-
706
- // 根据item._extend.groupId 进行分组
707
- var groups = groupList.reduce(function (prev, item) {
708
- var _item$_extend29;
709
- var groupId = item === null || item === void 0 || (_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.groupId;
710
- if (!prev[groupId]) {
711
- prev[groupId] = [];
712
- }
713
- prev[groupId].push(item);
714
- return prev;
715
- }, {});
716
717
  return Object.values(groups).map(function (d) {
717
718
  return formItem(concatBookings(d));
718
719
  }).concat(normalList);
@@ -0,0 +1,12 @@
1
+ import '../info/index.less';
2
+ export interface InfoProps {
3
+ style: any;
4
+ globalState: any;
5
+ callback: any;
6
+ setGlobalState: any;
7
+ modules: any;
8
+ slot: any;
9
+ setState: any;
10
+ }
11
+ declare const Info: any;
12
+ export default Info;
@@ -81,7 +81,6 @@ var Info = Provider(function (props) {
81
81
  }, []);
82
82
  useMemo(function () {
83
83
  var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$i, _context$appHelper3;
84
- // TODO: 优化 内部每次设置state会触发两次渲染
85
84
  var isFranchisee = 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 = _context$appHelper.businessUtils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getAppByModal) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, 'franchisee');
86
85
  modal.dispatch({
87
86
  type: 'setState',
@@ -0,0 +1,11 @@
1
+ import { PisellDrawerProps } from '../../../components/drawer';
2
+ import '../../../info/service/addService/index.less';
3
+ interface AddServiceProps {
4
+ onEdit: any;
5
+ dispatch?: any;
6
+ state?: any;
7
+ drawerProps?: PisellDrawerProps;
8
+ renderMode?: 'current' | 'drawer';
9
+ }
10
+ declare const Info: (props: AddServiceProps) => JSX.Element;
11
+ export default Info;
@@ -0,0 +1,98 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const getUsableTime: (cacheItem: any) => any;
3
+ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
+ startDate: dayjs.Dayjs;
5
+ usableTime: any;
6
+ duration: string | number | {
7
+ type: string;
8
+ value: number;
9
+ };
10
+ locale: string;
11
+ slice: any;
12
+ selectProps: {
13
+ size: string;
14
+ };
15
+ };
16
+ /**
17
+ * @title: 灵活时长选项
18
+ * @description:
19
+ * @param {*} useMemo
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-02-23 10:10
23
+ */
24
+ export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
+ label: any;
26
+ value: any;
27
+ } | null;
28
+ export declare const getTimeSlices: ({ state }: any) => {
29
+ timeSlices: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
34
+ /**
35
+ * @title: 时间切片
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: zhiwei.Wang
39
+ * @Date: 2024-01-09 13:37
40
+ */
41
+ export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
+ timeSlices: {
43
+ label: string;
44
+ value: string;
45
+ }[];
46
+ durationSlicesBasedOnTime: {
47
+ label: string;
48
+ value: number;
49
+ }[];
50
+ };
51
+ /**
52
+ * @title: 获取资源列表
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: zhiwei.Wang
56
+ * @Date: 2024-01-09 13:38
57
+ */
58
+ export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
+ list: any;
60
+ maps: any;
61
+ };
62
+ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
+ /**
64
+ * @title: 设置默认容量
65
+ * @description:
66
+ * @param {any} param1
67
+ * @return {*}
68
+ * @Author: zhiwei.Wang
69
+ * @Date: 2024-09-19 20:26
70
+ */
71
+ export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
+ /**
73
+ * @title: 将商品内关联的资源id还原成数据
74
+ * @description:
75
+ * @param {any} resourcesOriginMap
76
+ * @param {any} cacheItem
77
+ * @return {*}
78
+ * @Author: zhiwei.Wang
79
+ * @Date: 2024-09-19 20:23
80
+ */
81
+ export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
+ /**
83
+ * @title: 预生成服务的 extend
84
+ * @description:
85
+ * @param {any} param1
86
+ * @return {*}
87
+ * @Author: zhiwei.Wang
88
+ * @Date: 2024-06-01 13:25
89
+ */
90
+ export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
91
+ /**
92
+ * @title: 格式化服务列表
93
+ * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
94
+ * 使用with resourceRelation后 返回的resource_relation是实时数据
95
+ * 这里做一次转换
96
+ * @param list
97
+ */
98
+ export declare const transServiceList: (list: any[]) => any[];
@@ -128,8 +128,7 @@ export var getTimeObj = function getTimeObj(_ref4) {
128
128
  cacheItem: cacheItem,
129
129
  useStartTime: useStartTime,
130
130
  currentResource: currentResource,
131
- // 没有使用该参数
132
- // state,
131
+ state: state,
133
132
  durationProps: durationProps
134
133
  });
135
134
  var obj = sliceDayIntoFiveMinutes((_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.config) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.basic) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.service_time, locales.locale);
@@ -287,9 +286,7 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
287
286
  defaultOriginalResource = renderList;
288
287
  }
289
288
  var defaultResource = defaultOriginalResource.map(function (d) {
290
- return {
291
- // ...d,
292
- children: d.children,
289
+ return _objectSpread(_objectSpread({}, d), {}, {
293
290
  relation_type: d.relation_type,
294
291
  form_id: item.form_id,
295
292
  relation_id: d.id,
@@ -300,7 +297,7 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
300
297
  form_name: item.title,
301
298
  resource_name: d.main_field
302
299
  }
303
- };
300
+ });
304
301
  });
305
302
  obj[item.form_id] = defaultResource;
306
303
  };
@@ -404,7 +401,7 @@ export var getResourceByIds = function getResourceByIds(resourcesOriginMap, cach
404
401
  });
405
402
  } else {
406
403
  extraResourceIds = extraResources.filter(function (_extraItem) {
407
- return _extraItem.form_id === form_id && !item.optional_resource.includes(_extraItem.id) && !item.default_resource.includes(_extraItem.id);
404
+ return _extraItem.form_id === form_id && !!_extraItem.id && !item.optional_resource.includes(_extraItem.id) && !item.default_resource.includes(_extraItem.id);
408
405
  }).map(function (_extraItem) {
409
406
  return _extraItem.id;
410
407
  });
@@ -0,0 +1,3 @@
1
+ import '../../../info/service/addTimeModal/index.less';
2
+ declare const AddTimeModal: () => JSX.Element;
3
+ export default AddTimeModal;