kts-component-invoice-operate 3.2.80 → 3.2.82

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 (204) 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/README.md +8 -8
  8. package/dist/index.esm.js +637 -657
  9. package/dist/index.js +634 -654
  10. package/docs/index.md +5 -5
  11. package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
  12. package/docs-dist/static/arrowUp.4c482054.svg +2 -2
  13. package/docs-dist/static/fork.5431267d.svg +11 -11
  14. package/docs-dist/static/plus.44013ce3.svg +11 -11
  15. package/docs-dist/static/plus.4fd1af30.svg +11 -11
  16. package/index.html +12 -12
  17. package/package.json +61 -61
  18. package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
  19. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
  20. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
  21. package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +470 -470
  22. package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
  23. package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
  24. package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
  25. package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
  26. package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
  27. package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
  28. package/src/Invoice/Invoice-digtal/index.md +30 -30
  29. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +94 -94
  30. package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +17 -17
  31. package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
  32. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
  33. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
  34. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
  35. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
  36. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
  37. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
  38. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
  39. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +113 -113
  40. package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
  41. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
  42. package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
  43. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
  44. package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +85 -85
  45. package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
  46. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
  47. package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
  48. package/src/Invoice/InvoiceController/fns/mergeDetails.ts +165 -165
  49. package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +28 -28
  50. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
  51. package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
  52. package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
  53. package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
  54. package/src/Invoice/InvoiceController/index.ts +77 -77
  55. package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
  56. package/src/Invoice/_test/deduction/index.tsx +935 -935
  57. package/src/Invoice/_test/draft/index.tsx +40 -40
  58. package/src/Invoice/_test/easiest/index.tsx +5 -5
  59. package/src/Invoice/_test/endowCode/index.tsx +1071 -1071
  60. package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
  61. package/src/Invoice/_test/importBuyer/index.tsx +74 -74
  62. package/src/Invoice/_test/importGoods/index.tsx +1078 -516
  63. package/src/Invoice/_test/invoiceType/index.tsx +59 -59
  64. package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
  65. package/src/Invoice/_test/replaceHead/index.tsx +22 -22
  66. package/src/Invoice/_test/retrieveData/index.tsx +22 -22
  67. package/src/Invoice/_test/seller/index.tsx +28 -28
  68. package/src/Invoice/_test/setDataSource/index.tsx +66 -66
  69. package/src/Invoice/_test/unit/index.tsx +19 -19
  70. package/src/Invoice/index.less +29 -29
  71. package/src/Invoice/index.md +53 -53
  72. package/src/Invoice/index.tsx +165 -165
  73. package/src/Invoice/tools/calculate/index.ts +112 -112
  74. package/src/Invoice/tools/coolingFn/index.ts +17 -17
  75. package/src/Invoice/tools/evaluate/index.ts +7 -7
  76. package/src/Invoice/tools/idGenerator/index.ts +2 -2
  77. package/src/Invoice/tools/itemName/index.ts +55 -55
  78. package/src/Invoice/tools/lazyFn/index.ts +19 -19
  79. package/src/Invoice/tools/mounting/index.ts +13 -13
  80. package/src/Invoice/tools/strringFn/index.ts +40 -40
  81. package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
  82. package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
  83. package/src/Invoice/ui/default/Buyer/index.less +219 -219
  84. package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
  85. package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
  86. package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
  87. package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
  88. package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +543 -552
  89. package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +533 -533
  90. package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +664 -664
  91. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  92. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
  93. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
  94. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
  95. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
  96. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +75 -75
  97. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  98. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  99. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
  100. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +45 -45
  101. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +38 -38
  102. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  103. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  104. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  105. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  106. package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
  107. package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
  108. package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +111 -111
  109. package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
  110. package/src/Invoice/ui/default/GoodsList/index.less +179 -179
  111. package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
  112. package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
  113. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
  114. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
  115. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  116. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
  117. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
  118. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
  119. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
  120. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +110 -110
  121. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +75 -75
  122. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
  123. package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  124. package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
  125. package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
  126. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
  127. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +109 -109
  128. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
  129. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
  130. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
  131. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
  132. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
  133. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  134. package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
  135. package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
  136. package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +201 -201
  137. package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
  138. package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
  139. package/src/Invoice/ui/default/Seller/index.less +113 -113
  140. package/src/Invoice/ui/default/Seller/index.tsx +98 -98
  141. package/src/Invoice/ui/default/Sign/index.less +14 -14
  142. package/src/Invoice/ui/default/Sign/index.tsx +71 -71
  143. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +519 -519
  144. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +648 -648
  145. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
  146. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  147. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
  148. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
  149. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +50 -50
  150. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  151. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  152. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
  153. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  154. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
  155. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  156. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  157. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  158. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  159. package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
  160. package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
  161. package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
  162. package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
  163. package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
  164. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
  165. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
  166. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
  167. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  168. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  169. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -35
  170. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
  171. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
  172. package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  173. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
  174. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
  175. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
  176. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -99
  177. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
  178. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
  179. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
  180. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
  181. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
  182. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
  183. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  184. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
  185. package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
  186. package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
  187. package/src/Invoice/ui/digtal/Sign/index.less +48 -48
  188. package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
  189. package/src/Invoice/ui/digtal/Stakeholder/index.less +75 -75
  190. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +394 -394
  191. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
  192. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
  193. package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
  194. package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
  195. package/src/InvoiceTypeModal/index.less +7 -7
  196. package/src/InvoiceTypeModal/index.md +5 -5
  197. package/src/InvoiceTypeModal/index.tsx +153 -153
  198. package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -178
  199. package/src/TaxClassificationCodeModal/index.md +6 -6
  200. package/src/TaxClassificationCodeModal/index.tsx +67 -67
  201. package/src/index.ts +12 -12
  202. package/tsconfig.json +31 -31
  203. package/typings.d.ts +3 -3
  204. package/yarn.e.lock +14331 -14331
package/docs/index.md CHANGED
@@ -1,5 +1,5 @@
1
- # 发票编辑组件
2
-
3
- npm 地址:https://www.npmjs.com/package/kts-component-invoice-operate
4
-
5
- ### 版本 3.2.5
1
+ # 发票编辑组件
2
+
3
+ npm 地址:https://www.npmjs.com/package/kts-component-invoice-operate
4
+
5
+ ### 版本 3.2.5
@@ -1,3 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13" fill="none">
2
- <path d="M2.94338 4.42663C3.03458 4.42662 3.12571 4.46481 3.19459 4.54096L5.99164 7.6327L8.78868 4.54096C8.92463 4.39067 9.14733 4.38824 9.28606 4.53554C9.4248 4.68285 9.42705 4.92408 9.29107 5.07437L6.24283 8.44378C6.17667 8.5169 6.08613 8.55811 5.99164 8.55811C5.89714 8.55811 5.80659 8.5169 5.74044 8.44378L2.69221 5.07437C2.55623 4.92408 2.55849 4.68285 2.69722 4.53554C2.76567 4.46287 2.85455 4.42665 2.94338 4.42663Z"/>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13" fill="none">
2
+ <path d="M2.94338 4.42663C3.03458 4.42662 3.12571 4.46481 3.19459 4.54096L5.99164 7.6327L8.78868 4.54096C8.92463 4.39067 9.14733 4.38824 9.28606 4.53554C9.4248 4.68285 9.42705 4.92408 9.29107 5.07437L6.24283 8.44378C6.17667 8.5169 6.08613 8.55811 5.99164 8.55811C5.89714 8.55811 5.80659 8.5169 5.74044 8.44378L2.69221 5.07437C2.55623 4.92408 2.55849 4.68285 2.69722 4.53554C2.76567 4.46287 2.85455 4.42665 2.94338 4.42663Z"/>
3
3
  </svg>
@@ -1,3 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none">
2
- <path d="M9.55662 8.57337C9.46542 8.57338 9.37429 8.53519 9.30541 8.45904L6.50836 5.3673L3.71132 8.45904C3.57537 8.60933 3.35267 8.61176 3.21394 8.46446C3.0752 8.31715 3.07295 8.07592 3.20893 7.92563L6.25717 4.55622C6.32333 4.4831 6.41387 4.44189 6.50836 4.44189C6.60286 4.44189 6.69341 4.4831 6.75956 4.55622L9.80779 7.92563C9.94377 8.07592 9.94151 8.31715 9.80278 8.46446C9.73433 8.53713 9.64545 8.57335 9.55662 8.57337Z"/>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none">
2
+ <path d="M9.55662 8.57337C9.46542 8.57338 9.37429 8.53519 9.30541 8.45904L6.50836 5.3673L3.71132 8.45904C3.57537 8.60933 3.35267 8.61176 3.21394 8.46446C3.0752 8.31715 3.07295 8.07592 3.20893 7.92563L6.25717 4.55622C6.32333 4.4831 6.41387 4.44189 6.50836 4.44189C6.60286 4.44189 6.69341 4.4831 6.75956 4.55622L9.80779 7.92563C9.94377 8.07592 9.94151 8.31715 9.80278 8.46446C9.73433 8.53713 9.64545 8.57335 9.55662 8.57337Z"/>
3
3
  </svg>
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
2
- <g clip-path="url(#clip0_695_1221)">
3
- <path d="M7.99978 0.888916C4.08867 0.888916 0.888672 4.08892 0.888672 8.00003C0.888672 11.9111 4.08867 15.1111 7.99978 15.1111C11.9109 15.1111 15.1109 11.9111 15.1109 8.00003C15.1109 4.08892 11.9109 0.888916 7.99978 0.888916ZM7.99978 14.2222C4.53312 14.2222 1.77756 11.4667 1.77756 8.00003C1.77756 4.53336 4.53312 1.7778 7.99978 1.7778C11.4664 1.7778 14.222 4.53336 14.222 8.00003C14.222 11.4667 11.4664 14.2222 7.99978 14.2222Z" fill="#333333"/>
4
- <path d="M10.7019 11.3288L4.72949 5.35818L5.35794 4.72974L11.3295 10.7004L10.7019 11.3288Z" fill="#333333"/>
5
- <path d="M4.66895 10.7023L10.6396 4.73071L11.2681 5.35916L5.29739 11.3307L4.66895 10.7023Z" fill="#333333"/>
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_695_1221">
9
- <rect width="16" height="16" fill="white"/>
10
- </clipPath>
11
- </defs>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
2
+ <g clip-path="url(#clip0_695_1221)">
3
+ <path d="M7.99978 0.888916C4.08867 0.888916 0.888672 4.08892 0.888672 8.00003C0.888672 11.9111 4.08867 15.1111 7.99978 15.1111C11.9109 15.1111 15.1109 11.9111 15.1109 8.00003C15.1109 4.08892 11.9109 0.888916 7.99978 0.888916ZM7.99978 14.2222C4.53312 14.2222 1.77756 11.4667 1.77756 8.00003C1.77756 4.53336 4.53312 1.7778 7.99978 1.7778C11.4664 1.7778 14.222 4.53336 14.222 8.00003C14.222 11.4667 11.4664 14.2222 7.99978 14.2222Z" fill="#333333"/>
4
+ <path d="M10.7019 11.3288L4.72949 5.35818L5.35794 4.72974L11.3295 10.7004L10.7019 11.3288Z" fill="#333333"/>
5
+ <path d="M4.66895 10.7023L10.6396 4.73071L11.2681 5.35916L5.29739 11.3307L4.66895 10.7023Z" fill="#333333"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_695_1221">
9
+ <rect width="16" height="16" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
12
  </svg>
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15">
2
- <g clip-path="url(#clip0_715_360)">
3
- <path d="M8 14.5312C4.11687 14.5312 0.96875 11.3831 0.96875 7.5C0.96875 3.61687 4.11687 0.46875 8 0.46875C11.8831 0.46875 15.0312 3.61687 15.0312 7.5C15.0312 11.3831 11.8831 14.5312 8 14.5312ZM8 13.5938C11.3656 13.5938 14.0938 10.8656 14.0938 7.5C14.0938 4.13438 11.3656 1.40625 8 1.40625C4.63438 1.40625 1.90625 4.13438 1.90625 7.5C1.90625 10.8656 4.63438 13.5938 8 13.5938Z"/>
4
- <path d="M4.25 7.96875C4.12568 7.96875 4.00645 7.91936 3.91854 7.83146C3.83064 7.74355 3.78125 7.62432 3.78125 7.5C3.78125 7.37568 3.83064 7.25645 3.91854 7.16854C4.00645 7.08064 4.12568 7.03125 4.25 7.03125H11.75C11.8743 7.03125 11.9935 7.08064 12.0815 7.16854C12.1694 7.25645 12.2188 7.37568 12.2188 7.5C12.2188 7.62432 12.1694 7.74355 12.0815 7.83146C11.9935 7.91936 11.8743 7.96875 11.75 7.96875H4.25Z"/>
5
- <path d="M7.53125 3.75C7.53125 3.62568 7.58064 3.50645 7.66854 3.41854C7.75645 3.33064 7.87568 3.28125 8 3.28125C8.12432 3.28125 8.24355 3.33064 8.33146 3.41854C8.41936 3.50645 8.46875 3.62568 8.46875 3.75V11.25C8.46875 11.3743 8.41936 11.4935 8.33146 11.5815C8.24355 11.6694 8.12432 11.7188 8 11.7188C7.87568 11.7188 7.75645 11.6694 7.66854 11.5815C7.58064 11.4935 7.53125 11.3743 7.53125 11.25V3.75Z"/>
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_715_360">
9
- <rect width="15" height="15" transform="translate(0.5)"/>
10
- </clipPath>
11
- </defs>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15">
2
+ <g clip-path="url(#clip0_715_360)">
3
+ <path d="M8 14.5312C4.11687 14.5312 0.96875 11.3831 0.96875 7.5C0.96875 3.61687 4.11687 0.46875 8 0.46875C11.8831 0.46875 15.0312 3.61687 15.0312 7.5C15.0312 11.3831 11.8831 14.5312 8 14.5312ZM8 13.5938C11.3656 13.5938 14.0938 10.8656 14.0938 7.5C14.0938 4.13438 11.3656 1.40625 8 1.40625C4.63438 1.40625 1.90625 4.13438 1.90625 7.5C1.90625 10.8656 4.63438 13.5938 8 13.5938Z"/>
4
+ <path d="M4.25 7.96875C4.12568 7.96875 4.00645 7.91936 3.91854 7.83146C3.83064 7.74355 3.78125 7.62432 3.78125 7.5C3.78125 7.37568 3.83064 7.25645 3.91854 7.16854C4.00645 7.08064 4.12568 7.03125 4.25 7.03125H11.75C11.8743 7.03125 11.9935 7.08064 12.0815 7.16854C12.1694 7.25645 12.2188 7.37568 12.2188 7.5C12.2188 7.62432 12.1694 7.74355 12.0815 7.83146C11.9935 7.91936 11.8743 7.96875 11.75 7.96875H4.25Z"/>
5
+ <path d="M7.53125 3.75C7.53125 3.62568 7.58064 3.50645 7.66854 3.41854C7.75645 3.33064 7.87568 3.28125 8 3.28125C8.12432 3.28125 8.24355 3.33064 8.33146 3.41854C8.41936 3.50645 8.46875 3.62568 8.46875 3.75V11.25C8.46875 11.3743 8.41936 11.4935 8.33146 11.5815C8.24355 11.6694 8.12432 11.7188 8 11.7188C7.87568 11.7188 7.75645 11.6694 7.66854 11.5815C7.58064 11.4935 7.53125 11.3743 7.53125 11.25V3.75Z"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_715_360">
9
+ <rect width="15" height="15" transform="translate(0.5)"/>
10
+ </clipPath>
11
+ </defs>
12
12
  </svg>
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none">
2
- <g clip-path="url(#clip0_715_360)">
3
- <path d="M8 14.5312C4.11687 14.5312 0.96875 11.3831 0.96875 7.5C0.96875 3.61687 4.11687 0.46875 8 0.46875C11.8831 0.46875 15.0312 3.61687 15.0312 7.5C15.0312 11.3831 11.8831 14.5312 8 14.5312ZM8 13.5938C11.3656 13.5938 14.0938 10.8656 14.0938 7.5C14.0938 4.13438 11.3656 1.40625 8 1.40625C4.63438 1.40625 1.90625 4.13438 1.90625 7.5C1.90625 10.8656 4.63438 13.5938 8 13.5938Z"/>
4
- <path d="M4.25 7.96875C4.12568 7.96875 4.00645 7.91936 3.91854 7.83146C3.83064 7.74355 3.78125 7.62432 3.78125 7.5C3.78125 7.37568 3.83064 7.25645 3.91854 7.16854C4.00645 7.08064 4.12568 7.03125 4.25 7.03125H11.75C11.8743 7.03125 11.9935 7.08064 12.0815 7.16854C12.1694 7.25645 12.2188 7.37568 12.2188 7.5C12.2188 7.62432 12.1694 7.74355 12.0815 7.83146C11.9935 7.91936 11.8743 7.96875 11.75 7.96875H4.25Z"/>
5
- <path d="M7.53125 3.75C7.53125 3.62568 7.58064 3.50645 7.66854 3.41854C7.75645 3.33064 7.87568 3.28125 8 3.28125C8.12432 3.28125 8.24355 3.33064 8.33146 3.41854C8.41936 3.50645 8.46875 3.62568 8.46875 3.75V11.25C8.46875 11.3743 8.41936 11.4935 8.33146 11.5815C8.24355 11.6694 8.12432 11.7188 8 11.7188C7.87568 11.7188 7.75645 11.6694 7.66854 11.5815C7.58064 11.4935 7.53125 11.3743 7.53125 11.25V3.75Z"/>
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_715_360">
9
- <rect width="15" height="15" transform="translate(0.5)"/>
10
- </clipPath>
11
- </defs>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none">
2
+ <g clip-path="url(#clip0_715_360)">
3
+ <path d="M8 14.5312C4.11687 14.5312 0.96875 11.3831 0.96875 7.5C0.96875 3.61687 4.11687 0.46875 8 0.46875C11.8831 0.46875 15.0312 3.61687 15.0312 7.5C15.0312 11.3831 11.8831 14.5312 8 14.5312ZM8 13.5938C11.3656 13.5938 14.0938 10.8656 14.0938 7.5C14.0938 4.13438 11.3656 1.40625 8 1.40625C4.63438 1.40625 1.90625 4.13438 1.90625 7.5C1.90625 10.8656 4.63438 13.5938 8 13.5938Z"/>
4
+ <path d="M4.25 7.96875C4.12568 7.96875 4.00645 7.91936 3.91854 7.83146C3.83064 7.74355 3.78125 7.62432 3.78125 7.5C3.78125 7.37568 3.83064 7.25645 3.91854 7.16854C4.00645 7.08064 4.12568 7.03125 4.25 7.03125H11.75C11.8743 7.03125 11.9935 7.08064 12.0815 7.16854C12.1694 7.25645 12.2188 7.37568 12.2188 7.5C12.2188 7.62432 12.1694 7.74355 12.0815 7.83146C11.9935 7.91936 11.8743 7.96875 11.75 7.96875H4.25Z"/>
5
+ <path d="M7.53125 3.75C7.53125 3.62568 7.58064 3.50645 7.66854 3.41854C7.75645 3.33064 7.87568 3.28125 8 3.28125C8.12432 3.28125 8.24355 3.33064 8.33146 3.41854C8.41936 3.50645 8.46875 3.62568 8.46875 3.75V11.25C8.46875 11.3743 8.41936 11.4935 8.33146 11.5815C8.24355 11.6694 8.12432 11.7188 8 11.7188C7.87568 11.7188 7.75645 11.6694 7.66854 11.5815C7.58064 11.4935 7.53125 11.3743 7.53125 11.25V3.75Z"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_715_360">
9
+ <rect width="15" height="15" transform="translate(0.5)"/>
10
+ </clipPath>
11
+ </defs>
12
12
  </svg>
package/index.html CHANGED
@@ -1,13 +1,13 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta http-equiv="refresh" content="0;url=./docs-dist">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
- <title>文档</title>
9
- </head>
10
- <body>
11
-
12
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="refresh" content="0;url=./docs-dist">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <title>文档</title>
9
+ </head>
10
+ <body>
11
+
12
+ </body>
13
13
  </html>
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "kts-component-invoice-operate",
3
- "version": "3.2.80",
4
- "scripts": {
5
- "dev": "dumi dev",
6
- "start": "dumi dev",
7
- "docs:build": "dumi build",
8
- "docs:deploy": "gh-pages -d docs-dist",
9
- "build": "father-build",
10
- "deploy": "npm run docs:build && npm run docs:deploy",
11
- "release": "npm run build && npm publish",
12
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
- "test": "umi-test",
14
- "test:coverage": "umi-test --coverage",
15
- "pub": "antd-tools run pub"
16
- },
17
- "main": "dist/index.js",
18
- "module": "dist/index.esm.js",
19
- "typings": "dist/index.d.ts",
20
- "gitHooks": {
21
- "pre-commit": "lint-staged"
22
- },
23
- "lint-staged": {
24
- "*.{js,jsx,less,md,json}": [],
25
- "*.ts?(x)": []
26
- },
27
- "dependencies": {
28
- "@formily/antd": "^1.3.17",
29
- "@formily/antd-components": "^1.3.17",
30
- "@types/uuid": "^8.3.0",
31
- "classnames": "^2.3.1",
32
- "grey-react-box": "^0.2.22",
33
- "kts-components-antd-x3": "^3.26.20-5",
34
- "kts-components-antd-x4": "5.0.0",
35
- "kts-components-antd-x4-v4": "npm:kts-components-antd-x4@^4.0.3",
36
- "kts-xui": "^2.0.3",
37
- "mathjs": "^9.4.2",
38
- "next": "^11.0.1",
39
- "nzh": "^1.0.4",
40
- "react": "^16.12.0",
41
- "react-dom": "^16.12.0",
42
- "styled-components": "^5.3.0",
43
- "uuid": "^8.3.2"
44
- },
45
- "devDependencies": {
46
- "@umijs/plugin-antd": "^0.10.0",
47
- "@umijs/test": "^3.0.5",
48
- "antd": "3.26.20",
49
- "dumi": "^1.0.14",
50
- "father-build": "^1.17.2",
51
- "gh-pages": "^3.0.0",
52
- "invariant": "^2.2.4",
53
- "kts-components": "^1.2.18",
54
- "lint-staged": "^10.0.7",
55
- "prettier": "^2.2.1",
56
- "yorkie": "^2.0.0"
57
- },
58
- "resolutions": {
59
- "@types/react": "17.0.2"
60
- }
61
- }
1
+ {
2
+ "name": "kts-component-invoice-operate",
3
+ "version": "3.2.82",
4
+ "scripts": {
5
+ "dev": "dumi dev",
6
+ "start": "dumi dev",
7
+ "docs:build": "dumi build",
8
+ "docs:deploy": "gh-pages -d docs-dist",
9
+ "build": "father-build",
10
+ "deploy": "npm run docs:build && npm run docs:deploy",
11
+ "release": "npm run build && npm publish",
12
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
+ "test": "umi-test",
14
+ "test:coverage": "umi-test --coverage",
15
+ "pub": "antd-tools run pub"
16
+ },
17
+ "main": "dist/index.js",
18
+ "module": "dist/index.esm.js",
19
+ "typings": "dist/index.d.ts",
20
+ "gitHooks": {
21
+ "pre-commit": "lint-staged"
22
+ },
23
+ "lint-staged": {
24
+ "*.{js,jsx,less,md,json}": [],
25
+ "*.ts?(x)": []
26
+ },
27
+ "dependencies": {
28
+ "@formily/antd": "^1.3.17",
29
+ "@formily/antd-components": "^1.3.17",
30
+ "@types/uuid": "^8.3.0",
31
+ "classnames": "^2.3.1",
32
+ "grey-react-box": "^0.2.22",
33
+ "kts-components-antd-x3": "^3.26.20-5",
34
+ "kts-components-antd-x4": "5.0.0",
35
+ "kts-components-antd-x4-v4": "npm:kts-components-antd-x4@^4.0.3",
36
+ "kts-xui": "^2.0.3",
37
+ "mathjs": "^9.4.2",
38
+ "next": "^11.0.1",
39
+ "nzh": "^1.0.4",
40
+ "react": "^16.12.0",
41
+ "react-dom": "^16.12.0",
42
+ "styled-components": "^5.3.0",
43
+ "uuid": "^8.3.2"
44
+ },
45
+ "devDependencies": {
46
+ "@umijs/plugin-antd": "^0.10.0",
47
+ "@umijs/test": "^3.0.5",
48
+ "antd": "3.26.20",
49
+ "dumi": "^1.0.14",
50
+ "father-build": "^1.17.2",
51
+ "gh-pages": "^3.0.0",
52
+ "invariant": "^2.2.4",
53
+ "kts-components": "^1.2.18",
54
+ "lint-staged": "^10.0.7",
55
+ "prettier": "^2.2.1",
56
+ "yorkie": "^2.0.0"
57
+ },
58
+ "resolutions": {
59
+ "@types/react": "17.0.2"
60
+ }
61
+ }
@@ -1,38 +1,38 @@
1
- import React from 'react';
2
- import Invoice from '../../..';
3
- import 'antd/dist/antd.css';
4
-
5
- export default () => {
6
-
7
- const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
8
-
9
- React.useEffect(() => {
10
- (async () => {
11
-
12
- await controller.run(async s => {
13
- s.stakeholder.disableds = [
14
- 'buyerName',
15
- 'buyerTaxId',
16
- 'remark',
17
- ]
18
- })
19
-
20
- controller.formList.get('stakeholder')?.setFieldsValue({
21
- buyerName: 'buyerName',
22
- buyerTaxId: 'buyerTaxId',
23
- })
24
-
25
- controller.formList.get('sign')?.setFieldsValue({
26
- remark: 'remark',
27
- })
28
- })()
29
-
30
- }, [controller])
31
-
32
- return (
33
- <Invoice
34
- invoiceType='digtal'
35
- controller={controller}
36
- />
37
- )
38
- };
1
+ import React from 'react';
2
+ import Invoice from '../../..';
3
+ import 'antd/dist/antd.css';
4
+
5
+ export default () => {
6
+
7
+ const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
8
+
9
+ React.useEffect(() => {
10
+ (async () => {
11
+
12
+ await controller.run(async s => {
13
+ s.stakeholder.disableds = [
14
+ 'buyerName',
15
+ 'buyerTaxId',
16
+ 'remark',
17
+ ]
18
+ })
19
+
20
+ controller.formList.get('stakeholder')?.setFieldsValue({
21
+ buyerName: 'buyerName',
22
+ buyerTaxId: 'buyerTaxId',
23
+ })
24
+
25
+ controller.formList.get('sign')?.setFieldsValue({
26
+ remark: 'remark',
27
+ })
28
+ })()
29
+
30
+ }, [controller])
31
+
32
+ return (
33
+ <Invoice
34
+ invoiceType='digtal'
35
+ controller={controller}
36
+ />
37
+ )
38
+ };
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import Invoice from '../../..';
3
- import 'antd/dist/antd.css';
4
-
5
- export default () => {
6
- return (
7
- <Invoice
8
- invoiceType='digtal'
9
- invoiceHeader={
10
- <Invoice.InvoiceHeader
11
- title='自定义'
12
- />
13
- }
14
- />
15
- )
16
- };
1
+ import React from 'react';
2
+ import Invoice from '../../..';
3
+ import 'antd/dist/antd.css';
4
+
5
+ export default () => {
6
+ return (
7
+ <Invoice
8
+ invoiceType='digtal'
9
+ invoiceHeader={
10
+ <Invoice.InvoiceHeader
11
+ title='自定义'
12
+ />
13
+ }
14
+ />
15
+ )
16
+ };
@@ -1,85 +1,85 @@
1
- import React from 'react';
2
- import Invoice from '../../..';
3
- import 'antd/dist/antd.css';
4
- import InvoiceController from '../../../InvoiceController';
5
-
6
- export default () => {
7
-
8
- const invoiceController = React.useMemo(() => new MyInvoiceController(), []);
9
-
10
- return (
11
- <Invoice
12
- controller={invoiceController}
13
- invoiceType='digtal'
14
- invoiceHeader={
15
- <Invoice.InvoiceHeaderDigtal
16
- defaultNo='2029292029201920291029'
17
- defaultInvoicingDate='2023年7月6日'
18
- defaultTag="成品油"
19
- />}
20
- />
21
- )
22
- };
23
-
24
- class MyInvoiceController extends InvoiceController {
25
-
26
- constructor() {
27
- super();
28
- this.state.autoComplete.onItemNameSearch = async text => {
29
- return [
30
- {
31
- "itemName": "呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵",
32
- "taxClassificationCode": "1010112070000000000",
33
- "itemModelName": null,
34
- "shorthand": "蔬菜",
35
- "taxRate": undefined
36
- },
37
- {
38
- "itemName": "稻谷",
39
- "taxClassificationCode": "1010101040000000000",
40
- "itemModelName": null,
41
- "shorthand": "谷物",
42
- "taxRate": 3
43
- },
44
- {
45
- "itemName": "苹果",
46
- "taxClassificationCode": "1090111090000000000",
47
- "itemModelName": null,
48
- "shorthand": "小型起重设备",
49
- "taxRate": null
50
- },
51
- {
52
- "itemName": "银丝",
53
- "taxClassificationCode": "1080411120000000000",
54
- "itemModelName": null,
55
- "shorthand": "金属制品",
56
- "taxRate": 3
57
- },
58
- {
59
- "itemName": "布料",
60
- "taxClassificationCode": "1100101011100000000",
61
- "itemModelName": null,
62
- "shorthand": "发电",
63
- "taxRate": 2
64
- },
65
- {
66
- "itemName": "苹果",
67
- "taxClassificationCode": "1010115010100000000",
68
- "itemModelName": null,
69
- "shorthand": "水果",
70
- "taxRate": 3
71
- }
72
- ] as any
73
- }
74
-
75
- this.state.autoComplete.onBuyerTaxIdSearch = this.state.autoComplete.onBuyerNameSearch = async test => {
76
- return [
77
- { buyerName: '测试1', buyerTaxId: 'xxxxx1', buyerPhone:'xxxx1' },
78
- { buyerName: '测试2', buyerTaxId: 'xxxxx2', buyerPhone:'xxxx2' },
79
- { buyerName: '测试4', buyerTaxId: 'xxxxx4', buyerPhone:'xxxx4' },
80
- { buyerName: '测试5', buyerTaxId: 'xxxxx5', buyerPhone:'xxxx5' },
81
- { buyerName: '测试6', buyerTaxId: 'xxxxx6', buyerPhone:'xxxx6' },
82
- ]
83
- }
84
- }
1
+ import React from 'react';
2
+ import Invoice from '../../..';
3
+ import 'antd/dist/antd.css';
4
+ import InvoiceController from '../../../InvoiceController';
5
+
6
+ export default () => {
7
+
8
+ const invoiceController = React.useMemo(() => new MyInvoiceController(), []);
9
+
10
+ return (
11
+ <Invoice
12
+ controller={invoiceController}
13
+ invoiceType='digtal'
14
+ invoiceHeader={
15
+ <Invoice.InvoiceHeaderDigtal
16
+ defaultNo='2029292029201920291029'
17
+ defaultInvoicingDate='2023年7月6日'
18
+ defaultTag="成品油"
19
+ />}
20
+ />
21
+ )
22
+ };
23
+
24
+ class MyInvoiceController extends InvoiceController {
25
+
26
+ constructor() {
27
+ super();
28
+ this.state.autoComplete.onItemNameSearch = async text => {
29
+ return [
30
+ {
31
+ "itemName": "呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵呵",
32
+ "taxClassificationCode": "1010112070000000000",
33
+ "itemModelName": null,
34
+ "shorthand": "蔬菜",
35
+ "taxRate": undefined
36
+ },
37
+ {
38
+ "itemName": "稻谷",
39
+ "taxClassificationCode": "1010101040000000000",
40
+ "itemModelName": null,
41
+ "shorthand": "谷物",
42
+ "taxRate": 3
43
+ },
44
+ {
45
+ "itemName": "苹果",
46
+ "taxClassificationCode": "1090111090000000000",
47
+ "itemModelName": null,
48
+ "shorthand": "小型起重设备",
49
+ "taxRate": null
50
+ },
51
+ {
52
+ "itemName": "银丝",
53
+ "taxClassificationCode": "1080411120000000000",
54
+ "itemModelName": null,
55
+ "shorthand": "金属制品",
56
+ "taxRate": 3
57
+ },
58
+ {
59
+ "itemName": "布料",
60
+ "taxClassificationCode": "1100101011100000000",
61
+ "itemModelName": null,
62
+ "shorthand": "发电",
63
+ "taxRate": 2
64
+ },
65
+ {
66
+ "itemName": "苹果",
67
+ "taxClassificationCode": "1010115010100000000",
68
+ "itemModelName": null,
69
+ "shorthand": "水果",
70
+ "taxRate": 3
71
+ }
72
+ ] as any
73
+ }
74
+
75
+ this.state.autoComplete.onBuyerTaxIdSearch = this.state.autoComplete.onBuyerNameSearch = async test => {
76
+ return [
77
+ { buyerName: '测试1', buyerTaxId: 'xxxxx1', buyerPhone:'xxxx1' },
78
+ { buyerName: '测试2', buyerTaxId: 'xxxxx2', buyerPhone:'xxxx2' },
79
+ { buyerName: '测试4', buyerTaxId: 'xxxxx4', buyerPhone:'xxxx4' },
80
+ { buyerName: '测试5', buyerTaxId: 'xxxxx5', buyerPhone:'xxxx5' },
81
+ { buyerName: '测试6', buyerTaxId: 'xxxxx6', buyerPhone:'xxxx6' },
82
+ ]
83
+ }
84
+ }
85
85
  }