kts-component-invoice-operate 3.1.20 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/Invoice/Invoice-digtal/_test/disabled/index.d.ts +4 -0
  2. package/dist/Invoice/Invoice-digtal/_test/easiest/index.d.ts +4 -0
  3. package/dist/Invoice/Invoice-digtal/_test/header/index.d.ts +4 -0
  4. package/dist/Invoice/Invoice-digtal/_test/importStakeholder/index.d.ts +4 -0
  5. package/dist/Invoice/Invoice-digtal/_test/readOnly/index.d.ts +4 -0
  6. package/dist/Invoice/Invoice-digtal/_test/stakeholder/index.d.ts +4 -0
  7. package/dist/Invoice/Invoice-digtal/_test/typeSelection/index.d.ts +4 -0
  8. package/dist/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.d.ts +10 -0
  9. package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +6 -0
  10. package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
  11. package/dist/Invoice/InvoiceController/fns/addGoodDiscountV2.d.ts +12 -0
  12. package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
  13. package/dist/Invoice/InvoiceController/index.d.ts +2 -0
  14. package/dist/Invoice/index.d.ts +25 -12
  15. package/dist/Invoice/tools/mounting/index.d.ts +3 -0
  16. package/dist/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.d.ts +1 -1
  17. package/dist/Invoice/ui/{Buyer → default/Buyer}/index.d.ts +1 -1
  18. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.d.ts +2 -2
  19. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +0 -1
  20. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -1
  21. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -1
  22. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -1
  23. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
  24. package/dist/Invoice/ui/default/GoodsList/hook/useDeduction/index.d.ts +8 -0
  25. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.d.ts +1 -1
  26. package/dist/Invoice/ui/default/GoodsList/hook/useWindowClick/index.d.ts +8 -0
  27. package/dist/Invoice/ui/default/ImportGoodsDrawer/index.d.ts +3 -0
  28. package/dist/Invoice/ui/{Seller → default/Seller}/index.d.ts +1 -1
  29. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.d.ts +35 -0
  30. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/index.d.ts +3 -0
  31. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +8 -0
  32. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +6 -0
  33. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +4 -0
  34. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +7 -0
  35. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +7 -0
  36. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +7 -0
  37. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
  38. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +6 -0
  39. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  40. package/dist/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.d.ts +8 -0
  41. package/dist/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.d.ts +8 -0
  42. package/dist/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.d.ts +8 -0
  43. package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +17 -0
  44. package/dist/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.d.ts +3 -0
  45. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.d.ts +5 -0
  46. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +5 -0
  47. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
  48. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
  49. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +6 -0
  50. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.d.ts +5 -0
  51. package/dist/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.d.ts +3 -0
  52. package/dist/Invoice/ui/digtal/GoodsList/ui/Search/index.d.ts +3 -0
  53. package/dist/Invoice/ui/digtal/GoodsList/ui/Statistics/index.d.ts +4 -0
  54. package/dist/Invoice/ui/digtal/GoodsList/ui/TableRow/index.d.ts +2 -0
  55. package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.d.ts +4 -0
  56. package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.d.ts +4 -0
  57. package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +3 -0
  58. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/autoFillFn/index.d.ts +35 -0
  59. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/index.d.ts +3 -0
  60. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.d.ts +7 -0
  61. package/dist/Invoice/ui/{GoodsList/hook/useColumns/ui/RowMenu → digtal/GoodsList.o/hook/useColumns/ui/RowEditButton}/index.d.ts +0 -1
  62. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +4 -0
  63. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +7 -0
  64. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +7 -0
  65. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +7 -0
  66. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
  67. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowSaveButton/index.d.ts +6 -0
  68. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  69. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useOnRow/index.d.ts +8 -0
  70. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useRowSelection/index.d.ts +8 -0
  71. package/dist/Invoice/ui/digtal/GoodsList.o/index.d.ts +20 -0
  72. package/dist/Invoice/ui/digtal/GoodsList.o/ui/AddRowButton/index.d.ts +3 -0
  73. package/dist/Invoice/ui/digtal/GoodsList.o/ui/TableRow/index.d.ts +2 -0
  74. package/dist/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.d.ts +4 -0
  75. package/dist/Invoice/ui/digtal/InvoiceHeader/index.d.ts +14 -0
  76. package/dist/Invoice/ui/digtal/Sign/index.d.ts +10 -0
  77. package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +12 -0
  78. package/dist/InvoiceTypeModal/_test/easiest/index.d.ts +3 -0
  79. package/dist/InvoiceTypeModal/index.d.ts +34 -0
  80. package/dist/index.d.ts +2 -0
  81. package/dist/index.esm.js +6379 -189
  82. package/dist/index.js +6365 -174
  83. package/docs-dist/404.html +33 -33
  84. package/docs-dist/index.html +33 -33
  85. package/docs-dist/static/add.a70623b4.svg +12 -0
  86. package/docs-dist/static/arrowDown.a1cbf0d8.svg +3 -0
  87. package/docs-dist/static/arrowUp.4c482054.svg +3 -0
  88. package/docs-dist/static/fork.5431267d.svg +12 -0
  89. package/docs-dist/umi.css +19 -19
  90. package/docs-dist/umi.js +1 -1
  91. package/package.json +1 -1
  92. package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -0
  93. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +5 -0
  94. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +17 -0
  95. package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +471 -0
  96. package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -0
  97. package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -0
  98. package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -0
  99. package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -0
  100. package/src/Invoice/Invoice-digtal/index.md +25 -0
  101. package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +11 -0
  102. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +8 -0
  103. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +1 -1
  104. package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +84 -0
  105. package/src/Invoice/InvoiceController/fns/delGood.ts +26 -28
  106. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +1 -0
  107. package/src/Invoice/InvoiceController/index.ts +4 -0
  108. package/src/Invoice/_test/buyerNameSearch/index.tsx +2 -2
  109. package/src/Invoice/_test/easiest/index.tsx +1 -1
  110. package/src/Invoice/_test/endowCode/index.tsx +4 -4
  111. package/src/Invoice/_test/goodsMenuExpand/index.tsx +1 -1
  112. package/src/Invoice/_test/importBuyer/index.tsx +1 -1
  113. package/src/Invoice/_test/importGoods/index.tsx +1 -1
  114. package/src/Invoice/_test/invoiceType/index.tsx +1 -1
  115. package/src/Invoice/_test/seller/index.tsx +1 -1
  116. package/src/Invoice/_test/setDataSource/index.tsx +1 -1
  117. package/src/Invoice/_test/unit/index.tsx +1 -1
  118. package/src/Invoice/index.less +19 -1
  119. package/src/Invoice/index.md +6 -6
  120. package/src/Invoice/index.tsx +75 -18
  121. package/src/Invoice/tools/mounting/index.ts +14 -0
  122. package/src/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.ts +1 -1
  123. package/src/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.tsx +5 -5
  124. package/src/Invoice/ui/{Buyer → default/Buyer}/index.tsx +2 -2
  125. package/src/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.tsx +2 -2
  126. package/src/Invoice/ui/{Buyer → default/Buyer}/ui/ImportBuyerButton/index.tsx +1 -1
  127. package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.tsx +5 -5
  128. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.ts +4 -4
  129. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.tsx +3 -3
  130. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +2 -2
  131. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +2 -2
  132. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +3 -3
  133. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.tsx +2 -2
  134. package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -0
  135. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.tsx +3 -3
  136. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.tsx +2 -2
  137. package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -0
  138. package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.tsx +2 -2
  139. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/AddRowButton/index.tsx +2 -2
  140. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +4 -4
  141. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.tsx +2 -2
  142. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +2 -2
  143. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/DescribeSwitch/index.tsx +1 -1
  144. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.tsx +1 -1
  145. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.tsx +1 -1
  146. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.tsx +2 -2
  147. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TaxIncludedSwitch/index.tsx +1 -1
  148. package/src/Invoice/ui/{ImportBuyerDrawer → default/ImportBuyerDrawer}/index.tsx +1 -1
  149. package/src/Invoice/ui/{ImportGoodsDrawer → default/ImportGoodsDrawer}/index.tsx +4 -4
  150. package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.tsx +1 -1
  151. package/src/Invoice/ui/{Seller → default/Seller}/index.tsx +2 -2
  152. package/src/Invoice/ui/{Sign → default/Sign}/index.tsx +1 -1
  153. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +520 -0
  154. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +636 -0
  155. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +12 -0
  156. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +10 -0
  157. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +24 -0
  158. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -0
  159. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -0
  160. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -0
  161. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -0
  162. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -0
  163. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -0
  164. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -0
  165. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/spot.svg +1 -0
  166. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -0
  167. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -0
  168. package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -0
  169. package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +112 -0
  170. package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -0
  171. package/src/Invoice/ui/digtal/GoodsList/index.less +57 -0
  172. package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -0
  173. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +66 -0
  174. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +320 -0
  175. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +12 -0
  176. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -0
  177. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
  178. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -0
  179. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -0
  180. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +56 -0
  181. package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +37 -0
  182. package/src/Invoice/ui/digtal/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  183. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +12 -0
  184. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -0
  185. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +54 -0
  186. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -0
  187. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +12 -0
  188. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +28 -0
  189. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +39 -0
  190. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +109 -0
  191. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -0
  192. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -0
  193. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -0
  194. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/autoFillFn/index.ts +520 -0
  195. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/index.tsx +624 -0
  196. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.less +10 -0
  197. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.tsx +19 -0
  198. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowEditButton/index.tsx +30 -0
  199. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -0
  200. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -0
  201. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -0
  202. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -0
  203. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.less +13 -0
  204. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.tsx +98 -0
  205. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/spot.svg +1 -0
  206. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowSaveButton/index.tsx +14 -0
  207. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/TitleText/index.tsx +20 -0
  208. package/src/Invoice/ui/digtal/GoodsList.o/hook/useOnRow/index.tsx +39 -0
  209. package/src/Invoice/ui/digtal/GoodsList.o/hook/useRowSelection/index.tsx +112 -0
  210. package/src/Invoice/ui/digtal/GoodsList.o/index.less +7 -0
  211. package/src/Invoice/ui/digtal/GoodsList.o/index.tsx +132 -0
  212. package/src/Invoice/ui/digtal/GoodsList.o/ui/AddRowButton/index.tsx +66 -0
  213. package/src/Invoice/ui/digtal/GoodsList.o/ui/TableRow/index.tsx +28 -0
  214. package/src/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.less +43 -0
  215. package/src/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.tsx +109 -0
  216. package/src/Invoice/ui/digtal/InvoiceHeader/index.less +58 -0
  217. package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -0
  218. package/src/Invoice/ui/digtal/Sign/index.less +49 -0
  219. package/src/Invoice/ui/digtal/Sign/index.tsx +90 -0
  220. package/src/Invoice/ui/digtal/Stakeholder/index.less +57 -0
  221. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +260 -0
  222. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +3 -0
  223. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +3 -0
  224. package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +12 -0
  225. package/src/InvoiceTypeModal/_test/easiest/index.tsx +32 -0
  226. package/src/InvoiceTypeModal/index.less +8 -0
  227. package/src/InvoiceTypeModal/index.md +6 -0
  228. package/src/InvoiceTypeModal/index.tsx +127 -0
  229. package/src/index.ts +3 -0
  230. /package/dist/Invoice/{ui/Buyer/ui/ImportBuyerButton → Invoice-digtal/_test/importGoods}/index.d.ts +0 -0
  231. /package/dist/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.d.ts +0 -0
  232. /package/dist/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.d.ts +0 -0
  233. /package/dist/Invoice/ui/{GoodsList/ui/AddRowButton → default/Buyer/ui/ImportBuyerButton}/index.d.ts +0 -0
  234. /package/dist/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.d.ts +0 -0
  235. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.d.ts +0 -0
  236. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.d.ts +0 -0
  237. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.d.ts +0 -0
  238. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.d.ts +0 -0
  239. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.d.ts +0 -0
  240. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.d.ts +0 -0
  241. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/index.d.ts +0 -0
  242. /package/dist/Invoice/ui/{GoodsList/ui/DescribeSwitch → default/GoodsList/ui/AddRowButton}/index.d.ts +0 -0
  243. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.d.ts +0 -0
  244. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +0 -0
  245. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +0 -0
  246. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +0 -0
  247. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.d.ts +0 -0
  248. /package/dist/Invoice/ui/{GoodsList/ui/TaxIncludedSwitch → default/GoodsList/ui/DescribeSwitch}/index.d.ts +0 -0
  249. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.d.ts +0 -0
  250. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.d.ts +0 -0
  251. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.d.ts +0 -0
  252. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.d.ts +0 -0
  253. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.d.ts +0 -0
  254. /package/dist/Invoice/ui/{ImportBuyerDrawer → default/GoodsList/ui/TaxIncludedSwitch}/index.d.ts +0 -0
  255. /package/dist/Invoice/ui/{ImportGoodsDrawer → default/ImportBuyerDrawer}/index.d.ts +0 -0
  256. /package/dist/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.d.ts +0 -0
  257. /package/dist/Invoice/ui/{Sign → default/Sign}/index.d.ts +0 -0
  258. /package/dist/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.d.ts +0 -0
  259. /package/dist/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useWindowClick/index.d.ts +0 -0
  260. /package/src/Invoice/ui/{Buyer → default/Buyer}/index.less +0 -0
  261. /package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.less +0 -0
  262. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.less +0 -0
  263. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.tsx +0 -0
  264. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.tsx +0 -0
  265. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +0 -0
  266. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.less +0 -0
  267. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/spot.svg +0 -0
  268. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.tsx +0 -0
  269. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.tsx +0 -0
  270. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.less +0 -0
  271. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +0 -0
  272. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +0 -0
  273. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.tsx +0 -0
  274. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/icon/magnifier.svg +0 -0
  275. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.less +0 -0
  276. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.less +0 -0
  277. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.less +0 -0
  278. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.tsx +0 -0
  279. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.less +0 -0
  280. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.tsx +0 -0
  281. /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/auto.svg +0 -0
  282. /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.less +0 -0
  283. /package/src/Invoice/ui/{Seller → default/Seller}/index.less +0 -0
  284. /package/src/Invoice/ui/{Sign → default/Sign}/index.less +0 -0
  285. /package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.tsx +0 -0
  286. /package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useWindowClick/index.tsx +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.1.20",
3
+ "version": "3.2.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -0,0 +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
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import Invoice from '../../..';
3
+ import 'antd/dist/antd.css';
4
+
5
+ export default () => <Invoice invoiceType='digtal' />;
@@ -0,0 +1,17 @@
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.InvoiceHeaderDigtal
11
+ defaultNo='2029292029201920291029'
12
+ defaultInvoicingDate='2023年7月6日'
13
+ defaultTag="成品油"
14
+ />}
15
+ />
16
+ )
17
+ };
@@ -0,0 +1,471 @@
1
+
2
+ import React from 'react';
3
+ import { Button } from 'kts-components-antd-x3/lib/radio';
4
+ import { Invoice } from '../../../..';
5
+ import { IGetBuyerListOption } from '../../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
6
+
7
+ const InvoiceController = Invoice.InvoiceController
8
+
9
+ export default () => {
10
+
11
+ // 初始化控制器
12
+ const controller = React.useMemo(() => new MyInvoiceController(), []);
13
+
14
+ return (
15
+ <>
16
+ <Button style={{ marginBottom: 10 }} onClick={async () => { console.log('===> 当前组件状态', await controller.validateFields()); }} >获取数据</Button>
17
+ <Invoice controller={controller} invoiceType='digtal' />
18
+ </>
19
+ );
20
+ };
21
+
22
+ // 重写 购买方 的数据源,实现 ‘获取 购买方 列表’ 方法
23
+ class MyInvoiceController extends InvoiceController {
24
+ constructor() {
25
+ super();
26
+ }
27
+
28
+ // 重写 的 获取商品列表
29
+ getGoodsList = this.pipeline<IGetBuyerListOption>(async (state, option) => {
30
+ if (!option) return;
31
+
32
+ // 初始化测试数据
33
+ const dataSource = await getMok(option.pagination.current)
34
+
35
+ // 设置分页数据
36
+ state.goodsListState.importGoods.pagination = {
37
+ ...option.pagination,
38
+ pageSize: 20,
39
+ total: 80,
40
+ };
41
+
42
+ // 设置列表数据
43
+ state.goodsListState.importGoods.dataSource = dataSource;
44
+ });
45
+ }
46
+
47
+ // const getMok = async (current: number = 1) => {
48
+ // const dataSource: any[] = [];
49
+ // for (let i = 0; i < 20; i++) {
50
+ // const p = i + 20 * (current - 1);
51
+ // dataSource.push({
52
+ // itemType: `商品分类${p}`,
53
+ // itemNo: `商品编码${p}`,
54
+ // itemName: `商品名称${p}`,
55
+ // shorthand: `前缀${p}`,
56
+ // itemModelName: `规格型号${p}`,
57
+ // unit: `计量单位${p}`,
58
+ // priceIncludeTax: p,
59
+ // priceExcludeTax: p,
60
+ // taxClassificationCode: `税收分类编码${p}`,
61
+ // affix: `附加信息${p}`,
62
+ // });
63
+ // }
64
+ // return dataSource;
65
+ // }
66
+
67
+
68
+ const getMok = async (current: number = 1) => {
69
+ return [
70
+ {
71
+ "attributeVOList": null,
72
+ "brandName": null,
73
+ "buyGroupCode": null,
74
+ "buyGroupId": null,
75
+ "buyGroupName": null,
76
+ "categoryId": 2073,
77
+ "categoryName": "通用",
78
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
79
+ "createTime": "2021-09-10 15:45:43.0",
80
+ "enjoyPreferentialPolicies": 0,
81
+ "factoryCode": null,
82
+ "factoryId": null,
83
+ "factoryName": null,
84
+ "id": 146200,
85
+ "internalNumber": "发动机盖",
86
+ "isUalityInspection": null,
87
+ "name": "发动机ABC",
88
+ "preferentialPoliciesType": null,
89
+ "priceAmount": 50,
90
+ "procurementCycle": 0,
91
+ "shorthand": "发动机",
92
+ "specification": "abc",
93
+ "spuCode": "6000001738252675",
94
+ "status": 1,
95
+ "taxCategoryCode": "1090102040000000000",
96
+ "taxExemptionType": "",
97
+ "taxId": 11,
98
+ "taxRate": 13,
99
+ "unitId": 30,
100
+ "unitName": "件",
101
+ "itemType": "通用",
102
+ "itemNo": "6000001738252675",
103
+ "itemName": "发动机ABC",
104
+ "itemModelName": "abc",
105
+ "unit": "件",
106
+ "priceIncludeTax": 50,
107
+ "priceExcludeTax": 50,
108
+ "taxClassificationCode": "1090102040000000000"
109
+ },
110
+ {
111
+ "attributeVOList": null,
112
+ "brandName": "丹东一号",
113
+ "buyGroupCode": null,
114
+ "buyGroupId": null,
115
+ "buyGroupName": null,
116
+ "categoryId": 2073,
117
+ "categoryName": "通用",
118
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
119
+ "createTime": "2021-09-02 14:59:52.0",
120
+ "enjoyPreferentialPolicies": 0,
121
+ "factoryCode": null,
122
+ "factoryId": null,
123
+ "factoryName": null,
124
+ "id": 146199,
125
+ "internalNumber": null,
126
+ "isUalityInspection": null,
127
+ "name": "aaaa",
128
+ "preferentialPoliciesType": null,
129
+ "priceAmount": 0,
130
+ "procurementCycle": 0,
131
+ "shorthand": "活牲畜",
132
+ "specification": null,
133
+ "spuCode": "6000001311479375",
134
+ "status": 1,
135
+ "taxCategoryCode": "1010301010000000000",
136
+ "taxExemptionType": "1",
137
+ "taxId": 1,
138
+ "taxRate": 0,
139
+ "unitId": null,
140
+ "unitName": null,
141
+ "itemType": "通用",
142
+ "itemNo": "6000001311479375",
143
+ "itemName": "aaaa",
144
+ "itemModelName": null,
145
+ "unit": null,
146
+ "priceIncludeTax": 0,
147
+ "priceExcludeTax": 0,
148
+ "taxClassificationCode": "1010301010000000000"
149
+ },
150
+ {
151
+ "attributeVOList": null,
152
+ "brandName": "丹东一号",
153
+ "buyGroupCode": null,
154
+ "buyGroupId": null,
155
+ "buyGroupName": null,
156
+ "categoryId": 246,
157
+ "categoryName": "分类cc>1",
158
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
159
+ "createTime": "2020-12-28 18:23:55.0",
160
+ "enjoyPreferentialPolicies": 0,
161
+ "factoryCode": null,
162
+ "factoryId": null,
163
+ "factoryName": null,
164
+ "id": 146131,
165
+ "internalNumber": null,
166
+ "isUalityInspection": null,
167
+ "name": "AAAA",
168
+ "preferentialPoliciesType": null,
169
+ "priceAmount": null,
170
+ "procurementCycle": 0,
171
+ "shorthand": null,
172
+ "specification": "1234EFF",
173
+ "spuCode": "6000002120658581",
174
+ "status": 1,
175
+ "taxCategoryCode": null,
176
+ "taxExemptionType": null,
177
+ "taxId": null,
178
+ "taxRate": 0,
179
+ "unitId": 362,
180
+ "unitName": "年",
181
+ "itemType": "分类cc>1",
182
+ "itemNo": "6000002120658581",
183
+ "itemName": "AAAA",
184
+ "itemModelName": "1234EFF",
185
+ "unit": "年",
186
+ "priceIncludeTax": 0,
187
+ "priceExcludeTax": 0,
188
+ "taxClassificationCode": null
189
+ },
190
+ {
191
+ "attributeVOList": null,
192
+ "brandName": null,
193
+ "buyGroupCode": null,
194
+ "buyGroupId": null,
195
+ "buyGroupName": null,
196
+ "categoryId": 2073,
197
+ "categoryName": "通用",
198
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
199
+ "createTime": "2020-12-15 10:14:14.0",
200
+ "enjoyPreferentialPolicies": 0,
201
+ "factoryCode": null,
202
+ "factoryId": null,
203
+ "factoryName": null,
204
+ "id": 146129,
205
+ "internalNumber": null,
206
+ "isUalityInspection": null,
207
+ "name": "服务费",
208
+ "preferentialPoliciesType": null,
209
+ "priceAmount": null,
210
+ "procurementCycle": 0,
211
+ "shorthand": "软件",
212
+ "specification": null,
213
+ "spuCode": "6000001474077629",
214
+ "status": 1,
215
+ "taxCategoryCode": "1060301020100000000",
216
+ "taxExemptionType": null,
217
+ "taxId": null,
218
+ "taxRate": 0,
219
+ "unitId": null,
220
+ "unitName": null,
221
+ "itemType": "通用",
222
+ "itemNo": "6000001474077629",
223
+ "itemName": "服务费",
224
+ "itemModelName": null,
225
+ "unit": null,
226
+ "priceIncludeTax": 0,
227
+ "priceExcludeTax": 0,
228
+ "taxClassificationCode": "1060301020100000000"
229
+ },
230
+ {
231
+ "attributeVOList": null,
232
+ "brandName": "丹东一号",
233
+ "buyGroupCode": null,
234
+ "buyGroupId": null,
235
+ "buyGroupName": null,
236
+ "categoryId": 2073,
237
+ "categoryName": "通用",
238
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
239
+ "createTime": "2020-10-30 15:07:05.0",
240
+ "enjoyPreferentialPolicies": 0,
241
+ "factoryCode": null,
242
+ "factoryId": null,
243
+ "factoryName": null,
244
+ "id": 145809,
245
+ "internalNumber": "0987",
246
+ "isUalityInspection": null,
247
+ "name": "中科",
248
+ "preferentialPoliciesType": null,
249
+ "priceAmount": 1000,
250
+ "procurementCycle": 0,
251
+ "shorthand": "糖料",
252
+ "specification": "12",
253
+ "spuCode": "6000001168374126",
254
+ "status": 1,
255
+ "taxCategoryCode": "1010107010000000000",
256
+ "taxExemptionType": "3",
257
+ "taxId": 1,
258
+ "taxRate": 0,
259
+ "unitId": 32,
260
+ "unitName": "把",
261
+ "itemType": "通用",
262
+ "itemNo": "6000001168374126",
263
+ "itemName": "中科",
264
+ "itemModelName": "12",
265
+ "unit": "把",
266
+ "priceIncludeTax": 1000,
267
+ "priceExcludeTax": 1000,
268
+ "taxClassificationCode": "1010107010000000000"
269
+ },
270
+ {
271
+ "attributeVOList": null,
272
+ "brandName": null,
273
+ "buyGroupCode": null,
274
+ "buyGroupId": null,
275
+ "buyGroupName": null,
276
+ "categoryId": 1862,
277
+ "categoryName": "通用",
278
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
279
+ "createTime": "2019-03-22 11:06:53.0",
280
+ "enjoyPreferentialPolicies": 0,
281
+ "factoryCode": null,
282
+ "factoryId": null,
283
+ "factoryName": null,
284
+ "id": 144321,
285
+ "internalNumber": "4302111",
286
+ "isUalityInspection": 0,
287
+ "name": "农用化肥2",
288
+ "preferentialPoliciesType": "",
289
+ "priceAmount": 90,
290
+ "procurementCycle": 0,
291
+ "shorthand": "肥料",
292
+ "specification": "HLHF-211",
293
+ "spuCode": "1000019000000056",
294
+ "status": 1,
295
+ "taxCategoryCode": "1000000000000000000",
296
+ "taxExemptionType": null,
297
+ "taxId": null,
298
+ "taxRate": 0,
299
+ "unitId": 11,
300
+ "unitName": "包",
301
+ "itemType": "通用",
302
+ "itemNo": "1000019000000056",
303
+ "itemName": "农用化肥2",
304
+ "itemModelName": "HLHF-211",
305
+ "unit": "包",
306
+ "priceIncludeTax": 90,
307
+ "priceExcludeTax": 90,
308
+ "taxClassificationCode": "1000000000000000000"
309
+ },
310
+ {
311
+ "attributeVOList": null,
312
+ "brandName": null,
313
+ "buyGroupCode": null,
314
+ "buyGroupId": null,
315
+ "buyGroupName": null,
316
+ "categoryId": 1862,
317
+ "categoryName": "通用",
318
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
319
+ "createTime": "2019-03-22 11:06:52.0",
320
+ "enjoyPreferentialPolicies": 0,
321
+ "factoryCode": null,
322
+ "factoryId": null,
323
+ "factoryName": null,
324
+ "id": 144320,
325
+ "internalNumber": "4302111",
326
+ "isUalityInspection": 0,
327
+ "name": "园林轻化肥",
328
+ "preferentialPoliciesType": "",
329
+ "priceAmount": null,
330
+ "procurementCycle": null,
331
+ "shorthand": "肥料",
332
+ "specification": "HLHF-211",
333
+ "spuCode": "1000019000000055",
334
+ "status": 1,
335
+ "taxCategoryCode": "233WD5FG00911",
336
+ "taxExemptionType": null,
337
+ "taxId": null,
338
+ "taxRate": 0,
339
+ "unitId": 11,
340
+ "unitName": "包",
341
+ "itemType": "通用",
342
+ "itemNo": "1000019000000055",
343
+ "itemName": "园林轻化肥",
344
+ "itemModelName": "HLHF-211",
345
+ "unit": "包",
346
+ "priceIncludeTax": 0,
347
+ "priceExcludeTax": 0,
348
+ "taxClassificationCode": "233WD5FG00911"
349
+ },
350
+ {
351
+ "attributeVOList": null,
352
+ "brandName": null,
353
+ "buyGroupCode": null,
354
+ "buyGroupId": null,
355
+ "buyGroupName": null,
356
+ "categoryId": 1862,
357
+ "categoryName": "通用",
358
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
359
+ "createTime": "2019-03-06 16:06:16.0",
360
+ "enjoyPreferentialPolicies": 0,
361
+ "factoryCode": null,
362
+ "factoryId": null,
363
+ "factoryName": null,
364
+ "id": 101211,
365
+ "internalNumber": "4302111",
366
+ "isUalityInspection": 0,
367
+ "name": "营养土壤",
368
+ "preferentialPoliciesType": "",
369
+ "priceAmount": null,
370
+ "procurementCycle": null,
371
+ "shorthand": "肥料",
372
+ "specification": "HLHF-211",
373
+ "spuCode": "1000019000000053",
374
+ "status": 1,
375
+ "taxCategoryCode": "233WD5FG00911",
376
+ "taxExemptionType": null,
377
+ "taxId": null,
378
+ "taxRate": 0,
379
+ "unitId": 11,
380
+ "unitName": "包",
381
+ "itemType": "通用",
382
+ "itemNo": "1000019000000053",
383
+ "itemName": "营养土壤",
384
+ "itemModelName": "HLHF-211",
385
+ "unit": "包",
386
+ "priceIncludeTax": 0,
387
+ "priceExcludeTax": 0,
388
+ "taxClassificationCode": "233WD5FG00911"
389
+ },
390
+ {
391
+ "attributeVOList": null,
392
+ "brandName": null,
393
+ "buyGroupCode": null,
394
+ "buyGroupId": null,
395
+ "buyGroupName": null,
396
+ "categoryId": 1862,
397
+ "categoryName": "通用",
398
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
399
+ "createTime": "2019-03-06 16:06:16.0",
400
+ "enjoyPreferentialPolicies": 0,
401
+ "factoryCode": null,
402
+ "factoryId": null,
403
+ "factoryName": null,
404
+ "id": 101212,
405
+ "internalNumber": "4302111",
406
+ "isUalityInspection": 0,
407
+ "name": "植物营养液",
408
+ "preferentialPoliciesType": "",
409
+ "priceAmount": null,
410
+ "procurementCycle": null,
411
+ "shorthand": "肥料",
412
+ "specification": "HLHF-211",
413
+ "spuCode": "1000019000000054",
414
+ "status": 1,
415
+ "taxCategoryCode": "233WD5FG00911",
416
+ "taxExemptionType": null,
417
+ "taxId": null,
418
+ "taxRate": 0,
419
+ "unitId": 11,
420
+ "unitName": "包",
421
+ "itemType": "通用",
422
+ "itemNo": "1000019000000054",
423
+ "itemName": "植物营养液",
424
+ "itemModelName": "HLHF-211",
425
+ "unit": "包",
426
+ "priceIncludeTax": 0,
427
+ "priceExcludeTax": 0,
428
+ "taxClassificationCode": "233WD5FG00911"
429
+ },
430
+ {
431
+ "attributeVOList": null,
432
+ "brandName": null,
433
+ "buyGroupCode": null,
434
+ "buyGroupId": null,
435
+ "buyGroupName": null,
436
+ "categoryId": 1862,
437
+ "categoryName": "通用",
438
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
439
+ "createTime": "2019-03-05 18:15:59.0",
440
+ "enjoyPreferentialPolicies": 0,
441
+ "factoryCode": null,
442
+ "factoryId": null,
443
+ "factoryName": null,
444
+ "id": 101203,
445
+ "internalNumber": "4353245243",
446
+ "isUalityInspection": 0,
447
+ "name": "医用棉布纱布条",
448
+ "preferentialPoliciesType": "",
449
+ "priceAmount": null,
450
+ "procurementCycle": null,
451
+ "shorthand": "布料",
452
+ "specification": "ZC11D-006",
453
+ "spuCode": "6000000804084562",
454
+ "status": 1,
455
+ "taxCategoryCode": "1234567890123456789",
456
+ "taxExemptionType": null,
457
+ "taxId": 5,
458
+ "taxRate": 3,
459
+ "unitId": 3,
460
+ "unitName": "米",
461
+ "itemType": "通用",
462
+ "itemNo": "6000000804084562",
463
+ "itemName": "医用棉布纱布条",
464
+ "itemModelName": "ZC11D-006",
465
+ "unit": "米",
466
+ "priceIncludeTax": 0,
467
+ "priceExcludeTax": 0,
468
+ "taxClassificationCode": "1234567890123456789"
469
+ }
470
+ ]
471
+ }
@@ -0,0 +1,17 @@
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
+ stakeholder={
10
+ <Invoice.Stakeholder
11
+ isShowImportButton={true}
12
+ onClickImportButton={e => { console.log(e) }}
13
+ />
14
+ }
15
+ />
16
+ )
17
+ };
@@ -0,0 +1,42 @@
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
+ await controller.run(async s => { s.model = 'readOnly' }); // 设置只读
12
+ await controller.formList.get('invoiceHeader')?.setFieldsValue({
13
+ no: '2029292029201920291029',
14
+ invoicingDate: '2023年7月6日',
15
+ tag:'成品油',
16
+ })
17
+ await controller.formList.get('stakeholder')?.setFieldsValue({
18
+ buyerName: '购买方名称',
19
+ buyerTaxId: 'xxxxxxxxxx',
20
+ buyerAddress: '购买方地址',
21
+ buyerPhone: '15800000000',
22
+ buyerBank: '购买方开户银行',
23
+ buyerAccount: '银行账号',
24
+
25
+ supplierName: '销售方名称',
26
+ supplierTaxId: 'xxxxxxxxxxxx',
27
+ sellerAddress: '购买方地址',
28
+ sellerPhone: '15800000000',
29
+ sellerBank: '购买方开户银行',
30
+ sellerAccount: '银行账号',
31
+ })
32
+ await controller.formList.get('sign')?.setFieldsValue({
33
+ remark: '备注',
34
+ issuer: '张自豪',
35
+ })
36
+ })()
37
+ }, [controller])
38
+
39
+ return (
40
+ <Invoice invoiceType='digtal' controller={controller} />
41
+ )
42
+ };
@@ -0,0 +1,12 @@
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
+ return (
10
+ <Invoice controller={controller} invoiceType='digtal' />
11
+ )
12
+ };
@@ -0,0 +1,29 @@
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
+ controller.run(async s => {
11
+ s.typeModalProps = {
12
+ businessOptions: [
13
+ { label: '成品油', value: '1' }
14
+ ],
15
+ invoiceTypeOptions: [
16
+ { label: '类型1', value: '1' },
17
+ { label: '类型2', value: '2' },
18
+ { label: '类型3', value: '3' },
19
+ { label: '类型4', value: '4' },
20
+ ],
21
+ onOk: (e => { console.log(e) })
22
+ }
23
+ })
24
+ }, [controller])
25
+
26
+ return (
27
+ <Invoice invoiceType='digtal' controller={controller} />
28
+ )
29
+ };
@@ -0,0 +1,25 @@
1
+ # 数电
2
+
3
+ ## 简单用法
4
+ <code src="./_test/easiest/index.tsx"></code>
5
+
6
+ ## 只读模式
7
+ <code src="./_test/readOnly/index.tsx"></code>
8
+
9
+ ## 发票号码 & 开票日期 & 标签
10
+ <code src="./_test/header/index.tsx"></code>
11
+
12
+ ## 导入关系人
13
+ <code src="./_test/stakeholder/index.tsx"></code>
14
+
15
+ ## 类型选择
16
+ <code src="./_test/typeSelection/index.tsx"></code>
17
+
18
+ ## 表单禁用
19
+ <code src="./_test/disabled/index.tsx"></code>
20
+
21
+ ## 导入关系人
22
+ <code src="./_test/importStakeholder/index.tsx"></code>
23
+
24
+ ## 导入项目
25
+ <code src="./_test/importGoods/index.tsx"></code>
@@ -0,0 +1,11 @@
1
+ import { ValidationRule } from "kts-components-antd-x3/lib/form";
2
+
3
+ /** 干系人 */
4
+ export default class Stakeholder {
5
+
6
+ /** 禁用字段 */
7
+ disableds?: string[];
8
+
9
+ /** 字段字段规则 */
10
+ rulesMap?: { [key: string]: ValidationRule[] | undefined }
11
+ }