@pisell/private-materials 6.2.31 → 6.2.33

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 (307) 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 +11 -11
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  20. package/es/components/appointmentBooking/index.d.ts +0 -1
  21. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  22. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  23. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  24. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  25. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  26. package/es/components/booking/components/footer/index.js +15 -5
  27. package/es/components/booking/components/footer/index.less +23 -0
  28. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  29. package/es/components/booking/components/tabPane/index.less +3 -3
  30. package/es/components/booking/forms/footer.d.ts +0 -1
  31. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  32. package/es/components/booking/forms/single/index.d.ts +0 -1
  33. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  34. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  35. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  36. package/es/components/booking/info/date/index.d.ts +0 -1
  37. package/es/components/booking/info/header/index.d.ts +0 -1
  38. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  39. package/es/components/booking/info/index.d.ts +1 -0
  40. package/es/components/booking/info/notes/index.d.ts +0 -1
  41. package/es/components/booking/info/service/Lists.js +1 -1
  42. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  43. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  45. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  46. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  47. package/es/components/booking/info/service2/utils.d.ts +1 -1
  48. package/es/components/booking/info/service2/utils.js +18 -17
  49. package/es/components/booking/info2/cartClientCard/index.js +60 -67
  50. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  51. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  52. package/es/components/booking/info2/service/editService/index.js +71 -11
  53. package/es/components/booking/info2/service/editService/index.less +47 -11
  54. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  55. package/es/components/booking/locales.js +4 -4
  56. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  57. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  58. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  59. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  60. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  61. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  62. package/es/components/eftpos/index.d.ts +0 -1
  63. package/es/components/eftpos/pos.d.ts +0 -1
  64. package/es/components/eftposPay/amount.d.ts +1 -2
  65. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  66. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  67. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  68. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  69. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  70. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  71. package/es/components/eftposPay/device.d.ts +1 -2
  72. package/es/components/eftposPay/hooks.d.ts +2 -2
  73. package/es/components/eftposPay/index.d.ts +0 -1
  74. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  75. package/es/components/eftposPay/pay.d.ts +0 -1
  76. package/es/components/eftposPay/payo/config.d.ts +0 -1
  77. package/es/components/eftposPay/store/index.d.ts +5 -5
  78. package/es/components/eftposPay/tip.d.ts +0 -1
  79. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  80. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  82. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  83. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  87. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  89. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  90. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  91. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  92. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  93. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  94. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  95. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  96. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  98. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  100. package/es/components/eventBooking/index.d.ts +0 -1
  101. package/es/components/login/index.d.ts +0 -1
  102. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  103. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  104. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  105. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  106. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  107. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  108. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  109. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  110. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  111. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  112. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  113. package/es/components/productExtension/index.d.ts +0 -1
  114. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  115. package/es/components/productSelect/components/productGroup/index.js +2 -2
  116. package/es/components/ruleSetting/index.d.ts +0 -1
  117. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  118. package/es/components/schedules/calendar/index.d.ts +0 -1
  119. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  120. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  121. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  124. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  125. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  126. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  127. package/es/components/schedules/products/list/index.d.ts +0 -1
  128. package/es/components/schedules/resources/index.d.ts +0 -1
  129. package/es/components/schedules/resources/list/index.d.ts +0 -1
  130. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  131. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  132. package/es/components/schedules/schedules/index.d.ts +0 -1
  133. package/es/components/shoppingCart/components/Cart/Product.js +4 -3
  134. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  135. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  136. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  137. package/es/components/shoppingCart/index.d.ts +0 -1
  138. package/es/components/taxSelect/index.d.ts +0 -1
  139. package/es/components/ticketBooking/components/timeBar/index.js +4 -1
  140. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +23 -18
  141. package/es/components/ticketBooking/locales.js +3 -0
  142. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  143. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  144. package/es/plus/clientCard/locales.js +2 -2
  145. package/es/plus/clientName/index.d.ts +0 -1
  146. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  147. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  148. package/es/plus/clinetSearch/index.d.ts +0 -1
  149. package/es/plus/clinetSearch/index.js +6 -6
  150. package/es/plus/clinetSearch/index.less +4 -0
  151. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  152. package/es/pro/comprehensiveSearch/index.d.ts +1 -3
  153. package/es/pro/comprehensiveSearch/index.js +18 -49
  154. package/es/pro/comprehensiveSearch/index.less +1 -6
  155. package/es/pro/comprehensiveSearch/types.d.ts +2 -1
  156. package/es/pro/skuDetailModal/index.js +21 -7
  157. package/es/pro/skuDetailModal/index.less +40 -0
  158. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  159. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  160. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  161. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  162. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  163. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  164. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  165. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  166. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  167. package/lib/components/appointmentBooking/index.d.ts +0 -1
  168. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  169. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  170. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  171. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  172. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  173. package/lib/components/booking/components/footer/index.js +16 -9
  174. package/lib/components/booking/components/footer/index.less +23 -0
  175. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  176. package/lib/components/booking/components/tabPane/index.less +3 -3
  177. package/lib/components/booking/forms/footer.d.ts +0 -1
  178. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  179. package/lib/components/booking/forms/single/index.d.ts +0 -1
  180. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  181. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  182. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  183. package/lib/components/booking/info/date/index.d.ts +0 -1
  184. package/lib/components/booking/info/header/index.d.ts +0 -1
  185. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  186. package/lib/components/booking/info/index.d.ts +1 -0
  187. package/lib/components/booking/info/notes/index.d.ts +0 -1
  188. package/lib/components/booking/info/service/Lists.js +1 -1
  189. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  190. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  191. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  192. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  193. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  194. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  195. package/lib/components/booking/info/service2/utils.js +12 -11
  196. package/lib/components/booking/info2/cartClientCard/index.js +23 -31
  197. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  198. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  199. package/lib/components/booking/info2/service/editService/index.js +71 -18
  200. package/lib/components/booking/info2/service/editService/index.less +47 -11
  201. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  202. package/lib/components/booking/locales.js +4 -4
  203. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  204. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  205. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  206. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  207. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  208. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  209. package/lib/components/eftpos/index.d.ts +0 -1
  210. package/lib/components/eftpos/pos.d.ts +0 -1
  211. package/lib/components/eftposPay/amount.d.ts +1 -2
  212. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  213. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  214. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  215. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  216. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  217. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  218. package/lib/components/eftposPay/device.d.ts +1 -2
  219. package/lib/components/eftposPay/hooks.d.ts +2 -2
  220. package/lib/components/eftposPay/index.d.ts +0 -1
  221. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  222. package/lib/components/eftposPay/pay.d.ts +0 -1
  223. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  224. package/lib/components/eftposPay/store/index.d.ts +5 -5
  225. package/lib/components/eftposPay/tip.d.ts +0 -1
  226. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  227. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  228. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  230. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  231. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  232. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  233. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  234. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  235. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  236. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  237. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  238. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  239. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  240. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  241. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  242. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  243. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  244. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  245. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  246. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  247. package/lib/components/eventBooking/index.d.ts +0 -1
  248. package/lib/components/login/index.d.ts +0 -1
  249. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  250. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  251. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  252. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  253. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  255. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  256. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  257. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  258. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  259. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  260. package/lib/components/productExtension/index.d.ts +0 -1
  261. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  262. package/lib/components/productSelect/components/productGroup/index.js +1 -1
  263. package/lib/components/ruleSetting/index.d.ts +0 -1
  264. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  265. package/lib/components/schedules/calendar/index.d.ts +0 -1
  266. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  267. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  268. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  269. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  270. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  271. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  272. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  273. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  274. package/lib/components/schedules/products/list/index.d.ts +0 -1
  275. package/lib/components/schedules/resources/index.d.ts +0 -1
  276. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  277. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  278. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  279. package/lib/components/schedules/schedules/index.d.ts +0 -1
  280. package/lib/components/shoppingCart/components/Cart/Product.js +4 -3
  281. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  282. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  283. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  284. package/lib/components/shoppingCart/index.d.ts +0 -1
  285. package/lib/components/taxSelect/index.d.ts +0 -1
  286. package/lib/components/ticketBooking/components/timeBar/index.js +1 -1
  287. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +23 -12
  288. package/lib/components/ticketBooking/locales.js +12 -3
  289. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  290. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  291. package/lib/plus/clientCard/locales.js +2 -2
  292. package/lib/plus/clientName/index.d.ts +0 -1
  293. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  294. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  295. package/lib/plus/clinetSearch/index.d.ts +0 -1
  296. package/lib/plus/clinetSearch/index.js +6 -7
  297. package/lib/plus/clinetSearch/index.less +4 -0
  298. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  299. package/lib/pro/comprehensiveSearch/index.d.ts +1 -3
  300. package/lib/pro/comprehensiveSearch/index.js +12 -23
  301. package/lib/pro/comprehensiveSearch/index.less +1 -6
  302. package/lib/pro/comprehensiveSearch/types.d.ts +2 -1
  303. package/lib/pro/skuDetailModal/index.js +22 -6
  304. package/lib/pro/skuDetailModal/index.less +40 -0
  305. package/package.json +4 -4
  306. package/es/pro/comprehensiveSearch/camera.svg +0 -4
  307. package/lib/pro/comprehensiveSearch/camera.svg +0 -4
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: ({ onNext }: any) => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const DepositContent: (props: {
4
3
  isAgreeDepositPolicy: boolean;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../booking/components/voucher/index.less';
3
2
  import './index.less';
4
3
  declare const VoucherCard: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  export default DepositModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Deposit: (props: any) => JSX.Element;
4
3
  export default Deposit;
@@ -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
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -39,6 +39,7 @@ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
39
39
  import { sendWarningLog } from '@pisell/utils';
40
40
  import dayjs from 'dayjs';
41
41
  import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
42
+ import { Iconfont } from '@pisell/materials';
42
43
  /**
43
44
  * @title: 底部
44
45
  * @description:
@@ -48,7 +49,7 @@ import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager
48
49
  * @Date: 2024-01-30 16:51
49
50
  */
50
51
  var Footer = function Footer(props) {
51
- var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _state$bookingDetail8, _state$addons4, _state$bookingDetail16, _state$bookingDetail17, _state$notes2;
52
+ var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _state$notes3, _state$bookingDetail8, _state$addons4, _state$bookingDetail16, _state$bookingDetail17, _state$notes4;
52
53
  var state = props.state,
53
54
  buttons = props.buttons,
54
55
  dispatch = props.dispatch,
@@ -946,6 +947,11 @@ var Footer = function Footer(props) {
946
947
  // style={{ backgroundColor: '#f04438', color: '#fff' }}
947
948
  }, locales.getText('pisell2.booking.info.text.clear-all')));
948
949
  }, []);
950
+ var hasOrderNote = useMemo(function () {
951
+ var _state$notes2;
952
+ var note = (state === null || state === void 0 || (_state$notes2 = state.notes) === null || _state$notes2 === void 0 ? void 0 : _state$notes2.orderNote) || '';
953
+ return note.trim().length > 0;
954
+ }, [state === null || state === void 0 || (_state$notes3 = state.notes) === null || _state$notes3 === void 0 ? void 0 : _state$notes3.orderNote]);
949
955
  var noteButton = useMemo(function () {
950
956
  return /*#__PURE__*/React.createElement(ConfigProvider, {
951
957
  theme: {
@@ -954,11 +960,15 @@ var Footer = function Footer(props) {
954
960
  }
955
961
  }
956
962
  }, /*#__PURE__*/React.createElement(Button, {
957
- className: "pisell-lowcode__booking-footer-buttons-item",
963
+ className: "pisell-lowcode__booking-footer-buttons-item note-button",
958
964
  type: "primary",
959
965
  onClick: handleNote
960
- }, locales.getText('pisell2.ticket-booking.note')));
961
- }, []);
966
+ }, locales.getText('pisell2.ticket-booking.note'), hasOrderNote && /*#__PURE__*/React.createElement("span", {
967
+ className: "note-indicator"
968
+ }, /*#__PURE__*/React.createElement(Iconfont, {
969
+ type: "pisell2-info-circle2"
970
+ }))));
971
+ }, [hasOrderNote]);
962
972
  var buttonMap = {
963
973
  checkout: checkoutButton,
964
974
  save: saveButton,
@@ -1444,7 +1454,7 @@ var Footer = function Footer(props) {
1444
1454
  }), noteModalOpen && /*#__PURE__*/React.createElement(NoteModal, {
1445
1455
  open: noteModalOpen,
1446
1456
  title: locales.getText('pisell2.text.add-order-notes'),
1447
- value: ((_state$notes2 = state.notes) === null || _state$notes2 === void 0 ? void 0 : _state$notes2.orderNote) || '',
1457
+ value: ((_state$notes4 = state.notes) === null || _state$notes4 === void 0 ? void 0 : _state$notes4.orderNote) || '',
1448
1458
  onConfirm: handleNoteConfirm,
1449
1459
  onDelete: handleNoteDelete,
1450
1460
  onCancel: handleNoteCancel
@@ -122,6 +122,29 @@
122
122
  align-items: center;
123
123
  justify-content: center;
124
124
  flex: 1;
125
+ position: relative;
126
+
127
+ &.note-button {
128
+ .note-indicator {
129
+ position: absolute;
130
+ top: 0; // 不使用负数偏移
131
+ right: 0; // 不使用负数偏移
132
+ transform: translate(12%, -12%); // 向外溢出约 2-3px
133
+ width: 24px;
134
+ height: 24px;
135
+ border-radius: 50%;
136
+ background-color: #7F56DA; // 紫色
137
+ color: #fff;
138
+ font-weight: 700;
139
+ display: flex;
140
+ align-items: center;
141
+ justify-content: center;
142
+ line-height: 1;
143
+ font-size: 30px;
144
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
145
+ pointer-events: none;
146
+ }
147
+ }
125
148
  }
126
149
 
127
150
  .pisell-lowcode__booking-footer-buttons-item-primary {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -120,9 +120,9 @@
120
120
  }
121
121
 
122
122
  .pisell-lowcode__booking-tab-pane-footer {
123
- position: sticky;
124
- bottom: 0;
125
- left: 0;
123
+ //position: sticky;
124
+ //bottom: 0;
125
+ //left: 0;
126
126
  z-index: 2;
127
127
  display: block;
128
128
  // display: flex;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
3
2
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => 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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -84,7 +84,7 @@ var Lists = function Lists(_ref) {
84
84
  var _state$bookingConfig;
85
85
  return {
86
86
  hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
87
- isShowNote: isEventBooking(state),
87
+ isShowNote: state.isBookingTicket2 ? true : isEventBooking(state),
88
88
  isShowPackageNote: false,
89
89
  accounts: [],
90
90
  isEdit: !!(state !== null && state !== void 0 && state.bookingId),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -625,6 +625,7 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
625
625
  isShowChangeHolder: !isNormalProduct,
626
626
  isShowAction: isShowAddTime(state, item),
627
627
  actionText: locales.getText('page.booking.text.add-time'),
628
+ actionIcon: 'pisell2-clock-plus',
628
629
  isMultipleResource: true,
629
630
  multiResources: multiResources,
630
631
  holderMaxCount: item === null || item === void 0 ? void 0 : item._extend.quantity,
@@ -657,7 +658,7 @@ export var formatProducts = function formatProducts(lists, state) {
657
658
  var normalList = [];
658
659
  var groupList = [];
659
660
  var formItem = function formItem(item) {
660
- var _item$_extend10, _item$_extend11, _item$_extend12, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20, _item$_extend21, _item$_extend22, _resourceItem, _item$_extend23, _item$_extend24, _item$_extend25, _item$_extend26, _item$_extend27;
661
+ var _item$_extend10, _item$_extend11, _item$_extend12, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20, _item$_extend21, _item$_extend22, _item$_extend23, _resourceItem, _item$_extend24, _item$_extend25, _item$_extend26, _item$_extend27, _item$_extend28;
661
662
  var _isDayBookingProduct = isDayBookingProduct(item, state);
662
663
  var clientTitle = getHolderName(state, item === null || item === void 0 || (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 ? void 0 : _item$_extend10.holder_id);
663
664
  var options = formatOptions(item === null || item === void 0 || (_item$_extend11 = item._extend) === null || _item$_extend11 === void 0 || (_item$_extend11 = _item$_extend11.other) === null || _item$_extend11 === void 0 ? void 0 : _item$_extend11.option);
@@ -684,19 +685,19 @@ export var formatProducts = function formatProducts(lists, state) {
684
685
  num: item === null || item === void 0 ? void 0 : item._extend.quantity,
685
686
  image: item === null || item === void 0 ? void 0 : item.cover,
686
687
  isShowNote: true,
687
- note: item === null || item === void 0 ? void 0 : item.note,
688
- like_status: item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.like_status,
688
+ note: (item === null || item === void 0 ? void 0 : item.note) || (item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.note),
689
+ like_status: item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.like_status,
689
690
  bundle: bundle,
690
691
  options: options,
691
692
  errorMessage: errorMessage,
692
- product_option_string: item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.product_option_string,
693
- discount_reason: item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.discount_reason,
694
- resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.resource,
693
+ product_option_string: item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 || (_item$_extend21 = _item$_extend21.other) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.product_option_string,
694
+ discount_reason: item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.discount_reason,
695
+ resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.resource,
695
696
  relation_form_name: isNormalProduct ? '' : ((_resourceItem = resourceItem) === null || _resourceItem === void 0 ? void 0 : _resourceItem.labelText) || item.relation_form_name,
696
697
  holder_title: clientTitle,
697
- start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.start_date : '',
698
- end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.end_date : '',
699
- holder_id: (item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.holder_id) || 0,
698
+ start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.start_date : '',
699
+ end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.end_date : '',
700
+ holder_id: (item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.holder_id) || 0,
700
701
  isNormalProduct: isNormalProduct,
701
702
  isCustomItem: item === null || item === void 0 ? void 0 : item.isCustomItem,
702
703
  // 添加自定义商品标识
@@ -704,8 +705,8 @@ export var formatProducts = function formatProducts(lists, state) {
704
705
  // 是否适用优惠券/折扣
705
706
  locale: state.locale,
706
707
  symbol: state.amountSymbol,
707
- relation_products: (item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.relation_details) || [],
708
- items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.items) || [])
708
+ relation_products: (item === null || item === void 0 || (_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.relation_details) || [],
709
+ items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.items) || [])
709
710
  }, generalParams), {}, {
710
711
  _origin: item
711
712
  });
@@ -714,8 +715,8 @@ export var formatProducts = function formatProducts(lists, state) {
714
715
  if (isRenderGroup) {
715
716
  // 将商品分为组商品和非组商品
716
717
  lists.forEach(function (item) {
717
- var _item$_extend28;
718
- if (!(item !== null && item !== void 0 && (_item$_extend28 = item._extend) !== null && _item$_extend28 !== void 0 && _item$_extend28.groupId)) {
718
+ var _item$_extend29;
719
+ if (!(item !== null && item !== void 0 && (_item$_extend29 = item._extend) !== null && _item$_extend29 !== void 0 && _item$_extend29.groupId)) {
719
720
  normalList.push(formItem(item));
720
721
  } else {
721
722
  groupList.push(item);
@@ -724,8 +725,8 @@ export var formatProducts = function formatProducts(lists, state) {
724
725
 
725
726
  // 根据item._extend.groupId 进行分组
726
727
  var groups = groupList.reduce(function (prev, item) {
727
- var _item$_extend29;
728
- var groupId = item === null || item === void 0 || (_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.groupId;
728
+ var _item$_extend30;
729
+ var groupId = item === null || item === void 0 || (_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.groupId;
729
730
  if (!prev[groupId]) {
730
731
  prev[groupId] = [];
731
732
  }
@@ -893,8 +894,8 @@ export var isHasDayAppointmentProduct = function isHasDayAppointmentProduct(stat
893
894
  // 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
894
895
  // services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
895
896
  services: services.filter(function (item) {
896
- var _item$_extend30;
897
- return ((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.holder_id) == d.form_record_id && checkType(item.extension_type);
897
+ var _item$_extend31;
898
+ return ((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.holder_id) == d.form_record_id && checkType(item.extension_type);
898
899
  })
899
900
  });
900
901
  });
@@ -47,7 +47,12 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (props, ref) {
47
47
  state = _ref.state,
48
48
  dispatch = _ref.dispatch;
49
49
  var translationOriginal = useTranslationOriginal();
50
+ var _useState7 = useState(''),
51
+ _useState8 = _slicedToArray(_useState7, 2),
52
+ keyword = _useState8[0],
53
+ setKeyword = _useState8[1];
50
54
  var keywordRef = useRef('');
55
+ keywordRef.current = keyword;
51
56
  var Toast = useToast();
52
57
  var _useScanCustomer = useScanCustomer(),
53
58
  openScan = _useScanCustomer.openScan,
@@ -72,17 +77,61 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (props, ref) {
72
77
  selectedCustomer = _useCustomer.selectedCustomer,
73
78
  loading = _useCustomer.loading,
74
79
  pagination = _useCustomer.pagination,
75
- loadCustomers = _useCustomer.loadCustomers,
76
80
  changePage = _useCustomer.changePage,
77
81
  selectCustomer = _useCustomer.selectCustomer,
78
82
  addCustomerToFirst = _useCustomer.addCustomerToFirst,
79
83
  initLoad = _useCustomer.initLoad,
80
84
  hasMore = _useCustomer.hasMore,
81
85
  loadMore = _useCustomer.loadMore;
86
+
87
+ // 点击搜索按钮 重置列表
88
+ var handleSearchClient = /*#__PURE__*/function () {
89
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(keyword) {
90
+ var _clientSearchRef$curr, _clientSearchRef$curr2;
91
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
92
+ while (1) switch (_context.prev = _context.next) {
93
+ case 0:
94
+ _context.next = 2;
95
+ return initLoad(keyword);
96
+ case 2:
97
+ (_clientSearchRef$curr = clientSearchRef.current) === null || _clientSearchRef$curr === void 0 || (_clientSearchRef$curr2 = _clientSearchRef$curr.resetScrollPosition) === null || _clientSearchRef$curr2 === void 0 || _clientSearchRef$curr2.call(_clientSearchRef$curr);
98
+ case 3:
99
+ case "end":
100
+ return _context.stop();
101
+ }
102
+ }, _callee);
103
+ }));
104
+ return function handleSearchClient(_x) {
105
+ return _ref2.apply(this, arguments);
106
+ };
107
+ }();
108
+
109
+ // keyword 变动时触发
110
+ var _debouncedSearch = useDebounceFn( /*#__PURE__*/function () {
111
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_keyword) {
112
+ var _clientSearchRef$curr3, _clientSearchRef$curr4;
113
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
114
+ while (1) switch (_context2.prev = _context2.next) {
115
+ case 0:
116
+ _context2.next = 2;
117
+ return initLoad(keyword);
118
+ case 2:
119
+ (_clientSearchRef$curr3 = clientSearchRef.current) === null || _clientSearchRef$curr3 === void 0 || (_clientSearchRef$curr4 = _clientSearchRef$curr3.resetScrollPosition) === null || _clientSearchRef$curr4 === void 0 || _clientSearchRef$curr4.call(_clientSearchRef$curr3);
120
+ case 3:
121
+ case "end":
122
+ return _context2.stop();
123
+ }
124
+ }, _callee2);
125
+ }));
126
+ return function (_x2) {
127
+ return _ref3.apply(this, arguments);
128
+ };
129
+ }(), {
130
+ wait: 500
131
+ });
82
132
  useEffect(function () {
83
- // 加载客户列表
84
- initLoad();
85
- }, []);
133
+ _debouncedSearch.run(keyword);
134
+ }, [keyword]);
86
135
  useEffect(function () {
87
136
  if (state.action) {
88
137
  state.action({
@@ -93,15 +142,9 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (props, ref) {
93
142
  });
94
143
  }
95
144
  }, []);
96
- var updateSearchKeyword = function updateSearchKeyword(newVal) {
97
- var _clientSearchRef$curr, _clientSearchRef$curr2;
98
- (_clientSearchRef$curr = clientSearchRef.current) === null || _clientSearchRef$curr === void 0 || (_clientSearchRef$curr2 = _clientSearchRef$curr.setSearchKeyword) === null || _clientSearchRef$curr2 === void 0 || _clientSearchRef$curr2.call(_clientSearchRef$curr, newVal);
99
- keywordRef.current = newVal;
100
- };
101
145
  var handleScanCustomer = function handleScanCustomer(customer) {
102
146
  if (customer !== null && customer !== void 0 && customer.scanCode) {
103
- updateSearchKeyword(customer.scanCode);
104
- handleSearchClient(customer.scanCode);
147
+ setKeyword(customer.scanCode);
105
148
  }
106
149
  };
107
150
  useEffect(function () {
@@ -111,10 +154,7 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (props, ref) {
111
154
  closeScan();
112
155
  // 如果有搜索内容,则清除
113
156
  if (keywordRef.current) {
114
- var _clientSearchRef$curr3, _clientSearchRef$curr4;
115
- updateSearchKeyword('');
116
- (_clientSearchRef$curr3 = clientSearchRef.current) === null || _clientSearchRef$curr3 === void 0 || (_clientSearchRef$curr4 = _clientSearchRef$curr3.resetScrollPosition) === null || _clientSearchRef$curr4 === void 0 || _clientSearchRef$curr4.call(_clientSearchRef$curr3);
117
- initLoad();
157
+ setKeyword('');
118
158
  }
119
159
  }
120
160
  }, [searchModalVisible, initLoad]);
@@ -127,75 +167,28 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (props, ref) {
127
167
  // 处理更换客户
128
168
  var handleChangeClient = function handleChangeClient(data) {
129
169
  setSearchModalVisible(true);
130
- console.log('更换客户:', data);
131
170
  };
132
171
 
133
172
  // 处理移除客户
134
173
  var handleRemoveClient = function handleRemoveClient(data) {
135
174
  selectCustomer(null);
136
- console.log('移除客户:', data);
137
175
  };
138
176
 
139
177
  // 处理查看客户
140
178
  var handleViewClient = function handleViewClient(data) {
141
- console.log('查看客户:', data);
142
179
  state.action({
143
180
  type: 'pisell1.handleOpenCustomerModal',
144
181
  data: {
145
182
  id: state.client.value.id
146
183
  },
147
- callback: function callback(data) {
148
- if (state.disabledEdit) {
149
- return;
150
- }
151
- // if (data) {
152
- // handleSelectClient([data]);
153
- // }
154
- // getHolders();
155
- // getClients({
156
- // ...state.client.clientsParams,
157
- // search: '',
158
- // customer_id: data?.id,
159
- // skip: 1,
160
- // sort_by: 'id',
161
- // });
162
- }
184
+ callback: function callback(data) {}
163
185
  });
164
186
  };
165
187
 
166
- // 处理搜索结果选择
167
- var handleRowClick = function handleRowClick(record) {
168
- // selectCustomer(record);
169
- // setSearchModalVisible(false);
170
- handleSetClient(record);
171
- };
172
-
173
188
  // 处理模态框取消
174
189
  var handleModalCancel = function handleModalCancel() {
175
190
  setSearchModalVisible(false);
176
191
  };
177
- var handleSearchClient = /*#__PURE__*/function () {
178
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(keyword) {
179
- return _regeneratorRuntime().wrap(function _callee$(_context) {
180
- while (1) switch (_context.prev = _context.next) {
181
- case 0:
182
- _context.next = 2;
183
- return loadCustomers({
184
- search: keyword
185
- });
186
- case 2:
187
- case "end":
188
- return _context.stop();
189
- }
190
- }, _callee);
191
- }));
192
- return function handleSearchClient(_x) {
193
- return _ref2.apply(this, arguments);
194
- };
195
- }();
196
- var _debouncedSearch = useDebounceFn(handleSearchClient, {
197
- wait: 500
198
- });
199
192
 
200
193
  // 处理添加客户成功
201
194
  var handleAddClientSuccess = function handleAddClientSuccess(record, isChecked) {
@@ -306,11 +299,11 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (props, ref) {
306
299
  loading: loading,
307
300
  dataSource: customers,
308
301
  onSearch: handleSearchClient,
309
- onSearchTextChange: function onSearchTextChange(keyword) {
310
- keywordRef.current = keyword;
311
- _debouncedSearch.run(keyword);
302
+ keyword: keyword,
303
+ onKeywordChange: function onKeywordChange(_keyword) {
304
+ setKeyword(_keyword);
312
305
  },
313
- onRowClick: handleRowClick,
306
+ onRowClick: handleSetClient,
314
307
  containerProps: {
315
308
  open: searchModalVisible,
316
309
  onCancel: handleModalCancel
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;