kts-component-invoice-operate 3.2.91 → 3.2.93

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 +9 -9
  8. package/dist/index.esm.js +568 -571
  9. package/dist/index.js +568 -571
  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 +95 -95
  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 +1155 -1155
  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 +516 -1078
  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 +167 -167
  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 -543
  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 +686 -686
  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 +118 -118
  100. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  101. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
  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 +114 -114
  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 +109 -109
  121. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
  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 +113 -113
  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 -177
  199. package/src/TaxClassificationCodeModal/index.md +6 -6
  200. package/src/TaxClassificationCodeModal/index.tsx +74 -74
  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
@@ -1,1156 +1,1156 @@
1
- import React from 'react';
2
- import Invoice from '../..';
3
- import idGenerator from '../../tools/idGenerator';
4
- import { LineAttributeType } from '../../InvoiceController';
5
- import { Button, Switch } from 'kts-components-antd-x3';
6
-
7
- export default () => {
8
- const controller1 = React.useMemo(() => new MyController1(), []);
9
-
10
- const controller2 = React.useMemo(() => new MyController2(), []);
11
-
12
- const [controller, setController] = React.useState(controller1)
13
-
14
- const onClick1 = React.useCallback(() => {
15
- controller.pipeline(async (s) => {
16
- s.goodsListState.goodsList = goodsList.slice();
17
- })();
18
- }, [controller]);
19
-
20
- const onClick5 = React.useCallback(() => {
21
- controller.pipeline(async (s) => {
22
- s.goodsListState.goodsList = goodsList.slice(0, 500);
23
- })();
24
- }, [controller]);
25
-
26
- const onClick2 = React.useCallback(() => {
27
- controller.pipeline(async (s) => {
28
- s.goodsListState.goodsList = lines.map(e => {
29
- return {
30
- $index: idGenerator(),
31
- ...e,
32
- }
33
- });
34
- })();
35
- }, [controller]);
36
-
37
- const onClick6 = React.useCallback(async () => {
38
- console.log('===> 当前组件状态', await controller.validateFields());
39
- }, []);
40
-
41
- return (
42
- <div>
43
- <Button onClick={onClick1} style={{ marginBottom: 20 }}>
44
- 载入1W数据
45
- </Button>
46
- <Button onClick={onClick5} style={{ marginBottom: 20 }}>
47
- 载入500数据
48
- </Button>
49
- <Button onClick={onClick2} style={{ marginBottom: 20 }}>
50
- 模拟生成数据
51
- </Button>
52
- <Button onClick={onClick6} style={{ marginBottom: 10 }}>获取数据</Button>
53
- <Switch checkedChildren="预制" unCheckedChildren="默认" onChange={e => { e ? setController(controller2) : setController(controller1) }} ></Switch>
54
- <Button onClick={controller.pipeline(async s => { s.goodsListState.endowCode.getReadOnlyTaxRate = s.goodsListState.endowCode.readOnlyTaxRateMap.DRAFT })} >税率(草稿)</Button>
55
- <Button onClick={controller.pipeline(async s => { s.goodsListState.endowCode.getReadOnlyTaxRate = () => true })} >税率(预制)</Button>
56
- <Invoice controller={controller} />
57
- </div>
58
- );
59
- };
60
-
61
- // 税收分类编码列表
62
- class MyController1 extends Invoice.InvoiceController {
63
-
64
- constructor() {
65
- super()
66
- this.state.model = 'default'
67
- this.state.goodsListState.isMergeDetails = true;
68
- this.state.goodsListState.isSalesDiscount = true;
69
- this.state.goodsListState.isMergeDiscount = true;
70
- this.state.goodsListState.isSalesGifts = true;
71
- this.state.goodsListState.drag.isStart = true;
72
- this.state.goodsListState.columnshide = [];
73
- }
74
-
75
- getTaxCategoryCodeList = this.pipeline(async (s) => {
76
- console.log('===> 准备赋码的货物索引列表', s.goodsListState.endowCode.endowcodeGoodIndex);
77
- s.goodsListState.endowCode.getTaxCategoryCodeTree = async (taxCategoryCode?: string | undefined, val?: string | undefined) => {
78
- if (!taxCategoryCode && !val) return [];
79
- return moke.map(e => {
80
- return {
81
- label: `${e.taxCategoryCode}-${e.shorthand}`,
82
- shorthand: e.shorthand,
83
- id: e.taxCategoryCode,
84
- pid: e.pid
85
- }
86
- })
87
- };;
88
- });
89
- }
90
-
91
-
92
- class MyController2 extends Invoice.InvoiceController {
93
-
94
- constructor() {
95
- super()
96
- this.state.model = 'prefab'
97
- this.state.goodsListState.isMergeDetails = true;
98
- this.state.goodsListState.isSalesDiscount = true;
99
- this.state.goodsListState.isMergeDiscount = true;
100
- this.state.goodsListState.isSalesGifts = true;
101
- this.state.goodsListState.drag.isStart = true;
102
- this.state.goodsListState.columnshide = [];
103
- }
104
-
105
- getTaxCategoryCodeList = this.pipeline(async (s) => {
106
- console.log('===> 准备赋码的货物索引列表', s.goodsListState.endowCode.endowcodeGoodIndex);
107
-
108
- s.goodsListState.endowCode.getTaxCategoryCodeList = async (value) => {
109
- console.log('===>搜索条件', value);
110
- return [
111
- { label: '3040201990000000000/aaa/bbb', value: '3040201990000000000', taxRate: 3, shorthand: 'aaa' },
112
- { label: '3040201990000000001/aaa/bbb', value: '3040201990000000001', taxRate: 3, shorthand: 'aaa' },
113
- { label: '3040201990000000002/aaa/bbb', value: '3040201990000000002', taxRate: 3, shorthand: 'aaa' },
114
- { label: '3040201990000000003/aaa/bbb', value: '3040201990000000003', taxRate: 3, shorthand: 'aaa' },
115
- { label: '3040201990000000004/aaa/bbb', value: '3040201990000000004', taxRate: 3, shorthand: 'aaa' },
116
- { label: '3040201990000000005/aaa/bbb', value: '3040201990000000005', taxRate: 3, shorthand: 'aaa' },
117
- { label: '3040201990000000006/aaa/bbb', value: '3040201990000000006', taxRate: 3, shorthand: 'aaa' },
118
- { label: '3040201990000000007/aaa/bbb', value: '3040201990000000007', taxRate: 3, shorthand: 'aaa' },
119
- { label: '3040201990000000008/aaa/bbb', value: '3040201990000000008', taxRate: 3, shorthand: 'aaa' },
120
- { label: '3040201990000000009/aaa/bbb', value: '3040201990000000009', taxRate: 3, shorthand: 'aaa' },
121
- { label: '3040201990000000010/aaa/bbb', value: '3040201990000000010', taxRate: 3, shorthand: 'aaa' },
122
- { label: '3040201990000000011/aaa/bbb', value: '3040201990000000011', taxRate: 3, shorthand: 'aaa' },
123
- ]
124
- };
125
- });
126
- }
127
-
128
- const goodsList: any[] = [];
129
- for (let i = 0; i <= 10000; i++) {
130
- goodsList.push({
131
- $index: idGenerator(),
132
- itemName: `项目名称${i}`,
133
- lineAttribute: LineAttributeType.正常,
134
- lineAmountExcludeTax: 9.99,
135
- lineAmountIncludeTax: 10.29,
136
- taxRate: 3,
137
- taxAmount: 0.3,
138
- });
139
- }
140
-
141
- const lines: any[] = [
142
- {
143
- "serialNumber": "1714491422279110656",
144
- "lineNumber": 1,
145
- "taxCode": "3070401000000000000",
146
- "taxName": "信息技术服务",
147
- "specification": null,
148
- "itemName": "技术服务费",
149
- "itemCode": "",
150
- "unit": "套",
151
- "quantity": 1.0000000000001,
152
- "taxRate": 0.06,
153
- "priceExcludeTax": 5,
154
- "priceIncludeTax": 5.3,
155
- "amountTax": 0.3,
156
- "lineAmountExcludeTax": 5,
157
- "lineAmountIncludeTax": 5.3,
158
- "lineAttribute": LineAttributeType.被折扣行,
159
- "discountGroup": "1714491422291693568",
160
- "favouredPolicyMark": false,
161
- "favouredPolicyName": null,
162
- "zeroTaxRateFlag": null,
163
- "referenceLines": null,
164
- "version": 0,
165
- taxAmount:1
166
- },
167
- {
168
- "serialNumber": "1714491422279110656",
169
- "lineNumber": 2,
170
- "taxCode": "3070401000000000000",
171
- "taxName": "信息技术服务",
172
- "specification": "",
173
- "itemName": "技术服务费",
174
- "itemCode": "",
175
- "unit": "",
176
- "quantity": null,
177
- "taxRate": 0.06,
178
- "priceExcludeTax": null,
179
- "priceIncludeTax": null,
180
- "amountTax": -0.06,
181
- "lineAmountExcludeTax": 5,
182
- "lineAmountIncludeTax": 5.3,
183
- "lineAttribute": LineAttributeType.折扣行,
184
- "discountGroup": "1714491422291693568",
185
- "favouredPolicyMark": false,
186
- "favouredPolicyName": null,
187
- "zeroTaxRateFlag": null,
188
- "referenceLines": null,
189
- "version": 0,
190
- taxAmount:1
191
- },
192
- {
193
- "serialNumber": "1714491422279110656",
194
- "lineNumber": 3,
195
- "taxCode": "3070401000000000000",
196
- "taxName": "信息技术服务",
197
- "specification": null,
198
- "itemName": "技术服务费",
199
- "itemCode": null,
200
- "unit": "套",
201
- "quantity": 1,
202
- "taxRate": 0.06,
203
- "priceExcludeTax": 2,
204
- "priceIncludeTax": 2.12,
205
- "amountTax": 0.12,
206
- "lineAmountExcludeTax": 5,
207
- "lineAmountIncludeTax": 5.3,
208
- "lineAttribute": LineAttributeType.正常,
209
- "discountGroup": null,
210
- "favouredPolicyMark": false,
211
- "favouredPolicyName": null,
212
- "zeroTaxRateFlag": null,
213
- "referenceLines": null,
214
- "version": 0,
215
- taxAmount:1
216
- },
217
- {
218
- "serialNumber": "1714491422279110656",
219
- "lineNumber": 3,
220
- "taxCode": "3070401000000000000",
221
- "taxName": "信息技术服务",
222
- "specification": null,
223
- "itemName": "技术服务费",
224
- "itemCode": null,
225
- "unit": "套",
226
- "quantity": 1,
227
- "taxRate": 0.06,
228
- "priceExcludeTax": 2,
229
- "priceIncludeTax": 2.12,
230
- "amountTax": 0.12,
231
- "lineAmountExcludeTax": 5,
232
- "lineAmountIncludeTax": 5.3,
233
- "lineAttribute": LineAttributeType.折让行,
234
- "discountGroup": null,
235
- "favouredPolicyMark": false,
236
- "favouredPolicyName": null,
237
- "zeroTaxRateFlag": null,
238
- "referenceLines": null,
239
- "version": 0,
240
- taxAmount:1
241
- },
242
- {
243
- "serialNumber": "1714491422279110656",
244
- "lineNumber": 3,
245
- "taxCode": "3070401000000000000",
246
- "taxName": "信息技术服务",
247
- "specification": null,
248
- "itemName": "技术服务费",
249
- "itemCode": null,
250
- "unit": "套",
251
- "quantity": 1,
252
- "taxRate": 0.06,
253
- "priceExcludeTax": 2,
254
- "priceIncludeTax": 2.12,
255
- "amountTax": 0.12,
256
- "lineAmountExcludeTax": 5,
257
- "lineAmountIncludeTax": 5.3,
258
- "lineAttribute": LineAttributeType.折让行,
259
- "discountGroup": null,
260
- "favouredPolicyMark": false,
261
- "favouredPolicyName": null,
262
- "zeroTaxRateFlag": null,
263
- "referenceLines": null,
264
- "version": 0,
265
- taxAmount:1
266
- },
267
- {
268
- "serialNumber": "1714491422279110656",
269
- "lineNumber": 3,
270
- "taxCode": "3070401000000000000",
271
- "taxName": "信息技术服务",
272
- "specification": null,
273
- "itemName": "技术服务费",
274
- "itemCode": null,
275
- "unit": "套",
276
- "quantity": 1,
277
- "taxRate": 0.06,
278
- "priceExcludeTax": 2,
279
- "priceIncludeTax": 2.12,
280
- "amountTax": 0.12,
281
- "lineAmountExcludeTax": 5,
282
- "lineAmountIncludeTax": 5.3,
283
- "lineAttribute": LineAttributeType.赠品行,
284
- "discountGroup": null,
285
- "favouredPolicyMark": false,
286
- "favouredPolicyName": null,
287
- "zeroTaxRateFlag": null,
288
- "referenceLines": null,
289
- "version": 0,
290
- taxAmount:1
291
- }
292
- ]
293
-
294
- const moke = [
295
- {
296
- "bbh": "34.0",
297
- "createTime": "2019-09-12 08:54:16.0",
298
- "gjz": "稻谷、早籼稻、晚籼稻、中籼稻、粳稻、糯稻",
299
- "gxsj": "20200601",
300
- "hzx": "N",
301
- "id": 50550,
302
- "pid": "1010101000000000000",
303
- "productName": "稻谷",
304
- "qysj": "20190401",
305
- "shorthand": "谷物",
306
- "sm": "包括早籼稻、晚籼稻、中籼稻、粳稻、糯稻、其他稻谷。",
307
- "specification": null,
308
- "ssflbbh": "32.0",
309
- "statusDesc": null,
310
- "taxCategoryCode": "1010101010000000000",
311
- "updateTime": "2021-08-17 15:12:33.0",
312
- "zzssl": "9%",
313
- "zzstsgl": "免税",
314
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
315
- },
316
- {
317
- "bbh": "34.0",
318
- "createTime": "2019-09-12 08:54:16.0",
319
- "gjz": "小麦、硬质小麦、软质小麦",
320
- "gxsj": "20200601",
321
- "hzx": "N",
322
- "id": 50551,
323
- "pid": "1010101000000000000",
324
- "productName": "小麦",
325
- "qysj": "20190401",
326
- "shorthand": "谷物",
327
- "sm": "包括硬质小麦、软质小麦、其他小麦。",
328
- "specification": null,
329
- "ssflbbh": "32.0",
330
- "statusDesc": null,
331
- "taxCategoryCode": "1010101020000000000",
332
- "updateTime": "2021-08-17 15:12:22.0",
333
- "zzssl": "9%",
334
- "zzstsgl": "免税",
335
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
336
- },
337
- {
338
- "bbh": "34.0",
339
- "createTime": "2019-09-12 08:54:16.0",
340
- "gjz": "玉米、白玉米、黄玉米、糯玉米、甜玉米",
341
- "gxsj": "20200601",
342
- "hzx": "N",
343
- "id": 50552,
344
- "pid": "1010101000000000000",
345
- "productName": "玉米",
346
- "qysj": "20190401",
347
- "shorthand": "谷物",
348
- "sm": "包括白玉米、黄玉米、糯玉米、甜玉米、其他玉米。",
349
- "specification": null,
350
- "ssflbbh": "32.0",
351
- "statusDesc": null,
352
- "taxCategoryCode": "1010101030000000000",
353
- "updateTime": "2021-08-17 15:12:27.0",
354
- "zzssl": "9%",
355
- "zzstsgl": "免税",
356
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)、《财政部、国家税务总局关于免征蔬菜流通环节增值税有关问题的通知》(财税〔2011〕137号)"
357
- },
358
- {
359
- "bbh": "34.0",
360
- "createTime": "2019-09-12 08:54:16.0",
361
- "gjz": "谷子、硬谷子、糯谷子",
362
- "gxsj": "20200601",
363
- "hzx": "N",
364
- "id": 50553,
365
- "pid": "1010101000000000000",
366
- "productName": "谷子",
367
- "qysj": "20190401",
368
- "shorthand": "谷物",
369
- "sm": "包括硬谷子、糯谷子、其他谷子。",
370
- "specification": null,
371
- "ssflbbh": "32.0",
372
- "statusDesc": null,
373
- "taxCategoryCode": "1010101040000000000",
374
- "updateTime": "2021-08-17 15:12:12.0",
375
- "zzssl": "9%",
376
- "zzstsgl": "免税",
377
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
378
- },
379
- {
380
- "bbh": "34.0",
381
- "createTime": "2019-09-12 08:54:16.0",
382
- "gjz": "高粱、红粒高粱、白粒高粱、糯高粱",
383
- "gxsj": "20200601",
384
- "hzx": "N",
385
- "id": 50554,
386
- "pid": "1010101000000000000",
387
- "productName": "高粱",
388
- "qysj": "20190401",
389
- "shorthand": "谷物",
390
- "sm": "包括红粒高粱、白粒高粱、糯高粱、其他高粱。",
391
- "specification": null,
392
- "ssflbbh": "32.0",
393
- "statusDesc": null,
394
- "taxCategoryCode": "1010101050000000000",
395
- "updateTime": "2021-08-17 15:12:30.0",
396
- "zzssl": "9%",
397
- "zzstsgl": "免税",
398
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
399
- },
400
- {
401
- "bbh": "34.0",
402
- "createTime": "2019-09-12 08:54:16.0",
403
- "gjz": "大麦、裸大麦、皮大麦",
404
- "gxsj": "20200601",
405
- "hzx": "N",
406
- "id": 50555,
407
- "pid": "1010101000000000000",
408
- "productName": "大麦",
409
- "qysj": "20190401",
410
- "shorthand": "谷物",
411
- "sm": "包括裸大麦、皮大麦。",
412
- "specification": null,
413
- "ssflbbh": "32.0",
414
- "statusDesc": null,
415
- "taxCategoryCode": "1010101060000000000",
416
- "updateTime": "2021-08-17 15:12:08.0",
417
- "zzssl": "9%",
418
- "zzstsgl": "免税",
419
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
420
- },
421
- {
422
- "bbh": "34.0",
423
- "createTime": "2019-09-12 08:54:16.0",
424
- "gjz": "裸燕麦、皮燕麦",
425
- "gxsj": "20200601",
426
- "hzx": "N",
427
- "id": 50556,
428
- "pid": "1010101000000000000",
429
- "productName": "燕麦",
430
- "qysj": "20190401",
431
- "shorthand": "谷物",
432
- "sm": "包括裸燕麦、皮燕麦。",
433
- "specification": null,
434
- "ssflbbh": "32.0",
435
- "statusDesc": null,
436
- "taxCategoryCode": "1010101070000000000",
437
- "updateTime": "2021-08-17 15:12:29.0",
438
- "zzssl": "9%",
439
- "zzstsgl": "免税",
440
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
441
- },
442
- {
443
- "bbh": "34.0",
444
- "createTime": "2019-09-12 08:54:16.0",
445
- "gjz": "黑麦",
446
- "gxsj": "20200601",
447
- "hzx": "N",
448
- "id": 50557,
449
- "pid": "1010101000000000000",
450
- "productName": "黑麦",
451
- "qysj": "20190401",
452
- "shorthand": "谷物",
453
- "sm": "",
454
- "specification": null,
455
- "ssflbbh": "32.0",
456
- "statusDesc": null,
457
- "taxCategoryCode": "1010101080000000000",
458
- "updateTime": "2021-08-17 15:12:11.0",
459
- "zzssl": "9%",
460
- "zzstsgl": "免税",
461
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
462
- },
463
- {
464
- "bbh": "34.0",
465
- "createTime": "2019-09-12 08:54:16.0",
466
- "gjz": "荞麦、甜荞麦、苦荞麦",
467
- "gxsj": "20200601",
468
- "hzx": "N",
469
- "id": 50558,
470
- "pid": "1010101000000000000",
471
- "productName": "荞麦",
472
- "qysj": "20190401",
473
- "shorthand": "谷物",
474
- "sm": "包括甜荞麦、苦荞麦。",
475
- "specification": null,
476
- "ssflbbh": "32.0",
477
- "statusDesc": null,
478
- "taxCategoryCode": "1010101090000000000",
479
- "updateTime": "2021-08-17 15:12:30.0",
480
- "zzssl": "9%",
481
- "zzstsgl": "免税",
482
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
483
- },
484
- {
485
- "bbh": "34.0",
486
- "createTime": "2019-09-12 08:54:16.0",
487
- "gjz": "糜子、硬糜子、糯糜子、紫米、薏苡",
488
- "gxsj": "20200601",
489
- "hzx": "N",
490
- "id": 50559,
491
- "pid": "1010101000000000000",
492
- "productName": "其他谷物",
493
- "qysj": "20190401",
494
- "shorthand": "谷物",
495
- "sm": "包括糜子(硬糜子、糯糜子)、紫米、薏苡等。",
496
- "specification": null,
497
- "ssflbbh": "32.0",
498
- "statusDesc": null,
499
- "taxCategoryCode": "1010101990000000000",
500
- "updateTime": "2021-08-17 15:12:19.0",
501
- "zzssl": "9%",
502
- "zzstsgl": "免税",
503
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
504
- },
505
- {
506
- "bbh": "34.0",
507
- "createTime": "2019-09-12 08:54:16.0",
508
- "gjz": "种用谷物、种用皮大麦、种用裸大麦、种用糯高粱、种用红粒高粱、种用白粒高粱、种用甜玉米、种用糯玉米、种用黄玉米、种用白玉米、种用硬质小麦、种用软质小麦、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻",
509
- "gxsj": "20200601",
510
- "hzx": "N",
511
- "id": 50683,
512
- "pid": "1010119000000000000",
513
- "productName": "种用谷物",
514
- "qysj": "20190401",
515
- "shorthand": "种子种苗",
516
- "sm": "包括种用硬质小麦、种用甜玉米、种用软质小麦、种用皮大麦、种用糯玉米、种用糯高粱、种用裸大麦、种用黄玉米、种用红粒高粱、种用白玉米、种用白粒高粱、其他种用玉米、其他种用小麦、其他种用高粱、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻、其他种用稻谷。",
517
- "specification": null,
518
- "ssflbbh": "32.0",
519
- "statusDesc": null,
520
- "taxCategoryCode": "1010119010000000000",
521
- "updateTime": "2021-08-17 15:12:24.0",
522
- "zzssl": "9%",
523
- "zzstsgl": "免税",
524
- "zzszcyj": "《财政部、国家税务总局关于若干农业生产资料征免增值税政策的通知》(财税〔2001〕113号)"
525
- },
526
- {
527
- "bbh": "34.0",
528
- "createTime": "2019-09-12 08:54:16.0",
529
- "gjz": "小麦粉、小麦专用粉、小麦自发粉",
530
- "gxsj": "20200601",
531
- "hzx": "N",
532
- "id": 50923,
533
- "pid": "1030101000000000000",
534
- "productName": "小麦粉",
535
- "qysj": "20190401",
536
- "shorthand": "谷物细粉",
537
- "sm": "",
538
- "specification": null,
539
- "ssflbbh": "32.0",
540
- "statusDesc": null,
541
- "taxCategoryCode": "1030101010000000000",
542
- "updateTime": "2021-08-17 15:12:14.0",
543
- "zzssl": "9%",
544
- "zzstsgl": "免税",
545
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
546
- },
547
- {
548
- "bbh": "34.0",
549
- "createTime": "2019-09-12 08:54:16.0",
550
- "gjz": "大米粉、籼米细粉、粳米细粉",
551
- "gxsj": "20200601",
552
- "hzx": "N",
553
- "id": 50924,
554
- "pid": "1030101000000000000",
555
- "productName": "大米粉",
556
- "qysj": "20190401",
557
- "shorthand": "谷物细粉",
558
- "sm": "",
559
- "specification": null,
560
- "ssflbbh": "32.0",
561
- "statusDesc": null,
562
- "taxCategoryCode": "1030101020000000000",
563
- "updateTime": "2021-08-17 15:12:08.0",
564
- "zzssl": "9%",
565
- "zzstsgl": "免税",
566
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
567
- },
568
- {
569
- "bbh": "34.0",
570
- "createTime": "2019-09-12 08:54:16.0",
571
- "gjz": "玉米细粉、糯米细粉、荞麦细粉、黑麦细粉、莜麦细粉、高粱细粉、大麦细粉",
572
- "gxsj": "20200601",
573
- "hzx": "N",
574
- "id": 50925,
575
- "pid": "1030101000000000000",
576
- "productName": "其他谷物细粉",
577
- "qysj": "20190401",
578
- "shorthand": "谷物细粉",
579
- "sm": "",
580
- "specification": null,
581
- "ssflbbh": "32.0",
582
- "statusDesc": null,
583
- "taxCategoryCode": "1030101990000000000",
584
- "updateTime": "2021-08-17 15:12:08.0",
585
- "zzssl": "9%",
586
- "zzstsgl": "免税",
587
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
588
- },
589
- {
590
- "bbh": "34.0",
591
- "createTime": "2019-09-12 08:54:16.0",
592
- "gjz": "籼米、粳米",
593
- "gxsj": "20200601",
594
- "hzx": "N",
595
- "id": 50928,
596
- "pid": "1030102010000000000",
597
- "productName": "大米",
598
- "qysj": "20190401",
599
- "shorthand": "谷物加工品",
600
- "sm": "",
601
- "specification": null,
602
- "ssflbbh": "32.0",
603
- "statusDesc": null,
604
- "taxCategoryCode": "1030102010100000000",
605
- "updateTime": "2021-08-17 15:12:11.0",
606
- "zzssl": "9%",
607
- "zzstsgl": "免税",
608
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
609
- },
610
- {
611
- "bbh": "34.0",
612
- "createTime": "2019-09-12 08:54:16.0",
613
- "gjz": "大米",
614
- "gxsj": "20200601",
615
- "hzx": "N",
616
- "id": 50929,
617
- "pid": "1030102010000000000",
618
- "productName": "小米",
619
- "qysj": "20190401",
620
- "shorthand": "谷物加工品",
621
- "sm": "",
622
- "specification": null,
623
- "ssflbbh": "32.0",
624
- "statusDesc": null,
625
- "taxCategoryCode": "1030102010200000000",
626
- "updateTime": "2021-08-17 15:12:25.0",
627
- "zzssl": "9%",
628
- "zzstsgl": "免税",
629
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
630
- },
631
- {
632
- "bbh": "34.0",
633
- "createTime": "2019-09-12 08:54:16.0",
634
- "gjz": "糯米",
635
- "gxsj": "20200601",
636
- "hzx": "N",
637
- "id": 50930,
638
- "pid": "1030102010000000000",
639
- "productName": "糯米",
640
- "qysj": "20190401",
641
- "shorthand": "谷物加工品",
642
- "sm": "",
643
- "specification": null,
644
- "ssflbbh": "32.0",
645
- "statusDesc": null,
646
- "taxCategoryCode": "1030102010300000000",
647
- "updateTime": "2021-08-17 15:12:14.0",
648
- "zzssl": "9%",
649
- "zzstsgl": "免税",
650
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
651
- },
652
- {
653
- "bbh": "34.0",
654
- "createTime": "2019-09-12 08:54:16.0",
655
- "gjz": "高粱米",
656
- "gxsj": "20200601",
657
- "hzx": "N",
658
- "id": 50931,
659
- "pid": "1030102010000000000",
660
- "productName": "高粱米",
661
- "qysj": "20190401",
662
- "shorthand": "谷物加工品",
663
- "sm": "",
664
- "specification": null,
665
- "ssflbbh": "32.0",
666
- "statusDesc": null,
667
- "taxCategoryCode": "1030102010400000000",
668
- "updateTime": "2021-08-17 15:12:13.0",
669
- "zzssl": "9%",
670
- "zzstsgl": "免税",
671
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
672
- },
673
- {
674
- "bbh": "34.0",
675
- "createTime": "2019-09-12 08:54:16.0",
676
- "gjz": "脱壳燕麦",
677
- "gxsj": "20200601",
678
- "hzx": "N",
679
- "id": 50932,
680
- "pid": "1030102010000000000",
681
- "productName": "脱壳燕麦",
682
- "qysj": "20190401",
683
- "shorthand": "谷物加工品",
684
- "sm": "指已脱壳但未去皮的燕麦。",
685
- "specification": null,
686
- "ssflbbh": "32.0",
687
- "statusDesc": null,
688
- "taxCategoryCode": "1030102010500000000",
689
- "updateTime": "2021-08-17 15:12:06.0",
690
- "zzssl": "9%",
691
- "zzstsgl": "免税",
692
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
693
- },
694
- {
695
- "bbh": "34.0",
696
- "createTime": "2019-09-12 08:54:16.0",
697
- "gjz": "脱壳青稞",
698
- "gxsj": "20200601",
699
- "hzx": "N",
700
- "id": 50933,
701
- "pid": "1030102010000000000",
702
- "productName": "脱壳青稞",
703
- "qysj": "20190401",
704
- "shorthand": "谷物加工品",
705
- "sm": "",
706
- "specification": null,
707
- "ssflbbh": "32.0",
708
- "statusDesc": null,
709
- "taxCategoryCode": "1030102010600000000",
710
- "updateTime": "2021-08-17 15:12:11.0",
711
- "zzssl": "9%",
712
- "zzstsgl": "免税",
713
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
714
- },
715
- {
716
- "bbh": "34.0",
717
- "createTime": "2019-09-12 08:54:16.0",
718
- "gjz": "珠粒大麦",
719
- "gxsj": "20200601",
720
- "hzx": "N",
721
- "id": 50934,
722
- "pid": "1030102010000000000",
723
- "productName": "珠粒大麦",
724
- "qysj": "20190401",
725
- "shorthand": "谷物加工品",
726
- "sm": "",
727
- "specification": null,
728
- "ssflbbh": "32.0",
729
- "statusDesc": null,
730
- "taxCategoryCode": "1030102010700000000",
731
- "updateTime": "2021-08-17 15:12:12.0",
732
- "zzssl": "9%",
733
- "zzstsgl": "免税",
734
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
735
- },
736
- {
737
- "bbh": "34.0",
738
- "createTime": "2019-09-12 08:54:16.0",
739
- "gjz": "",
740
- "gxsj": "20200601",
741
- "hzx": "N",
742
- "id": 50935,
743
- "pid": "1030102010000000000",
744
- "productName": "其他碾磨、脱壳谷物",
745
- "qysj": "20190401",
746
- "shorthand": "谷物加工品",
747
- "sm": "",
748
- "specification": null,
749
- "ssflbbh": "32.0",
750
- "statusDesc": null,
751
- "taxCategoryCode": "1030102019900000000",
752
- "updateTime": "2021-08-17 15:12:21.0",
753
- "zzssl": "9%",
754
- "zzstsgl": "免税",
755
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
756
- },
757
- {
758
- "bbh": "34.0",
759
- "createTime": "2019-09-12 08:54:16.0",
760
- "gjz": "小麦粗磨、大米粗磨、玉米粗磨、燕麦粗磨",
761
- "gxsj": "20200601",
762
- "hzx": "N",
763
- "id": 50936,
764
- "pid": "1030102000000000000",
765
- "productName": "粗磨谷物",
766
- "qysj": "20190401",
767
- "shorthand": "谷物加工品",
768
- "sm": "包括谷物去壳谷粉、粗粉及团粒。",
769
- "specification": null,
770
- "ssflbbh": "32.0",
771
- "statusDesc": null,
772
- "taxCategoryCode": "1030102020000000000",
773
- "updateTime": "2021-08-17 15:12:15.0",
774
- "zzssl": "9%",
775
- "zzstsgl": "免税",
776
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
777
- },
778
- {
779
- "bbh": "34.0",
780
- "createTime": "2019-09-12 08:54:16.0",
781
- "gjz": "燕麦片、大麦片、玉米片、谷物胚芽",
782
- "gxsj": "20200601",
783
- "hzx": "N",
784
- "id": 50937,
785
- "pid": "1030102000000000000",
786
- "productName": "谷物加工制品",
787
- "qysj": "20190401",
788
- "shorthand": "谷物加工品",
789
- "sm": "包括燕麦片、大麦片、玉米片,谷物胚芽等。",
790
- "specification": null,
791
- "ssflbbh": "32.0",
792
- "statusDesc": null,
793
- "taxCategoryCode": "1030102030000000000",
794
- "updateTime": "2021-08-17 15:12:19.0",
795
- "zzssl": "13%、9%",
796
- "zzstsgl": "免税",
797
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
798
- },
799
- {
800
- "bbh": "34.0",
801
- "createTime": "2019-09-12 08:54:16.0",
802
- "gjz": "谷物制品类罐头、甜玉米罐头、米粥罐头、米饭罐头、八宝粥罐头、蔬菜粥罐头、八宝饭罐头",
803
- "gxsj": "20200601",
804
- "hzx": "N",
805
- "id": 51065,
806
- "pid": "1030205000000000000",
807
- "productName": "谷物制品类罐头",
808
- "qysj": "20190401",
809
- "shorthand": "罐头",
810
- "sm": "指经过处理后的谷类、干果及其他原料(桂圆、枸杞、蔬菜等)装罐制成的罐头产品",
811
- "specification": null,
812
- "ssflbbh": "32.0",
813
- "statusDesc": null,
814
- "taxCategoryCode": "1030205080000000000",
815
- "updateTime": "2021-08-17 15:12:25.0",
816
- "zzssl": "13%",
817
- "zzstsgl": "",
818
- "zzszcyj": ""
819
- },
820
- {
821
- "bbh": "34.0",
822
- "createTime": "2019-09-12 08:54:16.0",
823
- "gjz": "谷物磨粉工业用筛、谷物磨粉工业用筛架、混合滚筒、分离滚筒、谷物磨粉机的滚筒、谷物磨粉机的变换器、谷物磨粉工业用机械零件",
824
- "gxsj": "20200601",
825
- "hzx": "N",
826
- "id": 53402,
827
- "pid": "1090220000000000000",
828
- "productName": "谷物磨粉工业用机械零件",
829
- "qysj": "20190401",
830
- "shorthand": "食品制造机械",
831
- "sm": "包括谷物磨粉工业用筛及筛架、混合或分离滚筒、谷物磨粉机的滚筒或变换器、其他谷物磨粉工业用机械零件",
832
- "specification": null,
833
- "ssflbbh": "32.0",
834
- "statusDesc": null,
835
- "taxCategoryCode": "1090220050000000000",
836
- "updateTime": "2021-08-17 15:12:11.0",
837
- "zzssl": "13%",
838
- "zzstsgl": "",
839
- "zzszcyj": ""
840
- },
841
- {
842
- "bbh": "34.0",
843
- "createTime": "2019-09-12 08:54:16.0",
844
- "gjz": "",
845
- "gxsj": "20200601",
846
- "hzx": "Y",
847
- "id": 50549,
848
- "pid": "1010100000000000000",
849
- "productName": "谷物",
850
- "qysj": "20190401",
851
- "shorthand": "谷物",
852
- "sm": "包括稻谷、小麦、玉米、谷子、高粱、大麦、燕麦、黑麦、荞麦、其他谷物,不包括种用谷物(详见101011901)。",
853
- "specification": null,
854
- "ssflbbh": "32.0",
855
- "statusDesc": null,
856
- "taxCategoryCode": "1010101000000000000",
857
- "updateTime": "2021-08-17 15:12:22.0",
858
- "zzssl": "",
859
- "zzstsgl": "",
860
- "zzszcyj": ""
861
- },
862
- {
863
- "bbh": "34.0",
864
- "createTime": "2019-09-12 08:54:16.0",
865
- "gjz": "种子、种苗、种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽",
866
- "gxsj": "20200601",
867
- "hzx": "Y",
868
- "id": 50682,
869
- "pid": "1010100000000000000",
870
- "productName": "种子、种苗",
871
- "qysj": "20190401",
872
- "shorthand": "种子种苗",
873
- "sm": "包括种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽及其他种子、种苗",
874
- "specification": null,
875
- "ssflbbh": "32.0",
876
- "statusDesc": null,
877
- "taxCategoryCode": "1010119000000000000",
878
- "updateTime": "2021-08-17 15:12:22.0",
879
- "zzssl": "",
880
- "zzstsgl": "",
881
- "zzszcyj": ""
882
- },
883
- {
884
- "bbh": "34.0",
885
- "createTime": "2019-09-12 08:54:16.0",
886
- "gjz": "",
887
- "gxsj": "20200601",
888
- "hzx": "Y",
889
- "id": 50922,
890
- "pid": "1030100000000000000",
891
- "productName": "谷物细粉",
892
- "qysj": "20190401",
893
- "shorthand": "谷物细粉",
894
- "sm": "",
895
- "specification": null,
896
- "ssflbbh": "32.0",
897
- "statusDesc": null,
898
- "taxCategoryCode": "1030101000000000000",
899
- "updateTime": "2021-08-17 15:12:09.0",
900
- "zzssl": "",
901
- "zzstsgl": "",
902
- "zzszcyj": ""
903
- },
904
- {
905
- "bbh": "34.0",
906
- "createTime": "2019-09-12 08:54:16.0",
907
- "gjz": "",
908
- "gxsj": "20200601",
909
- "hzx": "Y",
910
- "id": 50927,
911
- "pid": "1030102000000000000",
912
- "productName": "碾磨、脱壳谷物",
913
- "qysj": "20190401",
914
- "shorthand": "谷物加工品",
915
- "sm": "",
916
- "specification": null,
917
- "ssflbbh": "32.0",
918
- "statusDesc": null,
919
- "taxCategoryCode": "1030102010000000000",
920
- "updateTime": "2021-08-17 15:12:07.0",
921
- "zzssl": "",
922
- "zzstsgl": "",
923
- "zzszcyj": ""
924
- },
925
- {
926
- "bbh": "34.0",
927
- "createTime": "2019-09-12 08:54:16.0",
928
- "gjz": "",
929
- "gxsj": "20200601",
930
- "hzx": "Y",
931
- "id": 51057,
932
- "pid": "1030200000000000000",
933
- "productName": "罐头",
934
- "qysj": "20190401",
935
- "shorthand": "罐头",
936
- "sm": "",
937
- "specification": null,
938
- "ssflbbh": "32.0",
939
- "statusDesc": null,
940
- "taxCategoryCode": "1030205000000000000",
941
- "updateTime": "2021-08-17 15:12:13.0",
942
- "zzssl": "",
943
- "zzstsgl": "",
944
- "zzszcyj": ""
945
- },
946
- {
947
- "bbh": "34.0",
948
- "createTime": "2019-09-12 08:54:16.0",
949
- "gjz": "",
950
- "gxsj": "20200601",
951
- "hzx": "Y",
952
- "id": 53397,
953
- "pid": "1090200000000000000",
954
- "productName": "食品、饮料、烟草专用生产设备零件",
955
- "qysj": "20190401",
956
- "shorthand": "食品制造机械",
957
- "sm": "",
958
- "specification": null,
959
- "ssflbbh": "32.0",
960
- "statusDesc": null,
961
- "taxCategoryCode": "1090220000000000000",
962
- "updateTime": "2021-08-17 15:12:09.0",
963
- "zzssl": "",
964
- "zzstsgl": "",
965
- "zzszcyj": ""
966
- },
967
- {
968
- "bbh": "34.0",
969
- "createTime": "2019-09-12 08:54:16.0",
970
- "gjz": "",
971
- "gxsj": "20200601",
972
- "hzx": "Y",
973
- "id": 50548,
974
- "pid": "1010000000000000000",
975
- "productName": "农业产品",
976
- "qysj": "20190401",
977
- "shorthand": "农业产品",
978
- "sm": "",
979
- "specification": null,
980
- "ssflbbh": "32.0",
981
- "statusDesc": null,
982
- "taxCategoryCode": "1010100000000000000",
983
- "updateTime": "2021-08-17 15:12:32.0",
984
- "zzssl": "",
985
- "zzstsgl": "",
986
- "zzszcyj": ""
987
- },
988
- {
989
- "bbh": "34.0",
990
- "createTime": "2019-09-12 08:54:16.0",
991
- "gjz": "",
992
- "gxsj": "20200601",
993
- "hzx": "Y",
994
- "id": 50921,
995
- "pid": "1030000000000000000",
996
- "productName": "农副食品,动、植物油制品",
997
- "qysj": "20190401",
998
- "shorthand": "农副食品",
999
- "sm": "",
1000
- "specification": null,
1001
- "ssflbbh": "32.0",
1002
- "statusDesc": null,
1003
- "taxCategoryCode": "1030100000000000000",
1004
- "updateTime": "2021-08-17 15:12:23.0",
1005
- "zzssl": "",
1006
- "zzstsgl": "",
1007
- "zzszcyj": ""
1008
- },
1009
- {
1010
- "bbh": "34.0",
1011
- "createTime": "2019-09-12 08:54:16.0",
1012
- "gjz": "",
1013
- "gxsj": "20200601",
1014
- "hzx": "Y",
1015
- "id": 50926,
1016
- "pid": "1030100000000000000",
1017
- "productName": "碾磨谷物及谷物加工品",
1018
- "qysj": "20190401",
1019
- "shorthand": "谷物加工品",
1020
- "sm": "",
1021
- "specification": null,
1022
- "ssflbbh": "32.0",
1023
- "statusDesc": null,
1024
- "taxCategoryCode": "1030102000000000000",
1025
- "updateTime": "2021-08-17 15:12:20.0",
1026
- "zzssl": "",
1027
- "zzstsgl": "",
1028
- "zzszcyj": ""
1029
- },
1030
- {
1031
- "bbh": "34.0",
1032
- "createTime": "2019-09-12 08:54:16.0",
1033
- "gjz": "",
1034
- "gxsj": "20200601",
1035
- "hzx": "Y",
1036
- "id": 51032,
1037
- "pid": "1030000000000000000",
1038
- "productName": "食品及加工盐",
1039
- "qysj": "20190401",
1040
- "shorthand": "食品",
1041
- "sm": "",
1042
- "specification": null,
1043
- "ssflbbh": "32.0",
1044
- "statusDesc": null,
1045
- "taxCategoryCode": "1030200000000000000",
1046
- "updateTime": "2021-08-17 15:12:30.0",
1047
- "zzssl": "",
1048
- "zzstsgl": "",
1049
- "zzszcyj": ""
1050
- },
1051
- {
1052
- "bbh": "34.0",
1053
- "createTime": "2019-09-12 08:54:16.0",
1054
- "gjz": "",
1055
- "gxsj": "20200601",
1056
- "hzx": "Y",
1057
- "id": 53261,
1058
- "pid": "1090000000000000000",
1059
- "productName": "专用设备",
1060
- "qysj": "20190401",
1061
- "shorthand": "专用设备",
1062
- "sm": "指只在一个特定产业,用来生产、加工、处理特定产品或者改变特定物质形态的机械设备及其专门配套件",
1063
- "specification": null,
1064
- "ssflbbh": "32.0",
1065
- "statusDesc": null,
1066
- "taxCategoryCode": "1090200000000000000",
1067
- "updateTime": "2021-08-17 15:12:15.0",
1068
- "zzssl": "",
1069
- "zzstsgl": "",
1070
- "zzszcyj": ""
1071
- },
1072
- {
1073
- "bbh": "34.0",
1074
- "createTime": "2019-09-12 08:54:16.0",
1075
- "gjz": "",
1076
- "gxsj": "20200601",
1077
- "hzx": "Y",
1078
- "id": 50547,
1079
- "pid": "1000000000000000000",
1080
- "productName": "农、林、牧、渔业类产品",
1081
- "qysj": "20190401",
1082
- "shorthand": "农产品",
1083
- "sm": "",
1084
- "specification": null,
1085
- "ssflbbh": "32.0",
1086
- "statusDesc": null,
1087
- "taxCategoryCode": "1010000000000000000",
1088
- "updateTime": "2021-08-17 15:12:19.0",
1089
- "zzssl": "",
1090
- "zzstsgl": "",
1091
- "zzszcyj": ""
1092
- },
1093
- {
1094
- "bbh": "34.0",
1095
- "createTime": "2019-09-12 08:54:16.0",
1096
- "gjz": "",
1097
- "gxsj": "20200601",
1098
- "hzx": "Y",
1099
- "id": 50920,
1100
- "pid": "1000000000000000000",
1101
- "productName": "食品、饮料、烟、酒类产品",
1102
- "qysj": "20190401",
1103
- "shorthand": "食品类产品",
1104
- "sm": "",
1105
- "specification": null,
1106
- "ssflbbh": "32.0",
1107
- "statusDesc": null,
1108
- "taxCategoryCode": "1030000000000000000",
1109
- "updateTime": "2021-08-17 15:12:07.0",
1110
- "zzssl": "",
1111
- "zzstsgl": "",
1112
- "zzszcyj": ""
1113
- },
1114
- {
1115
- "bbh": "34.0",
1116
- "createTime": "2019-09-12 08:54:16.0",
1117
- "gjz": "",
1118
- "gxsj": "20200601",
1119
- "hzx": "Y",
1120
- "id": 53022,
1121
- "pid": "1000000000000000000",
1122
- "productName": "机械、设备类产品",
1123
- "qysj": "20190401",
1124
- "shorthand": "机械设备",
1125
- "sm": "",
1126
- "specification": null,
1127
- "ssflbbh": "32.0",
1128
- "statusDesc": null,
1129
- "taxCategoryCode": "1090000000000000000",
1130
- "updateTime": "2021-08-17 15:12:15.0",
1131
- "zzssl": "",
1132
- "zzstsgl": "",
1133
- "zzszcyj": ""
1134
- },
1135
- {
1136
- "bbh": "34.0",
1137
- "createTime": "2019-09-12 08:54:16.0",
1138
- "gjz": "",
1139
- "gxsj": "20200601",
1140
- "hzx": "Y",
1141
- "id": 50546,
1142
- "pid": "0",
1143
- "productName": "货物",
1144
- "qysj": "20190401",
1145
- "shorthand": "货物",
1146
- "sm": "",
1147
- "specification": null,
1148
- "ssflbbh": "32.0",
1149
- "statusDesc": null,
1150
- "taxCategoryCode": "1000000000000000000",
1151
- "updateTime": "2021-08-17 15:12:12.0",
1152
- "zzssl": "",
1153
- "zzstsgl": "",
1154
- "zzszcyj": ""
1155
- }
1
+ import React from 'react';
2
+ import Invoice from '../..';
3
+ import idGenerator from '../../tools/idGenerator';
4
+ import { LineAttributeType } from '../../InvoiceController';
5
+ import { Button, Switch } from 'kts-components-antd-x3';
6
+
7
+ export default () => {
8
+ const controller1 = React.useMemo(() => new MyController1(), []);
9
+
10
+ const controller2 = React.useMemo(() => new MyController2(), []);
11
+
12
+ const [controller, setController] = React.useState(controller1)
13
+
14
+ const onClick1 = React.useCallback(() => {
15
+ controller.pipeline(async (s) => {
16
+ s.goodsListState.goodsList = goodsList.slice();
17
+ })();
18
+ }, [controller]);
19
+
20
+ const onClick5 = React.useCallback(() => {
21
+ controller.pipeline(async (s) => {
22
+ s.goodsListState.goodsList = goodsList.slice(0, 500);
23
+ })();
24
+ }, [controller]);
25
+
26
+ const onClick2 = React.useCallback(() => {
27
+ controller.pipeline(async (s) => {
28
+ s.goodsListState.goodsList = lines.map(e => {
29
+ return {
30
+ $index: idGenerator(),
31
+ ...e,
32
+ }
33
+ });
34
+ })();
35
+ }, [controller]);
36
+
37
+ const onClick6 = React.useCallback(async () => {
38
+ console.log('===> 当前组件状态', await controller.validateFields());
39
+ }, []);
40
+
41
+ return (
42
+ <div>
43
+ <Button onClick={onClick1} style={{ marginBottom: 20 }}>
44
+ 载入1W数据
45
+ </Button>
46
+ <Button onClick={onClick5} style={{ marginBottom: 20 }}>
47
+ 载入500数据
48
+ </Button>
49
+ <Button onClick={onClick2} style={{ marginBottom: 20 }}>
50
+ 模拟生成数据
51
+ </Button>
52
+ <Button onClick={onClick6} style={{ marginBottom: 10 }}>获取数据</Button>
53
+ <Switch checkedChildren="预制" unCheckedChildren="默认" onChange={e => { e ? setController(controller2) : setController(controller1) }} ></Switch>
54
+ <Button onClick={controller.pipeline(async s => { s.goodsListState.endowCode.getReadOnlyTaxRate = s.goodsListState.endowCode.readOnlyTaxRateMap.DRAFT })} >税率(草稿)</Button>
55
+ <Button onClick={controller.pipeline(async s => { s.goodsListState.endowCode.getReadOnlyTaxRate = () => true })} >税率(预制)</Button>
56
+ <Invoice controller={controller} />
57
+ </div>
58
+ );
59
+ };
60
+
61
+ // 税收分类编码列表
62
+ class MyController1 extends Invoice.InvoiceController {
63
+
64
+ constructor() {
65
+ super()
66
+ this.state.model = 'default'
67
+ this.state.goodsListState.isMergeDetails = true;
68
+ this.state.goodsListState.isSalesDiscount = true;
69
+ this.state.goodsListState.isMergeDiscount = true;
70
+ this.state.goodsListState.isSalesGifts = true;
71
+ this.state.goodsListState.drag.isStart = true;
72
+ this.state.goodsListState.columnshide = [];
73
+ }
74
+
75
+ getTaxCategoryCodeList = this.pipeline(async (s) => {
76
+ console.log('===> 准备赋码的货物索引列表', s.goodsListState.endowCode.endowcodeGoodIndex);
77
+ s.goodsListState.endowCode.getTaxCategoryCodeTree = async (taxCategoryCode?: string | undefined, val?: string | undefined) => {
78
+ if (!taxCategoryCode && !val) return [];
79
+ return moke.map(e => {
80
+ return {
81
+ label: `${e.taxCategoryCode}-${e.shorthand}`,
82
+ shorthand: e.shorthand,
83
+ id: e.taxCategoryCode,
84
+ pid: e.pid
85
+ }
86
+ })
87
+ };;
88
+ });
89
+ }
90
+
91
+
92
+ class MyController2 extends Invoice.InvoiceController {
93
+
94
+ constructor() {
95
+ super()
96
+ this.state.model = 'prefab'
97
+ this.state.goodsListState.isMergeDetails = true;
98
+ this.state.goodsListState.isSalesDiscount = true;
99
+ this.state.goodsListState.isMergeDiscount = true;
100
+ this.state.goodsListState.isSalesGifts = true;
101
+ this.state.goodsListState.drag.isStart = true;
102
+ this.state.goodsListState.columnshide = [];
103
+ }
104
+
105
+ getTaxCategoryCodeList = this.pipeline(async (s) => {
106
+ console.log('===> 准备赋码的货物索引列表', s.goodsListState.endowCode.endowcodeGoodIndex);
107
+
108
+ s.goodsListState.endowCode.getTaxCategoryCodeList = async (value) => {
109
+ console.log('===>搜索条件', value);
110
+ return [
111
+ { label: '3040201990000000000/aaa/bbb', value: '3040201990000000000', taxRate: 3, shorthand: 'aaa' },
112
+ { label: '3040201990000000001/aaa/bbb', value: '3040201990000000001', taxRate: 3, shorthand: 'aaa' },
113
+ { label: '3040201990000000002/aaa/bbb', value: '3040201990000000002', taxRate: 3, shorthand: 'aaa' },
114
+ { label: '3040201990000000003/aaa/bbb', value: '3040201990000000003', taxRate: 3, shorthand: 'aaa' },
115
+ { label: '3040201990000000004/aaa/bbb', value: '3040201990000000004', taxRate: 3, shorthand: 'aaa' },
116
+ { label: '3040201990000000005/aaa/bbb', value: '3040201990000000005', taxRate: 3, shorthand: 'aaa' },
117
+ { label: '3040201990000000006/aaa/bbb', value: '3040201990000000006', taxRate: 3, shorthand: 'aaa' },
118
+ { label: '3040201990000000007/aaa/bbb', value: '3040201990000000007', taxRate: 3, shorthand: 'aaa' },
119
+ { label: '3040201990000000008/aaa/bbb', value: '3040201990000000008', taxRate: 3, shorthand: 'aaa' },
120
+ { label: '3040201990000000009/aaa/bbb', value: '3040201990000000009', taxRate: 3, shorthand: 'aaa' },
121
+ { label: '3040201990000000010/aaa/bbb', value: '3040201990000000010', taxRate: 3, shorthand: 'aaa' },
122
+ { label: '3040201990000000011/aaa/bbb', value: '3040201990000000011', taxRate: 3, shorthand: 'aaa' },
123
+ ]
124
+ };
125
+ });
126
+ }
127
+
128
+ const goodsList: any[] = [];
129
+ for (let i = 0; i <= 10000; i++) {
130
+ goodsList.push({
131
+ $index: idGenerator(),
132
+ itemName: `项目名称${i}`,
133
+ lineAttribute: LineAttributeType.正常,
134
+ lineAmountExcludeTax: 9.99,
135
+ lineAmountIncludeTax: 10.29,
136
+ taxRate: 3,
137
+ taxAmount: 0.3,
138
+ });
139
+ }
140
+
141
+ const lines: any[] = [
142
+ {
143
+ "serialNumber": "1714491422279110656",
144
+ "lineNumber": 1,
145
+ "taxCode": "3070401000000000000",
146
+ "taxName": "信息技术服务",
147
+ "specification": null,
148
+ "itemName": "技术服务费",
149
+ "itemCode": "",
150
+ "unit": "套",
151
+ "quantity": 1.0000000000001,
152
+ "taxRate": 0.06,
153
+ "priceExcludeTax": 5,
154
+ "priceIncludeTax": 5.3,
155
+ "amountTax": 0.3,
156
+ "lineAmountExcludeTax": 5,
157
+ "lineAmountIncludeTax": 5.3,
158
+ "lineAttribute": LineAttributeType.被折扣行,
159
+ "discountGroup": "1714491422291693568",
160
+ "favouredPolicyMark": false,
161
+ "favouredPolicyName": null,
162
+ "zeroTaxRateFlag": null,
163
+ "referenceLines": null,
164
+ "version": 0,
165
+ taxAmount:1
166
+ },
167
+ {
168
+ "serialNumber": "1714491422279110656",
169
+ "lineNumber": 2,
170
+ "taxCode": "3070401000000000000",
171
+ "taxName": "信息技术服务",
172
+ "specification": "",
173
+ "itemName": "技术服务费",
174
+ "itemCode": "",
175
+ "unit": "",
176
+ "quantity": null,
177
+ "taxRate": 0.06,
178
+ "priceExcludeTax": null,
179
+ "priceIncludeTax": null,
180
+ "amountTax": -0.06,
181
+ "lineAmountExcludeTax": 5,
182
+ "lineAmountIncludeTax": 5.3,
183
+ "lineAttribute": LineAttributeType.折扣行,
184
+ "discountGroup": "1714491422291693568",
185
+ "favouredPolicyMark": false,
186
+ "favouredPolicyName": null,
187
+ "zeroTaxRateFlag": null,
188
+ "referenceLines": null,
189
+ "version": 0,
190
+ taxAmount:1
191
+ },
192
+ {
193
+ "serialNumber": "1714491422279110656",
194
+ "lineNumber": 3,
195
+ "taxCode": "3070401000000000000",
196
+ "taxName": "信息技术服务",
197
+ "specification": null,
198
+ "itemName": "技术服务费",
199
+ "itemCode": null,
200
+ "unit": "套",
201
+ "quantity": 1,
202
+ "taxRate": 0.06,
203
+ "priceExcludeTax": 2,
204
+ "priceIncludeTax": 2.12,
205
+ "amountTax": 0.12,
206
+ "lineAmountExcludeTax": 5,
207
+ "lineAmountIncludeTax": 5.3,
208
+ "lineAttribute": LineAttributeType.正常,
209
+ "discountGroup": null,
210
+ "favouredPolicyMark": false,
211
+ "favouredPolicyName": null,
212
+ "zeroTaxRateFlag": null,
213
+ "referenceLines": null,
214
+ "version": 0,
215
+ taxAmount:1
216
+ },
217
+ {
218
+ "serialNumber": "1714491422279110656",
219
+ "lineNumber": 3,
220
+ "taxCode": "3070401000000000000",
221
+ "taxName": "信息技术服务",
222
+ "specification": null,
223
+ "itemName": "技术服务费",
224
+ "itemCode": null,
225
+ "unit": "套",
226
+ "quantity": 1,
227
+ "taxRate": 0.06,
228
+ "priceExcludeTax": 2,
229
+ "priceIncludeTax": 2.12,
230
+ "amountTax": 0.12,
231
+ "lineAmountExcludeTax": 5,
232
+ "lineAmountIncludeTax": 5.3,
233
+ "lineAttribute": LineAttributeType.折让行,
234
+ "discountGroup": null,
235
+ "favouredPolicyMark": false,
236
+ "favouredPolicyName": null,
237
+ "zeroTaxRateFlag": null,
238
+ "referenceLines": null,
239
+ "version": 0,
240
+ taxAmount:1
241
+ },
242
+ {
243
+ "serialNumber": "1714491422279110656",
244
+ "lineNumber": 3,
245
+ "taxCode": "3070401000000000000",
246
+ "taxName": "信息技术服务",
247
+ "specification": null,
248
+ "itemName": "技术服务费",
249
+ "itemCode": null,
250
+ "unit": "套",
251
+ "quantity": 1,
252
+ "taxRate": 0.06,
253
+ "priceExcludeTax": 2,
254
+ "priceIncludeTax": 2.12,
255
+ "amountTax": 0.12,
256
+ "lineAmountExcludeTax": 5,
257
+ "lineAmountIncludeTax": 5.3,
258
+ "lineAttribute": LineAttributeType.折让行,
259
+ "discountGroup": null,
260
+ "favouredPolicyMark": false,
261
+ "favouredPolicyName": null,
262
+ "zeroTaxRateFlag": null,
263
+ "referenceLines": null,
264
+ "version": 0,
265
+ taxAmount:1
266
+ },
267
+ {
268
+ "serialNumber": "1714491422279110656",
269
+ "lineNumber": 3,
270
+ "taxCode": "3070401000000000000",
271
+ "taxName": "信息技术服务",
272
+ "specification": null,
273
+ "itemName": "技术服务费",
274
+ "itemCode": null,
275
+ "unit": "套",
276
+ "quantity": 1,
277
+ "taxRate": 0.06,
278
+ "priceExcludeTax": 2,
279
+ "priceIncludeTax": 2.12,
280
+ "amountTax": 0.12,
281
+ "lineAmountExcludeTax": 5,
282
+ "lineAmountIncludeTax": 5.3,
283
+ "lineAttribute": LineAttributeType.赠品行,
284
+ "discountGroup": null,
285
+ "favouredPolicyMark": false,
286
+ "favouredPolicyName": null,
287
+ "zeroTaxRateFlag": null,
288
+ "referenceLines": null,
289
+ "version": 0,
290
+ taxAmount:1
291
+ }
292
+ ]
293
+
294
+ const moke = [
295
+ {
296
+ "bbh": "34.0",
297
+ "createTime": "2019-09-12 08:54:16.0",
298
+ "gjz": "稻谷、早籼稻、晚籼稻、中籼稻、粳稻、糯稻",
299
+ "gxsj": "20200601",
300
+ "hzx": "N",
301
+ "id": 50550,
302
+ "pid": "1010101000000000000",
303
+ "productName": "稻谷",
304
+ "qysj": "20190401",
305
+ "shorthand": "谷物",
306
+ "sm": "包括早籼稻、晚籼稻、中籼稻、粳稻、糯稻、其他稻谷。",
307
+ "specification": null,
308
+ "ssflbbh": "32.0",
309
+ "statusDesc": null,
310
+ "taxCategoryCode": "1010101010000000000",
311
+ "updateTime": "2021-08-17 15:12:33.0",
312
+ "zzssl": "9%",
313
+ "zzstsgl": "免税",
314
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
315
+ },
316
+ {
317
+ "bbh": "34.0",
318
+ "createTime": "2019-09-12 08:54:16.0",
319
+ "gjz": "小麦、硬质小麦、软质小麦",
320
+ "gxsj": "20200601",
321
+ "hzx": "N",
322
+ "id": 50551,
323
+ "pid": "1010101000000000000",
324
+ "productName": "小麦",
325
+ "qysj": "20190401",
326
+ "shorthand": "谷物",
327
+ "sm": "包括硬质小麦、软质小麦、其他小麦。",
328
+ "specification": null,
329
+ "ssflbbh": "32.0",
330
+ "statusDesc": null,
331
+ "taxCategoryCode": "1010101020000000000",
332
+ "updateTime": "2021-08-17 15:12:22.0",
333
+ "zzssl": "9%",
334
+ "zzstsgl": "免税",
335
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
336
+ },
337
+ {
338
+ "bbh": "34.0",
339
+ "createTime": "2019-09-12 08:54:16.0",
340
+ "gjz": "玉米、白玉米、黄玉米、糯玉米、甜玉米",
341
+ "gxsj": "20200601",
342
+ "hzx": "N",
343
+ "id": 50552,
344
+ "pid": "1010101000000000000",
345
+ "productName": "玉米",
346
+ "qysj": "20190401",
347
+ "shorthand": "谷物",
348
+ "sm": "包括白玉米、黄玉米、糯玉米、甜玉米、其他玉米。",
349
+ "specification": null,
350
+ "ssflbbh": "32.0",
351
+ "statusDesc": null,
352
+ "taxCategoryCode": "1010101030000000000",
353
+ "updateTime": "2021-08-17 15:12:27.0",
354
+ "zzssl": "9%",
355
+ "zzstsgl": "免税",
356
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)、《财政部、国家税务总局关于免征蔬菜流通环节增值税有关问题的通知》(财税〔2011〕137号)"
357
+ },
358
+ {
359
+ "bbh": "34.0",
360
+ "createTime": "2019-09-12 08:54:16.0",
361
+ "gjz": "谷子、硬谷子、糯谷子",
362
+ "gxsj": "20200601",
363
+ "hzx": "N",
364
+ "id": 50553,
365
+ "pid": "1010101000000000000",
366
+ "productName": "谷子",
367
+ "qysj": "20190401",
368
+ "shorthand": "谷物",
369
+ "sm": "包括硬谷子、糯谷子、其他谷子。",
370
+ "specification": null,
371
+ "ssflbbh": "32.0",
372
+ "statusDesc": null,
373
+ "taxCategoryCode": "1010101040000000000",
374
+ "updateTime": "2021-08-17 15:12:12.0",
375
+ "zzssl": "9%",
376
+ "zzstsgl": "免税",
377
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
378
+ },
379
+ {
380
+ "bbh": "34.0",
381
+ "createTime": "2019-09-12 08:54:16.0",
382
+ "gjz": "高粱、红粒高粱、白粒高粱、糯高粱",
383
+ "gxsj": "20200601",
384
+ "hzx": "N",
385
+ "id": 50554,
386
+ "pid": "1010101000000000000",
387
+ "productName": "高粱",
388
+ "qysj": "20190401",
389
+ "shorthand": "谷物",
390
+ "sm": "包括红粒高粱、白粒高粱、糯高粱、其他高粱。",
391
+ "specification": null,
392
+ "ssflbbh": "32.0",
393
+ "statusDesc": null,
394
+ "taxCategoryCode": "1010101050000000000",
395
+ "updateTime": "2021-08-17 15:12:30.0",
396
+ "zzssl": "9%",
397
+ "zzstsgl": "免税",
398
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
399
+ },
400
+ {
401
+ "bbh": "34.0",
402
+ "createTime": "2019-09-12 08:54:16.0",
403
+ "gjz": "大麦、裸大麦、皮大麦",
404
+ "gxsj": "20200601",
405
+ "hzx": "N",
406
+ "id": 50555,
407
+ "pid": "1010101000000000000",
408
+ "productName": "大麦",
409
+ "qysj": "20190401",
410
+ "shorthand": "谷物",
411
+ "sm": "包括裸大麦、皮大麦。",
412
+ "specification": null,
413
+ "ssflbbh": "32.0",
414
+ "statusDesc": null,
415
+ "taxCategoryCode": "1010101060000000000",
416
+ "updateTime": "2021-08-17 15:12:08.0",
417
+ "zzssl": "9%",
418
+ "zzstsgl": "免税",
419
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
420
+ },
421
+ {
422
+ "bbh": "34.0",
423
+ "createTime": "2019-09-12 08:54:16.0",
424
+ "gjz": "裸燕麦、皮燕麦",
425
+ "gxsj": "20200601",
426
+ "hzx": "N",
427
+ "id": 50556,
428
+ "pid": "1010101000000000000",
429
+ "productName": "燕麦",
430
+ "qysj": "20190401",
431
+ "shorthand": "谷物",
432
+ "sm": "包括裸燕麦、皮燕麦。",
433
+ "specification": null,
434
+ "ssflbbh": "32.0",
435
+ "statusDesc": null,
436
+ "taxCategoryCode": "1010101070000000000",
437
+ "updateTime": "2021-08-17 15:12:29.0",
438
+ "zzssl": "9%",
439
+ "zzstsgl": "免税",
440
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
441
+ },
442
+ {
443
+ "bbh": "34.0",
444
+ "createTime": "2019-09-12 08:54:16.0",
445
+ "gjz": "黑麦",
446
+ "gxsj": "20200601",
447
+ "hzx": "N",
448
+ "id": 50557,
449
+ "pid": "1010101000000000000",
450
+ "productName": "黑麦",
451
+ "qysj": "20190401",
452
+ "shorthand": "谷物",
453
+ "sm": "",
454
+ "specification": null,
455
+ "ssflbbh": "32.0",
456
+ "statusDesc": null,
457
+ "taxCategoryCode": "1010101080000000000",
458
+ "updateTime": "2021-08-17 15:12:11.0",
459
+ "zzssl": "9%",
460
+ "zzstsgl": "免税",
461
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
462
+ },
463
+ {
464
+ "bbh": "34.0",
465
+ "createTime": "2019-09-12 08:54:16.0",
466
+ "gjz": "荞麦、甜荞麦、苦荞麦",
467
+ "gxsj": "20200601",
468
+ "hzx": "N",
469
+ "id": 50558,
470
+ "pid": "1010101000000000000",
471
+ "productName": "荞麦",
472
+ "qysj": "20190401",
473
+ "shorthand": "谷物",
474
+ "sm": "包括甜荞麦、苦荞麦。",
475
+ "specification": null,
476
+ "ssflbbh": "32.0",
477
+ "statusDesc": null,
478
+ "taxCategoryCode": "1010101090000000000",
479
+ "updateTime": "2021-08-17 15:12:30.0",
480
+ "zzssl": "9%",
481
+ "zzstsgl": "免税",
482
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
483
+ },
484
+ {
485
+ "bbh": "34.0",
486
+ "createTime": "2019-09-12 08:54:16.0",
487
+ "gjz": "糜子、硬糜子、糯糜子、紫米、薏苡",
488
+ "gxsj": "20200601",
489
+ "hzx": "N",
490
+ "id": 50559,
491
+ "pid": "1010101000000000000",
492
+ "productName": "其他谷物",
493
+ "qysj": "20190401",
494
+ "shorthand": "谷物",
495
+ "sm": "包括糜子(硬糜子、糯糜子)、紫米、薏苡等。",
496
+ "specification": null,
497
+ "ssflbbh": "32.0",
498
+ "statusDesc": null,
499
+ "taxCategoryCode": "1010101990000000000",
500
+ "updateTime": "2021-08-17 15:12:19.0",
501
+ "zzssl": "9%",
502
+ "zzstsgl": "免税",
503
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
504
+ },
505
+ {
506
+ "bbh": "34.0",
507
+ "createTime": "2019-09-12 08:54:16.0",
508
+ "gjz": "种用谷物、种用皮大麦、种用裸大麦、种用糯高粱、种用红粒高粱、种用白粒高粱、种用甜玉米、种用糯玉米、种用黄玉米、种用白玉米、种用硬质小麦、种用软质小麦、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻",
509
+ "gxsj": "20200601",
510
+ "hzx": "N",
511
+ "id": 50683,
512
+ "pid": "1010119000000000000",
513
+ "productName": "种用谷物",
514
+ "qysj": "20190401",
515
+ "shorthand": "种子种苗",
516
+ "sm": "包括种用硬质小麦、种用甜玉米、种用软质小麦、种用皮大麦、种用糯玉米、种用糯高粱、种用裸大麦、种用黄玉米、种用红粒高粱、种用白玉米、种用白粒高粱、其他种用玉米、其他种用小麦、其他种用高粱、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻、其他种用稻谷。",
517
+ "specification": null,
518
+ "ssflbbh": "32.0",
519
+ "statusDesc": null,
520
+ "taxCategoryCode": "1010119010000000000",
521
+ "updateTime": "2021-08-17 15:12:24.0",
522
+ "zzssl": "9%",
523
+ "zzstsgl": "免税",
524
+ "zzszcyj": "《财政部、国家税务总局关于若干农业生产资料征免增值税政策的通知》(财税〔2001〕113号)"
525
+ },
526
+ {
527
+ "bbh": "34.0",
528
+ "createTime": "2019-09-12 08:54:16.0",
529
+ "gjz": "小麦粉、小麦专用粉、小麦自发粉",
530
+ "gxsj": "20200601",
531
+ "hzx": "N",
532
+ "id": 50923,
533
+ "pid": "1030101000000000000",
534
+ "productName": "小麦粉",
535
+ "qysj": "20190401",
536
+ "shorthand": "谷物细粉",
537
+ "sm": "",
538
+ "specification": null,
539
+ "ssflbbh": "32.0",
540
+ "statusDesc": null,
541
+ "taxCategoryCode": "1030101010000000000",
542
+ "updateTime": "2021-08-17 15:12:14.0",
543
+ "zzssl": "9%",
544
+ "zzstsgl": "免税",
545
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
546
+ },
547
+ {
548
+ "bbh": "34.0",
549
+ "createTime": "2019-09-12 08:54:16.0",
550
+ "gjz": "大米粉、籼米细粉、粳米细粉",
551
+ "gxsj": "20200601",
552
+ "hzx": "N",
553
+ "id": 50924,
554
+ "pid": "1030101000000000000",
555
+ "productName": "大米粉",
556
+ "qysj": "20190401",
557
+ "shorthand": "谷物细粉",
558
+ "sm": "",
559
+ "specification": null,
560
+ "ssflbbh": "32.0",
561
+ "statusDesc": null,
562
+ "taxCategoryCode": "1030101020000000000",
563
+ "updateTime": "2021-08-17 15:12:08.0",
564
+ "zzssl": "9%",
565
+ "zzstsgl": "免税",
566
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
567
+ },
568
+ {
569
+ "bbh": "34.0",
570
+ "createTime": "2019-09-12 08:54:16.0",
571
+ "gjz": "玉米细粉、糯米细粉、荞麦细粉、黑麦细粉、莜麦细粉、高粱细粉、大麦细粉",
572
+ "gxsj": "20200601",
573
+ "hzx": "N",
574
+ "id": 50925,
575
+ "pid": "1030101000000000000",
576
+ "productName": "其他谷物细粉",
577
+ "qysj": "20190401",
578
+ "shorthand": "谷物细粉",
579
+ "sm": "",
580
+ "specification": null,
581
+ "ssflbbh": "32.0",
582
+ "statusDesc": null,
583
+ "taxCategoryCode": "1030101990000000000",
584
+ "updateTime": "2021-08-17 15:12:08.0",
585
+ "zzssl": "9%",
586
+ "zzstsgl": "免税",
587
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
588
+ },
589
+ {
590
+ "bbh": "34.0",
591
+ "createTime": "2019-09-12 08:54:16.0",
592
+ "gjz": "籼米、粳米",
593
+ "gxsj": "20200601",
594
+ "hzx": "N",
595
+ "id": 50928,
596
+ "pid": "1030102010000000000",
597
+ "productName": "大米",
598
+ "qysj": "20190401",
599
+ "shorthand": "谷物加工品",
600
+ "sm": "",
601
+ "specification": null,
602
+ "ssflbbh": "32.0",
603
+ "statusDesc": null,
604
+ "taxCategoryCode": "1030102010100000000",
605
+ "updateTime": "2021-08-17 15:12:11.0",
606
+ "zzssl": "9%",
607
+ "zzstsgl": "免税",
608
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
609
+ },
610
+ {
611
+ "bbh": "34.0",
612
+ "createTime": "2019-09-12 08:54:16.0",
613
+ "gjz": "大米",
614
+ "gxsj": "20200601",
615
+ "hzx": "N",
616
+ "id": 50929,
617
+ "pid": "1030102010000000000",
618
+ "productName": "小米",
619
+ "qysj": "20190401",
620
+ "shorthand": "谷物加工品",
621
+ "sm": "",
622
+ "specification": null,
623
+ "ssflbbh": "32.0",
624
+ "statusDesc": null,
625
+ "taxCategoryCode": "1030102010200000000",
626
+ "updateTime": "2021-08-17 15:12:25.0",
627
+ "zzssl": "9%",
628
+ "zzstsgl": "免税",
629
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
630
+ },
631
+ {
632
+ "bbh": "34.0",
633
+ "createTime": "2019-09-12 08:54:16.0",
634
+ "gjz": "糯米",
635
+ "gxsj": "20200601",
636
+ "hzx": "N",
637
+ "id": 50930,
638
+ "pid": "1030102010000000000",
639
+ "productName": "糯米",
640
+ "qysj": "20190401",
641
+ "shorthand": "谷物加工品",
642
+ "sm": "",
643
+ "specification": null,
644
+ "ssflbbh": "32.0",
645
+ "statusDesc": null,
646
+ "taxCategoryCode": "1030102010300000000",
647
+ "updateTime": "2021-08-17 15:12:14.0",
648
+ "zzssl": "9%",
649
+ "zzstsgl": "免税",
650
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
651
+ },
652
+ {
653
+ "bbh": "34.0",
654
+ "createTime": "2019-09-12 08:54:16.0",
655
+ "gjz": "高粱米",
656
+ "gxsj": "20200601",
657
+ "hzx": "N",
658
+ "id": 50931,
659
+ "pid": "1030102010000000000",
660
+ "productName": "高粱米",
661
+ "qysj": "20190401",
662
+ "shorthand": "谷物加工品",
663
+ "sm": "",
664
+ "specification": null,
665
+ "ssflbbh": "32.0",
666
+ "statusDesc": null,
667
+ "taxCategoryCode": "1030102010400000000",
668
+ "updateTime": "2021-08-17 15:12:13.0",
669
+ "zzssl": "9%",
670
+ "zzstsgl": "免税",
671
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
672
+ },
673
+ {
674
+ "bbh": "34.0",
675
+ "createTime": "2019-09-12 08:54:16.0",
676
+ "gjz": "脱壳燕麦",
677
+ "gxsj": "20200601",
678
+ "hzx": "N",
679
+ "id": 50932,
680
+ "pid": "1030102010000000000",
681
+ "productName": "脱壳燕麦",
682
+ "qysj": "20190401",
683
+ "shorthand": "谷物加工品",
684
+ "sm": "指已脱壳但未去皮的燕麦。",
685
+ "specification": null,
686
+ "ssflbbh": "32.0",
687
+ "statusDesc": null,
688
+ "taxCategoryCode": "1030102010500000000",
689
+ "updateTime": "2021-08-17 15:12:06.0",
690
+ "zzssl": "9%",
691
+ "zzstsgl": "免税",
692
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
693
+ },
694
+ {
695
+ "bbh": "34.0",
696
+ "createTime": "2019-09-12 08:54:16.0",
697
+ "gjz": "脱壳青稞",
698
+ "gxsj": "20200601",
699
+ "hzx": "N",
700
+ "id": 50933,
701
+ "pid": "1030102010000000000",
702
+ "productName": "脱壳青稞",
703
+ "qysj": "20190401",
704
+ "shorthand": "谷物加工品",
705
+ "sm": "",
706
+ "specification": null,
707
+ "ssflbbh": "32.0",
708
+ "statusDesc": null,
709
+ "taxCategoryCode": "1030102010600000000",
710
+ "updateTime": "2021-08-17 15:12:11.0",
711
+ "zzssl": "9%",
712
+ "zzstsgl": "免税",
713
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
714
+ },
715
+ {
716
+ "bbh": "34.0",
717
+ "createTime": "2019-09-12 08:54:16.0",
718
+ "gjz": "珠粒大麦",
719
+ "gxsj": "20200601",
720
+ "hzx": "N",
721
+ "id": 50934,
722
+ "pid": "1030102010000000000",
723
+ "productName": "珠粒大麦",
724
+ "qysj": "20190401",
725
+ "shorthand": "谷物加工品",
726
+ "sm": "",
727
+ "specification": null,
728
+ "ssflbbh": "32.0",
729
+ "statusDesc": null,
730
+ "taxCategoryCode": "1030102010700000000",
731
+ "updateTime": "2021-08-17 15:12:12.0",
732
+ "zzssl": "9%",
733
+ "zzstsgl": "免税",
734
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
735
+ },
736
+ {
737
+ "bbh": "34.0",
738
+ "createTime": "2019-09-12 08:54:16.0",
739
+ "gjz": "",
740
+ "gxsj": "20200601",
741
+ "hzx": "N",
742
+ "id": 50935,
743
+ "pid": "1030102010000000000",
744
+ "productName": "其他碾磨、脱壳谷物",
745
+ "qysj": "20190401",
746
+ "shorthand": "谷物加工品",
747
+ "sm": "",
748
+ "specification": null,
749
+ "ssflbbh": "32.0",
750
+ "statusDesc": null,
751
+ "taxCategoryCode": "1030102019900000000",
752
+ "updateTime": "2021-08-17 15:12:21.0",
753
+ "zzssl": "9%",
754
+ "zzstsgl": "免税",
755
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
756
+ },
757
+ {
758
+ "bbh": "34.0",
759
+ "createTime": "2019-09-12 08:54:16.0",
760
+ "gjz": "小麦粗磨、大米粗磨、玉米粗磨、燕麦粗磨",
761
+ "gxsj": "20200601",
762
+ "hzx": "N",
763
+ "id": 50936,
764
+ "pid": "1030102000000000000",
765
+ "productName": "粗磨谷物",
766
+ "qysj": "20190401",
767
+ "shorthand": "谷物加工品",
768
+ "sm": "包括谷物去壳谷粉、粗粉及团粒。",
769
+ "specification": null,
770
+ "ssflbbh": "32.0",
771
+ "statusDesc": null,
772
+ "taxCategoryCode": "1030102020000000000",
773
+ "updateTime": "2021-08-17 15:12:15.0",
774
+ "zzssl": "9%",
775
+ "zzstsgl": "免税",
776
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
777
+ },
778
+ {
779
+ "bbh": "34.0",
780
+ "createTime": "2019-09-12 08:54:16.0",
781
+ "gjz": "燕麦片、大麦片、玉米片、谷物胚芽",
782
+ "gxsj": "20200601",
783
+ "hzx": "N",
784
+ "id": 50937,
785
+ "pid": "1030102000000000000",
786
+ "productName": "谷物加工制品",
787
+ "qysj": "20190401",
788
+ "shorthand": "谷物加工品",
789
+ "sm": "包括燕麦片、大麦片、玉米片,谷物胚芽等。",
790
+ "specification": null,
791
+ "ssflbbh": "32.0",
792
+ "statusDesc": null,
793
+ "taxCategoryCode": "1030102030000000000",
794
+ "updateTime": "2021-08-17 15:12:19.0",
795
+ "zzssl": "13%、9%",
796
+ "zzstsgl": "免税",
797
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
798
+ },
799
+ {
800
+ "bbh": "34.0",
801
+ "createTime": "2019-09-12 08:54:16.0",
802
+ "gjz": "谷物制品类罐头、甜玉米罐头、米粥罐头、米饭罐头、八宝粥罐头、蔬菜粥罐头、八宝饭罐头",
803
+ "gxsj": "20200601",
804
+ "hzx": "N",
805
+ "id": 51065,
806
+ "pid": "1030205000000000000",
807
+ "productName": "谷物制品类罐头",
808
+ "qysj": "20190401",
809
+ "shorthand": "罐头",
810
+ "sm": "指经过处理后的谷类、干果及其他原料(桂圆、枸杞、蔬菜等)装罐制成的罐头产品",
811
+ "specification": null,
812
+ "ssflbbh": "32.0",
813
+ "statusDesc": null,
814
+ "taxCategoryCode": "1030205080000000000",
815
+ "updateTime": "2021-08-17 15:12:25.0",
816
+ "zzssl": "13%",
817
+ "zzstsgl": "",
818
+ "zzszcyj": ""
819
+ },
820
+ {
821
+ "bbh": "34.0",
822
+ "createTime": "2019-09-12 08:54:16.0",
823
+ "gjz": "谷物磨粉工业用筛、谷物磨粉工业用筛架、混合滚筒、分离滚筒、谷物磨粉机的滚筒、谷物磨粉机的变换器、谷物磨粉工业用机械零件",
824
+ "gxsj": "20200601",
825
+ "hzx": "N",
826
+ "id": 53402,
827
+ "pid": "1090220000000000000",
828
+ "productName": "谷物磨粉工业用机械零件",
829
+ "qysj": "20190401",
830
+ "shorthand": "食品制造机械",
831
+ "sm": "包括谷物磨粉工业用筛及筛架、混合或分离滚筒、谷物磨粉机的滚筒或变换器、其他谷物磨粉工业用机械零件",
832
+ "specification": null,
833
+ "ssflbbh": "32.0",
834
+ "statusDesc": null,
835
+ "taxCategoryCode": "1090220050000000000",
836
+ "updateTime": "2021-08-17 15:12:11.0",
837
+ "zzssl": "13%",
838
+ "zzstsgl": "",
839
+ "zzszcyj": ""
840
+ },
841
+ {
842
+ "bbh": "34.0",
843
+ "createTime": "2019-09-12 08:54:16.0",
844
+ "gjz": "",
845
+ "gxsj": "20200601",
846
+ "hzx": "Y",
847
+ "id": 50549,
848
+ "pid": "1010100000000000000",
849
+ "productName": "谷物",
850
+ "qysj": "20190401",
851
+ "shorthand": "谷物",
852
+ "sm": "包括稻谷、小麦、玉米、谷子、高粱、大麦、燕麦、黑麦、荞麦、其他谷物,不包括种用谷物(详见101011901)。",
853
+ "specification": null,
854
+ "ssflbbh": "32.0",
855
+ "statusDesc": null,
856
+ "taxCategoryCode": "1010101000000000000",
857
+ "updateTime": "2021-08-17 15:12:22.0",
858
+ "zzssl": "",
859
+ "zzstsgl": "",
860
+ "zzszcyj": ""
861
+ },
862
+ {
863
+ "bbh": "34.0",
864
+ "createTime": "2019-09-12 08:54:16.0",
865
+ "gjz": "种子、种苗、种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽",
866
+ "gxsj": "20200601",
867
+ "hzx": "Y",
868
+ "id": 50682,
869
+ "pid": "1010100000000000000",
870
+ "productName": "种子、种苗",
871
+ "qysj": "20190401",
872
+ "shorthand": "种子种苗",
873
+ "sm": "包括种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽及其他种子、种苗",
874
+ "specification": null,
875
+ "ssflbbh": "32.0",
876
+ "statusDesc": null,
877
+ "taxCategoryCode": "1010119000000000000",
878
+ "updateTime": "2021-08-17 15:12:22.0",
879
+ "zzssl": "",
880
+ "zzstsgl": "",
881
+ "zzszcyj": ""
882
+ },
883
+ {
884
+ "bbh": "34.0",
885
+ "createTime": "2019-09-12 08:54:16.0",
886
+ "gjz": "",
887
+ "gxsj": "20200601",
888
+ "hzx": "Y",
889
+ "id": 50922,
890
+ "pid": "1030100000000000000",
891
+ "productName": "谷物细粉",
892
+ "qysj": "20190401",
893
+ "shorthand": "谷物细粉",
894
+ "sm": "",
895
+ "specification": null,
896
+ "ssflbbh": "32.0",
897
+ "statusDesc": null,
898
+ "taxCategoryCode": "1030101000000000000",
899
+ "updateTime": "2021-08-17 15:12:09.0",
900
+ "zzssl": "",
901
+ "zzstsgl": "",
902
+ "zzszcyj": ""
903
+ },
904
+ {
905
+ "bbh": "34.0",
906
+ "createTime": "2019-09-12 08:54:16.0",
907
+ "gjz": "",
908
+ "gxsj": "20200601",
909
+ "hzx": "Y",
910
+ "id": 50927,
911
+ "pid": "1030102000000000000",
912
+ "productName": "碾磨、脱壳谷物",
913
+ "qysj": "20190401",
914
+ "shorthand": "谷物加工品",
915
+ "sm": "",
916
+ "specification": null,
917
+ "ssflbbh": "32.0",
918
+ "statusDesc": null,
919
+ "taxCategoryCode": "1030102010000000000",
920
+ "updateTime": "2021-08-17 15:12:07.0",
921
+ "zzssl": "",
922
+ "zzstsgl": "",
923
+ "zzszcyj": ""
924
+ },
925
+ {
926
+ "bbh": "34.0",
927
+ "createTime": "2019-09-12 08:54:16.0",
928
+ "gjz": "",
929
+ "gxsj": "20200601",
930
+ "hzx": "Y",
931
+ "id": 51057,
932
+ "pid": "1030200000000000000",
933
+ "productName": "罐头",
934
+ "qysj": "20190401",
935
+ "shorthand": "罐头",
936
+ "sm": "",
937
+ "specification": null,
938
+ "ssflbbh": "32.0",
939
+ "statusDesc": null,
940
+ "taxCategoryCode": "1030205000000000000",
941
+ "updateTime": "2021-08-17 15:12:13.0",
942
+ "zzssl": "",
943
+ "zzstsgl": "",
944
+ "zzszcyj": ""
945
+ },
946
+ {
947
+ "bbh": "34.0",
948
+ "createTime": "2019-09-12 08:54:16.0",
949
+ "gjz": "",
950
+ "gxsj": "20200601",
951
+ "hzx": "Y",
952
+ "id": 53397,
953
+ "pid": "1090200000000000000",
954
+ "productName": "食品、饮料、烟草专用生产设备零件",
955
+ "qysj": "20190401",
956
+ "shorthand": "食品制造机械",
957
+ "sm": "",
958
+ "specification": null,
959
+ "ssflbbh": "32.0",
960
+ "statusDesc": null,
961
+ "taxCategoryCode": "1090220000000000000",
962
+ "updateTime": "2021-08-17 15:12:09.0",
963
+ "zzssl": "",
964
+ "zzstsgl": "",
965
+ "zzszcyj": ""
966
+ },
967
+ {
968
+ "bbh": "34.0",
969
+ "createTime": "2019-09-12 08:54:16.0",
970
+ "gjz": "",
971
+ "gxsj": "20200601",
972
+ "hzx": "Y",
973
+ "id": 50548,
974
+ "pid": "1010000000000000000",
975
+ "productName": "农业产品",
976
+ "qysj": "20190401",
977
+ "shorthand": "农业产品",
978
+ "sm": "",
979
+ "specification": null,
980
+ "ssflbbh": "32.0",
981
+ "statusDesc": null,
982
+ "taxCategoryCode": "1010100000000000000",
983
+ "updateTime": "2021-08-17 15:12:32.0",
984
+ "zzssl": "",
985
+ "zzstsgl": "",
986
+ "zzszcyj": ""
987
+ },
988
+ {
989
+ "bbh": "34.0",
990
+ "createTime": "2019-09-12 08:54:16.0",
991
+ "gjz": "",
992
+ "gxsj": "20200601",
993
+ "hzx": "Y",
994
+ "id": 50921,
995
+ "pid": "1030000000000000000",
996
+ "productName": "农副食品,动、植物油制品",
997
+ "qysj": "20190401",
998
+ "shorthand": "农副食品",
999
+ "sm": "",
1000
+ "specification": null,
1001
+ "ssflbbh": "32.0",
1002
+ "statusDesc": null,
1003
+ "taxCategoryCode": "1030100000000000000",
1004
+ "updateTime": "2021-08-17 15:12:23.0",
1005
+ "zzssl": "",
1006
+ "zzstsgl": "",
1007
+ "zzszcyj": ""
1008
+ },
1009
+ {
1010
+ "bbh": "34.0",
1011
+ "createTime": "2019-09-12 08:54:16.0",
1012
+ "gjz": "",
1013
+ "gxsj": "20200601",
1014
+ "hzx": "Y",
1015
+ "id": 50926,
1016
+ "pid": "1030100000000000000",
1017
+ "productName": "碾磨谷物及谷物加工品",
1018
+ "qysj": "20190401",
1019
+ "shorthand": "谷物加工品",
1020
+ "sm": "",
1021
+ "specification": null,
1022
+ "ssflbbh": "32.0",
1023
+ "statusDesc": null,
1024
+ "taxCategoryCode": "1030102000000000000",
1025
+ "updateTime": "2021-08-17 15:12:20.0",
1026
+ "zzssl": "",
1027
+ "zzstsgl": "",
1028
+ "zzszcyj": ""
1029
+ },
1030
+ {
1031
+ "bbh": "34.0",
1032
+ "createTime": "2019-09-12 08:54:16.0",
1033
+ "gjz": "",
1034
+ "gxsj": "20200601",
1035
+ "hzx": "Y",
1036
+ "id": 51032,
1037
+ "pid": "1030000000000000000",
1038
+ "productName": "食品及加工盐",
1039
+ "qysj": "20190401",
1040
+ "shorthand": "食品",
1041
+ "sm": "",
1042
+ "specification": null,
1043
+ "ssflbbh": "32.0",
1044
+ "statusDesc": null,
1045
+ "taxCategoryCode": "1030200000000000000",
1046
+ "updateTime": "2021-08-17 15:12:30.0",
1047
+ "zzssl": "",
1048
+ "zzstsgl": "",
1049
+ "zzszcyj": ""
1050
+ },
1051
+ {
1052
+ "bbh": "34.0",
1053
+ "createTime": "2019-09-12 08:54:16.0",
1054
+ "gjz": "",
1055
+ "gxsj": "20200601",
1056
+ "hzx": "Y",
1057
+ "id": 53261,
1058
+ "pid": "1090000000000000000",
1059
+ "productName": "专用设备",
1060
+ "qysj": "20190401",
1061
+ "shorthand": "专用设备",
1062
+ "sm": "指只在一个特定产业,用来生产、加工、处理特定产品或者改变特定物质形态的机械设备及其专门配套件",
1063
+ "specification": null,
1064
+ "ssflbbh": "32.0",
1065
+ "statusDesc": null,
1066
+ "taxCategoryCode": "1090200000000000000",
1067
+ "updateTime": "2021-08-17 15:12:15.0",
1068
+ "zzssl": "",
1069
+ "zzstsgl": "",
1070
+ "zzszcyj": ""
1071
+ },
1072
+ {
1073
+ "bbh": "34.0",
1074
+ "createTime": "2019-09-12 08:54:16.0",
1075
+ "gjz": "",
1076
+ "gxsj": "20200601",
1077
+ "hzx": "Y",
1078
+ "id": 50547,
1079
+ "pid": "1000000000000000000",
1080
+ "productName": "农、林、牧、渔业类产品",
1081
+ "qysj": "20190401",
1082
+ "shorthand": "农产品",
1083
+ "sm": "",
1084
+ "specification": null,
1085
+ "ssflbbh": "32.0",
1086
+ "statusDesc": null,
1087
+ "taxCategoryCode": "1010000000000000000",
1088
+ "updateTime": "2021-08-17 15:12:19.0",
1089
+ "zzssl": "",
1090
+ "zzstsgl": "",
1091
+ "zzszcyj": ""
1092
+ },
1093
+ {
1094
+ "bbh": "34.0",
1095
+ "createTime": "2019-09-12 08:54:16.0",
1096
+ "gjz": "",
1097
+ "gxsj": "20200601",
1098
+ "hzx": "Y",
1099
+ "id": 50920,
1100
+ "pid": "1000000000000000000",
1101
+ "productName": "食品、饮料、烟、酒类产品",
1102
+ "qysj": "20190401",
1103
+ "shorthand": "食品类产品",
1104
+ "sm": "",
1105
+ "specification": null,
1106
+ "ssflbbh": "32.0",
1107
+ "statusDesc": null,
1108
+ "taxCategoryCode": "1030000000000000000",
1109
+ "updateTime": "2021-08-17 15:12:07.0",
1110
+ "zzssl": "",
1111
+ "zzstsgl": "",
1112
+ "zzszcyj": ""
1113
+ },
1114
+ {
1115
+ "bbh": "34.0",
1116
+ "createTime": "2019-09-12 08:54:16.0",
1117
+ "gjz": "",
1118
+ "gxsj": "20200601",
1119
+ "hzx": "Y",
1120
+ "id": 53022,
1121
+ "pid": "1000000000000000000",
1122
+ "productName": "机械、设备类产品",
1123
+ "qysj": "20190401",
1124
+ "shorthand": "机械设备",
1125
+ "sm": "",
1126
+ "specification": null,
1127
+ "ssflbbh": "32.0",
1128
+ "statusDesc": null,
1129
+ "taxCategoryCode": "1090000000000000000",
1130
+ "updateTime": "2021-08-17 15:12:15.0",
1131
+ "zzssl": "",
1132
+ "zzstsgl": "",
1133
+ "zzszcyj": ""
1134
+ },
1135
+ {
1136
+ "bbh": "34.0",
1137
+ "createTime": "2019-09-12 08:54:16.0",
1138
+ "gjz": "",
1139
+ "gxsj": "20200601",
1140
+ "hzx": "Y",
1141
+ "id": 50546,
1142
+ "pid": "0",
1143
+ "productName": "货物",
1144
+ "qysj": "20190401",
1145
+ "shorthand": "货物",
1146
+ "sm": "",
1147
+ "specification": null,
1148
+ "ssflbbh": "32.0",
1149
+ "statusDesc": null,
1150
+ "taxCategoryCode": "1000000000000000000",
1151
+ "updateTime": "2021-08-17 15:12:12.0",
1152
+ "zzssl": "",
1153
+ "zzstsgl": "",
1154
+ "zzszcyj": ""
1155
+ }
1156
1156
  ].map(e => ({ ...e, "zeroTaxRateFlag": 'dddddd' }))