@pisell/private-materials 6.5.27 → 6.6.1

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 (338) 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 +2 -2
  6. package/build/lowcode/preview.js +146 -165
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  15. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  16. package/es/components/appointmentBooking/hooks.js +30 -30
  17. package/es/components/appointmentBooking/locales.d.ts +3 -0
  18. package/es/components/appointmentBooking/locales.js +9 -6
  19. package/es/components/booking/components/actionButtons/index.js +34 -20
  20. package/es/components/booking/components/customSelect/index.js +1 -1
  21. package/es/components/booking/components/footer/amount.js +25 -8
  22. package/es/components/booking/components/footer/index.js +66 -33
  23. package/es/components/booking/components/footer/utils.d.ts +7 -0
  24. package/es/components/booking/components/footer/utils.js +126 -99
  25. package/es/components/booking/components/voucher/index.js +25 -9
  26. package/es/components/booking/dashboard/serve.js +1 -6
  27. package/es/components/booking/forms/footer.js +24 -10
  28. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  29. package/es/components/booking/forms/serve.js +2 -12
  30. package/es/components/booking/hooks/useQuotation.js +69 -21
  31. package/es/components/booking/info/client/index.js +28 -13
  32. package/es/components/booking/info/client/serve.js +2 -11
  33. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
  34. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
  35. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  36. package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
  37. package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
  38. package/es/components/booking/info/main.js +3 -2
  39. package/es/components/booking/info/model.js +5 -0
  40. package/es/components/booking/info/pet/serve.js +1 -6
  41. package/es/components/booking/info/service/Lists.d.ts +1 -1
  42. package/es/components/booking/info/service/Lists.js +10 -4
  43. package/es/components/booking/info/service/addTimeModal/serve.js +1 -11
  44. package/es/components/booking/info/service/serve.d.ts +14 -0
  45. package/es/components/booking/info/service/serve.js +25 -18
  46. package/es/components/booking/info/service2/Group/utils.js +2 -0
  47. package/es/components/booking/info/service2/utils.d.ts +1 -33
  48. package/es/components/booking/info/service2/utils.js +92 -56
  49. package/es/components/booking/info/utils.js +5 -0
  50. package/es/components/booking/info2/cartClientCard/index.js +49 -9
  51. package/es/components/booking/info2/index.js +3 -2
  52. package/es/components/booking/info2/serve.js +1 -6
  53. package/es/components/booking/info2/service/addService/index.js +146 -89
  54. package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
  55. package/es/components/booking/info2/service/addService/utils.js +83 -14
  56. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  57. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  58. package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
  59. package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
  60. package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
  61. package/es/components/booking/info2/service/editService/index.js +313 -57
  62. package/es/components/booking/info2/utilsByBooking.js +19 -14
  63. package/es/components/booking/locales.d.ts +36 -0
  64. package/es/components/booking/locales.js +48 -3
  65. package/es/components/booking/model.d.ts +4 -0
  66. package/es/components/booking/model.js +3 -0
  67. package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
  68. package/es/components/booking/utils/confirmHolderModal.js +318 -0
  69. package/es/components/booking/utils/confirmHolderModal.less +40 -0
  70. package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
  71. package/es/components/booking/utils/selectHolderModal.js +407 -0
  72. package/es/components/booking/utils.d.ts +16 -7
  73. package/es/components/booking/utils.js +26 -37
  74. package/es/components/checkout/PaymentModal.js +61 -30
  75. package/es/components/checkout/components/CashPaymentModule/index.js +1 -7
  76. package/es/components/checkout/components/ScrollableList/index.js +0 -1
  77. package/es/components/checkout/locales.d.ts +3 -0
  78. package/es/components/checkout/locales.js +3 -0
  79. package/es/components/eftposPay/linkly/index.js +64 -2
  80. package/es/components/eftposPay/tyro/index.js +12 -0
  81. package/es/components/list/List.js +3 -0
  82. package/es/components/pay/toB/components/MX51/index.js +14 -44
  83. package/es/components/pay/toB/types/index.d.ts +0 -12
  84. package/es/components/pay/toB/types/index.js +0 -4
  85. package/es/components/pisellSelectCustomerModal/RightPanel/serve.js +1 -5
  86. package/es/components/shoppingCart/components/Cart/Product.js +6 -3
  87. package/es/components/shoppingCart/type.d.ts +1 -0
  88. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
  89. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  90. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +119 -0
  91. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  92. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
  93. package/es/components/ticketBooking/components/addServiceVariant/addService.js +419 -794
  94. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
  95. package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
  96. package/es/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
  97. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  98. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
  99. package/es/components/ticketBooking/components/ticketBooking/index.js +32 -61
  100. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  101. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  102. package/es/components/ticketBooking/components/timeBar/index.js +1 -4
  103. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
  104. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +122 -170
  105. package/es/components/ticketBooking/index.d.ts +0 -1
  106. package/es/components/ticketBooking/index.js +0 -2
  107. package/es/components/ticketBooking/serve.js +17 -119
  108. package/es/components/ticketBooking/utils/index.d.ts +7 -1
  109. package/es/components/ticketBooking/utils/index.js +44 -28
  110. package/es/hooks/useEngineContext.d.ts +0 -1
  111. package/es/hooks/useEngineContext.js +0 -7
  112. package/es/index.d.ts +4 -0
  113. package/es/index.js +5 -1
  114. package/es/plus/clientCard/locales.js +3 -3
  115. package/es/plus/clinetSearch/index.js +28 -30
  116. package/es/plus/clinetSearch/locales.d.ts +3 -0
  117. package/es/plus/clinetSearch/locales.js +7 -4
  118. package/es/plus/clinetSearch/types.d.ts +12 -0
  119. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  120. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  121. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  122. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  123. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  124. package/es/plus/contactInfo/index.d.ts +6 -0
  125. package/es/plus/contactInfo/index.js +198 -0
  126. package/es/plus/contactInfo/index.less +621 -0
  127. package/es/plus/contactInfo/locales.d.ts +15 -0
  128. package/es/plus/contactInfo/locales.js +14 -0
  129. package/es/plus/contactInfo/types.d.ts +91 -0
  130. package/es/plus/contactInfo/types.js +1 -0
  131. package/es/plus/contactInfo/utils.d.ts +7 -0
  132. package/es/plus/contactInfo/utils.js +50 -0
  133. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  134. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  135. package/es/plus/contactInfoModal/index.d.ts +41 -0
  136. package/es/plus/contactInfoModal/index.js +155 -0
  137. package/es/plus/contactInfoModal/index.less +19 -0
  138. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  139. package/es/plus/contactInfoModal/locales.js +65 -0
  140. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
  141. package/es/plus/productSelect/ProductCard/index.js +1 -1
  142. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  143. package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
  144. package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
  145. package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  146. package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
  147. package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
  148. package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  149. package/es/plus/selectHolder/components/HolderList/index.js +43 -0
  150. package/es/plus/selectHolder/index.d.ts +7 -0
  151. package/es/plus/selectHolder/index.js +273 -0
  152. package/es/plus/selectHolder/index.less +137 -0
  153. package/es/plus/selectHolder/locales.d.ts +24 -0
  154. package/es/plus/selectHolder/locales.js +29 -0
  155. package/es/plus/selectHolder/types.d.ts +104 -0
  156. package/es/plus/selectHolder/types.js +1 -0
  157. package/es/plus/selectHolder/utils.d.ts +9 -0
  158. package/es/plus/selectHolder/utils.js +16 -0
  159. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  160. package/es/pro/comprehensiveSearch/locales.js +1 -1
  161. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  162. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +357 -0
  163. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  164. package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
  165. package/es/pro/multiDayTimeSelect/index.js +1 -0
  166. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  167. package/es/pro/multiDayTimeSelect/types.js +1 -0
  168. package/es/pro/skuDetailModal/types.d.ts +1 -0
  169. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  170. package/lib/components/appointmentBooking/components/Cart/Item/index.js +6 -3
  171. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
  172. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  173. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  174. package/lib/components/appointmentBooking/hooks.js +73 -35
  175. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  176. package/lib/components/appointmentBooking/locales.js +6 -3
  177. package/lib/components/booking/components/actionButtons/index.js +11 -2
  178. package/lib/components/booking/components/customSelect/index.js +1 -1
  179. package/lib/components/booking/components/footer/amount.js +23 -6
  180. package/lib/components/booking/components/footer/index.js +26 -5
  181. package/lib/components/booking/components/footer/utils.d.ts +7 -0
  182. package/lib/components/booking/components/footer/utils.js +120 -82
  183. package/lib/components/booking/components/voucher/index.js +10 -1
  184. package/lib/components/booking/dashboard/serve.js +1 -6
  185. package/lib/components/booking/forms/footer.js +29 -11
  186. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  187. package/lib/components/booking/forms/serve.js +2 -12
  188. package/lib/components/booking/hooks/useQuotation.js +45 -13
  189. package/lib/components/booking/info/client/index.js +14 -1
  190. package/lib/components/booking/info/client/serve.js +2 -13
  191. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
  192. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
  193. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  194. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
  195. package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
  196. package/lib/components/booking/info/main.js +5 -4
  197. package/lib/components/booking/info/model.js +5 -0
  198. package/lib/components/booking/info/pet/serve.js +1 -6
  199. package/lib/components/booking/info/service/Lists.d.ts +1 -1
  200. package/lib/components/booking/info/service/Lists.js +5 -3
  201. package/lib/components/booking/info/service/addTimeModal/serve.js +1 -7
  202. package/lib/components/booking/info/service/serve.d.ts +14 -0
  203. package/lib/components/booking/info/service/serve.js +8 -17
  204. package/lib/components/booking/info/service2/Group/utils.js +2 -0
  205. package/lib/components/booking/info/service2/utils.d.ts +1 -33
  206. package/lib/components/booking/info/service2/utils.js +38 -29
  207. package/lib/components/booking/info/utils.js +4 -0
  208. package/lib/components/booking/info2/cartClientCard/index.js +34 -5
  209. package/lib/components/booking/info2/index.js +11 -5
  210. package/lib/components/booking/info2/serve.js +1 -6
  211. package/lib/components/booking/info2/service/addService/index.js +22 -3
  212. package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
  213. package/lib/components/booking/info2/service/addService/utils.js +48 -11
  214. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  215. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  216. package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
  217. package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
  218. package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
  219. package/lib/components/booking/info2/service/editService/index.js +254 -32
  220. package/lib/components/booking/info2/utilsByBooking.js +26 -19
  221. package/lib/components/booking/locales.d.ts +36 -0
  222. package/lib/components/booking/locales.js +42 -3
  223. package/lib/components/booking/model.d.ts +4 -0
  224. package/lib/components/booking/model.js +3 -0
  225. package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
  226. package/lib/components/booking/utils/confirmHolderModal.js +253 -0
  227. package/lib/components/booking/utils/confirmHolderModal.less +40 -0
  228. package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
  229. package/lib/components/booking/utils/selectHolderModal.js +319 -0
  230. package/lib/components/booking/utils.d.ts +16 -7
  231. package/lib/components/booking/utils.js +18 -21
  232. package/lib/components/checkout/PaymentModal.js +41 -18
  233. package/lib/components/checkout/components/CashPaymentModule/index.js +1 -7
  234. package/lib/components/checkout/components/ScrollableList/index.js +0 -1
  235. package/lib/components/checkout/locales.d.ts +3 -0
  236. package/lib/components/checkout/locales.js +3 -0
  237. package/lib/components/eftposPay/linkly/index.js +31 -1
  238. package/lib/components/eftposPay/tyro/index.js +12 -0
  239. package/lib/components/list/List.js +3 -0
  240. package/lib/components/pay/toB/components/MX51/index.js +12 -37
  241. package/lib/components/pay/toB/types/index.d.ts +0 -12
  242. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.js +1 -8
  243. package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
  244. package/lib/components/shoppingCart/type.d.ts +1 -0
  245. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -12
  246. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
  247. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
  248. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
  249. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -2
  250. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +279 -313
  251. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
  252. package/lib/components/ticketBooking/components/addServiceVariant/index.js +5 -3
  253. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +1 -2
  254. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  255. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +2 -4
  256. package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -49
  257. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  258. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  259. package/lib/components/ticketBooking/components/timeBar/index.js +1 -3
  260. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -4
  261. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +69 -98
  262. package/lib/components/ticketBooking/index.d.ts +0 -1
  263. package/lib/components/ticketBooking/index.js +0 -2
  264. package/lib/components/ticketBooking/serve.js +15 -117
  265. package/lib/components/ticketBooking/utils/index.d.ts +7 -1
  266. package/lib/components/ticketBooking/utils/index.js +29 -23
  267. package/lib/hooks/useEngineContext.d.ts +0 -1
  268. package/lib/hooks/useEngineContext.js +2 -10
  269. package/lib/index.d.ts +4 -0
  270. package/lib/index.js +12 -0
  271. package/lib/plus/clientCard/locales.js +3 -3
  272. package/lib/plus/clinetSearch/index.js +17 -8
  273. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  274. package/lib/plus/clinetSearch/locales.js +7 -4
  275. package/lib/plus/clinetSearch/types.d.ts +12 -0
  276. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  277. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  278. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  279. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  280. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  281. package/lib/plus/contactInfo/index.d.ts +6 -0
  282. package/lib/plus/contactInfo/index.js +226 -0
  283. package/lib/plus/contactInfo/index.less +621 -0
  284. package/lib/plus/contactInfo/locales.d.ts +15 -0
  285. package/lib/plus/contactInfo/locales.js +38 -0
  286. package/lib/plus/contactInfo/types.d.ts +91 -0
  287. package/lib/plus/contactInfo/types.js +17 -0
  288. package/lib/plus/contactInfo/utils.d.ts +7 -0
  289. package/lib/plus/contactInfo/utils.js +64 -0
  290. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  291. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  292. package/lib/plus/contactInfoModal/index.d.ts +41 -0
  293. package/lib/plus/contactInfoModal/index.js +139 -0
  294. package/lib/plus/contactInfoModal/index.less +19 -0
  295. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  296. package/lib/plus/contactInfoModal/locales.js +89 -0
  297. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
  298. package/lib/plus/productSelect/ProductCard/index.js +1 -1
  299. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
  300. package/lib/plus/selectHolder/components/ErrorTip/index.js +30 -0
  301. package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
  302. package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
  303. package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
  304. package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
  305. package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
  306. package/lib/plus/selectHolder/components/HolderList/index.js +63 -0
  307. package/lib/plus/selectHolder/index.d.ts +7 -0
  308. package/lib/plus/selectHolder/index.js +223 -0
  309. package/lib/plus/selectHolder/index.less +137 -0
  310. package/lib/plus/selectHolder/locales.d.ts +24 -0
  311. package/lib/plus/selectHolder/locales.js +47 -0
  312. package/lib/plus/selectHolder/types.d.ts +104 -0
  313. package/lib/plus/selectHolder/types.js +17 -0
  314. package/lib/plus/selectHolder/utils.d.ts +9 -0
  315. package/lib/plus/selectHolder/utils.js +34 -0
  316. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  317. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  318. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
  319. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +304 -0
  320. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
  321. package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
  322. package/lib/{hooks/printer.js → pro/multiDayTimeSelect/index.js} +6 -31
  323. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  324. package/lib/pro/multiDayTimeSelect/types.js +17 -0
  325. package/lib/pro/skuDetailModal/types.d.ts +1 -0
  326. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  327. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  328. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  329. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  330. package/lowcode/contact-info/meta.ts +199 -0
  331. package/lowcode/contact-info-modal/meta.ts +98 -0
  332. package/lowcode/event-select-holder/meta.ts +2 -2
  333. package/lowcode/select-holder/meta.ts +220 -0
  334. package/lowcode/select-holder/snippets.ts +41 -0
  335. package/package.json +13 -11
  336. package/es/hooks/printer.d.ts +0 -4
  337. package/es/hooks/printer.js +0 -35
  338. package/lib/hooks/printer.d.ts +0 -4
@@ -9,7 +9,7 @@ import useSendModal from "./sendModal/useSendModal";
9
9
  import SendModal from "./sendModal";
10
10
  import { locales } from '@pisell/utils';
11
11
  var Footer = function Footer(_ref) {
12
- var _state$client6, _state$form, _state$client7;
12
+ var _state$client2, _state$contacts_info2, _state$form, _state$client3;
13
13
  var state = _ref.state,
14
14
  reload = _ref.reload;
15
15
  var _useSendModal = useSendModal(state === null || state === void 0 ? void 0 : state.bookingId),
@@ -38,17 +38,31 @@ var Footer = function Footer(_ref) {
38
38
  };
39
39
  }();
40
40
  var defaultValues = useMemo(function () {
41
- var _state$client, _state$client2, _state$client3, _state$client4, _state$client5;
41
+ var _state$contacts_info, _state$client;
42
+ // 优先取contacts_info中的phone和email,如果不存在则取客户信息中的phone和email
43
+ var _ref3 = ((_state$contacts_info = state.contacts_info) === null || _state$contacts_info === void 0 ? void 0 : _state$contacts_info.value) || {},
44
+ contactsEmail = _ref3.email,
45
+ contactsPhone = _ref3.phone;
46
+ var _ref4 = ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value) || {},
47
+ clientEmail = _ref4.email,
48
+ clientPhone = _ref4.phone,
49
+ clientCode = _ref4.country_calling_code;
50
+ var email = contactsEmail || clientEmail;
51
+ var phone = (contactsPhone === null || contactsPhone === void 0 ? void 0 : contactsPhone.phone) || clientPhone;
52
+ var code = (contactsPhone === null || contactsPhone === void 0 ? void 0 : contactsPhone.country_calling_code) || clientCode || '+61';
53
+ if (!code.startsWith('+')) {
54
+ code = "+".concat(code);
55
+ }
42
56
  return {
43
- sendSms: !!((_state$client = state.client) !== null && _state$client !== void 0 && (_state$client = _state$client.value) !== null && _state$client !== void 0 && _state$client.phone),
44
- sendEmail: !!((_state$client2 = state.client) !== null && _state$client2 !== void 0 && (_state$client2 = _state$client2.value) !== null && _state$client2 !== void 0 && _state$client2.email),
45
- email: (_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.email,
57
+ sendSms: !!phone,
58
+ sendEmail: !!email,
59
+ email: email,
46
60
  phone: {
47
- code: (_state$client4 = state.client) === null || _state$client4 === void 0 || (_state$client4 = _state$client4.value) === null || _state$client4 === void 0 ? void 0 : _state$client4.country_calling_code,
48
- phone: (_state$client5 = state.client) === null || _state$client5 === void 0 || (_state$client5 = _state$client5.value) === null || _state$client5 === void 0 ? void 0 : _state$client5.phone
61
+ code: code,
62
+ phone: phone
49
63
  }
50
64
  };
51
- }, [(_state$client6 = state.client) === null || _state$client6 === void 0 ? void 0 : _state$client6.value]);
65
+ }, [(_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : _state$client2.value, (_state$contacts_info2 = state.contacts_info) === null || _state$contacts_info2 === void 0 ? void 0 : _state$contacts_info2.value]);
52
66
  if (!state.bookingId || !(state !== null && state !== void 0 && (_state$form = state.form) !== null && _state$form !== void 0 && _state$form.forms.length)) {
53
67
  return null;
54
68
  }
@@ -65,8 +79,8 @@ var Footer = function Footer(_ref) {
65
79
  block: true,
66
80
  type: "primary",
67
81
  onClick: handleOpen
68
- }, locales.getText('pisell2.text.send-form-reminder')), /*#__PURE__*/React.createElement(SendModal, {
69
- refreshKey: (_state$client7 = state.client) === null || _state$client7 === void 0 || (_state$client7 = _state$client7.value) === null || _state$client7 === void 0 ? void 0 : _state$client7.id,
82
+ }, locales.getText('pisell2.text.send-form-reminder')), open && /*#__PURE__*/React.createElement(SendModal, {
83
+ refreshKey: (_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id,
70
84
  open: open,
71
85
  onCancel: function onCancel() {
72
86
  return setOpen(false);
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -12,12 +12,7 @@ export var getFormData = /*#__PURE__*/function () {
12
12
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13
13
  while (1) switch (_context.prev = _context.next) {
14
14
  case 0:
15
- return _context.abrupt("return", request.getRequest().get("/shop/form/data/v1", params, {
16
- cache: {
17
- mode: "remote_local",
18
- type: "indexDB"
19
- }
20
- }));
15
+ return _context.abrupt("return", request.getRequest().get("/shop/form/data/v1", params));
21
16
  case 1:
22
17
  case "end":
23
18
  return _context.stop();
@@ -37,12 +32,7 @@ export var sendFormReminder = /*#__PURE__*/function () {
37
32
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
38
33
  while (1) switch (_context2.prev = _context2.next) {
39
34
  case 0:
40
- return _context2.abrupt("return", request.getRequest().post("/shop/form/form-reminder", params, {
41
- cache: {
42
- mode: "remote_local",
43
- type: "indexDB"
44
- }
45
- }));
35
+ return _context2.abrupt("return", request.getRequest().post("/shop/form/form-reminder", params));
46
36
  case 1:
47
37
  case "end":
48
38
  return _context2.stop();
@@ -18,8 +18,9 @@ import { getProductTotalPrice } from "../utils";
18
18
  import useEngineContext from "../../../hooks/useEngineContext";
19
19
  import { locales } from "@pisell/utils";
20
20
  import { PisellModal } from "@pisell/materials";
21
- import { getProductPrice } from "../info/service/serve";
21
+ import { getNormalAndMultiDayProductPrice } from "../info/service/serve";
22
22
  import Decimal from 'decimal.js';
23
+ import dayjs from 'dayjs';
23
24
  var formatBundleItemMap = function formatBundleItemMap(product) {
24
25
  return product.bundle_group.reduce(function (pre, cur) {
25
26
  var curObj = {};
@@ -53,10 +54,17 @@ var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
53
54
  // 是否套餐子商品被删除
54
55
  var isNotFoundBundle = false;
55
56
  var notFoundProducts = [];
57
+
58
+ // 缓存跨日商品的 multiDayPrices,避免同一 groupId 重复计算
59
+ var multiDayPricesCache = new Map();
56
60
  var value = cartValue.map(function (item) {
57
- var _item$_extend, _item$_extend2;
61
+ var _item$_extend, _item$_extend2, _item$_extend3, _item$_extend4;
62
+ // 格式化商品日期用于匹配
63
+ var itemScheduleDate = (_item$_extend = item._extend) !== null && _item$_extend !== void 0 && _item$_extend.startDate ? dayjs(item._extend.startDate).format('YYYY-MM-DD') : '';
64
+
65
+ // 根据 product_id 和 schedule_date 匹配
58
66
  var newProduct = newProducts.find(function (newItem) {
59
- return newItem.id === item.product_id;
67
+ return newItem.id === item.product_id && newItem.schedule_date === itemScheduleDate;
60
68
  });
61
69
  if (!newProduct) {
62
70
  return item;
@@ -64,7 +72,7 @@ var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
64
72
  // 是否报价单变更价格更新
65
73
  var isChangePrice = newProduct.price != item.price;
66
74
  var bundleItemMap = formatBundleItemMap(newProduct);
67
- var newBundle = (((_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).map(function (bundle) {
75
+ var newBundle = (((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.other) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.bundle) || []).map(function (bundle) {
68
76
  if (!bundleItemMap[bundle.id]) {
69
77
  isNotFoundBundle = true;
70
78
  if (!notFoundProducts.some(function (p) {
@@ -92,6 +100,36 @@ var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
92
100
  });
93
101
  });
94
102
 
103
+ // 处理跨日商品的 multiDayPrices
104
+ if ((_item$_extend3 = item._extend) !== null && _item$_extend3 !== void 0 && _item$_extend3.groupId) {
105
+ // 检查缓存中是否已经计算过该 groupId
106
+ if (!multiDayPricesCache.has(item._extend.groupId)) {
107
+ // 找到该商品所有日期的价格记录
108
+ var productPrices = newProducts.filter(function (p) {
109
+ return p.id === item.product_id;
110
+ });
111
+
112
+ // 构建 multiDayPrices 对象
113
+ var multiDayPrices = {};
114
+ productPrices.forEach(function (priceItem) {
115
+ multiDayPrices[priceItem.schedule_date] = {
116
+ total: Number(priceItem.price),
117
+ origin_total: Number(priceItem.price),
118
+ num: 1,
119
+ quotation_id: priceItem.quotation_id || 0,
120
+ start_date: priceItem.schedule_date,
121
+ end_date: dayjs(priceItem.schedule_date).add(1, 'day').format('YYYY-MM-DD')
122
+ };
123
+ });
124
+
125
+ // 缓存结果
126
+ multiDayPricesCache.set(item._extend.groupId, multiDayPrices);
127
+ }
128
+
129
+ // 从缓存获取并设置到商品
130
+ item._extend.multiDayPrices = multiDayPricesCache.get(item._extend.groupId);
131
+ }
132
+
95
133
  // 价格都没有变动时返回原始信息
96
134
  if (!isChangePrice) {
97
135
  return item;
@@ -107,7 +145,7 @@ var setNewCartValue = function setNewCartValue(cartValue, newProducts) {
107
145
  // total: newProduct.total,
108
146
  bundle_edit: isBundleChange ? 1 : item._extend.bundle_edit,
109
147
  other: _objectSpread(_objectSpread({}, item._extend.other), {}, {
110
- option: (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.other) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.option,
148
+ option: (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 || (_item$_extend4 = _item$_extend4.other) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.option,
111
149
  bundle: newBundle
112
150
  })
113
151
  })
@@ -139,7 +177,7 @@ var useQuotation = function useQuotation(state, dispatch) {
139
177
  cartValueRef.current = state.service.value;
140
178
  var getCartQuotation = /*#__PURE__*/function () {
141
179
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
142
- var ids, data;
180
+ var queryData, data;
143
181
  return _regeneratorRuntime().wrap(function _callee$(_context) {
144
182
  while (1) switch (_context.prev = _context.next) {
145
183
  case 0:
@@ -149,28 +187,38 @@ var useQuotation = function useQuotation(state, dispatch) {
149
187
  }
150
188
  return _context.abrupt("return");
151
189
  case 2:
152
- ids = cartValueRef.current.filter(function (item) {
190
+ if (params !== null && params !== void 0 && params.customer_id) {
191
+ _context.next = 4;
192
+ break;
193
+ }
194
+ return _context.abrupt("return");
195
+ case 4:
196
+ // 构建查询参数:为每个商品生成 { product_id, schedule_date }
197
+ queryData = cartValueRef.current.filter(function (item) {
153
198
  return !item.isCustomItem;
154
199
  }) // 过滤掉自定义商品
155
200
  .map(function (item) {
156
- return item.product_id;
201
+ var _item$_extend5;
202
+ return {
203
+ product_id: item.product_id,
204
+ schedule_date: (_item$_extend5 = item._extend) !== null && _item$_extend5 !== void 0 && _item$_extend5.startDate ? dayjs(item._extend.startDate).format('YYYY-MM-DD') : params === null || params === void 0 ? void 0 : params.schedule_date // 如果没有商品日期,使用传入的默认日期
205
+ };
157
206
  });
158
- if (ids.length) {
159
- _context.next = 5;
207
+ if (queryData.length) {
208
+ _context.next = 7;
160
209
  break;
161
210
  }
162
211
  return _context.abrupt("return");
163
- case 5:
164
- _context.next = 7;
165
- return getProductPrice({
166
- ids: ids,
167
- schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date,
168
- customer_id: params === null || params === void 0 ? void 0 : params.customer_id
169
- });
170
212
  case 7:
171
- data = _context.sent;
172
- return _context.abrupt("return", data);
213
+ _context.next = 9;
214
+ return getNormalAndMultiDayProductPrice({
215
+ customer_id: params === null || params === void 0 ? void 0 : params.customer_id,
216
+ data: queryData
217
+ });
173
218
  case 9:
219
+ data = _context.sent;
220
+ return _context.abrupt("return", data.data);
221
+ case 11:
174
222
  case "end":
175
223
  return _context.stop();
176
224
  }
@@ -193,13 +241,13 @@ var useQuotation = function useQuotation(state, dispatch) {
193
241
  return getCartQuotation(params);
194
242
  case 2:
195
243
  data = _context2.sent;
196
- if (data !== null && data !== void 0 && data.data) {
244
+ if (!(!data || !data.length)) {
197
245
  _context2.next = 5;
198
246
  break;
199
247
  }
200
248
  return _context2.abrupt("return");
201
249
  case 5:
202
- _setNewCartValue = setNewCartValue(cartValueRef.current, data.data), isChange = _setNewCartValue.isChange, newCartValue = _setNewCartValue.value, isNotFoundBundle = _setNewCartValue.isNotFoundBundle, notFoundProducts = _setNewCartValue.notFoundProducts;
250
+ _setNewCartValue = setNewCartValue(cartValueRef.current, data), isChange = _setNewCartValue.isChange, newCartValue = _setNewCartValue.value, isNotFoundBundle = _setNewCartValue.isNotFoundBundle, notFoundProducts = _setNewCartValue.notFoundProducts;
203
251
  if (!isNotFoundBundle) {
204
252
  _context2.next = 10;
205
253
  break;
@@ -1,15 +1,15 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["customer_id"];
3
3
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
10
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
15
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
@@ -84,7 +84,7 @@ var Client = function Client() {
84
84
  }, [state.disabledEdit]);
85
85
  var getClients = /*#__PURE__*/function () {
86
86
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
87
- var customer_id, resetParams, _setLoading, _state$client, api, data, list, _payload, customerItem, totalList;
87
+ var customer_id, resetParams, _setLoading, _state$client, api, withKey, data, list, _payload, customerItem, totalList;
88
88
  return _regeneratorRuntime().wrap(function _callee$(_context) {
89
89
  while (1) switch (_context.prev = _context.next) {
90
90
  case 0:
@@ -101,14 +101,20 @@ var Client = function Client() {
101
101
  }
102
102
  // let _setLoading = resetParams.skip === 1 ? setLoading : setLoadLoading;
103
103
  _setLoading(true);
104
- api = state.isFranchisee ? getFranchiseeCustomerList : state.apis.getClientsEs;
105
- _context.next = 6;
106
- return api(_objectSpread(_objectSpread({}, resetParams), !state.isFranchisee ? {
104
+ api = state.isFranchisee ? getFranchiseeCustomerList : state.apis.getClientsEs; // 默认返回用户的联系信息
105
+ withKey = _toConsumableArray((resetParams === null || resetParams === void 0 ? void 0 : resetParams.with) || []);
106
+ if (!withKey.includes('contactsInfo')) {
107
+ withKey.push('contactsInfo');
108
+ }
109
+ _context.next = 8;
110
+ return api(_objectSpread(_objectSpread({}, resetParams), {}, {
111
+ with: withKey
112
+ }, !state.isFranchisee ? {
107
113
  _config: {
108
114
  abort: true
109
115
  }
110
116
  } : {}));
111
- case 6:
117
+ case 8:
112
118
  data = _context.sent;
113
119
  list = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (d) {
114
120
  return _objectSpread(_objectSpread({}, d), {}, {
@@ -145,7 +151,7 @@ var Client = function Client() {
145
151
  setLoadLoading(false);
146
152
  isLoadClient = true;
147
153
  return _context.abrupt("return", {});
148
- case 19:
154
+ case 21:
149
155
  case "end":
150
156
  return _context.stop();
151
157
  }
@@ -420,6 +426,15 @@ var Client = function Client() {
420
426
  // searchChange('');
421
427
  },
422
428
  optionRender: function optionRender(item) {
429
+ console.log('render_optionRender', item);
430
+ // 显示优先级:如果客户中存在email或phone,则优先显示,否则显示联系信息中的email和phone
431
+ var displayEmail = item === null || item === void 0 ? void 0 : item.email;
432
+ var displayPhone = item === null || item === void 0 ? void 0 : item.phone;
433
+ if (!displayEmail && !displayPhone) {
434
+ var _item$contacts_info, _item$contacts_info2;
435
+ displayEmail = item === null || item === void 0 || (_item$contacts_info = item.contacts_info) === null || _item$contacts_info === void 0 || (_item$contacts_info = _item$contacts_info.value) === null || _item$contacts_info === void 0 ? void 0 : _item$contacts_info.email;
436
+ displayPhone = item === null || item === void 0 || (_item$contacts_info2 = item.contacts_info) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.value) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.phone) === null || _item$contacts_info2 === void 0 ? void 0 : _item$contacts_info2.phone;
437
+ }
423
438
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
424
439
  className: "pisell-lowcode__booking-client-list-item-avatar",
425
440
  src: image.ali(item.cover, 100) || undefined,
@@ -432,11 +447,11 @@ var Client = function Client() {
432
447
  className: "pisell-lowcode__booking-client-list-item-info-name"
433
448
  }, getNickname(item)), /*#__PURE__*/React.createElement("div", {
434
449
  className: "pisell-lowcode__booking-client-list-item-info-desc"
435
- }, item.email ? /*#__PURE__*/React.createElement("div", {
450
+ }, displayEmail ? /*#__PURE__*/React.createElement("div", {
436
451
  className: ""
437
- }, item.email) : null, item.phone ? /*#__PURE__*/React.createElement("div", {
452
+ }, displayEmail) : null, displayPhone ? /*#__PURE__*/React.createElement("div", {
438
453
  className: ""
439
- }, item.phone) : null), /*#__PURE__*/React.createElement("div", {
454
+ }, displayPhone) : null), /*#__PURE__*/React.createElement("div", {
440
455
  className: 'pisell-lowcode__booking-client-list-item-info-waiver',
441
456
  title: getWaiverTitle(item.waiver_form)
442
457
  }, (item.waiver_form || []).map(function (item) {
@@ -10,12 +10,7 @@ export var getFranchiseeCustomerInfo = /*#__PURE__*/function () {
10
10
  while (1) switch (_context.prev = _context.next) {
11
11
  case 0:
12
12
  _context.next = 2;
13
- return request.getRequest().get("/shop/franchisee/customer/id", params, {
14
- cache: {
15
- mode: "remote_local",
16
- type: "indexDB"
17
- }
18
- });
13
+ return request.getRequest().get("/shop/franchisee/customer/id", params);
19
14
  case 2:
20
15
  _yield$request$getReq = _context.sent;
21
16
  data = _yield$request$getReq.data;
@@ -38,11 +33,7 @@ export var getFranchiseeCustomerList = /*#__PURE__*/function () {
38
33
  case 0:
39
34
  _context2.next = 2;
40
35
  return request.getRequest().get("/shop/franchisee/customer/select-list", params, {
41
- abort: true,
42
- cache: {
43
- mode: "remote_local",
44
- type: "indexDB"
45
- }
36
+ abort: true
46
37
  });
47
38
  case 2:
48
39
  _yield$request$getReq2 = _context2.sent;
@@ -52,7 +52,7 @@ var useClientFn = function useClientFn(_params) {
52
52
  num: 5,
53
53
  total: 0,
54
54
  search: '',
55
- with: ['formRecord'],
55
+ with: ['formRecord', 'contactsInfo'],
56
56
  relation_form_id: state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.basic) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.appointment_subject) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.form_id
57
57
  }),
58
58
  _useState8 = _slicedToArray(_useState7, 2),
@@ -76,7 +76,7 @@ var useClientFn = function useClientFn(_params) {
76
76
  }, [(_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id]);
77
77
  var getClients = /*#__PURE__*/function () {
78
78
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, returnResult) {
79
- var customer_id, customer_ids, resetParams, _setLoading, _state$client, api, data, list, _payload, customerItem, totalList;
79
+ var customer_id, customer_ids, resetParams, _setLoading, _state$client, api, withKey, data, list, _payload, customerItem, totalList;
80
80
  return _regeneratorRuntime().wrap(function _callee$(_context) {
81
81
  while (1) switch (_context.prev = _context.next) {
82
82
  case 0:
@@ -93,8 +93,12 @@ var useClientFn = function useClientFn(_params) {
93
93
  }
94
94
  _setLoading(true);
95
95
  api = state.isFranchisee ? getFranchiseeCustomerList : state.apis.getClients;
96
- _context.next = 6;
97
- return api(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, resetParams), resetParams.search ? {
96
+ withKey = _toConsumableArray((resetParams === null || resetParams === void 0 ? void 0 : resetParams.with) || []);
97
+ if (!withKey.includes('contactsInfo')) {
98
+ withKey.push('contactsInfo');
99
+ }
100
+ _context.next = 8;
101
+ return api(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, resetParams), resetParams.search ? {
98
102
  num: 10
99
103
  } : {}), state.isFranchisee ? {
100
104
  franchisee_customer_ids: customer_ids
@@ -104,8 +108,10 @@ var useClientFn = function useClientFn(_params) {
104
108
  _config: {
105
109
  abort: true
106
110
  }
107
- } : {}));
108
- case 6:
111
+ } : {}), {}, {
112
+ with: withKey
113
+ }));
114
+ case 8:
109
115
  data = _context.sent;
110
116
  list = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (d) {
111
117
  var _d$form_record;
@@ -120,11 +126,11 @@ var useClientFn = function useClientFn(_params) {
120
126
  });
121
127
  });
122
128
  if (!returnResult) {
123
- _context.next = 10;
129
+ _context.next = 12;
124
130
  break;
125
131
  }
126
132
  return _context.abrupt("return", list);
127
- case 10:
133
+ case 12:
128
134
  _payload = {
129
135
  clients: list
130
136
  }; // 有传递, 则表示新增客户之后刷新列表的, 应该默认选中
@@ -163,7 +169,7 @@ var useClientFn = function useClientFn(_params) {
163
169
  setLoading(false);
164
170
  setLoadLoading(false);
165
171
  return _context.abrupt("return", {});
166
- case 21:
172
+ case 23:
167
173
  case "end":
168
174
  return _context.stop();
169
175
  }
@@ -294,7 +300,7 @@ var useClientFn = function useClientFn(_params) {
294
300
  if (getIsWalkIn(item === null || item === void 0 ? void 0 : item.id)) {
295
301
  return locales.getText('pisell2.text.select-a-customer');
296
302
  }
297
- var firstLastName = item.first_name || item.last_name ? "".concat(item.first_name, " ").concat(item.last_name) : "";
303
+ var firstLastName = item.first_name || item.last_name ? "".concat(item.first_name, " ").concat(item.last_name) : '';
298
304
  return item.name || (item.display_name || '').trim() || (item.nickname || '').trim() || firstLastName.trim() || '';
299
305
  }, [locales.localeMap]);
300
306
  useEffect(function () {
@@ -323,6 +323,7 @@ var SelectDrawer = function SelectDrawer(props, ref) {
323
323
  return _ref4.apply(this, arguments);
324
324
  };
325
325
  }();
326
+ console.log('options7777', options);
326
327
  return /*#__PURE__*/React.createElement(Drawer, {
327
328
  showGoBack: showHeader,
328
329
  title: showHeader && locales.getText('pisell2.text.select-customer'),
@@ -335,7 +336,7 @@ var SelectDrawer = function SelectDrawer(props, ref) {
335
336
  margin: '16px 0',
336
337
  height: 44
337
338
  },
338
- placeholder: locales.getText('pisell2.text.search'),
339
+ placeholder: locales.getText('pisell2.booking.text.search-placeholder'),
339
340
  value: search,
340
341
  allowClear: true,
341
342
  onChange: function onChange(e) {
@@ -376,6 +377,13 @@ var SelectDrawer = function SelectDrawer(props, ref) {
376
377
  delay: 500
377
378
  }, !!options.length ? options.map(function (item) {
378
379
  var _holder$form2;
380
+ var displayEmail = item === null || item === void 0 ? void 0 : item.email;
381
+ var displayPhone = item === null || item === void 0 ? void 0 : item.phone;
382
+ if (!displayEmail && !displayPhone) {
383
+ var _item$contacts_info, _item$contacts_info2;
384
+ displayEmail = item === null || item === void 0 || (_item$contacts_info = item.contacts_info) === null || _item$contacts_info === void 0 || (_item$contacts_info = _item$contacts_info.value) === null || _item$contacts_info === void 0 ? void 0 : _item$contacts_info.email;
385
+ displayPhone = item === null || item === void 0 || (_item$contacts_info2 = item.contacts_info) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.value) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.phone) === null || _item$contacts_info2 === void 0 ? void 0 : _item$contacts_info2.phone;
386
+ }
379
387
  return /*#__PURE__*/React.createElement("div", {
380
388
  className: "vertical-client-select-drawer-content-item",
381
389
  key: item.id
@@ -385,7 +393,7 @@ var SelectDrawer = function SelectDrawer(props, ref) {
385
393
  },
386
394
  cover: item.cover,
387
395
  title: getNickname(item),
388
- desc: [item.email, item.phone],
396
+ desc: [displayEmail, displayPhone],
389
397
  checked: item.id === client.id,
390
398
  style: showPet ? {
391
399
  marginBottom: 6
@@ -262,7 +262,7 @@ var VerticalClient = /*#__PURE__*/forwardRef(function (props, ref) {
262
262
  case 7:
263
263
  _context.next = 9;
264
264
  return getClients({
265
- with: ['formRecord'],
265
+ with: ['formRecord', 'contactsInfo'],
266
266
  relation_form_id: boardConfig === null || boardConfig === void 0 ? void 0 : boardConfig.form_id,
267
267
  skip: 1,
268
268
  num: 20,
@@ -5,5 +5,6 @@ declare const useHolderConfig: (state: any) => {
5
5
  isCustomerSubject: boolean;
6
6
  isWalkInBol: boolean;
7
7
  isShowChangeHolder: boolean;
8
+ holderType: any;
8
9
  };
9
10
  export default useHolderConfig;
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react';
2
2
  import { isWalkIn } from "../../utils";
3
3
  var useHolderConfig = function useHolderConfig(state) {
4
- var _state$bookingConfig2, _state$bookingConfig4, _state$client2;
4
+ var _state$bookingConfig2, _state$bookingConfig4, _state$bookingConfig6, _state$client2;
5
5
  // board设置, 获取预约主体
6
6
  var appointment_subject = useMemo(function () {
7
7
  var _state$bookingConfig;
@@ -16,6 +16,12 @@ var useHolderConfig = function useHolderConfig(state) {
16
16
  var isFormSubject = useMemo(function () {
17
17
  return appointment_subject.type === 'form';
18
18
  }, [appointment_subject.type]);
19
+
20
+ // holder 类型
21
+ var holderType = useMemo(function () {
22
+ var _state$bookingConfig5;
23
+ return (state === null || state === void 0 || (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.holder) === null || _state$bookingConfig5 === void 0 || (_state$bookingConfig5 = _state$bookingConfig5.form) === null || _state$bookingConfig5 === void 0 ? void 0 : _state$bookingConfig5.formType) || 'minors';
24
+ }, [state === null || state === void 0 || (_state$bookingConfig6 = state.bookingConfig) === null || _state$bookingConfig6 === void 0 ? void 0 : _state$bookingConfig6.holder]);
19
25
  var isWalkInBol = useMemo(function () {
20
26
  var _state$client;
21
27
  return isWalkIn(state === null || state === void 0 || (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id);
@@ -34,7 +40,8 @@ var useHolderConfig = function useHolderConfig(state) {
34
40
  isFormSubject: isFormSubject,
35
41
  isCustomerSubject: isCustomerSubject,
36
42
  isWalkInBol: isWalkInBol,
37
- isShowChangeHolder: isShowChangeHolder
43
+ isShowChangeHolder: isShowChangeHolder,
44
+ holderType: holderType
38
45
  };
39
46
  };
40
47
  export default useHolderConfig;
@@ -26,6 +26,7 @@ import "./index.less";
26
26
  import Notes from "./notes";
27
27
  import { Service2Cart } from "./service2";
28
28
  import { isDayBooking, isEventBooking, isTerminalDayBooking } from "./service2/utils";
29
+ import ContactInfoMode from "../info2/service/contactInfoMode";
29
30
  var defaultModules = {
30
31
  client: 1,
31
32
  date: 1,
@@ -36,7 +37,7 @@ var defaultModules = {
36
37
  };
37
38
  locales.init(localeTexts, getLocale());
38
39
  var Info = Provider(function (props) {
39
- var _modal$state2, _modal$state3, _modal$state4;
40
+ var _modal$state2, _modal$state3, _modal$state4, _modal$state5;
40
41
  var style = props.style,
41
42
  globalState = props.globalState,
42
43
  _props$modules = props.modules,
@@ -142,7 +143,7 @@ var Info = Provider(function (props) {
142
143
  source: "info"
143
144
  }, /*#__PURE__*/React.createElement("div", {
144
145
  className: "booking-info"
145
- }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state4 = modal.state) !== null && _modal$state4 !== void 0 && _modal$state4.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
146
+ }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, (modal === null || modal === void 0 || (_modal$state4 = modal.state) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.bookingConfig) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.config) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.cart_settings_tab) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.display_contact_info) === null || _modal$state4 === void 0 ? void 0 : _modal$state4.show_contact_info) === true ? /*#__PURE__*/React.createElement(ContactInfoMode, null) : null, modules.holder && !((_modal$state5 = modal.state) !== null && _modal$state5 !== void 0 && _modal$state5.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
146
147
  loading: globalState.loading,
147
148
  round: true,
148
149
  active: true,
@@ -21,6 +21,11 @@ var _miniRedux = miniRedux({
21
21
  });
22
22
  // return { ...state, client: { ...state.client, ...payload } };
23
23
  },
24
+ setContactsInfo: function setContactsInfo(state, payload) {
25
+ state.setGlobalState({
26
+ contacts_info: _objectSpread(_objectSpread({}, state.contacts_info), payload)
27
+ });
28
+ },
24
29
  setService: function setService(state, payload) {
25
30
  var obj = {};
26
31
  // 拦截, 如果服务列表里 有两个相近时间的服务, 删除最后一个
@@ -10,12 +10,7 @@ export var getFormDetail = /*#__PURE__*/function () {
10
10
  while (1) switch (_context.prev = _context.next) {
11
11
  case 0:
12
12
  _context.next = 2;
13
- return request.getRequest().get("/shop/form/".concat(id), {
14
- cache: {
15
- mode: "remote_local",
16
- type: "indexDB"
17
- }
18
- });
13
+ return request.getRequest().get("/shop/form/".concat(id));
19
14
  case 2:
20
15
  _yield$request$getReq = _context.sent;
21
16
  data = _yield$request$getReq.data;
@@ -1,2 +1,2 @@
1
- declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
1
+ declare const Lists: ({ onEdit, onChange, onAction, isParallelResource, isShowDelete, isShowAmountFooter }: any) => JSX.Element;
2
2
  export default Lists;