kts-component-invoice-operate 3.2.263 → 3.2.264-wgq

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 (311) hide show
  1. package/.dumi/theme/builtins/API.tsx +66 -66
  2. package/.editorconfig +16 -16
  3. package/.fatherrc.ts +4 -4
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +8 -8
  7. package/.vscode/settings.json +13 -13
  8. package/BRANCH.md +4 -4
  9. package/README.md +12 -12
  10. package/dist/index.esm.js +128 -34
  11. package/dist/index.js +128 -34
  12. package/docs/index.md +5 -5
  13. package/docs-dist/404.html +33 -33
  14. package/docs-dist/index.html +33 -33
  15. package/docs-dist/static/{arrowDown.a1cbf0d8.svg → arrowDown.22c7885c.svg} +2 -2
  16. package/docs-dist/static/{arrowUp.4c482054.svg → arrowUp.d707a3e4.svg} +2 -2
  17. package/docs-dist/static/download.18f10f45.svg +1 -0
  18. package/docs-dist/static/{fork.5431267d.svg → fork.43eb4ffa.svg} +11 -11
  19. package/docs-dist/static/{plus.4fd1af30.svg → plus.0e60e9ea.svg} +11 -11
  20. package/docs-dist/static/{plus.44013ce3.svg → plus.384f41d9.svg} +11 -11
  21. package/docs-dist/static/upload.d7ea1893.svg +1 -0
  22. package/docs-dist/umi.css +18 -18
  23. package/docs-dist/umi.js +1 -1
  24. package/index.html +12 -12
  25. package/package.json +62 -62
  26. package/src/Invoice/Invoice-digtal/_test/architecture/index.tsx +21 -21
  27. package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +40 -40
  28. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +214 -214
  29. package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +14592 -14592
  30. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
  31. package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +1635 -1635
  32. package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +18 -18
  33. package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +19 -19
  34. package/src/Invoice/Invoice-digtal/_test/passenger/index.tsx +14621 -14621
  35. package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +14644 -14644
  36. package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
  37. package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +55 -55
  38. package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +83 -83
  39. package/src/Invoice/Invoice-digtal/_test/realEstateSales/index.tsx +76 -76
  40. package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
  41. package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
  42. package/src/Invoice/Invoice-digtal/index.md +49 -49
  43. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +128 -128
  44. package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +26 -26
  45. package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
  46. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IColumnsReplenish/index.ts +10 -10
  47. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IGood/index.ts +33 -33
  48. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/ImportGoods/index.ts +81 -81
  49. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/index.ts +39 -39
  50. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
  51. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
  52. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
  53. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +93 -93
  54. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +84 -84
  55. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
  56. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
  57. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +150 -150
  58. package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IColumnsReplenish/index.ts +10 -10
  59. package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IGood/index.ts +34 -34
  60. package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/index.ts +178 -178
  61. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.ts +10 -10
  62. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.ts +35 -35
  63. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.ts +81 -81
  64. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.ts +39 -39
  65. package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +17 -17
  66. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +82 -82
  67. package/src/Invoice/InvoiceController/fns/addFreight.ts +11 -11
  68. package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
  69. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
  70. package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
  71. package/src/Invoice/InvoiceController/fns/addPassenger.ts +11 -11
  72. package/src/Invoice/InvoiceController/fns/addPay.ts +11 -11
  73. package/src/Invoice/InvoiceController/fns/delFreight.ts +38 -38
  74. package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
  75. package/src/Invoice/InvoiceController/fns/delPassenger.ts +38 -38
  76. package/src/Invoice/InvoiceController/fns/delPay.ts +38 -38
  77. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
  78. package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +86 -86
  79. package/src/Invoice/InvoiceController/fns/itemBlur.ts +47 -47
  80. package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
  81. package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
  82. package/src/Invoice/InvoiceController/fns/saveEditFreight.ts +24 -24
  83. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
  84. package/src/Invoice/InvoiceController/fns/saveEditPassenger.ts +24 -24
  85. package/src/Invoice/InvoiceController/fns/saveEditPay.ts +23 -23
  86. package/src/Invoice/InvoiceController/fns/setEditFreight.ts +16 -16
  87. package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
  88. package/src/Invoice/InvoiceController/fns/setEditPassenger.ts +16 -16
  89. package/src/Invoice/InvoiceController/fns/setEditPay.ts +16 -16
  90. package/src/Invoice/InvoiceController/fns/setFreight.ts +10 -10
  91. package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
  92. package/src/Invoice/InvoiceController/fns/setPay.ts +10 -10
  93. package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
  94. package/src/Invoice/InvoiceController/index.ts +149 -149
  95. package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
  96. package/src/Invoice/_test/children/index.tsx +214 -214
  97. package/src/Invoice/_test/deduction/index.tsx +956 -956
  98. package/src/Invoice/_test/draft/index.tsx +40 -40
  99. package/src/Invoice/_test/easiest/index.tsx +5 -5
  100. package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
  101. package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
  102. package/src/Invoice/_test/importBuyer/index.tsx +75 -75
  103. package/src/Invoice/_test/importGoods/index.tsx +1375 -1375
  104. package/src/Invoice/_test/invoiceType/index.tsx +59 -59
  105. package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
  106. package/src/Invoice/_test/replaceHead/index.tsx +22 -22
  107. package/src/Invoice/_test/retrieveData/index.tsx +22 -22
  108. package/src/Invoice/_test/seller/index.tsx +28 -28
  109. package/src/Invoice/_test/setDataSource/index.tsx +73 -73
  110. package/src/Invoice/_test/unit/index.tsx +19 -19
  111. package/src/Invoice/index.less +31 -31
  112. package/src/Invoice/index.md +56 -56
  113. package/src/Invoice/index.tsx +216 -216
  114. package/src/Invoice/tools/calculate/index.ts +144 -144
  115. package/src/Invoice/tools/coolingFn/index.ts +17 -17
  116. package/src/Invoice/tools/evaluate/index.ts +7 -7
  117. package/src/Invoice/tools/idGenerator/index.ts +2 -2
  118. package/src/Invoice/tools/itemName/index.ts +55 -55
  119. package/src/Invoice/tools/lazyFn/index.ts +19 -19
  120. package/src/Invoice/tools/mounting/index.ts +13 -13
  121. package/src/Invoice/tools/strringFn/index.ts +40 -40
  122. package/src/Invoice/tools/useToGenerateId/index.ts +12 -12
  123. package/src/Invoice/tools/utils/index.ts +1 -1
  124. package/src/Invoice/tools/utils/money/index.ts +20 -20
  125. package/src/Invoice/ui/components/CardSelect/index.tsx +34 -34
  126. package/src/Invoice/ui/components/CustomCascader/index.tsx +358 -358
  127. package/src/Invoice/ui/components/NationalSelect/index.tsx +272 -272
  128. package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
  129. package/src/Invoice/ui/default/Buyer/index.less +219 -219
  130. package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
  131. package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
  132. package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
  133. package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
  134. package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +620 -620
  135. package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +690 -690
  136. package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +773 -773
  137. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  138. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
  139. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +57 -57
  140. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
  141. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +49 -49
  142. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
  143. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +91 -91
  144. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  145. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  146. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
  147. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/dist/index.js +32 -32
  148. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  149. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
  150. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  151. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +99 -99
  152. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  153. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  154. package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
  155. package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +52 -52
  156. package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +120 -120
  157. package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
  158. package/src/Invoice/ui/default/GoodsList/index.less +185 -185
  159. package/src/Invoice/ui/default/GoodsList/index.tsx +207 -207
  160. package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +72 -72
  161. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
  162. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
  163. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  164. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
  165. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
  166. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
  167. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
  168. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
  169. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +94 -94
  170. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
  171. package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  172. package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
  173. package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
  174. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
  175. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +114 -114
  176. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +40 -40
  177. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +71 -71
  178. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
  179. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +130 -130
  180. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
  181. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  182. package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
  183. package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
  184. package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +207 -207
  185. package/src/Invoice/ui/default/ImportPassengerDrawer/index.tsx +207 -207
  186. package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
  187. package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
  188. package/src/Invoice/ui/default/MeiTanModal/index.less +39 -39
  189. package/src/Invoice/ui/default/MeiTanModal/index.tsx +165 -165
  190. package/src/Invoice/ui/default/Seller/index.less +113 -113
  191. package/src/Invoice/ui/default/Seller/index.tsx +98 -98
  192. package/src/Invoice/ui/default/Sign/index.less +14 -14
  193. package/src/Invoice/ui/default/Sign/index.tsx +71 -71
  194. package/src/Invoice/ui/digtal/Architecture/index.less +22 -22
  195. package/src/Invoice/ui/digtal/Architecture/index.tsx +227 -227
  196. package/src/Invoice/ui/digtal/FreightList/hook/useColumns/dist/index.js +616 -616
  197. package/src/Invoice/ui/digtal/FreightList/hook/useColumns/index.tsx +246 -246
  198. package/src/Invoice/ui/digtal/FreightList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  199. package/src/Invoice/ui/digtal/FreightList/hook/useOnRow/index.tsx +37 -37
  200. package/src/Invoice/ui/digtal/FreightList/hook/useRowSelection/index.tsx +119 -119
  201. package/src/Invoice/ui/digtal/FreightList/hook/useWindowClick/index.tsx +23 -23
  202. package/src/Invoice/ui/digtal/FreightList/index.less +72 -72
  203. package/src/Invoice/ui/digtal/FreightList/index.tsx +129 -129
  204. package/src/Invoice/ui/digtal/FreightList/ui/AddRowButton/index.tsx +74 -74
  205. package/src/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  206. package/src/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +36 -36
  207. package/src/Invoice/ui/digtal/FreightList/ui/TableRow/index.less +28 -28
  208. package/src/Invoice/ui/digtal/FreightList/ui/TableRow/index.tsx +20 -20
  209. package/src/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.less +38 -38
  210. package/src/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.tsx +108 -108
  211. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +690 -690
  212. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/dist/index.js +616 -616
  213. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +720 -720
  214. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
  215. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  216. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
  217. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
  218. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +87 -87
  219. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  220. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  221. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
  222. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  223. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
  224. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  225. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  226. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  227. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  228. package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +51 -51
  229. package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
  230. package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
  231. package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
  232. package/src/Invoice/ui/digtal/GoodsList/index.tsx +181 -181
  233. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +87 -87
  234. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +340 -340
  235. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
  236. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  237. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  238. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -37
  239. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
  240. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
  241. package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  242. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
  243. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +60 -60
  244. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
  245. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +100 -100
  246. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
  247. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
  248. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +52 -52
  249. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
  250. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +113 -113
  251. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +34 -34
  252. package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
  253. package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
  254. package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/index.tsx +429 -429
  255. package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  256. package/src/Invoice/ui/digtal/PassengerList/hook/useOnRow/index.tsx +37 -37
  257. package/src/Invoice/ui/digtal/PassengerList/hook/useRowSelection/index.tsx +119 -119
  258. package/src/Invoice/ui/digtal/PassengerList/hook/useWindowClick/index.tsx +23 -23
  259. package/src/Invoice/ui/digtal/PassengerList/index.less +76 -76
  260. package/src/Invoice/ui/digtal/PassengerList/index.tsx +151 -151
  261. package/src/Invoice/ui/digtal/PassengerList/ui/AddRowButton/index.tsx +74 -74
  262. package/src/Invoice/ui/digtal/PassengerList/ui/BatchImportButton/index.tsx +73 -73
  263. package/src/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  264. package/src/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +36 -36
  265. package/src/Invoice/ui/digtal/PassengerList/ui/TableRow/index.less +28 -28
  266. package/src/Invoice/ui/digtal/PassengerList/ui/TableRow/index.tsx +20 -20
  267. package/src/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.less +38 -38
  268. package/src/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.tsx +108 -108
  269. package/src/Invoice/ui/digtal/PayList/hook/useColumns/dist/index.js +616 -616
  270. package/src/Invoice/ui/digtal/PayList/hook/useColumns/index.tsx +168 -168
  271. package/src/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  272. package/src/Invoice/ui/digtal/PayList/hook/useOnRow/index.tsx +37 -37
  273. package/src/Invoice/ui/digtal/PayList/hook/useRowSelection/index.tsx +119 -119
  274. package/src/Invoice/ui/digtal/PayList/hook/useWindowClick/index.tsx +19 -19
  275. package/src/Invoice/ui/digtal/PayList/index.less +72 -72
  276. package/src/Invoice/ui/digtal/PayList/index.tsx +132 -132
  277. package/src/Invoice/ui/digtal/PayList/ui/AddRowButton/index.tsx +74 -74
  278. package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  279. package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +36 -36
  280. package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.less +28 -28
  281. package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.tsx +20 -20
  282. package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.less +38 -38
  283. package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.tsx +108 -108
  284. package/src/Invoice/ui/digtal/RealEstateInfo/index.less +21 -21
  285. package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +451 -451
  286. package/src/Invoice/ui/digtal/RealEstateSales/index.less +21 -21
  287. package/src/Invoice/ui/digtal/RealEstateSales/index.tsx +301 -301
  288. package/src/Invoice/ui/digtal/Sign/index.less +48 -48
  289. package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
  290. package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +99 -99
  291. package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +1102 -1102
  292. package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowDown.svg +2 -2
  293. package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowUp.svg +2 -2
  294. package/src/Invoice/ui/digtal/StakeFarmerholder/svg/plus.svg +11 -11
  295. package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -99
  296. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +863 -777
  297. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
  298. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
  299. package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
  300. package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
  301. package/src/InvoiceTypeModal/dist/index.js +92 -92
  302. package/src/InvoiceTypeModal/index.less +7 -7
  303. package/src/InvoiceTypeModal/index.md +5 -5
  304. package/src/InvoiceTypeModal/index.tsx +161 -161
  305. package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +184 -184
  306. package/src/TaxClassificationCodeModal/index.less +17 -17
  307. package/src/TaxClassificationCodeModal/index.md +6 -6
  308. package/src/TaxClassificationCodeModal/index.tsx +152 -152
  309. package/src/index.ts +13 -13
  310. package/tsconfig.json +31 -31
  311. package/typings.d.ts +3 -3
@@ -1,66 +1,66 @@
1
- import React, { useContext } from 'react';
2
- import type { IApiComponentProps } from 'dumi/theme';
3
- import { context, useApiData, AnchorLink } from 'dumi/theme';
4
-
5
- const LOCALE_TEXTS = {
6
- 'zh-CN': {
7
- name: '属性名',
8
- description: '描述',
9
- type: '类型',
10
- default: '默认值',
11
- required: '(必选)',
12
- },
13
- 'en-US': {
14
- name: 'Name',
15
- description: 'Description',
16
- type: 'Type',
17
- default: 'Default',
18
- required: '(required)',
19
- },
20
- };
21
-
22
- export default ({
23
- name,
24
- identifier,
25
- export: expt,
26
- }: IApiComponentProps & { name: string }) => {
27
- const data = useApiData(identifier);
28
- const { locale } = useContext(context);
29
- const texts = /^zh|cn$/i.test(locale)
30
- ? LOCALE_TEXTS['zh-CN']
31
- : LOCALE_TEXTS['en-US'];
32
-
33
- return (
34
- <>
35
- <p>{name}</p>
36
- {data && (
37
- <table style={{ marginTop: 24 }}>
38
- <thead>
39
- <tr>
40
- <th>{texts.name}</th>
41
- <th>{texts.description}</th>
42
- <th>{texts.type}</th>
43
- <th>{texts.default}</th>
44
- </tr>
45
- </thead>
46
- <tbody>
47
- {data[expt]?.map((row) => (
48
- <tr key={row.identifier}>
49
- <td>{row.identifier}</td>
50
- <td>{row.description || '--'}</td>
51
- <td>
52
- <code>{row.type}</code>
53
- </td>
54
- <td>
55
- <code>
56
- {row.default || (row.required && texts.required) || '--'}
57
- </code>
58
- </td>
59
- </tr>
60
- ))}
61
- </tbody>
62
- </table>
63
- )}
64
- </>
65
- );
66
- };
1
+ import React, { useContext } from 'react';
2
+ import type { IApiComponentProps } from 'dumi/theme';
3
+ import { context, useApiData, AnchorLink } from 'dumi/theme';
4
+
5
+ const LOCALE_TEXTS = {
6
+ 'zh-CN': {
7
+ name: '属性名',
8
+ description: '描述',
9
+ type: '类型',
10
+ default: '默认值',
11
+ required: '(必选)',
12
+ },
13
+ 'en-US': {
14
+ name: 'Name',
15
+ description: 'Description',
16
+ type: 'Type',
17
+ default: 'Default',
18
+ required: '(required)',
19
+ },
20
+ };
21
+
22
+ export default ({
23
+ name,
24
+ identifier,
25
+ export: expt,
26
+ }: IApiComponentProps & { name: string }) => {
27
+ const data = useApiData(identifier);
28
+ const { locale } = useContext(context);
29
+ const texts = /^zh|cn$/i.test(locale)
30
+ ? LOCALE_TEXTS['zh-CN']
31
+ : LOCALE_TEXTS['en-US'];
32
+
33
+ return (
34
+ <>
35
+ <p>{name}</p>
36
+ {data && (
37
+ <table style={{ marginTop: 24 }}>
38
+ <thead>
39
+ <tr>
40
+ <th>{texts.name}</th>
41
+ <th>{texts.description}</th>
42
+ <th>{texts.type}</th>
43
+ <th>{texts.default}</th>
44
+ </tr>
45
+ </thead>
46
+ <tbody>
47
+ {data[expt]?.map((row) => (
48
+ <tr key={row.identifier}>
49
+ <td>{row.identifier}</td>
50
+ <td>{row.description || '--'}</td>
51
+ <td>
52
+ <code>{row.type}</code>
53
+ </td>
54
+ <td>
55
+ <code>
56
+ {row.default || (row.required && texts.required) || '--'}
57
+ </code>
58
+ </td>
59
+ </tr>
60
+ ))}
61
+ </tbody>
62
+ </table>
63
+ )}
64
+ </>
65
+ );
66
+ };
package/.editorconfig CHANGED
@@ -1,16 +1,16 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
14
-
15
- [Makefile]
16
- indent_style = tab
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = false
14
+
15
+ [Makefile]
16
+ indent_style = tab
package/.fatherrc.ts CHANGED
@@ -1,4 +1,4 @@
1
- export default {
2
- esm: 'rollup',
3
- cjs: 'rollup',
4
- };
1
+ export default {
2
+ esm: 'rollup',
3
+ cjs: 'rollup',
4
+ };
package/.prettierignore CHANGED
@@ -1,7 +1,7 @@
1
- **/*.svg
2
- **/*.ejs
3
- **/*.html
4
- package.json
5
- .umi
6
- .umi-production
7
- .umi-test
1
+ **/*.svg
2
+ **/*.ejs
3
+ **/*.html
4
+ package.json
5
+ .umi
6
+ .umi-production
7
+ .umi-test
package/.prettierrc CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "all",
4
- "printWidth": 80,
5
- "overrides": [
6
- {
7
- "files": ".prettierrc",
8
- "options": { "parser": "json" }
9
- }
10
- ]
11
- }
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "printWidth": 80,
5
+ "overrides": [
6
+ {
7
+ "files": ".prettierrc",
8
+ "options": { "parser": "json" }
9
+ }
10
+ ]
11
+ }
package/.umirc.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { defineConfig } from 'dumi';
2
-
3
- export default defineConfig({
4
- locales: [['zh-CN', '中文']],
5
- title: '发票组件',
6
- outputPath: 'docs-dist',
7
- publicPath:'/docs-dist/',
8
- });
1
+ import { defineConfig } from 'dumi';
2
+
3
+ export default defineConfig({
4
+ locales: [['zh-CN', '中文']],
5
+ title: '发票组件',
6
+ outputPath: 'docs-dist',
7
+ publicPath:'/docs-dist/',
8
+ });
@@ -1,14 +1,14 @@
1
- {
2
- "cSpell.words": [
3
- "Cascader",
4
- "columnshide",
5
- "dcoding",
6
- "digtal",
7
- "disableds",
8
- "Infor",
9
- "mtzl",
10
- "payinfo",
11
- "setgood",
12
- "ucoding"
13
- ]
1
+ {
2
+ "cSpell.words": [
3
+ "Cascader",
4
+ "columnshide",
5
+ "dcoding",
6
+ "digtal",
7
+ "disableds",
8
+ "Infor",
9
+ "mtzl",
10
+ "payinfo",
11
+ "setgood",
12
+ "ucoding"
13
+ ]
14
14
  }
package/BRANCH.md CHANGED
@@ -1,5 +1,5 @@
1
- # 分支说明
2
- | 分支名 | 创建分支 | 说明 |
3
- |---------|---------|---------|
4
- | 3.2.x | -- | 3.2 帮帮最新版本 |
1
+ # 分支说明
2
+ | 分支名 | 创建分支 | 说明 |
3
+ |---------|---------|---------|
4
+ | 3.2.x | -- | 3.2 帮帮最新版本 |
5
5
  | 3.2.x.o | 3.2.x | 2020/7/30 时备份得3.2.x |
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # kts-component-invoice-operate
2
-
3
- 文档地址:http://kts-component-invoice-operate.dev.kingxunlian.com/
4
-
5
-
6
- 南湖:https://lanhuapp.com/web/#/item/project/detailDetach?pid=7daf94b0-9aa7-4372-89a7-226f389b021d&project_id=7daf94b0-9aa7-4372-89a7-226f389b021d&image_id=3bc42812-5718-4aa5-b088-5bc7e0c9a62f&fromEditor=true
7
-
8
-
9
- node 16.20.2
10
-
11
- version 4.0.1
12
- 这个版本升级主要是为了支持途虎的特殊票种,但是标准版暂时不能升级,数据结构发生了变化,22升级会导致报错,
1
+ # kts-component-invoice-operate
2
+
3
+ 文档地址:http://kts-component-invoice-operate.dev.kingxunlian.com/
4
+
5
+
6
+ 南湖:https://lanhuapp.com/web/#/item/project/detailDetach?pid=7daf94b0-9aa7-4372-89a7-226f389b021d&project_id=7daf94b0-9aa7-4372-89a7-226f389b021d&image_id=3bc42812-5718-4aa5-b088-5bc7e0c9a62f&fromEditor=true
7
+
8
+
9
+ node 16.20.2
10
+
11
+ version 4.0.1
12
+ 这个版本升级主要是为了支持途虎的特殊票种,但是标准版暂时不能升级,数据结构发生了变化,22升级会导致报错,
13
13
  这是一个不兼容的升级
package/dist/index.esm.js CHANGED
@@ -19675,10 +19675,8 @@ var RULES = {
19675
19675
  }];
19676
19676
  },
19677
19677
  sellerTelPhone: function sellerTelPhone(label) {
19678
- return [{
19679
- required: true,
19680
- message: "".concat(label, "\u5FC5\u586B")
19681
- }, {
19678
+ return [// { required: true, message: `${label}必填` },
19679
+ {
19682
19680
  max: 100,
19683
19681
  message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
19684
19682
  }, {
@@ -19711,6 +19709,24 @@ var formatCompanyName = function formatCompanyName(e) {
19711
19709
  if (value) {
19712
19710
  return value.replace('(', '(').replace(')', ')').replace(' ', '');
19713
19711
  }
19712
+ }; // 参与自然人联动的字段
19713
+
19714
+
19715
+ var GROUP_FIELDS = ['certificateType', 'certificateNumber', 'nationality']; // 各字段为空时的提示
19716
+
19717
+ var EMPTY_MSG = {
19718
+ certificateType: '请选择证件类型',
19719
+ certificateNumber: '请输入证件号码',
19720
+ nationality: '请选择国籍'
19721
+ };
19722
+ var NO_ERROR = {
19723
+ certificateType: '',
19724
+ certificateNumber: '',
19725
+ nationality: ''
19726
+ };
19727
+
19728
+ var isEmpty = function isEmpty(v) {
19729
+ return v === undefined || v === null || typeof v === 'string' && v.trim() === '';
19714
19730
  };
19715
19731
  /** 干系人 */
19716
19732
 
@@ -19749,6 +19765,11 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
19749
19765
  nationInfo = _React$useState10[0],
19750
19766
  setNation = _React$useState10[1];
19751
19767
 
19768
+ var _React$useState11 = React.useState(NO_ERROR),
19769
+ _React$useState12 = _slicedToArray(_React$useState11, 2),
19770
+ errors = _React$useState12[0],
19771
+ setErrors = _React$useState12[1];
19772
+
19752
19773
  var getFieldDecorator = form.getFieldDecorator;
19753
19774
  var controller = Invoice.useInvoiceController();
19754
19775
  var model = controller.useMemo(function (s) {
@@ -19806,6 +19827,74 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
19806
19827
  React.useEffect(function () {
19807
19828
  setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
19808
19829
  }, [props.isExpand]);
19830
+ /**
19831
+ * 生成校验器:三个字段要么全空,要么全不空
19832
+ * @param {string} field 当前被校验的字段名
19833
+ */
19834
+
19835
+ var createGroupValidator = function createGroupValidator(field) {
19836
+ return function (rule, value, callback) {
19837
+ var getFieldValue = form.getFieldValue; // 实时读取三个字段的当前值
19838
+
19839
+ var values = GROUP_FIELDS.map(function (name) {
19840
+ return getFieldValue(name);
19841
+ });
19842
+ var filledCount = values.filter(function (v) {
19843
+ return !isEmpty(v);
19844
+ }).length; // 情况一:全空 —— 通过
19845
+
19846
+ if (filledCount === 0) {
19847
+ return callback();
19848
+ } // 情况二:全不空 —— 通过
19849
+
19850
+
19851
+ if (filledCount === GROUP_FIELDS.length) {
19852
+ return callback();
19853
+ } // 情况三:部分填写 —— 为空的字段报错
19854
+
19855
+
19856
+ if (isEmpty(value)) {
19857
+ return Promise.reject(EMPTY_MSG[field]);
19858
+ }
19859
+
19860
+ callback();
19861
+ };
19862
+ };
19863
+ /** 根据三个字段当前值计算错误 */
19864
+
19865
+
19866
+ var calcErrors = function calcErrors() {
19867
+ var getFieldValue = form.getFieldValue;
19868
+ var values = GROUP_FIELDS.map(function (f) {
19869
+ return getFieldValue(f);
19870
+ });
19871
+ var filledCount = values.filter(function (v) {
19872
+ return !isEmpty(v);
19873
+ }).length;
19874
+
19875
+ var errors = _objectSpread2({}, NO_ERROR); // 全空 / 全不空:不报错
19876
+ // 部分填写:为空的字段报错
19877
+
19878
+
19879
+ if (filledCount > 0 && filledCount < GROUP_FIELDS.length) {
19880
+ GROUP_FIELDS.forEach(function (f) {
19881
+ if (isEmpty(getFieldValue(f))) {
19882
+ errors[f] = EMPTY_MSG[f];
19883
+ }
19884
+ });
19885
+ }
19886
+
19887
+ return errors;
19888
+ };
19889
+ /** 任一字段变化时,主动触发另外两个字段的校验,形成联动 */
19890
+
19891
+
19892
+ var handleGroupChange = React.useCallback(function () {
19893
+ setTimeout(function () {
19894
+ form.validateFields(GROUP_FIELDS, {}, function () {});
19895
+ setErrors(calcErrors());
19896
+ }, 0);
19897
+ }, [form]);
19809
19898
  var onChangeType = React.useCallback(function (value) {
19810
19899
  var buyerTaxId = form === null || form === void 0 ? void 0 : form.getFieldValue("buyerTaxId");
19811
19900
  var certificateNumber = form === null || form === void 0 ? void 0 : form.getFieldValue("certificateNumber");
@@ -19880,13 +19969,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
19880
19969
  nationality: "158"
19881
19970
  });
19882
19971
  }
19972
+
19973
+ handleGroupChange();
19883
19974
  }, [form]);
19884
19975
  /** 校验证件号码*/
19885
19976
 
19886
19977
  var validateIDCode = useCallback(function (_, value) {
19887
19978
  if (!value) {
19888
- setStatus('error');
19889
- setInfo('请输入正确的证件号码');
19979
+ setStatus('');
19980
+ setInfo('');
19890
19981
  return Promise.resolve();
19891
19982
  }
19892
19983
 
@@ -19984,8 +20075,8 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
19984
20075
  }, [form]);
19985
20076
  var validateNationality = useCallback(function (_, value) {
19986
20077
  if (!value) {
19987
- setNationStatue('error');
19988
- setNation('请选择正确的国籍');
20078
+ setNationStatue('');
20079
+ setNation('');
19989
20080
  return Promise.resolve();
19990
20081
  }
19991
20082
 
@@ -20373,49 +20464,50 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
20373
20464
  span: 6
20374
20465
  }, /*#__PURE__*/React.createElement(Form.Item, {
20375
20466
  label: "\u8BC1\u4EF6\u7C7B\u578B",
20376
- colon: false
20467
+ colon: false,
20468
+ validateStatus: errors.certificateType ? 'error' : "",
20469
+ help: errors.certificateType
20377
20470
  }, getFieldDecorator('certificateType', {
20378
20471
  rules: [{
20379
- required: true,
20380
- message: '证件类型必填'
20472
+ validator: createGroupValidator('certificateType')
20381
20473
  }]
20382
20474
  })( /*#__PURE__*/React.createElement(CardSelect, {
20383
20475
  onChange: onChangeType,
20384
20476
  readOnly: isReadOnly('certificateType'),
20385
- placeholder: "\u8BC1\u4EF6\u7C7B\u578B\u5FC5\u586B",
20386
- autoComplete: "off"
20477
+ placeholder: "\u8BF7\u9009\u62E9",
20478
+ autoComplete: "off",
20479
+ allowClear: true
20387
20480
  })))), /*#__PURE__*/React.createElement(Col, {
20388
20481
  span: 7
20389
20482
  }, /*#__PURE__*/React.createElement(Form.Item, {
20390
20483
  label: "\u8BC1\u4EF6\u53F7\u7801",
20391
20484
  colon: false,
20392
- validateStatus: validateStatus,
20393
- help: errorInfo
20485
+ validateStatus: validateStatus || (errors.certificateNumber ? 'error' : ""),
20486
+ help: errorInfo || errors.certificateNumber
20394
20487
  }, getFieldDecorator('certificateNumber', {
20395
20488
  rules: [{
20396
- required: true,
20397
- message: '证件号码必填'
20398
- }, {
20399
20489
  max: 30,
20400
20490
  message: "\u5185\u5BB9\u8D85\u957F"
20491
+ }, {
20492
+ validator: createGroupValidator('certificateNumber')
20401
20493
  }, {
20402
20494
  validator: validateIDCode
20403
20495
  }]
20404
20496
  })( /*#__PURE__*/React.createElement(MyInput$1, {
20405
20497
  readOnly: isReadOnly('certificateNumber'),
20406
- placeholder: "\u8BC1\u4EF6\u53F7\u7801\u5FC5\u586B",
20407
- autoComplete: "off"
20498
+ placeholder: "\u8BF7\u8F93\u5165",
20499
+ autoComplete: "off",
20500
+ onChange: handleGroupChange
20408
20501
  })))), /*#__PURE__*/React.createElement(Col, {
20409
20502
  span: 6
20410
20503
  }, /*#__PURE__*/React.createElement(Form.Item, {
20411
20504
  label: "\u56FD\u7C4D(\u6216\u5730\u533A)",
20412
20505
  colon: false,
20413
- validateStatus: nation,
20414
- help: nationInfo
20506
+ validateStatus: nation || (errors.nationality ? 'error' : ""),
20507
+ help: nationInfo || errors.nationality
20415
20508
  }, getFieldDecorator('nationality', {
20416
20509
  rules: [{
20417
- required: true,
20418
- message: '国籍必填'
20510
+ validator: createGroupValidator('nationality')
20419
20511
  }, {
20420
20512
  validator: validateNationality
20421
20513
  }]
@@ -20432,18 +20524,20 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
20432
20524
  return false;
20433
20525
  },
20434
20526
  readOnly: isReadOnly('nationality'),
20435
- placeholder: "\u56FD\u7C4D\u5FC5\u586B",
20436
- autoComplete: "off"
20527
+ placeholder: "\u8BF7\u9009\u62E9",
20528
+ autoComplete: "off",
20529
+ onChange: handleGroupChange,
20530
+ allowClear: true
20437
20531
  }))))))));
20438
20532
  });
20439
20533
 
20440
20534
  function NaturalPersonFlag(props) {
20441
20535
  var controller = Invoice.useInvoiceController();
20442
20536
 
20443
- var _React$useState11 = React.useState(props.value || 'COMPANY'),
20444
- _React$useState12 = _slicedToArray(_React$useState11, 2),
20445
- value = _React$useState12[0],
20446
- setValue = _React$useState12[1];
20537
+ var _React$useState13 = React.useState(props.value || 'COMPANY'),
20538
+ _React$useState14 = _slicedToArray(_React$useState13, 2),
20539
+ value = _React$useState14[0],
20540
+ setValue = _React$useState14[1];
20447
20541
 
20448
20542
  var onChange = React.useCallback(function (e) {
20449
20543
  if (props.readOnly) return;
@@ -20492,10 +20586,10 @@ function BuyerNameInput$1(props) {
20492
20586
  return s.autoComplete;
20493
20587
  }, []);
20494
20588
 
20495
- var _React$useState13 = React.useState([]),
20496
- _React$useState14 = _slicedToArray(_React$useState13, 2),
20497
- options = _React$useState14[0],
20498
- setOptions = _React$useState14[1];
20589
+ var _React$useState15 = React.useState([]),
20590
+ _React$useState16 = _slicedToArray(_React$useState15, 2),
20591
+ options = _React$useState16[0],
20592
+ setOptions = _React$useState16[1];
20499
20593
 
20500
20594
  var onChangeAutoComplete = React.useCallback(function (value) {
20501
20595
  var record = options.filter(function (e) {