kts-component-invoice-operate 3.1.20 → 3.2.0

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 (272) 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/readOnly/index.d.ts +4 -0
  5. package/dist/Invoice/Invoice-digtal/_test/stakeholder/index.d.ts +4 -0
  6. package/dist/Invoice/Invoice-digtal/_test/typeSelection/index.d.ts +4 -0
  7. package/dist/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.d.ts +10 -0
  8. package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +6 -0
  9. package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
  10. package/dist/Invoice/InvoiceController/fns/addGoodDiscountV2.d.ts +12 -0
  11. package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
  12. package/dist/Invoice/InvoiceController/index.d.ts +2 -0
  13. package/dist/Invoice/index.d.ts +25 -12
  14. package/dist/Invoice/tools/mounting/index.d.ts +3 -0
  15. package/dist/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.d.ts +1 -1
  16. package/dist/Invoice/ui/{Buyer → default/Buyer}/index.d.ts +1 -1
  17. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.d.ts +2 -2
  18. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +0 -1
  19. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -1
  20. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -1
  21. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -1
  22. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
  23. package/dist/Invoice/ui/default/GoodsList/hook/useDeduction/index.d.ts +8 -0
  24. package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.d.ts +1 -1
  25. package/dist/Invoice/ui/default/GoodsList/hook/useWindowClick/index.d.ts +8 -0
  26. package/dist/Invoice/ui/{Seller → default/Seller}/index.d.ts +1 -1
  27. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.d.ts +35 -0
  28. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/index.d.ts +3 -0
  29. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +7 -0
  30. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +6 -0
  31. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +4 -0
  32. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +7 -0
  33. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +7 -0
  34. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +7 -0
  35. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
  36. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +6 -0
  37. package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  38. package/dist/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.d.ts +8 -0
  39. package/dist/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.d.ts +8 -0
  40. package/dist/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.d.ts +8 -0
  41. package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +17 -0
  42. package/dist/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.d.ts +3 -0
  43. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.d.ts +5 -0
  44. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +5 -0
  45. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
  46. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
  47. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +6 -0
  48. package/dist/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.d.ts +5 -0
  49. package/dist/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.d.ts +3 -0
  50. package/dist/Invoice/ui/digtal/GoodsList/ui/Search/index.d.ts +3 -0
  51. package/dist/Invoice/ui/digtal/GoodsList/ui/Statistics/index.d.ts +4 -0
  52. package/dist/Invoice/ui/digtal/GoodsList/ui/TableRow/index.d.ts +2 -0
  53. package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.d.ts +4 -0
  54. package/dist/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.d.ts +4 -0
  55. package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +3 -0
  56. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/autoFillFn/index.d.ts +35 -0
  57. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/index.d.ts +3 -0
  58. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.d.ts +7 -0
  59. package/dist/Invoice/ui/{GoodsList/hook/useColumns/ui/RowMenu → digtal/GoodsList.o/hook/useColumns/ui/RowEditButton}/index.d.ts +0 -1
  60. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.d.ts +4 -0
  61. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +7 -0
  62. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +7 -0
  63. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +7 -0
  64. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.d.ts +7 -0
  65. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowSaveButton/index.d.ts +6 -0
  66. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  67. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useOnRow/index.d.ts +8 -0
  68. package/dist/Invoice/ui/digtal/GoodsList.o/hook/useRowSelection/index.d.ts +8 -0
  69. package/dist/Invoice/ui/digtal/GoodsList.o/index.d.ts +20 -0
  70. package/dist/Invoice/ui/digtal/GoodsList.o/ui/AddRowButton/index.d.ts +3 -0
  71. package/dist/Invoice/ui/digtal/GoodsList.o/ui/TableRow/index.d.ts +2 -0
  72. package/dist/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.d.ts +4 -0
  73. package/dist/Invoice/ui/digtal/InvoiceHeader/index.d.ts +14 -0
  74. package/dist/Invoice/ui/digtal/Sign/index.d.ts +10 -0
  75. package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +7 -0
  76. package/dist/InvoiceTypeModal/_test/easiest/index.d.ts +3 -0
  77. package/dist/InvoiceTypeModal/index.d.ts +34 -0
  78. package/dist/index.d.ts +2 -0
  79. package/dist/index.esm.js +6302 -189
  80. package/dist/index.js +6288 -174
  81. package/package.json +1 -1
  82. package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -0
  83. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +5 -0
  84. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +17 -0
  85. package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -0
  86. package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -0
  87. package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -0
  88. package/src/Invoice/Invoice-digtal/index.md +19 -0
  89. package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +11 -0
  90. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +8 -0
  91. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +1 -1
  92. package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +84 -0
  93. package/src/Invoice/InvoiceController/fns/delGood.ts +26 -28
  94. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +1 -0
  95. package/src/Invoice/InvoiceController/index.ts +4 -0
  96. package/src/Invoice/_test/buyerNameSearch/index.tsx +2 -2
  97. package/src/Invoice/_test/easiest/index.tsx +1 -1
  98. package/src/Invoice/_test/endowCode/index.tsx +4 -4
  99. package/src/Invoice/_test/goodsMenuExpand/index.tsx +1 -1
  100. package/src/Invoice/_test/importBuyer/index.tsx +1 -1
  101. package/src/Invoice/_test/importGoods/index.tsx +1 -1
  102. package/src/Invoice/_test/invoiceType/index.tsx +1 -1
  103. package/src/Invoice/_test/seller/index.tsx +1 -1
  104. package/src/Invoice/_test/setDataSource/index.tsx +1 -1
  105. package/src/Invoice/_test/unit/index.tsx +1 -1
  106. package/src/Invoice/index.less +19 -1
  107. package/src/Invoice/index.md +6 -6
  108. package/src/Invoice/index.tsx +74 -19
  109. package/src/Invoice/tools/mounting/index.ts +14 -0
  110. package/src/Invoice/{ui/GoodsList/hook → tools}/useToGenerateId/index.ts +1 -1
  111. package/src/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.tsx +5 -5
  112. package/src/Invoice/ui/{Buyer → default/Buyer}/index.tsx +2 -2
  113. package/src/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.tsx +2 -2
  114. package/src/Invoice/ui/{Buyer → default/Buyer}/ui/ImportBuyerButton/index.tsx +1 -1
  115. package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.tsx +5 -5
  116. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/autoFillFn/index.ts +4 -4
  117. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.tsx +3 -3
  118. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +2 -2
  119. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +2 -2
  120. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +3 -3
  121. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.tsx +2 -2
  122. package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -0
  123. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useOnRow/index.tsx +3 -3
  124. package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.tsx +2 -2
  125. package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -0
  126. package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.tsx +2 -2
  127. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/AddRowButton/index.tsx +2 -2
  128. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +4 -4
  129. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.tsx +2 -2
  130. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +2 -2
  131. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/DescribeSwitch/index.tsx +1 -1
  132. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.tsx +1 -1
  133. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.tsx +1 -1
  134. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.tsx +2 -2
  135. package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TaxIncludedSwitch/index.tsx +1 -1
  136. package/src/Invoice/ui/{ImportBuyerDrawer → default/ImportBuyerDrawer}/index.tsx +1 -1
  137. package/src/Invoice/ui/{ImportGoodsDrawer → default/ImportGoodsDrawer}/index.tsx +4 -4
  138. package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.tsx +1 -1
  139. package/src/Invoice/ui/{Seller → default/Seller}/index.tsx +2 -2
  140. package/src/Invoice/ui/{Sign → default/Sign}/index.tsx +1 -1
  141. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +520 -0
  142. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +623 -0
  143. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +10 -0
  144. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +19 -0
  145. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -0
  146. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -0
  147. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -0
  148. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -0
  149. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -0
  150. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -0
  151. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -0
  152. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/spot.svg +1 -0
  153. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -0
  154. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -0
  155. package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -0
  156. package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +112 -0
  157. package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -0
  158. package/src/Invoice/ui/digtal/GoodsList/index.less +57 -0
  159. package/src/Invoice/ui/digtal/GoodsList/index.tsx +181 -0
  160. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +66 -0
  161. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +321 -0
  162. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +12 -0
  163. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -0
  164. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
  165. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -0
  166. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -0
  167. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +56 -0
  168. package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +37 -0
  169. package/src/Invoice/ui/digtal/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  170. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +12 -0
  171. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -0
  172. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +54 -0
  173. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -0
  174. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +12 -0
  175. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +28 -0
  176. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +39 -0
  177. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +109 -0
  178. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -0
  179. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -0
  180. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -0
  181. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/autoFillFn/index.ts +520 -0
  182. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/index.tsx +624 -0
  183. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.less +10 -0
  184. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/ItemNameInput/index.tsx +19 -0
  185. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowEditButton/index.tsx +30 -0
  186. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -0
  187. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -0
  188. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -0
  189. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -0
  190. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.less +13 -0
  191. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/index.tsx +98 -0
  192. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowMenu/spot.svg +1 -0
  193. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/RowSaveButton/index.tsx +14 -0
  194. package/src/Invoice/ui/digtal/GoodsList.o/hook/useColumns/ui/TitleText/index.tsx +20 -0
  195. package/src/Invoice/ui/digtal/GoodsList.o/hook/useOnRow/index.tsx +39 -0
  196. package/src/Invoice/ui/digtal/GoodsList.o/hook/useRowSelection/index.tsx +112 -0
  197. package/src/Invoice/ui/digtal/GoodsList.o/index.less +7 -0
  198. package/src/Invoice/ui/digtal/GoodsList.o/index.tsx +132 -0
  199. package/src/Invoice/ui/digtal/GoodsList.o/ui/AddRowButton/index.tsx +66 -0
  200. package/src/Invoice/ui/digtal/GoodsList.o/ui/TableRow/index.tsx +28 -0
  201. package/src/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.less +43 -0
  202. package/src/Invoice/ui/digtal/GoodsList.o/ui/TableVirtual/index.tsx +109 -0
  203. package/src/Invoice/ui/digtal/InvoiceHeader/index.less +58 -0
  204. package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -0
  205. package/src/Invoice/ui/digtal/Sign/index.less +49 -0
  206. package/src/Invoice/ui/digtal/Sign/index.tsx +90 -0
  207. package/src/Invoice/ui/digtal/Stakeholder/index.less +57 -0
  208. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +237 -0
  209. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +3 -0
  210. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +3 -0
  211. package/src/InvoiceTypeModal/_test/easiest/index.tsx +32 -0
  212. package/src/InvoiceTypeModal/index.less +8 -0
  213. package/src/InvoiceTypeModal/index.md +6 -0
  214. package/src/InvoiceTypeModal/index.tsx +123 -0
  215. package/src/index.ts +3 -0
  216. /package/dist/Invoice/ui/{AddComparisonDrawer → default/AddComparisonDrawer}/index.d.ts +0 -0
  217. /package/dist/Invoice/ui/{Buyer → default/Buyer}/ui/BuyerNameInput/index.d.ts +0 -0
  218. /package/dist/Invoice/ui/{Buyer → default/Buyer}/ui/ImportBuyerButton/index.d.ts +0 -0
  219. /package/dist/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.d.ts +0 -0
  220. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/index.d.ts +0 -0
  221. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.d.ts +0 -0
  222. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.d.ts +0 -0
  223. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.d.ts +0 -0
  224. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.d.ts +0 -0
  225. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/hook/useRowSelection/index.d.ts +0 -0
  226. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/index.d.ts +0 -0
  227. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/AddRowButton/index.d.ts +0 -0
  228. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.d.ts +0 -0
  229. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +0 -0
  230. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +0 -0
  231. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +0 -0
  232. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.d.ts +0 -0
  233. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/DescribeSwitch/index.d.ts +0 -0
  234. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.d.ts +0 -0
  235. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.d.ts +0 -0
  236. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableRow/index.d.ts +0 -0
  237. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.d.ts +0 -0
  238. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.d.ts +0 -0
  239. /package/dist/Invoice/ui/{GoodsList → default/GoodsList}/ui/TaxIncludedSwitch/index.d.ts +0 -0
  240. /package/dist/Invoice/ui/{ImportBuyerDrawer → default/ImportBuyerDrawer}/index.d.ts +0 -0
  241. /package/dist/Invoice/ui/{ImportGoodsDrawer → default/ImportGoodsDrawer}/index.d.ts +0 -0
  242. /package/dist/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.d.ts +0 -0
  243. /package/dist/Invoice/ui/{Sign → default/Sign}/index.d.ts +0 -0
  244. /package/dist/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.d.ts +0 -0
  245. /package/dist/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useWindowClick/index.d.ts +0 -0
  246. /package/src/Invoice/ui/{Buyer → default/Buyer}/index.less +0 -0
  247. /package/src/Invoice/ui/{EndowCodeDrawer → default/EndowCodeDrawer}/index.less +0 -0
  248. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.less +0 -0
  249. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/ItemNameInput/index.tsx +0 -0
  250. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowEditButton/index.tsx +0 -0
  251. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +0 -0
  252. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/index.less +0 -0
  253. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowMenu/spot.svg +0 -0
  254. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/RowSaveButton/index.tsx +0 -0
  255. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/hook/useColumns/ui/TitleText/index.tsx +0 -0
  256. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/index.less +0 -0
  257. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +0 -0
  258. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +0 -0
  259. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/BulkMenu/index.tsx +0 -0
  260. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/icon/magnifier.svg +0 -0
  261. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Search/index.less +0 -0
  262. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/Statistics/index.less +0 -0
  263. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.less +0 -0
  264. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual/index.tsx +0 -0
  265. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.less +0 -0
  266. /package/src/Invoice/ui/{GoodsList → default/GoodsList}/ui/TableVirtual.o/index.tsx +0 -0
  267. /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/auto.svg +0 -0
  268. /package/src/Invoice/ui/{InvoiceHeader → default/InvoiceHeader}/index.less +0 -0
  269. /package/src/Invoice/ui/{Seller → default/Seller}/index.less +0 -0
  270. /package/src/Invoice/ui/{Sign → default/Sign}/index.less +0 -0
  271. /package/src/Invoice/ui/{GoodsList → digtal/GoodsList.o}/hook/useDeduction/index.tsx +0 -0
  272. /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.0",
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,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,19 @@
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>
@@ -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
+ }
@@ -1,5 +1,7 @@
1
1
  import GoodsListState from './GoodsListState';
2
2
  import BuyerState from './BuyerState';
3
+ import Stakeholder from './Stakeholder';
4
+ import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
3
5
 
4
6
  export default class InvoiceControllerState {
5
7
 
@@ -31,6 +33,9 @@ export default class InvoiceControllerState {
31
33
  /** 购买方 */
32
34
  buyerState = new BuyerState();
33
35
 
36
+ /** 干系人 相关-买方、卖方、备注、开票人 */
37
+ stakeholder = new Stakeholder();
38
+
34
39
  /** 货物信息 */
35
40
  goodsListState = new GoodsListState();
36
41
 
@@ -45,4 +50,7 @@ export default class InvoiceControllerState {
45
50
 
46
51
  /** 组件根结构 */
47
52
  rootElement?: HTMLDivElement | null = null;
53
+
54
+ /** 发票类型选择窗口 */
55
+ typeModalProps?: IInvoiceTypeModalProps;
48
56
  }
@@ -26,7 +26,7 @@ export interface IOptions {
26
26
  }
27
27
 
28
28
  /**
29
- * 设置当前的编辑货物
29
+ * 给一组货物添加折扣行
30
30
  */
31
31
  export default async (state: InvoiceControllerState, options?: IOptions) => {
32
32
  if (!options) return;
@@ -0,0 +1,84 @@
1
+
2
+ import { v4 as uuidv4 } from 'uuid';
3
+ import { bignumber, chain } from 'mathjs';
4
+ import { InvoiceControllerState, LineAttributeType } from '../';
5
+ import idGenerator from '../../tools/idGenerator';
6
+
7
+ export interface IOptions {
8
+ /** 需要添加的索引 */
9
+ $index: string;
10
+
11
+ /** 折扣 金额 */
12
+ discolineAmountunt: number;
13
+ }
14
+
15
+ /**
16
+ * 给一组货物添加折扣行
17
+ */
18
+ export default async (state: InvoiceControllerState, options?: IOptions[]) => {
19
+
20
+ if (!options || options.length <= 0) return;
21
+
22
+ const discountGroup = uuidv4();
23
+
24
+ options.forEach(e => {
25
+ const goodsList = state.goodsListState.goodsList;
26
+ const goodsMap = state.goodsListState.goodsMap;
27
+ for (let i = 0; i < goodsList.length; i++) {
28
+ const good = goodsList[i];
29
+ if (good.$index !== e.$index) continue;
30
+
31
+ // 折扣行 税额
32
+ const lineAmountExcludeTax = getLineAmountExcludeTax(e.discolineAmountunt, good.taxRate);
33
+ const taxAmount = getTaxAmount(e.discolineAmountunt, lineAmountExcludeTax);
34
+
35
+ good.lineAttribute = LineAttributeType.被折扣行;
36
+ good.discountGroup = discountGroup;
37
+
38
+ const newGood = {
39
+ discountGroup,
40
+ $index: idGenerator(),
41
+ lineAttribute: LineAttributeType.折扣行,
42
+ taxRate: good.taxRate,
43
+ itemName: good.itemName,
44
+
45
+ taxAmount: -1 * taxAmount,
46
+ lineAmountExcludeTax: -1 * lineAmountExcludeTax,
47
+ lineAmountIncludeTax: -1 * e.discolineAmountunt,
48
+
49
+ taxFreeType: good.taxFreeType,
50
+ favouredPolicyMark: good.favouredPolicyMark,
51
+ favouredPolicyName: good.favouredPolicyName,
52
+ }
53
+
54
+ goodsList.splice(i + 1, 0, newGood);
55
+ goodsMap.set(newGood.$index, newGood);
56
+ }
57
+ })
58
+
59
+ state.goodsListState.goodsList = [...state.goodsListState.goodsList];
60
+ state.goodsListState.goodsMap = new Map(state.goodsListState.goodsMap);
61
+ }
62
+
63
+ /** 金额(不含税) = 含税金额 / (1 + 税率) */
64
+ function getLineAmountExcludeTax(lineAmountIncludeTax: number, taxRate: number = 0) {
65
+ const biTaxRate = chain(bignumber(taxRate)).divide(bignumber(100)).done();
66
+ return chain(bignumber(lineAmountIncludeTax))
67
+ .divide(chain(bignumber(1)).add(biTaxRate).done())
68
+
69
+ .multiply(bignumber(100))
70
+ .floor()
71
+ .divide(bignumber(100))
72
+
73
+ .done()
74
+ .toNumber()
75
+ }
76
+
77
+ /** 税额 = 含税金额 - 金额(不含税) */
78
+ function getTaxAmount(lineAmountIncludeTax: number, lineAmountExcludeTax: number) {
79
+ return chain(bignumber(lineAmountIncludeTax))
80
+ .subtract(bignumber(lineAmountExcludeTax))
81
+
82
+ .done()
83
+ .toNumber()
84
+ }
@@ -2,42 +2,40 @@ import { InvoiceControllerState, IGood } from '../';
2
2
  import LineAttributeType from '../../InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType';
3
3
 
4
4
  /**
5
- * 设置当前的编辑货物
5
+ * 删除一个货物
6
6
  */
7
7
  export default async (state: InvoiceControllerState, $index?: string) => {
8
8
  if (!$index) return;
9
9
 
10
- const goods = state.goodsListState.goodsList.filter( (e) => e.$index === $index)[0];
10
+ // 查下要删除的货物
11
+ const goods = state.goodsListState.goodsList.filter((e) => e.$index === $index)[0];
11
12
  if (!goods) return;
12
- if (
13
- state.goodsListState.editGood &&
14
- state.goodsListState.editGood.$index === $index
15
- ) {
13
+
14
+ // 如果正在编辑 就取消编辑
15
+ if (state.goodsListState.editGood && state.goodsListState.editGood.$index === $index) {
16
16
  state.goodsListState.editGood = undefined;
17
17
  }
18
18
 
19
- if (goods.lineAttribute === LineAttributeType.正常) {
20
- state.goodsListState.selectedGoodIndex =
21
- state.goodsListState.selectedGoodIndex.filter((e) => e !== $index);
22
- state.goodsListState.goodsList = state.goodsListState.goodsList.filter(
23
- (e) => e.$index !== $index,
24
- );
25
- }
19
+ const goodsList = state.goodsListState.goodsList;
20
+ const goodsMap = state.goodsListState.goodsMap;
21
+
22
+ goodsMap.delete($index);
23
+
24
+ for (let i = 0; i < goodsList.length; i++) {
26
25
 
27
- if (goods.lineAttribute === LineAttributeType.折扣行) {
28
- state.goodsListState.goodsList = state.goodsListState.goodsList.filter(
29
- (e) => {
30
- if (e.discountGroup !== goods.discountGroup) return true;
31
- if (e.lineAttribute === LineAttributeType.折扣行) {
32
- state.goodsListState.selectedGoodIndex =
33
- state.goodsListState.selectedGoodIndex.filter((e) => e !== $index);
34
- return false;
35
- }
36
- if (e.lineAttribute === LineAttributeType.被折扣行) {
37
- e.lineAttribute = LineAttributeType.正常;
38
- return true;
39
- }
40
- },
41
- );
26
+ if (goodsList[i].$index === $index) {
27
+ const good = goodsList[i];
28
+
29
+ if (good.lineAttribute === LineAttributeType.折扣行 && goodsList[i - 1] && goodsList[i - 1].lineAttribute === LineAttributeType.被折扣行) {
30
+ goodsList[i - 1].lineAttribute = LineAttributeType.正常;
31
+ }
32
+
33
+ goodsList.splice(i, 1);
34
+
35
+ break;
36
+ }
42
37
  }
38
+
39
+ state.goodsListState.goodsList = [...goodsList];
40
+ state.goodsListState.goodsMap = new Map(goodsMap);
43
41
  };
@@ -4,6 +4,7 @@ import { InvoiceControllerState } from '../';
4
4
  * 保存正在编辑的货物
5
5
  */
6
6
  export default async (state: InvoiceControllerState) => {
7
+
7
8
  const editGood = state.goodsListState.editGood;
8
9
  const form = state.goodsListState.form;
9
10
 
@@ -7,6 +7,7 @@ import setEditGood from './fns/setEditGood';
7
7
  import setGoods from './fns/setGoods';
8
8
  import delGood from './fns/delGood';
9
9
  import addGoodDiscount from './fns/addGoodDiscount';
10
+ import addGoodDiscountV2 from './fns/addGoodDiscountV2';
10
11
  import addGood from './fns/addGood';
11
12
  import saveEditGood from './fns/saveEditGood';
12
13
  import getGoodsSearch from './fns/getGoodsSearch';
@@ -50,6 +51,9 @@ export default class InvoiceController extends InvoiceControllerForm {
50
51
  /** 给一组货物添加折扣行 */
51
52
  addGoodDiscount = this.pipeline(addGoodDiscount);
52
53
 
54
+ /** 给一组货物添加折扣行 */
55
+ addGoodDiscountV2 = this.pipeline(addGoodDiscountV2);
56
+
53
57
  /** 获取 商品 列表 */
54
58
  getGoodsList?: (option?: IGetGoodsListOption | undefined) => Promise<any>;
55
59
 
@@ -1,6 +1,6 @@
1
- import { thomsonCrossSectionDependencies } from 'mathjs';
1
+
2
2
  import React from 'react';
3
- import { Invoice } from '../../../';
3
+ import { Invoice } from '../../../..';
4
4
 
5
5
  export default () => {
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Invoice from '../../';
2
+ import Invoice from '../..';
3
3
  import 'antd/dist/antd.css';
4
4
 
5
5
  export default () => <Invoice />;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Invoice } from '../../../';
2
+ import { Invoice } from '../../../..';
3
3
  import idGenerator from '../../../Invoice/tools/idGenerator';
4
4
  import { LineAttributeType } from '../../../Invoice/InvoiceController';
5
5
  import { Button, Switch } from 'kts-components-antd-x3';
@@ -119,10 +119,10 @@ for (let i = 0; i <= 10000; i++) {
119
119
  $index: idGenerator(),
120
120
  itemName: `项目名称${i}`,
121
121
  lineAttribute: LineAttributeType.正常,
122
- lineAmountExcludeTax: 100,
123
- lineAmountIncludeTax: 103,
122
+ lineAmountExcludeTax: 9.99,
123
+ lineAmountIncludeTax: 10.29,
124
124
  taxRate: 3,
125
- taxAmount: 3,
125
+ taxAmount: 0.3,
126
126
  });
127
127
  }
128
128
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Menu, Typography } from 'kts-components-antd-x3';
3
- import { Invoice } from '../../../';
3
+ import { Invoice } from '../../../..';
4
4
 
5
5
  export default () => {
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Invoice } from '../../../';
2
+ import { Invoice } from '../../../..';
3
3
  import { IGetBuyerListOption } from '../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
4
4
 
5
5
  export default () => {
@@ -1,7 +1,7 @@
1
1
 
2
2
  import React from 'react';
3
3
  import { Button } from 'kts-components-antd-x3/lib/radio';
4
- import { Invoice, IGood } from '../../../';
4
+ import { Invoice, IGood } from '../../../..';
5
5
  import { IGetBuyerListOption } from '../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
6
6
 
7
7
  const InvoiceController = Invoice.InvoiceController
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Input } from 'kts-components-antd-x3';
3
- import { Invoice } from '../../../';
3
+ import { Invoice } from '../../../..';
4
4
  import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
5
5
 
6
6
  export default () => {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AutoComplete, Input, Icon } from 'kts-components-antd-x3';
3
- import { Invoice } from '../../../';
3
+ import { Invoice } from '../../../..';
4
4
 
5
5
  export default () => {
6
6
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Invoice } from '../../../';
2
+ import { Invoice } from '../../../..';
3
3
 
4
4
  const InvoiceController = Invoice.InvoiceController;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Invoice } from '../../../';
2
+ import { Invoice } from '../../../..';
3
3
 
4
4
  export default () => {
5
5
  const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
@@ -1,5 +1,5 @@
1
1
  .kts-invoice-operate {
2
- border: 1px solid #dcdcdc;
2
+ border : 1px solid #dcdcdc;
3
3
  font-size: 12px;
4
4
 
5
5
  &>* {
@@ -10,3 +10,21 @@
10
10
  }
11
11
  }
12
12
  }
13
+
14
+ .kts-invoice-operate-digtal {
15
+
16
+ font-family: PingFang SC;
17
+ font-size : 14px;
18
+
19
+ .kts-invoice-operate-digtal-cont {
20
+ border: 2px solid #9F613E;
21
+
22
+ &>* {
23
+ border-bottom: 2px solid #9F613E;
24
+
25
+ &:last-child {
26
+ border-bottom: none;
27
+ }
28
+ }
29
+ }
30
+ }
@@ -1,4 +1,4 @@
1
- # Invoice
1
+ # 默认
2
2
 
3
3
  ## 简单用法
4
4
  <code src="./_test/easiest/index.tsx"></code>
@@ -46,8 +46,8 @@
46
46
  <code src="./_test/endowCode/index.tsx"></code>
47
47
 
48
48
  <API name="Invoice 发票组件 API" exports='["default"]' src="./index.tsx" ></API>
49
- <API name="InvoiceHeader 发票头 API" exports='["default"]' src="./ui/InvoiceHeader/index.tsx"></API>
50
- <API name="GoodsList 商品列表 API" exports='["default"]' src="./ui/GoodsList/index.tsx"></API>
51
- <API name="Buyer 购买方 API" exports='["default"]' src="./ui/Buyer/index.tsx"></API>
52
- <API name="Seller 销售方 API" exports='["default"]' src="./ui/Seller/index.tsx"></API>
53
- <API name="Sign 落款 API" exports='["default"]' src="./ui/Sign/index.tsx"></API>
49
+ <API name="InvoiceHeader 发票头 API" exports='["default"]' src="./ui/default/InvoiceHeader/index.tsx"></API>
50
+ <API name="GoodsList 商品列表 API" exports='["default"]' src="./ui/default/GoodsList/index.tsx"></API>
51
+ <API name="Buyer 购买方 API" exports='["default"]' src="./ui/default/Buyer/index.tsx"></API>
52
+ <API name="Seller 销售方 API" exports='["default"]' src="./ui/default/Seller/index.tsx"></API>
53
+ <API name="Sign 落款 API" exports='["default"]' src="./ui/default/Sign/index.tsx"></API>