@pisell/private-materials 3.0.199 → 3.0.201

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 (200) 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 +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/booking/addons/model.d.ts +1 -1
  12. package/es/components/booking/components/customSelect/index.d.ts +1 -0
  13. package/es/components/booking/components/customSelect/index.js +6 -2
  14. package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
  15. package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
  16. package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  17. package/es/components/booking/components/footer/amount.js +45 -22
  18. package/es/components/booking/components/footer/index.js +84 -40
  19. package/es/components/booking/components/footer/utils.js +243 -32
  20. package/es/components/booking/info/addServiceVariant/index.js +8 -1
  21. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  22. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
  23. package/es/components/booking/info/clientVariant/vertical/index.js +33 -4
  24. package/es/components/booking/info/dateRange/index.d.ts +5 -0
  25. package/es/components/booking/info/dateRange/index.js +98 -0
  26. package/es/components/booking/info/dateRange/index.less +21 -0
  27. package/es/components/booking/info/main.js +20 -8
  28. package/es/components/booking/info/model.js +3 -0
  29. package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
  30. package/es/components/booking/info/pet/ChangePetModal/index.js +119 -0
  31. package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
  32. package/es/components/booking/info/pet/index.js +54 -5
  33. package/es/components/booking/info/service/addService/index.js +142 -22
  34. package/es/components/booking/info/service/addService/index.less +13 -3
  35. package/es/components/booking/info/service/addService/utils.d.ts +11 -2
  36. package/es/components/booking/info/service/addService/utils.js +49 -24
  37. package/es/components/booking/info/service/editService/index.js +255 -44
  38. package/es/components/booking/info/service/editService/index.less +18 -13
  39. package/es/components/booking/info/service2/Lists.d.ts +3 -0
  40. package/es/components/booking/info/service2/Lists.js +158 -0
  41. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  42. package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
  43. package/es/components/booking/info/service2/index.d.ts +3 -0
  44. package/es/components/booking/info/service2/index.js +58 -0
  45. package/es/components/booking/info/service2/status.d.ts +31 -0
  46. package/es/components/booking/info/service2/status.js +78 -0
  47. package/es/components/booking/info/service2/utils.d.ts +145 -0
  48. package/es/components/booking/info/service2/utils.js +438 -0
  49. package/es/components/booking/info/utils.d.ts +9 -0
  50. package/es/components/booking/info/utils.js +13 -0
  51. package/es/components/booking/locales.d.ts +60 -0
  52. package/es/components/booking/locales.js +75 -3
  53. package/es/components/booking/materiels/holder/index.d.ts +7 -0
  54. package/es/components/booking/materiels/holder/index.js +51 -0
  55. package/es/components/booking/model.d.ts +4 -1
  56. package/es/components/booking/model.js +4 -2
  57. package/es/components/booking/payments/index.d.ts +1 -1
  58. package/es/components/booking/utils.d.ts +12 -3
  59. package/es/components/booking/utils.js +139 -23
  60. package/es/components/eftpos/form/index.js +6 -12
  61. package/es/components/eftpos/group/index.d.ts +2 -1
  62. package/es/components/eftpos/group/index.js +2 -1
  63. package/es/components/eftpos/index.js +2 -2
  64. package/es/components/eftposPay/helper.d.ts +0 -1
  65. package/es/components/eftposPay/helper.js +0 -14
  66. package/es/components/eftposPay/tyro/index.js +20 -51
  67. package/es/components/shoppingCart/Provider.d.ts +3 -0
  68. package/es/components/shoppingCart/Provider.js +86 -0
  69. package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  70. package/es/components/shoppingCart/components/Cart/Product.js +96 -0
  71. package/es/components/shoppingCart/components/Cart/index.d.ts +4 -0
  72. package/es/components/shoppingCart/components/Cart/index.js +72 -0
  73. package/es/components/shoppingCart/components/Cart/index.less +68 -0
  74. package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
  75. package/es/components/shoppingCart/components/Empty/index.js +14 -0
  76. package/es/components/shoppingCart/components/Empty/index.less +19 -0
  77. package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
  78. package/es/components/shoppingCart/components/Render/index.js +68 -0
  79. package/es/components/shoppingCart/components/Render/index.less +2 -0
  80. package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
  81. package/es/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
  82. package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
  83. package/es/components/shoppingCart/hooks/useAddService.d.ts +3 -0
  84. package/es/components/shoppingCart/hooks/useAddService.js +23 -0
  85. package/es/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
  86. package/es/components/shoppingCart/hooks/useClearCart.js +54 -0
  87. package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
  88. package/es/components/shoppingCart/hooks/useContext.js +5 -0
  89. package/es/components/shoppingCart/index.d.ts +4 -0
  90. package/es/components/shoppingCart/index.js +24 -0
  91. package/es/components/shoppingCart/locales.d.ts +33 -0
  92. package/es/components/shoppingCart/locales.js +38 -0
  93. package/es/components/shoppingCart/mock.d.ts +40 -0
  94. package/es/components/shoppingCart/mock.js +40 -0
  95. package/es/components/shoppingCart/status.d.ts +2 -0
  96. package/es/components/shoppingCart/status.js +22 -0
  97. package/es/components/shoppingCart/type.d.ts +39 -0
  98. package/es/components/shoppingCart/type.js +1 -0
  99. package/es/components/shoppingCart/utils.d.ts +63 -0
  100. package/es/components/shoppingCart/utils.js +119 -0
  101. package/es/index.d.ts +1 -0
  102. package/es/index.js +2 -1
  103. package/lib/components/booking/addons/model.d.ts +1 -1
  104. package/lib/components/booking/components/customSelect/index.d.ts +1 -0
  105. package/lib/components/booking/components/customSelect/index.js +6 -2
  106. package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
  107. package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
  108. package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
  109. package/lib/components/booking/components/footer/amount.js +26 -8
  110. package/lib/components/booking/components/footer/index.js +25 -4
  111. package/lib/components/booking/components/footer/utils.js +157 -31
  112. package/lib/components/booking/info/addServiceVariant/index.js +5 -0
  113. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
  114. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
  115. package/lib/components/booking/info/clientVariant/vertical/index.js +36 -10
  116. package/lib/components/booking/info/dateRange/index.d.ts +5 -0
  117. package/lib/components/booking/info/dateRange/index.js +111 -0
  118. package/lib/components/booking/info/dateRange/index.less +21 -0
  119. package/lib/components/booking/info/main.js +11 -4
  120. package/lib/components/booking/info/model.js +3 -0
  121. package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
  122. package/lib/components/booking/info/pet/ChangePetModal/index.js +111 -0
  123. package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
  124. package/lib/components/booking/info/pet/index.js +61 -25
  125. package/lib/components/booking/info/service/addService/index.js +107 -34
  126. package/lib/components/booking/info/service/addService/index.less +13 -3
  127. package/lib/components/booking/info/service/addService/utils.d.ts +11 -2
  128. package/lib/components/booking/info/service/addService/utils.js +31 -10
  129. package/lib/components/booking/info/service/editService/index.js +293 -125
  130. package/lib/components/booking/info/service/editService/index.less +18 -13
  131. package/lib/components/booking/info/service2/Lists.d.ts +3 -0
  132. package/lib/components/booking/info/service2/Lists.js +113 -0
  133. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
  134. package/lib/components/booking/info/service2/hooks/useSelectPet.js +50 -0
  135. package/lib/components/booking/info/service2/index.d.ts +3 -0
  136. package/lib/components/booking/info/service2/index.js +75 -0
  137. package/lib/components/booking/info/service2/status.d.ts +31 -0
  138. package/lib/components/booking/info/service2/status.js +81 -0
  139. package/lib/components/booking/info/service2/utils.d.ts +145 -0
  140. package/lib/components/booking/info/service2/utils.js +322 -0
  141. package/lib/components/booking/info/utils.d.ts +9 -0
  142. package/lib/components/booking/info/utils.js +6 -0
  143. package/lib/components/booking/locales.d.ts +60 -0
  144. package/lib/components/booking/locales.js +63 -3
  145. package/lib/components/booking/materiels/holder/index.d.ts +7 -0
  146. package/lib/components/booking/materiels/holder/index.js +65 -0
  147. package/lib/components/booking/model.d.ts +4 -1
  148. package/lib/components/booking/model.js +4 -2
  149. package/lib/components/booking/payments/index.d.ts +1 -1
  150. package/lib/components/booking/utils.d.ts +12 -3
  151. package/lib/components/booking/utils.js +87 -15
  152. package/lib/components/eftpos/form/index.js +6 -12
  153. package/lib/components/eftpos/group/index.d.ts +2 -1
  154. package/lib/components/eftpos/group/index.js +1 -0
  155. package/lib/components/eftpos/index.js +2 -2
  156. package/lib/components/eftposPay/helper.d.ts +0 -1
  157. package/lib/components/eftposPay/helper.js +0 -21
  158. package/lib/components/eftposPay/tyro/index.js +7 -36
  159. package/lib/components/shoppingCart/Provider.d.ts +3 -0
  160. package/lib/components/shoppingCart/Provider.js +110 -0
  161. package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  162. package/lib/components/shoppingCart/components/Cart/Product.js +89 -0
  163. package/lib/components/shoppingCart/components/Cart/index.d.ts +4 -0
  164. package/lib/components/shoppingCart/components/Cart/index.js +77 -0
  165. package/lib/components/shoppingCart/components/Cart/index.less +68 -0
  166. package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
  167. package/lib/components/shoppingCart/components/Empty/index.js +43 -0
  168. package/lib/components/shoppingCart/components/Empty/index.less +19 -0
  169. package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
  170. package/lib/components/shoppingCart/components/Render/index.js +79 -0
  171. package/lib/components/shoppingCart/components/Render/index.less +2 -0
  172. package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
  173. package/lib/components/shoppingCart/components/SelectHolderModal/index.js +116 -0
  174. package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
  175. package/lib/components/shoppingCart/hooks/useAddService.d.ts +3 -0
  176. package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
  177. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
  178. package/lib/components/shoppingCart/hooks/useClearCart.js +71 -0
  179. package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
  180. package/lib/components/shoppingCart/hooks/useContext.js +31 -0
  181. package/lib/components/shoppingCart/index.d.ts +4 -0
  182. package/lib/components/shoppingCart/index.js +60 -0
  183. package/lib/components/shoppingCart/locales.d.ts +33 -0
  184. package/lib/components/shoppingCart/locales.js +56 -0
  185. package/lib/components/shoppingCart/mock.d.ts +40 -0
  186. package/lib/components/shoppingCart/mock.js +76 -0
  187. package/lib/components/shoppingCart/status.d.ts +2 -0
  188. package/lib/components/shoppingCart/status.js +60 -0
  189. package/lib/components/shoppingCart/type.d.ts +39 -0
  190. package/lib/components/shoppingCart/type.js +17 -0
  191. package/lib/components/shoppingCart/utils.d.ts +63 -0
  192. package/lib/components/shoppingCart/utils.js +92 -0
  193. package/lib/index.d.ts +1 -0
  194. package/lib/index.js +3 -0
  195. package/lowcode/shopping-cart/meta.ts +98 -0
  196. package/package.json +4 -4
  197. package/es/components/eftpos/receipt/index.d.ts +0 -24
  198. package/es/components/eftpos/receipt/index.js +0 -96
  199. package/lib/components/eftpos/receipt/index.d.ts +0 -24
  200. package/lib/components/eftpos/receipt/index.js +0 -88
@@ -34,6 +34,11 @@ export default {
34
34
  'pisell2.text.start_time': 'Start time',
35
35
  'pisell2.text.duration': 'Duration',
36
36
  'pisell2.text.resource': 'Resource',
37
+ 'pisell2.text.end_time': 'End time',
38
+ 'pisell2.text.start_date': 'Start date',
39
+ 'pisell2.text.end_date': 'End date',
40
+ 'pisell2.text.quantity': 'Quantity',
41
+ 'pisell2.text.holder': 'Holder',
37
42
  'pisell2.text.warnings': 'Warnings',
38
43
  'pisell2.text.order-notes': 'Order notes',
39
44
  'pisell2.text.add-order-notes': 'Add Order note',
@@ -49,6 +54,9 @@ export default {
49
54
  'pisell2.text.updated': ' updated',
50
55
  'pisell2.text.appointment-updated': 'Appointment updated',
51
56
  'pisell2.text.please-create-an-appointment-first': 'Please create an appointment first',
57
+ 'pisell2.text.day': function pisell2TextDay(val) {
58
+ return "".concat(val > 1 ? 'days' : 'day');
59
+ },
52
60
  'pisell2.text.min': 'min',
53
61
  'pisell2.text.h': 'h',
54
62
  'pisell2.text.other': 'Other',
@@ -250,7 +258,23 @@ export default {
250
258
  'pisell2.booking.info.text.clear-all': "Clear all",
251
259
  'pisell2.booking.info.text.create-new': "Create new",
252
260
  'pisell2.booking.info.text.form-agreement-yes': "Yes",
253
- 'pisell2.booking.info.text.form-agreement-no': "No"
261
+ 'pisell2.booking.info.text.form-agreement-no': "No",
262
+ 'pisell2.text.open.items': 'Open items',
263
+ 'pisell2.text.cart.of': function pisell2TextCartOf(val) {
264
+ return "Cart of ".concat(val);
265
+ },
266
+ 'pisell2.text.no.selected': 'No items selected',
267
+ 'pisell2.text.select.items': 'Select items',
268
+ 'pisell2.text.edit-select-service': 'Edit items',
269
+ 'pisell2.text.missing.reservation.title': 'Missing Reservation Type',
270
+ 'pisell2.text.missing.reservation.content': 'You have not selected a reservation type, Please select one before proceeding.',
271
+ 'pisell2.text.confirm': 'Confirm',
272
+ 'pisell2.text.cancel': 'Cancel',
273
+ 'pisell2.text.change.pet.title': 'You have changed the holder information. Do you want to keep the items under their name?',
274
+ 'pisell2.text.change.pet.content': 'Selecting “Keep” will move the items to Open Items. Selecting “Discard” will clear all items under the holder’s name.',
275
+ 'pisell2.text.change.pet.content1': 'Reservation-type items cannot be added to the Open Items cart and will be removed.',
276
+ 'pisell2.text.change.pet.confirm': 'Keep (Add to open items)',
277
+ 'pisell2.text.change.pet.cancel': 'Discard (Clear items)'
254
278
  },
255
279
  'zh-CN': {
256
280
  'pisell2.text.refunded-amount': '已退金额',
@@ -289,6 +313,11 @@ export default {
289
313
  'pisell2.text.discount': '折扣',
290
314
  'pisell2.text.discount-reason': '折扣原因',
291
315
  'pisell2.text.start_time': '开始时间',
316
+ 'pisell2.text.end_time': '结束时间',
317
+ 'pisell2.text.start_date': '开始日期',
318
+ 'pisell2.text.end_date': '结束日期',
319
+ 'pisell2.text.quantity': '数量',
320
+ 'pisell2.text.holder': '预约主体',
292
321
  'pisell2.text.duration': '时长',
293
322
  'pisell2.text.resource': '资源',
294
323
  'pisell2.text.warnings': '个警告',
@@ -309,6 +338,9 @@ export default {
309
338
  'pisell2.text.appointment-updated': '预约已更新',
310
339
  'pisell2.text.updated': '已更新',
311
340
  'pisell2.text.please-create-an-appointment-first': '请先创建预约',
341
+ 'pisell2.text.day': function pisell2TextDay(val) {
342
+ return '天';
343
+ },
312
344
  'pisell2.text.min': '分钟',
313
345
  'pisell2.text.h': '小时',
314
346
  'pisell2.text.other': '未分类',
@@ -507,7 +539,23 @@ export default {
507
539
  'pisell2.booking.info.text.clear-all': "清空",
508
540
  'pisell2.booking.info.text.create-new': "新建",
509
541
  'pisell2.booking.info.text.form-agreement-yes': "是",
510
- 'pisell2.booking.info.text.form-agreement-no': "否"
542
+ 'pisell2.booking.info.text.form-agreement-no': "否",
543
+ 'pisell2.text.open.items': '公共购物车',
544
+ 'pisell2.text.cart.of': function pisell2TextCartOf(val) {
545
+ return "".concat(val, "\u7684\u8D2D\u7269\u8F66");
546
+ },
547
+ 'pisell2.text.no.selected': '未选择任何项目',
548
+ 'pisell2.text.select.items': '选择项目',
549
+ 'pisell2.text.edit-select-service': '编辑项目',
550
+ 'pisell2.text.missing.reservation.title': '缺少预约类型',
551
+ 'pisell2.text.missing.reservation.content': '您尚未选择预约类型,请在继续操作前选择。',
552
+ 'pisell2.text.confirm': '确定',
553
+ 'pisell2.text.cancel': '取消',
554
+ 'pisell2.text.change.pet.title': '您已变更持有人信息,是否保留该持有人名下的商品?',
555
+ 'pisell2.text.change.pet.content': '选择“保留”将商品添加到未分配商品(公共购物车)中;选择“不保留”将清空该持有人名下的所有商品。',
556
+ 'pisell2.text.change.pet.content1': '预约类商品无法添加到公共购物车,将会被删除。',
557
+ 'pisell2.text.change.pet.confirm': '保留(添加到未分配中)',
558
+ 'pisell2.text.change.pet.cancel': '不保留(清空商品)'
511
559
  },
512
560
  'zh-HK': {
513
561
  'pisell2.text.refunded-amount': '已退金額',
@@ -546,6 +594,11 @@ export default {
546
594
  'pisell2.text.discount': '折扣',
547
595
  'pisell2.text.discount-reason': '折扣原因',
548
596
  'pisell2.text.start_time': '開始時間',
597
+ 'pisell2.text.end_time': '結束時間',
598
+ 'pisell2.text.start_date': '開始日期',
599
+ 'pisell2.text.end_date': '結束日期',
600
+ 'pisell2.text.quantity': '數量',
601
+ 'pisell2.text.holder': '預約主體',
549
602
  'pisell2.text.duration': '時長',
550
603
  'pisell2.text.resource': '資源',
551
604
  'pisell2.text.warnings': '個警告',
@@ -564,6 +617,9 @@ export default {
564
617
  'pisell2.text.appointment-updated': '預約已更新',
565
618
  'pisell2.text.updated': '已更新',
566
619
  'pisell2.text.please-create-an-appointment-first': '請先創建預約',
620
+ 'pisell2.text.day': function pisell2TextDay(val) {
621
+ return '天';
622
+ },
567
623
  'pisell2.text.min': '分鍾',
568
624
  'pisell2.text.h': '小時',
569
625
  'pisell2.text.other': '未分類',
@@ -764,6 +820,22 @@ export default {
764
820
  'pisell2.booking.info.text.clear-all': "清空",
765
821
  'pisell2.booking.info.text.create-new': "新建",
766
822
  'pisell2.booking.info.text.form-agreement-yes': "是",
767
- 'pisell2.booking.info.text.form-agreement-no': "否"
823
+ 'pisell2.booking.info.text.form-agreement-no': "否",
824
+ 'pisell2.text.open.items': '公共購物車',
825
+ 'pisell2.text.cart.of': function pisell2TextCartOf(val) {
826
+ return "".concat(val, "\u7684\u8CFC\u7269\u8ECA");
827
+ },
828
+ 'pisell2.text.no.selected': '未選擇任何項目',
829
+ 'pisell2.text.select.items': '選擇項目',
830
+ 'pisell2.text.edit-select-service': '編輯項目',
831
+ 'pisell2.text.missing.reservation.title': '缺少預約類型',
832
+ 'pisell2.text.missing.reservation.content': '您尚未選擇預約類型,請在繼續操作前選擇。',
833
+ 'pisell2.text.confirm': '確定',
834
+ 'pisell2.text.cancel': '取消',
835
+ 'pisell2.text.change.pet.title': '您已變更持有人信息,是否保留該持有人名下的商品?',
836
+ 'pisell2.text.change.pet.content': '選擇“保留”將商品添加到未分配商品(公共購物車)中;選擇“不保留”將清空該持有人名下的所有商品。',
837
+ 'pisell2.text.change.pet.content1': '預約類商品無法添加到公共購物車,將會被刪除。',
838
+ 'pisell2.text.change.pet.confirm': '保留(添加到未分配中)',
839
+ 'pisell2.text.change.pet.cancel': '不保留(清空商品)'
768
840
  }
769
841
  };
@@ -0,0 +1,7 @@
1
+ import { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ interface HolderProps extends SelectProps {
4
+ selectProps?: SelectProps;
5
+ }
6
+ declare const Holder: (props: HolderProps) => React.JSX.Element;
7
+ export default Holder;
@@ -0,0 +1,51 @@
1
+ var _excluded = ["selectProps"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ 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; }
4
+ 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; }
5
+ import { Select } from 'antd';
6
+ import { Context } from "../../info/model";
7
+ import React, { useCallback, useMemo, useContext } from 'react';
8
+ import useSelectPet from "../../info/service2/hooks/useSelectPet";
9
+ var Holder = function Holder(props) {
10
+ var _state$pet;
11
+ var selectProps = props.selectProps,
12
+ resetProps = _objectWithoutProperties(props, _excluded);
13
+ var _useContext = useContext(Context),
14
+ state = _useContext.state;
15
+ var _useSelectPet = useSelectPet(state),
16
+ holderLists = _useSelectPet.holderLists;
17
+
18
+ /**
19
+ * @title: holders数据
20
+ * @description:
21
+ * @param {*} useMemo
22
+ * @return {*}
23
+ * @Author: WangHan
24
+ * @Date: 2024-12-02 22:30
25
+ */
26
+ var holders = useMemo(function () {
27
+ var lists = holderLists === null || holderLists === void 0 ? void 0 : holderLists.filter(function (d) {
28
+ return (d === null || d === void 0 ? void 0 : d.id) > 0;
29
+ });
30
+ if (!(lists !== null && lists !== void 0 && lists.length)) return [];
31
+ return lists.map(function (d) {
32
+ return {
33
+ value: d === null || d === void 0 ? void 0 : d.id,
34
+ label: d === null || d === void 0 ? void 0 : d.main_field
35
+ };
36
+ });
37
+ }, [state === null || state === void 0 ? void 0 : (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : _state$pet.value]);
38
+ var renderOptions = useCallback(function (array) {
39
+ var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'value';
40
+ var label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'label';
41
+ return array.map(function (d) {
42
+ return /*#__PURE__*/React.createElement(Select.Option, {
43
+ value: d[value],
44
+ key: d[value],
45
+ disabled: d.disabled
46
+ }, d[label]);
47
+ });
48
+ }, []);
49
+ return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(holders));
50
+ };
51
+ export default Holder;
@@ -29,6 +29,7 @@ export interface FormState {
29
29
  };
30
30
  date: {
31
31
  value: any;
32
+ end_date: any;
32
33
  edit: boolean;
33
34
  };
34
35
  service: {
@@ -75,7 +76,7 @@ export interface FormState {
75
76
  bookingId: string | number;
76
77
  bookingDetail: any;
77
78
  channelDisabledEdit: boolean;
78
- renderType?: 'eventBooking';
79
+ renderType?: 'eventBooking' | 'dayBooking';
79
80
  modalOpen?: boolean;
80
81
  isTerminal?: boolean;
81
82
  isFranchisee?: boolean;
@@ -96,6 +97,8 @@ export interface FormState {
96
97
  /** 是否terminal创建booking页面 */
97
98
  isBookingCreatePage?: boolean;
98
99
  loading: boolean;
100
+ isTerminalDayBookingPage?: boolean;
101
+ activeCartId?: any[];
99
102
  }
100
103
  export declare const walkInData: {
101
104
  id: number;
@@ -42,7 +42,8 @@ var defaultState = {
42
42
  value: walkInData
43
43
  },
44
44
  date: {
45
- value: dayjs()
45
+ value: dayjs(),
46
+ end_date: dayjs().add(1, 'days')
46
47
  },
47
48
  service: {
48
49
  addModal: false,
@@ -92,7 +93,8 @@ var defaultState = {
92
93
  action: function action(props) {
93
94
  console.log(props);
94
95
  },
95
- bookingId: 0
96
+ bookingId: 0,
97
+ activeCartId: [0]
96
98
  };
97
99
  var _miniRedux = miniRedux({
98
100
  namespace: 'state',
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Payments: any;
8
+ declare const Payments: (props: any) => any;
9
9
  export default Payments;
@@ -21,7 +21,7 @@ export declare const request: Request;
21
21
  * @Author: zhiwei.Wang
22
22
  * @Date: 2024-04-26 14:00
23
23
  */
24
- export declare const getDiscountTime: (service_times: number) => string;
24
+ export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
25
25
  /**
26
26
  * @title: 时间切片
27
27
  * @description:
@@ -31,7 +31,7 @@ export declare const getDiscountTime: (service_times: number) => string;
31
31
  * @Author: zhiwei.Wang
32
32
  * @Date: 2024-04-26 13:59
33
33
  */
34
- export declare const sliceDayIntoFiveMinutes: (config: any, locale: string) => {
34
+ export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
35
35
  timeSlices: {
36
36
  label: string;
37
37
  value: string;
@@ -115,7 +115,7 @@ export declare const getServiceTimes: (service: any) => {
115
115
  startDate: dayjs.Dayjs;
116
116
  endDate: dayjs.Dayjs;
117
117
  };
118
- export declare const getErrorList: (resource: any, cacheItem: any) => {
118
+ export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
119
119
  label: any;
120
120
  type: string;
121
121
  }[];
@@ -131,6 +131,15 @@ export declare const formatResource: (resourceItem: any, cacheItem?: any, format
131
131
  export declare const getLastServer: (list: any) => any;
132
132
  export declare const getCacheParams: () => any;
133
133
  export declare const deleteCacheParams: () => void;
134
+ /**
135
+ * @title: 获取跨日预约的时长
136
+ * @description:
137
+ * @param {any} cacheItem
138
+ * @return {*}
139
+ * @Author: WangHan
140
+ * @Date: 2024-12-01 22:43
141
+ */
142
+ export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
134
143
  /**
135
144
  * @title: 创建一个服务商品
136
145
  * @description:
@@ -15,6 +15,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
15
15
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
16
  import dayjs from 'dayjs';
17
17
  import { locales } from '@pisell/utils';
18
+ import { isDayBooking, formatDayDate } from "./info/service2/utils";
18
19
  import { intersectionBy } from 'lodash';
19
20
  var Request = /*#__PURE__*/function () {
20
21
  function Request() {
@@ -44,10 +45,15 @@ export var request = new Request();
44
45
  * @Author: zhiwei.Wang
45
46
  * @Date: 2024-04-26 14:00
46
47
  */
47
- export var getDiscountTime = function getDiscountTime(service_times) {
48
- if (!service_times) {
48
+ export var getDiscountTime = function getDiscountTime(service_times, isDay) {
49
+ if (!service_times || service_times < 0) {
49
50
  return '';
50
51
  }
52
+
53
+ // 跨日预约
54
+ if (isDay) {
55
+ return "".concat(service_times, " ").concat(locales.getText('pisell2.text.day')(service_times));
56
+ }
51
57
  if (service_times < 60) {
52
58
  return "".concat(service_times, " ").concat(locales.getText('pisell2.text.min'));
53
59
  } else {
@@ -71,7 +77,7 @@ export var getDiscountTime = function getDiscountTime(service_times) {
71
77
  * @Author: zhiwei.Wang
72
78
  * @Date: 2024-04-26 13:59
73
79
  */
74
- export var sliceDayIntoFiveMinutes = function sliceDayIntoFiveMinutes(config, locale) {
80
+ export var sliceDayIntoFiveMinutes = function sliceDayIntoFiveMinutes(config, locale, isDay) {
75
81
  var _locale = locale;
76
82
  var dayjsLocale = _locale === 'en-US' || _locale === 'en' ? 'en' : 'zh-cn';
77
83
  dayjs.locale(dayjsLocale);
@@ -82,12 +88,34 @@ export var sliceDayIntoFiveMinutes = function sliceDayIntoFiveMinutes(config, lo
82
88
  var timeSlices = [];
83
89
  var durationSlicesBasedOnTime = [];
84
90
  var currentTime = startTime;
91
+
92
+ // 跨日预约
93
+ if (isDay) {
94
+ var currentDay = 1;
95
+ while (currentDay <= 30) {
96
+ var timeLabel = currentTime.format('hh:mm A');
97
+ var timeValue = currentTime.format('HH:mm');
98
+ timeSlices.push({
99
+ label: timeLabel,
100
+ value: timeValue
101
+ });
102
+ durationSlicesBasedOnTime.push({
103
+ label: "".concat(currentDay, " ").concat(locales.getText('pisell2.text.day')(currentDay)),
104
+ value: currentDay
105
+ });
106
+ currentDay++;
107
+ }
108
+ return {
109
+ timeSlices: timeSlices,
110
+ durationSlicesBasedOnTime: durationSlicesBasedOnTime
111
+ };
112
+ }
85
113
  while (currentTime.isBefore(endTime)) {
86
- var timeLabel = currentTime.format('hh:mm A');
87
- var timeValue = currentTime.format('HH:mm');
114
+ var _timeLabel = currentTime.format('hh:mm A');
115
+ var _timeValue = currentTime.format('HH:mm');
88
116
  timeSlices.push({
89
- label: timeLabel,
90
- value: timeValue
117
+ label: _timeLabel,
118
+ value: _timeValue
91
119
  });
92
120
  var nextTime = currentTime.add(timeSlice, 'minute');
93
121
  var durationValue = nextTime.diff(startTime, 'minute');
@@ -276,6 +304,29 @@ export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cach
276
304
  * @Date: 2024-01-09 13:57
277
305
  */
278
306
  export var formatTimes = function formatTimes(resourceItem, cacheItem) {
307
+ var _cacheItem$_extend;
308
+ if ((cacheItem === null || cacheItem === void 0 ? void 0 : (_cacheItem$_extend = cacheItem._extend) === null || _cacheItem$_extend === void 0 ? void 0 : _cacheItem$_extend.sub_type) === 'days') {
309
+ var isResourceItem = (resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.form_record_id) > 0;
310
+
311
+ // 是否在最大预约数量的区间内
312
+ var isMaxLimitRange = (resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.sold_out) === 1;
313
+
314
+ // 是否在日期范围内
315
+ var isDateRange = (resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.available_status) === 1;
316
+
317
+ // 是否可用
318
+ var isUsable = isDateRange && !isMaxLimitRange;
319
+ var usableTime = {
320
+ isMaxLimitRange: isMaxLimitRange,
321
+ isDateRange: isDateRange,
322
+ isUsable: isResourceItem ? isUsable : true
323
+ };
324
+ resourceItem._extend = _objectSpread(_objectSpread({}, resourceItem._extend), {}, {
325
+ usableTime: usableTime
326
+ });
327
+ return resourceItem;
328
+ }
329
+
279
330
  // 可用的time列表
280
331
  var usableTimes = [];
281
332
  var _resourceItem = _objectSpread({}, resourceItem);
@@ -435,7 +486,7 @@ export var getServiceTimes = function getServiceTimes(service) {
435
486
  endDate: endDate
436
487
  };
437
488
  };
438
- export var getErrorList = function getErrorList(resource, cacheItem) {
489
+ export var getErrorList = function getErrorList(resource, cacheItem, isDay) {
439
490
  if (!(cacheItem !== null && cacheItem !== void 0 && cacheItem.id)) {
440
491
  return [{
441
492
  label: locales.getText('pisell2.text.no-product-added'),
@@ -448,7 +499,7 @@ export var getErrorList = function getErrorList(resource, cacheItem) {
448
499
  var list = [];
449
500
  // 当前资源不可用
450
501
  if (!resource.usable) {
451
- var _resource$_extend, _resource$_extend2;
502
+ var _resource$_extend, _resource$_extend2, _resource$_extend2$us, _resource$_extend3;
452
503
  // 挂接的商品不可用
453
504
  if (!(resource !== null && resource !== void 0 && (_resource$_extend = resource._extend) !== null && _resource$_extend !== void 0 && _resource$_extend.usableProduct)) {
454
505
  list.push({
@@ -456,23 +507,35 @@ export var getErrorList = function getErrorList(resource, cacheItem) {
456
507
  type: 'product'
457
508
  });
458
509
  }
459
- var _getServiceTimes = getServiceTimes(cacheItem),
460
- startDate = _getServiceTimes.startDate,
461
- endDate = _getServiceTimes.endDate;
462
- // 如果跨天 结束时间前面加一个明天
463
- var startText = startDate.format('hh:mm A');
464
- var endText = endDate.format('hh:mm A');
465
- if (dayjs(endDate).isAfter(startDate, 'day')) {
466
- endText = locales.getText('pisell1.text.tomorrow') + endText;
510
+ var startText = '';
511
+ var endText = '';
512
+
513
+ // 跨日预约
514
+ if (isDay) {
515
+ var _cacheItem$_extend2 = cacheItem === null || cacheItem === void 0 ? void 0 : cacheItem._extend,
516
+ start_date = _cacheItem$_extend2.start_date,
517
+ end_date = _cacheItem$_extend2.end_date;
518
+ startText = start_date === null || start_date === void 0 ? void 0 : start_date.format('YYYY-MM-DD');
519
+ endText = end_date ? end_date === null || end_date === void 0 ? void 0 : end_date.format('YYYY-MM-DD') : '';
520
+ } else {
521
+ var _getServiceTimes = getServiceTimes(cacheItem),
522
+ startDate = _getServiceTimes.startDate,
523
+ endDate = _getServiceTimes.endDate;
524
+ // 如果跨天 结束时间前面加一个明天
525
+ startText = startDate.format('hh:mm A');
526
+ endText = endDate.format('hh:mm A');
527
+ if (dayjs(endDate).isAfter(startDate, 'day')) {
528
+ endText = locales.getText('pisell1.text.tomorrow') + endText;
529
+ }
467
530
  }
468
- if (!((_resource$_extend2 = resource._extend) !== null && _resource$_extend2 !== void 0 && _resource$_extend2.usableTime)) {
531
+ if (isDay ? !((_resource$_extend2 = resource._extend) !== null && _resource$_extend2 !== void 0 && (_resource$_extend2$us = _resource$_extend2.usableTime) !== null && _resource$_extend2$us !== void 0 && _resource$_extend2$us.isDateRange) : !((_resource$_extend3 = resource._extend) !== null && _resource$_extend3 !== void 0 && _resource$_extend3.usableTime)) {
469
532
  list.push({
470
533
  label: locales.getText('pisell1.text.resource-error-message-2')(resource.labelText, startText, endText),
471
534
  type: 'time'
472
535
  });
473
536
  } else {
474
- var _resource$_extend3;
475
- if (!((_resource$_extend3 = resource._extend) !== null && _resource$_extend3 !== void 0 && _resource$_extend3.usableTime._extend.isMaxLimitRange)) {
537
+ var _resource$_extend4, _resource$_extend4$us, _resource$_extend5, _resource$_extend5$us, _resource$_extend5$us2;
538
+ if (isDay ? (_resource$_extend4 = resource._extend) === null || _resource$_extend4 === void 0 ? void 0 : (_resource$_extend4$us = _resource$_extend4.usableTime) === null || _resource$_extend4$us === void 0 ? void 0 : _resource$_extend4$us.isMaxLimitRange : !((_resource$_extend5 = resource._extend) !== null && _resource$_extend5 !== void 0 && (_resource$_extend5$us = _resource$_extend5.usableTime) !== null && _resource$_extend5$us !== void 0 && (_resource$_extend5$us2 = _resource$_extend5$us._extend) !== null && _resource$_extend5$us2 !== void 0 && _resource$_extend5$us2.isMaxLimitRange)) {
476
539
  list.push({
477
540
  label: locales.getText('pisell1.text.resource-error-message-3')(resource.labelText, startText, endText),
478
541
  type: 'limit'
@@ -492,6 +555,7 @@ export var getErrorList = function getErrorList(resource, cacheItem) {
492
555
  * @Date: 2024-01-09 13:40
493
556
  */
494
557
  export var formatResource = function formatResource(resourceItem, cacheItem, formatLabel) {
558
+ var _cacheItem$_extend3;
495
559
  // 当前资源
496
560
  var _resourceItem = _objectSpread({}, resourceItem);
497
561
 
@@ -504,6 +568,12 @@ export var formatResource = function formatResource(resourceItem, cacheItem, for
504
568
  // 格式化label
505
569
  _resourceItem.labelText = _resourceItem.room_name || _resourceItem.name;
506
570
  var usable = _resourceItem._extend.usableTime && _resourceItem._extend.usableProduct;
571
+
572
+ // 跨日预约
573
+ if ((cacheItem === null || cacheItem === void 0 ? void 0 : (_cacheItem$_extend3 = cacheItem._extend) === null || _cacheItem$_extend3 === void 0 ? void 0 : _cacheItem$_extend3.sub_type) === 'days') {
574
+ var _resourceItem$_extend, _resourceItem$_extend2, _resourceItem$_extend3;
575
+ usable = ((_resourceItem$_extend = _resourceItem._extend) === null || _resourceItem$_extend === void 0 ? void 0 : (_resourceItem$_extend2 = _resourceItem$_extend.usableTime) === null || _resourceItem$_extend2 === void 0 ? void 0 : _resourceItem$_extend2.isUsable) && ((_resourceItem$_extend3 = _resourceItem._extend) === null || _resourceItem$_extend3 === void 0 ? void 0 : _resourceItem$_extend3.usableProduct);
576
+ }
507
577
  _resourceItem.usable = usable;
508
578
  if (formatLabel) {
509
579
  _resourceItem.label = formatLabel(_resourceItem);
@@ -525,6 +595,28 @@ export var deleteCacheParams = function deleteCacheParams() {
525
595
  sessionStorage.removeItem('pisell2.booking.serviceParams');
526
596
  };
527
597
 
598
+ /**
599
+ * @title: 获取跨日预约的时长
600
+ * @description:
601
+ * @param {any} cacheItem
602
+ * @return {*}
603
+ * @Author: WangHan
604
+ * @Date: 2024-12-01 22:43
605
+ */
606
+ export var getDays = function getDays(cacheItem, type) {
607
+ var _cacheItem$_extend4, _cacheItem$_extend5;
608
+ // 计算天数
609
+ if (type === 'days') {
610
+ var _formatDayDate = formatDayDate(cacheItem._extend),
611
+ start_date = _formatDayDate.start_date,
612
+ end_date = _formatDayDate.end_date;
613
+ return end_date.diff(start_date, 'day');
614
+ }
615
+ var startDate = dayjs((_cacheItem$_extend4 = cacheItem._extend) === null || _cacheItem$_extend4 === void 0 ? void 0 : _cacheItem$_extend4.start_date);
616
+ var endDate = dayjs((_cacheItem$_extend5 = cacheItem._extend) === null || _cacheItem$_extend5 === void 0 ? void 0 : _cacheItem$_extend5.end_date);
617
+ return endDate.diff(startDate, type);
618
+ };
619
+
528
620
  /**
529
621
  * @title: 创建一个服务商品
530
622
  * @description:
@@ -540,13 +632,14 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
540
632
  if (!cacheItem.new && cacheItem._extend.endDate) {
541
633
  return cacheItem._extend;
542
634
  }
635
+ var isDay = isDayBooking(state);
543
636
 
544
637
  // 获取上一个服务商品
545
- var lastServer = getLastServer(state.service.value);
638
+ var lastServer = isDay ? false : getLastServer(state.service.value);
546
639
 
547
640
  // 下一个商品的扩展参数
548
641
  var _extend = {
549
- duration: findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 ? void 0 : (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
642
+ duration: isDay ? getDays(cacheItem, 'days') : findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 ? void 0 : (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
550
643
  };
551
644
 
552
645
  // 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
@@ -599,21 +692,44 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
599
692
  }
600
693
  }
601
694
  _extend = _objectSpread(_objectSpread({}, _extend), cacheItem._extend);
695
+
696
+ // 跨日预约
697
+ if (isDay) {
698
+ var _formatDayDate2 = formatDayDate(_extend),
699
+ start_date = _formatDayDate2.start_date,
700
+ end_date = _formatDayDate2.end_date;
701
+ _extend = _objectSpread(_objectSpread({}, _extend), {}, {
702
+ start_date: start_date,
703
+ end_date: end_date
704
+ });
705
+ }
602
706
  return _extend;
603
707
  };
604
708
 
605
- // 商品价格: (商品价格 + (套餐价格 + 单规格价格 * 单规格数量) * 套餐数量) * 商品数量
709
+ // 商品价格: (商品价格 + (套餐价格 + 单规格价格 * 单规格数量) * 套餐数量 + 单规格价格 * 单规格数量) * 商品数量
606
710
  export var getProductTotalPrice = function getProductTotalPrice(item) {
607
711
  var _item$_extend;
608
712
  var price = 0;
609
713
  price += Number(item._extend.price);
610
714
  var other = (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.other;
715
+
716
+ // 多规格
717
+ if (other !== null && other !== void 0 && other.product_variant_id) {
718
+ price = Number(other === null || other === void 0 ? void 0 : other.price);
719
+ }
611
720
  if (other !== null && other !== void 0 && other.bundle) {
612
721
  // bundle
613
722
  price = other === null || other === void 0 ? void 0 : other.bundle.reduce(function (accumulator, currentValue) {
614
723
  return accumulator + Number(currentValue.price) * Number(currentValue.num);
615
724
  }, price);
616
725
  }
726
+
727
+ // 单规格
728
+ if (other !== null && other !== void 0 && other.option) {
729
+ price = other === null || other === void 0 ? void 0 : other.option.reduce(function (accumulator, currentValue) {
730
+ return accumulator + Number(currentValue.price) * Number(currentValue.num);
731
+ }, price);
732
+ }
617
733
  price = price;
618
734
  return price;
619
735
  };
@@ -9,7 +9,6 @@ import React from 'react';
9
9
  import { Input, InputNumber, Checkbox, Radio, Cascader, DatePicker, Select, Slider, Switch, TimePicker, Transfer, TreeSelect, Upload, Form } from 'antd';
10
10
  import { CheckboxGroup, RadioGroup } from "../group";
11
11
  import Surcharge, { getCommName, getCommDefaultVal } from "../surcharge";
12
- import Receipt, { getCommName as getCommNameReceipt, getCommDefaultVal as getCommDefaultValReceipt } from "../receipt";
13
12
  import DeviceList from "../deviceList";
14
13
 
15
14
  // 通用表单配置
@@ -33,8 +32,7 @@ var Mapping = {
33
32
  };
34
33
  var CustomMapping = {
35
34
  Surcharge: Surcharge,
36
- DeviceList: DeviceList,
37
- Receipt: Receipt
35
+ DeviceList: DeviceList
38
36
  };
39
37
 
40
38
  /**
@@ -55,13 +53,13 @@ var CustomFormItem = function CustomFormItem(_ref) {
55
53
  return /*#__PURE__*/React.createElement(CustomFormItem, {
56
54
  formItemList: item.children,
57
55
  onChange: onChange,
58
- key: item.name ? "".concat(item.name).concat(level) : "".concat(Component).concat(index).concat(level),
56
+ key: item.name ? item.name + level : Component + index + level,
59
57
  level: level + 1
60
58
  });
61
59
  }
62
60
  if (_typeof(Component) === 'object') {
63
61
  return /*#__PURE__*/React.createElement(Component, _extends({}, item, {
64
- key: "".concat(item.name).concat(level)
62
+ key: item.name + level
65
63
  }));
66
64
  }
67
65
  if (Mapping[Component]) {
@@ -69,7 +67,7 @@ var CustomFormItem = function CustomFormItem(_ref) {
69
67
  var input = item.input,
70
68
  formItemProps = _objectWithoutProperties(item, _excluded2);
71
69
  return /*#__PURE__*/React.createElement(Form.Item, _extends({}, formItemProps, {
72
- key: "".concat(item.name).concat(level)
70
+ key: item.name + level
73
71
  }), /*#__PURE__*/React.createElement(Comm, input));
74
72
  }
75
73
  if (Mapping[Component]) {
@@ -77,13 +75,13 @@ var CustomFormItem = function CustomFormItem(_ref) {
77
75
  var _input = item.input,
78
76
  _formItemProps = _objectWithoutProperties(item, _excluded3);
79
77
  return /*#__PURE__*/React.createElement(Form.Item, _extends({}, _formItemProps, {
80
- key: "".concat(item.name).concat(level)
78
+ key: item.name + level
81
79
  }), /*#__PURE__*/React.createElement(_Comm, _input));
82
80
  }
83
81
  if (CustomMapping[Component]) {
84
82
  var _Comm2 = CustomMapping[Component];
85
83
  return /*#__PURE__*/React.createElement(_Comm2, _extends({}, item, {
86
- key: "".concat(item.name).concat(level)
84
+ key: item.name + level
87
85
  }));
88
86
  }
89
87
  throw TypeError("pos\u7269\u6599\u5E93 \u8F93\u5165\u7EC4\u4EF6\u7C7B\u578B ".concat(Component, " \u65E0\u6CD5\u6620\u5C04,\u8BF7\u6B63\u786E\u4F20\u5165\u7EC4\u4EF6\u7C7B\u578B"));
@@ -94,9 +92,5 @@ export var helpMapping = {
94
92
  Surcharge: {
95
93
  getCommName: getCommName,
96
94
  getCommDefaultVal: getCommDefaultVal
97
- },
98
- Receipt: {
99
- getCommName: getCommNameReceipt,
100
- getCommDefaultVal: getCommDefaultValReceipt
101
95
  }
102
96
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RadioGroupProps } from 'antd';
3
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => React.JSX.Element;
4
- export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
4
+ export declare const RadioGroup: ({ direction, options, component, ...props }: RadioGroupProps & {
5
5
  direction?: "vertical" | undefined;
6
+ component: string;
6
7
  }) => React.JSX.Element;