kts-component-invoice-operate 3.2.97 → 3.2.98

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 (206) 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/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.d.ts +3 -2
  9. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +1 -0
  10. package/dist/index.esm.js +669 -614
  11. package/dist/index.js +669 -614
  12. package/docs/index.md +5 -5
  13. package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
  14. package/docs-dist/static/arrowUp.4c482054.svg +2 -2
  15. package/docs-dist/static/fork.5431267d.svg +11 -11
  16. package/docs-dist/static/plus.44013ce3.svg +11 -11
  17. package/docs-dist/static/plus.4fd1af30.svg +11 -11
  18. package/index.html +12 -12
  19. package/package.json +61 -61
  20. package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
  21. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
  22. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
  23. package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +470 -470
  24. package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
  25. package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
  26. package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
  27. package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
  28. package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
  29. package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
  30. package/src/Invoice/Invoice-digtal/index.md +30 -30
  31. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
  32. package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -17
  33. package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
  34. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
  35. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
  36. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
  37. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
  38. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
  39. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
  40. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
  41. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +113 -113
  42. package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
  43. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
  44. package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
  45. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
  46. package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
  47. package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
  48. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
  49. package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
  50. package/src/Invoice/InvoiceController/fns/mergeDetails.ts +165 -165
  51. package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +28 -28
  52. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
  53. package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
  54. package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
  55. package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
  56. package/src/Invoice/InvoiceController/index.ts +77 -77
  57. package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
  58. package/src/Invoice/_test/deduction/index.tsx +935 -935
  59. package/src/Invoice/_test/draft/index.tsx +40 -40
  60. package/src/Invoice/_test/easiest/index.tsx +5 -5
  61. package/src/Invoice/_test/endowCode/index.tsx +1156 -1156
  62. package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
  63. package/src/Invoice/_test/importBuyer/index.tsx +74 -74
  64. package/src/Invoice/_test/importGoods/index.tsx +1161 -516
  65. package/src/Invoice/_test/invoiceType/index.tsx +59 -59
  66. package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
  67. package/src/Invoice/_test/replaceHead/index.tsx +22 -22
  68. package/src/Invoice/_test/retrieveData/index.tsx +22 -22
  69. package/src/Invoice/_test/seller/index.tsx +28 -28
  70. package/src/Invoice/_test/setDataSource/index.tsx +66 -66
  71. package/src/Invoice/_test/unit/index.tsx +19 -19
  72. package/src/Invoice/index.less +29 -29
  73. package/src/Invoice/index.md +53 -53
  74. package/src/Invoice/index.tsx +167 -167
  75. package/src/Invoice/tools/calculate/index.ts +112 -112
  76. package/src/Invoice/tools/coolingFn/index.ts +17 -17
  77. package/src/Invoice/tools/evaluate/index.ts +7 -7
  78. package/src/Invoice/tools/idGenerator/index.ts +2 -2
  79. package/src/Invoice/tools/itemName/index.ts +55 -55
  80. package/src/Invoice/tools/lazyFn/index.ts +19 -19
  81. package/src/Invoice/tools/mounting/index.ts +13 -13
  82. package/src/Invoice/tools/strringFn/index.ts +40 -40
  83. package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
  84. package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
  85. package/src/Invoice/ui/default/Buyer/index.less +219 -219
  86. package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
  87. package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
  88. package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
  89. package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
  90. package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +543 -543
  91. package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +533 -533
  92. package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +687 -686
  93. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  94. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
  95. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
  96. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
  97. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
  98. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +99 -81
  99. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  100. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  101. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
  102. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  103. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
  104. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  105. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  106. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  107. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  108. package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
  109. package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
  110. package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
  111. package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
  112. package/src/Invoice/ui/default/GoodsList/index.less +179 -179
  113. package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
  114. package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
  115. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
  116. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
  117. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  118. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
  119. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
  120. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
  121. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
  122. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
  123. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
  124. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
  125. package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  126. package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
  127. package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
  128. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
  129. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +113 -113
  130. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
  131. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
  132. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
  133. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
  134. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
  135. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  136. package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
  137. package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
  138. package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +201 -201
  139. package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
  140. package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
  141. package/src/Invoice/ui/default/Seller/index.less +113 -113
  142. package/src/Invoice/ui/default/Seller/index.tsx +98 -98
  143. package/src/Invoice/ui/default/Sign/index.less +14 -14
  144. package/src/Invoice/ui/default/Sign/index.tsx +71 -71
  145. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +519 -519
  146. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +648 -648
  147. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
  148. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  149. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
  150. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
  151. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +50 -54
  152. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  153. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  154. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
  155. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  156. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
  157. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  158. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  159. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  160. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  161. package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
  162. package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
  163. package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
  164. package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
  165. package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
  166. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
  167. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
  168. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
  169. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  170. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  171. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -35
  172. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
  173. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
  174. package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  175. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
  176. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
  177. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
  178. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -99
  179. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
  180. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
  181. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
  182. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
  183. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
  184. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
  185. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  186. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
  187. package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
  188. package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
  189. package/src/Invoice/ui/digtal/Sign/index.less +48 -48
  190. package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
  191. package/src/Invoice/ui/digtal/Stakeholder/index.less +75 -75
  192. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +394 -394
  193. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
  194. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
  195. package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
  196. package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
  197. package/src/InvoiceTypeModal/index.less +7 -7
  198. package/src/InvoiceTypeModal/index.md +5 -5
  199. package/src/InvoiceTypeModal/index.tsx +153 -153
  200. package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
  201. package/src/TaxClassificationCodeModal/index.md +6 -6
  202. package/src/TaxClassificationCodeModal/index.tsx +74 -74
  203. package/src/index.ts +12 -12
  204. package/tsconfig.json +31 -31
  205. package/typings.d.ts +3 -3
  206. package/yarn.e.lock +14331 -14331
@@ -1,1157 +1,1157 @@
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
- "shorthand": "布料",
291
- taxAmount:1
292
- }
293
- ]
294
-
295
- const moke = [
296
- {
297
- "bbh": "34.0",
298
- "createTime": "2019-09-12 08:54:16.0",
299
- "gjz": "稻谷、早籼稻、晚籼稻、中籼稻、粳稻、糯稻",
300
- "gxsj": "20200601",
301
- "hzx": "N",
302
- "id": 50550,
303
- "pid": "1010101000000000000",
304
- "productName": "稻谷",
305
- "qysj": "20190401",
306
- "shorthand": "谷物",
307
- "sm": "包括早籼稻、晚籼稻、中籼稻、粳稻、糯稻、其他稻谷。",
308
- "specification": null,
309
- "ssflbbh": "32.0",
310
- "statusDesc": null,
311
- "taxCategoryCode": "1010101010000000000",
312
- "updateTime": "2021-08-17 15:12:33.0",
313
- "zzssl": "9%",
314
- "zzstsgl": "免税",
315
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
316
- },
317
- {
318
- "bbh": "34.0",
319
- "createTime": "2019-09-12 08:54:16.0",
320
- "gjz": "小麦、硬质小麦、软质小麦",
321
- "gxsj": "20200601",
322
- "hzx": "N",
323
- "id": 50551,
324
- "pid": "1010101000000000000",
325
- "productName": "小麦",
326
- "qysj": "20190401",
327
- "shorthand": "谷物",
328
- "sm": "包括硬质小麦、软质小麦、其他小麦。",
329
- "specification": null,
330
- "ssflbbh": "32.0",
331
- "statusDesc": null,
332
- "taxCategoryCode": "1010101020000000000",
333
- "updateTime": "2021-08-17 15:12:22.0",
334
- "zzssl": "9%",
335
- "zzstsgl": "免税",
336
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
337
- },
338
- {
339
- "bbh": "34.0",
340
- "createTime": "2019-09-12 08:54:16.0",
341
- "gjz": "玉米、白玉米、黄玉米、糯玉米、甜玉米",
342
- "gxsj": "20200601",
343
- "hzx": "N",
344
- "id": 50552,
345
- "pid": "1010101000000000000",
346
- "productName": "玉米",
347
- "qysj": "20190401",
348
- "shorthand": "谷物",
349
- "sm": "包括白玉米、黄玉米、糯玉米、甜玉米、其他玉米。",
350
- "specification": null,
351
- "ssflbbh": "32.0",
352
- "statusDesc": null,
353
- "taxCategoryCode": "1010101030000000000",
354
- "updateTime": "2021-08-17 15:12:27.0",
355
- "zzssl": "9%",
356
- "zzstsgl": "免税",
357
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)、《财政部、国家税务总局关于免征蔬菜流通环节增值税有关问题的通知》(财税〔2011〕137号)"
358
- },
359
- {
360
- "bbh": "34.0",
361
- "createTime": "2019-09-12 08:54:16.0",
362
- "gjz": "谷子、硬谷子、糯谷子",
363
- "gxsj": "20200601",
364
- "hzx": "N",
365
- "id": 50553,
366
- "pid": "1010101000000000000",
367
- "productName": "谷子",
368
- "qysj": "20190401",
369
- "shorthand": "谷物",
370
- "sm": "包括硬谷子、糯谷子、其他谷子。",
371
- "specification": null,
372
- "ssflbbh": "32.0",
373
- "statusDesc": null,
374
- "taxCategoryCode": "1010101040000000000",
375
- "updateTime": "2021-08-17 15:12:12.0",
376
- "zzssl": "9%",
377
- "zzstsgl": "免税",
378
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
379
- },
380
- {
381
- "bbh": "34.0",
382
- "createTime": "2019-09-12 08:54:16.0",
383
- "gjz": "高粱、红粒高粱、白粒高粱、糯高粱",
384
- "gxsj": "20200601",
385
- "hzx": "N",
386
- "id": 50554,
387
- "pid": "1010101000000000000",
388
- "productName": "高粱",
389
- "qysj": "20190401",
390
- "shorthand": "谷物",
391
- "sm": "包括红粒高粱、白粒高粱、糯高粱、其他高粱。",
392
- "specification": null,
393
- "ssflbbh": "32.0",
394
- "statusDesc": null,
395
- "taxCategoryCode": "1010101050000000000",
396
- "updateTime": "2021-08-17 15:12:30.0",
397
- "zzssl": "9%",
398
- "zzstsgl": "免税",
399
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
400
- },
401
- {
402
- "bbh": "34.0",
403
- "createTime": "2019-09-12 08:54:16.0",
404
- "gjz": "大麦、裸大麦、皮大麦",
405
- "gxsj": "20200601",
406
- "hzx": "N",
407
- "id": 50555,
408
- "pid": "1010101000000000000",
409
- "productName": "大麦",
410
- "qysj": "20190401",
411
- "shorthand": "谷物",
412
- "sm": "包括裸大麦、皮大麦。",
413
- "specification": null,
414
- "ssflbbh": "32.0",
415
- "statusDesc": null,
416
- "taxCategoryCode": "1010101060000000000",
417
- "updateTime": "2021-08-17 15:12:08.0",
418
- "zzssl": "9%",
419
- "zzstsgl": "免税",
420
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
421
- },
422
- {
423
- "bbh": "34.0",
424
- "createTime": "2019-09-12 08:54:16.0",
425
- "gjz": "裸燕麦、皮燕麦",
426
- "gxsj": "20200601",
427
- "hzx": "N",
428
- "id": 50556,
429
- "pid": "1010101000000000000",
430
- "productName": "燕麦",
431
- "qysj": "20190401",
432
- "shorthand": "谷物",
433
- "sm": "包括裸燕麦、皮燕麦。",
434
- "specification": null,
435
- "ssflbbh": "32.0",
436
- "statusDesc": null,
437
- "taxCategoryCode": "1010101070000000000",
438
- "updateTime": "2021-08-17 15:12:29.0",
439
- "zzssl": "9%",
440
- "zzstsgl": "免税",
441
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
442
- },
443
- {
444
- "bbh": "34.0",
445
- "createTime": "2019-09-12 08:54:16.0",
446
- "gjz": "黑麦",
447
- "gxsj": "20200601",
448
- "hzx": "N",
449
- "id": 50557,
450
- "pid": "1010101000000000000",
451
- "productName": "黑麦",
452
- "qysj": "20190401",
453
- "shorthand": "谷物",
454
- "sm": "",
455
- "specification": null,
456
- "ssflbbh": "32.0",
457
- "statusDesc": null,
458
- "taxCategoryCode": "1010101080000000000",
459
- "updateTime": "2021-08-17 15:12:11.0",
460
- "zzssl": "9%",
461
- "zzstsgl": "免税",
462
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
463
- },
464
- {
465
- "bbh": "34.0",
466
- "createTime": "2019-09-12 08:54:16.0",
467
- "gjz": "荞麦、甜荞麦、苦荞麦",
468
- "gxsj": "20200601",
469
- "hzx": "N",
470
- "id": 50558,
471
- "pid": "1010101000000000000",
472
- "productName": "荞麦",
473
- "qysj": "20190401",
474
- "shorthand": "谷物",
475
- "sm": "包括甜荞麦、苦荞麦。",
476
- "specification": null,
477
- "ssflbbh": "32.0",
478
- "statusDesc": null,
479
- "taxCategoryCode": "1010101090000000000",
480
- "updateTime": "2021-08-17 15:12:30.0",
481
- "zzssl": "9%",
482
- "zzstsgl": "免税",
483
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
484
- },
485
- {
486
- "bbh": "34.0",
487
- "createTime": "2019-09-12 08:54:16.0",
488
- "gjz": "糜子、硬糜子、糯糜子、紫米、薏苡",
489
- "gxsj": "20200601",
490
- "hzx": "N",
491
- "id": 50559,
492
- "pid": "1010101000000000000",
493
- "productName": "其他谷物",
494
- "qysj": "20190401",
495
- "shorthand": "谷物",
496
- "sm": "包括糜子(硬糜子、糯糜子)、紫米、薏苡等。",
497
- "specification": null,
498
- "ssflbbh": "32.0",
499
- "statusDesc": null,
500
- "taxCategoryCode": "1010101990000000000",
501
- "updateTime": "2021-08-17 15:12:19.0",
502
- "zzssl": "9%",
503
- "zzstsgl": "免税",
504
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
505
- },
506
- {
507
- "bbh": "34.0",
508
- "createTime": "2019-09-12 08:54:16.0",
509
- "gjz": "种用谷物、种用皮大麦、种用裸大麦、种用糯高粱、种用红粒高粱、种用白粒高粱、种用甜玉米、种用糯玉米、种用黄玉米、种用白玉米、种用硬质小麦、种用软质小麦、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻",
510
- "gxsj": "20200601",
511
- "hzx": "N",
512
- "id": 50683,
513
- "pid": "1010119000000000000",
514
- "productName": "种用谷物",
515
- "qysj": "20190401",
516
- "shorthand": "种子种苗",
517
- "sm": "包括种用硬质小麦、种用甜玉米、种用软质小麦、种用皮大麦、种用糯玉米、种用糯高粱、种用裸大麦、种用黄玉米、种用红粒高粱、种用白玉米、种用白粒高粱、其他种用玉米、其他种用小麦、其他种用高粱、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻、其他种用稻谷。",
518
- "specification": null,
519
- "ssflbbh": "32.0",
520
- "statusDesc": null,
521
- "taxCategoryCode": "1010119010000000000",
522
- "updateTime": "2021-08-17 15:12:24.0",
523
- "zzssl": "9%",
524
- "zzstsgl": "免税",
525
- "zzszcyj": "《财政部、国家税务总局关于若干农业生产资料征免增值税政策的通知》(财税〔2001〕113号)"
526
- },
527
- {
528
- "bbh": "34.0",
529
- "createTime": "2019-09-12 08:54:16.0",
530
- "gjz": "小麦粉、小麦专用粉、小麦自发粉",
531
- "gxsj": "20200601",
532
- "hzx": "N",
533
- "id": 50923,
534
- "pid": "1030101000000000000",
535
- "productName": "小麦粉",
536
- "qysj": "20190401",
537
- "shorthand": "谷物细粉",
538
- "sm": "",
539
- "specification": null,
540
- "ssflbbh": "32.0",
541
- "statusDesc": null,
542
- "taxCategoryCode": "1030101010000000000",
543
- "updateTime": "2021-08-17 15:12:14.0",
544
- "zzssl": "9%",
545
- "zzstsgl": "免税",
546
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
547
- },
548
- {
549
- "bbh": "34.0",
550
- "createTime": "2019-09-12 08:54:16.0",
551
- "gjz": "大米粉、籼米细粉、粳米细粉",
552
- "gxsj": "20200601",
553
- "hzx": "N",
554
- "id": 50924,
555
- "pid": "1030101000000000000",
556
- "productName": "大米粉",
557
- "qysj": "20190401",
558
- "shorthand": "谷物细粉",
559
- "sm": "",
560
- "specification": null,
561
- "ssflbbh": "32.0",
562
- "statusDesc": null,
563
- "taxCategoryCode": "1030101020000000000",
564
- "updateTime": "2021-08-17 15:12:08.0",
565
- "zzssl": "9%",
566
- "zzstsgl": "免税",
567
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
568
- },
569
- {
570
- "bbh": "34.0",
571
- "createTime": "2019-09-12 08:54:16.0",
572
- "gjz": "玉米细粉、糯米细粉、荞麦细粉、黑麦细粉、莜麦细粉、高粱细粉、大麦细粉",
573
- "gxsj": "20200601",
574
- "hzx": "N",
575
- "id": 50925,
576
- "pid": "1030101000000000000",
577
- "productName": "其他谷物细粉",
578
- "qysj": "20190401",
579
- "shorthand": "谷物细粉",
580
- "sm": "",
581
- "specification": null,
582
- "ssflbbh": "32.0",
583
- "statusDesc": null,
584
- "taxCategoryCode": "1030101990000000000",
585
- "updateTime": "2021-08-17 15:12:08.0",
586
- "zzssl": "9%",
587
- "zzstsgl": "免税",
588
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
589
- },
590
- {
591
- "bbh": "34.0",
592
- "createTime": "2019-09-12 08:54:16.0",
593
- "gjz": "籼米、粳米",
594
- "gxsj": "20200601",
595
- "hzx": "N",
596
- "id": 50928,
597
- "pid": "1030102010000000000",
598
- "productName": "大米",
599
- "qysj": "20190401",
600
- "shorthand": "谷物加工品",
601
- "sm": "",
602
- "specification": null,
603
- "ssflbbh": "32.0",
604
- "statusDesc": null,
605
- "taxCategoryCode": "1030102010100000000",
606
- "updateTime": "2021-08-17 15:12:11.0",
607
- "zzssl": "9%",
608
- "zzstsgl": "免税",
609
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
610
- },
611
- {
612
- "bbh": "34.0",
613
- "createTime": "2019-09-12 08:54:16.0",
614
- "gjz": "大米",
615
- "gxsj": "20200601",
616
- "hzx": "N",
617
- "id": 50929,
618
- "pid": "1030102010000000000",
619
- "productName": "小米",
620
- "qysj": "20190401",
621
- "shorthand": "谷物加工品",
622
- "sm": "",
623
- "specification": null,
624
- "ssflbbh": "32.0",
625
- "statusDesc": null,
626
- "taxCategoryCode": "1030102010200000000",
627
- "updateTime": "2021-08-17 15:12:25.0",
628
- "zzssl": "9%",
629
- "zzstsgl": "免税",
630
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
631
- },
632
- {
633
- "bbh": "34.0",
634
- "createTime": "2019-09-12 08:54:16.0",
635
- "gjz": "糯米",
636
- "gxsj": "20200601",
637
- "hzx": "N",
638
- "id": 50930,
639
- "pid": "1030102010000000000",
640
- "productName": "糯米",
641
- "qysj": "20190401",
642
- "shorthand": "谷物加工品",
643
- "sm": "",
644
- "specification": null,
645
- "ssflbbh": "32.0",
646
- "statusDesc": null,
647
- "taxCategoryCode": "1030102010300000000",
648
- "updateTime": "2021-08-17 15:12:14.0",
649
- "zzssl": "9%",
650
- "zzstsgl": "免税",
651
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
652
- },
653
- {
654
- "bbh": "34.0",
655
- "createTime": "2019-09-12 08:54:16.0",
656
- "gjz": "高粱米",
657
- "gxsj": "20200601",
658
- "hzx": "N",
659
- "id": 50931,
660
- "pid": "1030102010000000000",
661
- "productName": "高粱米",
662
- "qysj": "20190401",
663
- "shorthand": "谷物加工品",
664
- "sm": "",
665
- "specification": null,
666
- "ssflbbh": "32.0",
667
- "statusDesc": null,
668
- "taxCategoryCode": "1030102010400000000",
669
- "updateTime": "2021-08-17 15:12:13.0",
670
- "zzssl": "9%",
671
- "zzstsgl": "免税",
672
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
673
- },
674
- {
675
- "bbh": "34.0",
676
- "createTime": "2019-09-12 08:54:16.0",
677
- "gjz": "脱壳燕麦",
678
- "gxsj": "20200601",
679
- "hzx": "N",
680
- "id": 50932,
681
- "pid": "1030102010000000000",
682
- "productName": "脱壳燕麦",
683
- "qysj": "20190401",
684
- "shorthand": "谷物加工品",
685
- "sm": "指已脱壳但未去皮的燕麦。",
686
- "specification": null,
687
- "ssflbbh": "32.0",
688
- "statusDesc": null,
689
- "taxCategoryCode": "1030102010500000000",
690
- "updateTime": "2021-08-17 15:12:06.0",
691
- "zzssl": "9%",
692
- "zzstsgl": "免税",
693
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
694
- },
695
- {
696
- "bbh": "34.0",
697
- "createTime": "2019-09-12 08:54:16.0",
698
- "gjz": "脱壳青稞",
699
- "gxsj": "20200601",
700
- "hzx": "N",
701
- "id": 50933,
702
- "pid": "1030102010000000000",
703
- "productName": "脱壳青稞",
704
- "qysj": "20190401",
705
- "shorthand": "谷物加工品",
706
- "sm": "",
707
- "specification": null,
708
- "ssflbbh": "32.0",
709
- "statusDesc": null,
710
- "taxCategoryCode": "1030102010600000000",
711
- "updateTime": "2021-08-17 15:12:11.0",
712
- "zzssl": "9%",
713
- "zzstsgl": "免税",
714
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
715
- },
716
- {
717
- "bbh": "34.0",
718
- "createTime": "2019-09-12 08:54:16.0",
719
- "gjz": "珠粒大麦",
720
- "gxsj": "20200601",
721
- "hzx": "N",
722
- "id": 50934,
723
- "pid": "1030102010000000000",
724
- "productName": "珠粒大麦",
725
- "qysj": "20190401",
726
- "shorthand": "谷物加工品",
727
- "sm": "",
728
- "specification": null,
729
- "ssflbbh": "32.0",
730
- "statusDesc": null,
731
- "taxCategoryCode": "1030102010700000000",
732
- "updateTime": "2021-08-17 15:12:12.0",
733
- "zzssl": "9%",
734
- "zzstsgl": "免税",
735
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
736
- },
737
- {
738
- "bbh": "34.0",
739
- "createTime": "2019-09-12 08:54:16.0",
740
- "gjz": "",
741
- "gxsj": "20200601",
742
- "hzx": "N",
743
- "id": 50935,
744
- "pid": "1030102010000000000",
745
- "productName": "其他碾磨、脱壳谷物",
746
- "qysj": "20190401",
747
- "shorthand": "谷物加工品",
748
- "sm": "",
749
- "specification": null,
750
- "ssflbbh": "32.0",
751
- "statusDesc": null,
752
- "taxCategoryCode": "1030102019900000000",
753
- "updateTime": "2021-08-17 15:12:21.0",
754
- "zzssl": "9%",
755
- "zzstsgl": "免税",
756
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
757
- },
758
- {
759
- "bbh": "34.0",
760
- "createTime": "2019-09-12 08:54:16.0",
761
- "gjz": "小麦粗磨、大米粗磨、玉米粗磨、燕麦粗磨",
762
- "gxsj": "20200601",
763
- "hzx": "N",
764
- "id": 50936,
765
- "pid": "1030102000000000000",
766
- "productName": "粗磨谷物",
767
- "qysj": "20190401",
768
- "shorthand": "谷物加工品",
769
- "sm": "包括谷物去壳谷粉、粗粉及团粒。",
770
- "specification": null,
771
- "ssflbbh": "32.0",
772
- "statusDesc": null,
773
- "taxCategoryCode": "1030102020000000000",
774
- "updateTime": "2021-08-17 15:12:15.0",
775
- "zzssl": "9%",
776
- "zzstsgl": "免税",
777
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
778
- },
779
- {
780
- "bbh": "34.0",
781
- "createTime": "2019-09-12 08:54:16.0",
782
- "gjz": "燕麦片、大麦片、玉米片、谷物胚芽",
783
- "gxsj": "20200601",
784
- "hzx": "N",
785
- "id": 50937,
786
- "pid": "1030102000000000000",
787
- "productName": "谷物加工制品",
788
- "qysj": "20190401",
789
- "shorthand": "谷物加工品",
790
- "sm": "包括燕麦片、大麦片、玉米片,谷物胚芽等。",
791
- "specification": null,
792
- "ssflbbh": "32.0",
793
- "statusDesc": null,
794
- "taxCategoryCode": "1030102030000000000",
795
- "updateTime": "2021-08-17 15:12:19.0",
796
- "zzssl": "13%、9%",
797
- "zzstsgl": "免税",
798
- "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
799
- },
800
- {
801
- "bbh": "34.0",
802
- "createTime": "2019-09-12 08:54:16.0",
803
- "gjz": "谷物制品类罐头、甜玉米罐头、米粥罐头、米饭罐头、八宝粥罐头、蔬菜粥罐头、八宝饭罐头",
804
- "gxsj": "20200601",
805
- "hzx": "N",
806
- "id": 51065,
807
- "pid": "1030205000000000000",
808
- "productName": "谷物制品类罐头",
809
- "qysj": "20190401",
810
- "shorthand": "罐头",
811
- "sm": "指经过处理后的谷类、干果及其他原料(桂圆、枸杞、蔬菜等)装罐制成的罐头产品",
812
- "specification": null,
813
- "ssflbbh": "32.0",
814
- "statusDesc": null,
815
- "taxCategoryCode": "1030205080000000000",
816
- "updateTime": "2021-08-17 15:12:25.0",
817
- "zzssl": "13%",
818
- "zzstsgl": "",
819
- "zzszcyj": ""
820
- },
821
- {
822
- "bbh": "34.0",
823
- "createTime": "2019-09-12 08:54:16.0",
824
- "gjz": "谷物磨粉工业用筛、谷物磨粉工业用筛架、混合滚筒、分离滚筒、谷物磨粉机的滚筒、谷物磨粉机的变换器、谷物磨粉工业用机械零件",
825
- "gxsj": "20200601",
826
- "hzx": "N",
827
- "id": 53402,
828
- "pid": "1090220000000000000",
829
- "productName": "谷物磨粉工业用机械零件",
830
- "qysj": "20190401",
831
- "shorthand": "食品制造机械",
832
- "sm": "包括谷物磨粉工业用筛及筛架、混合或分离滚筒、谷物磨粉机的滚筒或变换器、其他谷物磨粉工业用机械零件",
833
- "specification": null,
834
- "ssflbbh": "32.0",
835
- "statusDesc": null,
836
- "taxCategoryCode": "1090220050000000000",
837
- "updateTime": "2021-08-17 15:12:11.0",
838
- "zzssl": "13%",
839
- "zzstsgl": "",
840
- "zzszcyj": ""
841
- },
842
- {
843
- "bbh": "34.0",
844
- "createTime": "2019-09-12 08:54:16.0",
845
- "gjz": "",
846
- "gxsj": "20200601",
847
- "hzx": "Y",
848
- "id": 50549,
849
- "pid": "1010100000000000000",
850
- "productName": "谷物",
851
- "qysj": "20190401",
852
- "shorthand": "谷物",
853
- "sm": "包括稻谷、小麦、玉米、谷子、高粱、大麦、燕麦、黑麦、荞麦、其他谷物,不包括种用谷物(详见101011901)。",
854
- "specification": null,
855
- "ssflbbh": "32.0",
856
- "statusDesc": null,
857
- "taxCategoryCode": "1010101000000000000",
858
- "updateTime": "2021-08-17 15:12:22.0",
859
- "zzssl": "",
860
- "zzstsgl": "",
861
- "zzszcyj": ""
862
- },
863
- {
864
- "bbh": "34.0",
865
- "createTime": "2019-09-12 08:54:16.0",
866
- "gjz": "种子、种苗、种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽",
867
- "gxsj": "20200601",
868
- "hzx": "Y",
869
- "id": 50682,
870
- "pid": "1010100000000000000",
871
- "productName": "种子、种苗",
872
- "qysj": "20190401",
873
- "shorthand": "种子种苗",
874
- "sm": "包括种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽及其他种子、种苗",
875
- "specification": null,
876
- "ssflbbh": "32.0",
877
- "statusDesc": null,
878
- "taxCategoryCode": "1010119000000000000",
879
- "updateTime": "2021-08-17 15:12:22.0",
880
- "zzssl": "",
881
- "zzstsgl": "",
882
- "zzszcyj": ""
883
- },
884
- {
885
- "bbh": "34.0",
886
- "createTime": "2019-09-12 08:54:16.0",
887
- "gjz": "",
888
- "gxsj": "20200601",
889
- "hzx": "Y",
890
- "id": 50922,
891
- "pid": "1030100000000000000",
892
- "productName": "谷物细粉",
893
- "qysj": "20190401",
894
- "shorthand": "谷物细粉",
895
- "sm": "",
896
- "specification": null,
897
- "ssflbbh": "32.0",
898
- "statusDesc": null,
899
- "taxCategoryCode": "1030101000000000000",
900
- "updateTime": "2021-08-17 15:12:09.0",
901
- "zzssl": "",
902
- "zzstsgl": "",
903
- "zzszcyj": ""
904
- },
905
- {
906
- "bbh": "34.0",
907
- "createTime": "2019-09-12 08:54:16.0",
908
- "gjz": "",
909
- "gxsj": "20200601",
910
- "hzx": "Y",
911
- "id": 50927,
912
- "pid": "1030102000000000000",
913
- "productName": "碾磨、脱壳谷物",
914
- "qysj": "20190401",
915
- "shorthand": "谷物加工品",
916
- "sm": "",
917
- "specification": null,
918
- "ssflbbh": "32.0",
919
- "statusDesc": null,
920
- "taxCategoryCode": "1030102010000000000",
921
- "updateTime": "2021-08-17 15:12:07.0",
922
- "zzssl": "",
923
- "zzstsgl": "",
924
- "zzszcyj": ""
925
- },
926
- {
927
- "bbh": "34.0",
928
- "createTime": "2019-09-12 08:54:16.0",
929
- "gjz": "",
930
- "gxsj": "20200601",
931
- "hzx": "Y",
932
- "id": 51057,
933
- "pid": "1030200000000000000",
934
- "productName": "罐头",
935
- "qysj": "20190401",
936
- "shorthand": "罐头",
937
- "sm": "",
938
- "specification": null,
939
- "ssflbbh": "32.0",
940
- "statusDesc": null,
941
- "taxCategoryCode": "1030205000000000000",
942
- "updateTime": "2021-08-17 15:12:13.0",
943
- "zzssl": "",
944
- "zzstsgl": "",
945
- "zzszcyj": ""
946
- },
947
- {
948
- "bbh": "34.0",
949
- "createTime": "2019-09-12 08:54:16.0",
950
- "gjz": "",
951
- "gxsj": "20200601",
952
- "hzx": "Y",
953
- "id": 53397,
954
- "pid": "1090200000000000000",
955
- "productName": "食品、饮料、烟草专用生产设备零件",
956
- "qysj": "20190401",
957
- "shorthand": "食品制造机械",
958
- "sm": "",
959
- "specification": null,
960
- "ssflbbh": "32.0",
961
- "statusDesc": null,
962
- "taxCategoryCode": "1090220000000000000",
963
- "updateTime": "2021-08-17 15:12:09.0",
964
- "zzssl": "",
965
- "zzstsgl": "",
966
- "zzszcyj": ""
967
- },
968
- {
969
- "bbh": "34.0",
970
- "createTime": "2019-09-12 08:54:16.0",
971
- "gjz": "",
972
- "gxsj": "20200601",
973
- "hzx": "Y",
974
- "id": 50548,
975
- "pid": "1010000000000000000",
976
- "productName": "农业产品",
977
- "qysj": "20190401",
978
- "shorthand": "农业产品",
979
- "sm": "",
980
- "specification": null,
981
- "ssflbbh": "32.0",
982
- "statusDesc": null,
983
- "taxCategoryCode": "1010100000000000000",
984
- "updateTime": "2021-08-17 15:12:32.0",
985
- "zzssl": "",
986
- "zzstsgl": "",
987
- "zzszcyj": ""
988
- },
989
- {
990
- "bbh": "34.0",
991
- "createTime": "2019-09-12 08:54:16.0",
992
- "gjz": "",
993
- "gxsj": "20200601",
994
- "hzx": "Y",
995
- "id": 50921,
996
- "pid": "1030000000000000000",
997
- "productName": "农副食品,动、植物油制品",
998
- "qysj": "20190401",
999
- "shorthand": "农副食品",
1000
- "sm": "",
1001
- "specification": null,
1002
- "ssflbbh": "32.0",
1003
- "statusDesc": null,
1004
- "taxCategoryCode": "1030100000000000000",
1005
- "updateTime": "2021-08-17 15:12:23.0",
1006
- "zzssl": "",
1007
- "zzstsgl": "",
1008
- "zzszcyj": ""
1009
- },
1010
- {
1011
- "bbh": "34.0",
1012
- "createTime": "2019-09-12 08:54:16.0",
1013
- "gjz": "",
1014
- "gxsj": "20200601",
1015
- "hzx": "Y",
1016
- "id": 50926,
1017
- "pid": "1030100000000000000",
1018
- "productName": "碾磨谷物及谷物加工品",
1019
- "qysj": "20190401",
1020
- "shorthand": "谷物加工品",
1021
- "sm": "",
1022
- "specification": null,
1023
- "ssflbbh": "32.0",
1024
- "statusDesc": null,
1025
- "taxCategoryCode": "1030102000000000000",
1026
- "updateTime": "2021-08-17 15:12:20.0",
1027
- "zzssl": "",
1028
- "zzstsgl": "",
1029
- "zzszcyj": ""
1030
- },
1031
- {
1032
- "bbh": "34.0",
1033
- "createTime": "2019-09-12 08:54:16.0",
1034
- "gjz": "",
1035
- "gxsj": "20200601",
1036
- "hzx": "Y",
1037
- "id": 51032,
1038
- "pid": "1030000000000000000",
1039
- "productName": "食品及加工盐",
1040
- "qysj": "20190401",
1041
- "shorthand": "食品",
1042
- "sm": "",
1043
- "specification": null,
1044
- "ssflbbh": "32.0",
1045
- "statusDesc": null,
1046
- "taxCategoryCode": "1030200000000000000",
1047
- "updateTime": "2021-08-17 15:12:30.0",
1048
- "zzssl": "",
1049
- "zzstsgl": "",
1050
- "zzszcyj": ""
1051
- },
1052
- {
1053
- "bbh": "34.0",
1054
- "createTime": "2019-09-12 08:54:16.0",
1055
- "gjz": "",
1056
- "gxsj": "20200601",
1057
- "hzx": "Y",
1058
- "id": 53261,
1059
- "pid": "1090000000000000000",
1060
- "productName": "专用设备",
1061
- "qysj": "20190401",
1062
- "shorthand": "专用设备",
1063
- "sm": "指只在一个特定产业,用来生产、加工、处理特定产品或者改变特定物质形态的机械设备及其专门配套件",
1064
- "specification": null,
1065
- "ssflbbh": "32.0",
1066
- "statusDesc": null,
1067
- "taxCategoryCode": "1090200000000000000",
1068
- "updateTime": "2021-08-17 15:12:15.0",
1069
- "zzssl": "",
1070
- "zzstsgl": "",
1071
- "zzszcyj": ""
1072
- },
1073
- {
1074
- "bbh": "34.0",
1075
- "createTime": "2019-09-12 08:54:16.0",
1076
- "gjz": "",
1077
- "gxsj": "20200601",
1078
- "hzx": "Y",
1079
- "id": 50547,
1080
- "pid": "1000000000000000000",
1081
- "productName": "农、林、牧、渔业类产品",
1082
- "qysj": "20190401",
1083
- "shorthand": "农产品",
1084
- "sm": "",
1085
- "specification": null,
1086
- "ssflbbh": "32.0",
1087
- "statusDesc": null,
1088
- "taxCategoryCode": "1010000000000000000",
1089
- "updateTime": "2021-08-17 15:12:19.0",
1090
- "zzssl": "",
1091
- "zzstsgl": "",
1092
- "zzszcyj": ""
1093
- },
1094
- {
1095
- "bbh": "34.0",
1096
- "createTime": "2019-09-12 08:54:16.0",
1097
- "gjz": "",
1098
- "gxsj": "20200601",
1099
- "hzx": "Y",
1100
- "id": 50920,
1101
- "pid": "1000000000000000000",
1102
- "productName": "食品、饮料、烟、酒类产品",
1103
- "qysj": "20190401",
1104
- "shorthand": "食品类产品",
1105
- "sm": "",
1106
- "specification": null,
1107
- "ssflbbh": "32.0",
1108
- "statusDesc": null,
1109
- "taxCategoryCode": "1030000000000000000",
1110
- "updateTime": "2021-08-17 15:12:07.0",
1111
- "zzssl": "",
1112
- "zzstsgl": "",
1113
- "zzszcyj": ""
1114
- },
1115
- {
1116
- "bbh": "34.0",
1117
- "createTime": "2019-09-12 08:54:16.0",
1118
- "gjz": "",
1119
- "gxsj": "20200601",
1120
- "hzx": "Y",
1121
- "id": 53022,
1122
- "pid": "1000000000000000000",
1123
- "productName": "机械、设备类产品",
1124
- "qysj": "20190401",
1125
- "shorthand": "机械设备",
1126
- "sm": "",
1127
- "specification": null,
1128
- "ssflbbh": "32.0",
1129
- "statusDesc": null,
1130
- "taxCategoryCode": "1090000000000000000",
1131
- "updateTime": "2021-08-17 15:12:15.0",
1132
- "zzssl": "",
1133
- "zzstsgl": "",
1134
- "zzszcyj": ""
1135
- },
1136
- {
1137
- "bbh": "34.0",
1138
- "createTime": "2019-09-12 08:54:16.0",
1139
- "gjz": "",
1140
- "gxsj": "20200601",
1141
- "hzx": "Y",
1142
- "id": 50546,
1143
- "pid": "0",
1144
- "productName": "货物",
1145
- "qysj": "20190401",
1146
- "shorthand": "货物",
1147
- "sm": "",
1148
- "specification": null,
1149
- "ssflbbh": "32.0",
1150
- "statusDesc": null,
1151
- "taxCategoryCode": "1000000000000000000",
1152
- "updateTime": "2021-08-17 15:12:12.0",
1153
- "zzssl": "",
1154
- "zzstsgl": "",
1155
- "zzszcyj": ""
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
+ "shorthand": "布料",
291
+ taxAmount:1
292
+ }
293
+ ]
294
+
295
+ const moke = [
296
+ {
297
+ "bbh": "34.0",
298
+ "createTime": "2019-09-12 08:54:16.0",
299
+ "gjz": "稻谷、早籼稻、晚籼稻、中籼稻、粳稻、糯稻",
300
+ "gxsj": "20200601",
301
+ "hzx": "N",
302
+ "id": 50550,
303
+ "pid": "1010101000000000000",
304
+ "productName": "稻谷",
305
+ "qysj": "20190401",
306
+ "shorthand": "谷物",
307
+ "sm": "包括早籼稻、晚籼稻、中籼稻、粳稻、糯稻、其他稻谷。",
308
+ "specification": null,
309
+ "ssflbbh": "32.0",
310
+ "statusDesc": null,
311
+ "taxCategoryCode": "1010101010000000000",
312
+ "updateTime": "2021-08-17 15:12:33.0",
313
+ "zzssl": "9%",
314
+ "zzstsgl": "免税",
315
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
316
+ },
317
+ {
318
+ "bbh": "34.0",
319
+ "createTime": "2019-09-12 08:54:16.0",
320
+ "gjz": "小麦、硬质小麦、软质小麦",
321
+ "gxsj": "20200601",
322
+ "hzx": "N",
323
+ "id": 50551,
324
+ "pid": "1010101000000000000",
325
+ "productName": "小麦",
326
+ "qysj": "20190401",
327
+ "shorthand": "谷物",
328
+ "sm": "包括硬质小麦、软质小麦、其他小麦。",
329
+ "specification": null,
330
+ "ssflbbh": "32.0",
331
+ "statusDesc": null,
332
+ "taxCategoryCode": "1010101020000000000",
333
+ "updateTime": "2021-08-17 15:12:22.0",
334
+ "zzssl": "9%",
335
+ "zzstsgl": "免税",
336
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
337
+ },
338
+ {
339
+ "bbh": "34.0",
340
+ "createTime": "2019-09-12 08:54:16.0",
341
+ "gjz": "玉米、白玉米、黄玉米、糯玉米、甜玉米",
342
+ "gxsj": "20200601",
343
+ "hzx": "N",
344
+ "id": 50552,
345
+ "pid": "1010101000000000000",
346
+ "productName": "玉米",
347
+ "qysj": "20190401",
348
+ "shorthand": "谷物",
349
+ "sm": "包括白玉米、黄玉米、糯玉米、甜玉米、其他玉米。",
350
+ "specification": null,
351
+ "ssflbbh": "32.0",
352
+ "statusDesc": null,
353
+ "taxCategoryCode": "1010101030000000000",
354
+ "updateTime": "2021-08-17 15:12:27.0",
355
+ "zzssl": "9%",
356
+ "zzstsgl": "免税",
357
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)、《财政部、国家税务总局关于免征蔬菜流通环节增值税有关问题的通知》(财税〔2011〕137号)"
358
+ },
359
+ {
360
+ "bbh": "34.0",
361
+ "createTime": "2019-09-12 08:54:16.0",
362
+ "gjz": "谷子、硬谷子、糯谷子",
363
+ "gxsj": "20200601",
364
+ "hzx": "N",
365
+ "id": 50553,
366
+ "pid": "1010101000000000000",
367
+ "productName": "谷子",
368
+ "qysj": "20190401",
369
+ "shorthand": "谷物",
370
+ "sm": "包括硬谷子、糯谷子、其他谷子。",
371
+ "specification": null,
372
+ "ssflbbh": "32.0",
373
+ "statusDesc": null,
374
+ "taxCategoryCode": "1010101040000000000",
375
+ "updateTime": "2021-08-17 15:12:12.0",
376
+ "zzssl": "9%",
377
+ "zzstsgl": "免税",
378
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
379
+ },
380
+ {
381
+ "bbh": "34.0",
382
+ "createTime": "2019-09-12 08:54:16.0",
383
+ "gjz": "高粱、红粒高粱、白粒高粱、糯高粱",
384
+ "gxsj": "20200601",
385
+ "hzx": "N",
386
+ "id": 50554,
387
+ "pid": "1010101000000000000",
388
+ "productName": "高粱",
389
+ "qysj": "20190401",
390
+ "shorthand": "谷物",
391
+ "sm": "包括红粒高粱、白粒高粱、糯高粱、其他高粱。",
392
+ "specification": null,
393
+ "ssflbbh": "32.0",
394
+ "statusDesc": null,
395
+ "taxCategoryCode": "1010101050000000000",
396
+ "updateTime": "2021-08-17 15:12:30.0",
397
+ "zzssl": "9%",
398
+ "zzstsgl": "免税",
399
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
400
+ },
401
+ {
402
+ "bbh": "34.0",
403
+ "createTime": "2019-09-12 08:54:16.0",
404
+ "gjz": "大麦、裸大麦、皮大麦",
405
+ "gxsj": "20200601",
406
+ "hzx": "N",
407
+ "id": 50555,
408
+ "pid": "1010101000000000000",
409
+ "productName": "大麦",
410
+ "qysj": "20190401",
411
+ "shorthand": "谷物",
412
+ "sm": "包括裸大麦、皮大麦。",
413
+ "specification": null,
414
+ "ssflbbh": "32.0",
415
+ "statusDesc": null,
416
+ "taxCategoryCode": "1010101060000000000",
417
+ "updateTime": "2021-08-17 15:12:08.0",
418
+ "zzssl": "9%",
419
+ "zzstsgl": "免税",
420
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
421
+ },
422
+ {
423
+ "bbh": "34.0",
424
+ "createTime": "2019-09-12 08:54:16.0",
425
+ "gjz": "裸燕麦、皮燕麦",
426
+ "gxsj": "20200601",
427
+ "hzx": "N",
428
+ "id": 50556,
429
+ "pid": "1010101000000000000",
430
+ "productName": "燕麦",
431
+ "qysj": "20190401",
432
+ "shorthand": "谷物",
433
+ "sm": "包括裸燕麦、皮燕麦。",
434
+ "specification": null,
435
+ "ssflbbh": "32.0",
436
+ "statusDesc": null,
437
+ "taxCategoryCode": "1010101070000000000",
438
+ "updateTime": "2021-08-17 15:12:29.0",
439
+ "zzssl": "9%",
440
+ "zzstsgl": "免税",
441
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
442
+ },
443
+ {
444
+ "bbh": "34.0",
445
+ "createTime": "2019-09-12 08:54:16.0",
446
+ "gjz": "黑麦",
447
+ "gxsj": "20200601",
448
+ "hzx": "N",
449
+ "id": 50557,
450
+ "pid": "1010101000000000000",
451
+ "productName": "黑麦",
452
+ "qysj": "20190401",
453
+ "shorthand": "谷物",
454
+ "sm": "",
455
+ "specification": null,
456
+ "ssflbbh": "32.0",
457
+ "statusDesc": null,
458
+ "taxCategoryCode": "1010101080000000000",
459
+ "updateTime": "2021-08-17 15:12:11.0",
460
+ "zzssl": "9%",
461
+ "zzstsgl": "免税",
462
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
463
+ },
464
+ {
465
+ "bbh": "34.0",
466
+ "createTime": "2019-09-12 08:54:16.0",
467
+ "gjz": "荞麦、甜荞麦、苦荞麦",
468
+ "gxsj": "20200601",
469
+ "hzx": "N",
470
+ "id": 50558,
471
+ "pid": "1010101000000000000",
472
+ "productName": "荞麦",
473
+ "qysj": "20190401",
474
+ "shorthand": "谷物",
475
+ "sm": "包括甜荞麦、苦荞麦。",
476
+ "specification": null,
477
+ "ssflbbh": "32.0",
478
+ "statusDesc": null,
479
+ "taxCategoryCode": "1010101090000000000",
480
+ "updateTime": "2021-08-17 15:12:30.0",
481
+ "zzssl": "9%",
482
+ "zzstsgl": "免税",
483
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
484
+ },
485
+ {
486
+ "bbh": "34.0",
487
+ "createTime": "2019-09-12 08:54:16.0",
488
+ "gjz": "糜子、硬糜子、糯糜子、紫米、薏苡",
489
+ "gxsj": "20200601",
490
+ "hzx": "N",
491
+ "id": 50559,
492
+ "pid": "1010101000000000000",
493
+ "productName": "其他谷物",
494
+ "qysj": "20190401",
495
+ "shorthand": "谷物",
496
+ "sm": "包括糜子(硬糜子、糯糜子)、紫米、薏苡等。",
497
+ "specification": null,
498
+ "ssflbbh": "32.0",
499
+ "statusDesc": null,
500
+ "taxCategoryCode": "1010101990000000000",
501
+ "updateTime": "2021-08-17 15:12:19.0",
502
+ "zzssl": "9%",
503
+ "zzstsgl": "免税",
504
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
505
+ },
506
+ {
507
+ "bbh": "34.0",
508
+ "createTime": "2019-09-12 08:54:16.0",
509
+ "gjz": "种用谷物、种用皮大麦、种用裸大麦、种用糯高粱、种用红粒高粱、种用白粒高粱、种用甜玉米、种用糯玉米、种用黄玉米、种用白玉米、种用硬质小麦、种用软质小麦、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻",
510
+ "gxsj": "20200601",
511
+ "hzx": "N",
512
+ "id": 50683,
513
+ "pid": "1010119000000000000",
514
+ "productName": "种用谷物",
515
+ "qysj": "20190401",
516
+ "shorthand": "种子种苗",
517
+ "sm": "包括种用硬质小麦、种用甜玉米、种用软质小麦、种用皮大麦、种用糯玉米、种用糯高粱、种用裸大麦、种用黄玉米、种用红粒高粱、种用白玉米、种用白粒高粱、其他种用玉米、其他种用小麦、其他种用高粱、种用中籼稻、种用早籼稻、种用晚籼稻、种用糯稻、种用粳稻、其他种用稻谷。",
518
+ "specification": null,
519
+ "ssflbbh": "32.0",
520
+ "statusDesc": null,
521
+ "taxCategoryCode": "1010119010000000000",
522
+ "updateTime": "2021-08-17 15:12:24.0",
523
+ "zzssl": "9%",
524
+ "zzstsgl": "免税",
525
+ "zzszcyj": "《财政部、国家税务总局关于若干农业生产资料征免增值税政策的通知》(财税〔2001〕113号)"
526
+ },
527
+ {
528
+ "bbh": "34.0",
529
+ "createTime": "2019-09-12 08:54:16.0",
530
+ "gjz": "小麦粉、小麦专用粉、小麦自发粉",
531
+ "gxsj": "20200601",
532
+ "hzx": "N",
533
+ "id": 50923,
534
+ "pid": "1030101000000000000",
535
+ "productName": "小麦粉",
536
+ "qysj": "20190401",
537
+ "shorthand": "谷物细粉",
538
+ "sm": "",
539
+ "specification": null,
540
+ "ssflbbh": "32.0",
541
+ "statusDesc": null,
542
+ "taxCategoryCode": "1030101010000000000",
543
+ "updateTime": "2021-08-17 15:12:14.0",
544
+ "zzssl": "9%",
545
+ "zzstsgl": "免税",
546
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
547
+ },
548
+ {
549
+ "bbh": "34.0",
550
+ "createTime": "2019-09-12 08:54:16.0",
551
+ "gjz": "大米粉、籼米细粉、粳米细粉",
552
+ "gxsj": "20200601",
553
+ "hzx": "N",
554
+ "id": 50924,
555
+ "pid": "1030101000000000000",
556
+ "productName": "大米粉",
557
+ "qysj": "20190401",
558
+ "shorthand": "谷物细粉",
559
+ "sm": "",
560
+ "specification": null,
561
+ "ssflbbh": "32.0",
562
+ "statusDesc": null,
563
+ "taxCategoryCode": "1030101020000000000",
564
+ "updateTime": "2021-08-17 15:12:08.0",
565
+ "zzssl": "9%",
566
+ "zzstsgl": "免税",
567
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
568
+ },
569
+ {
570
+ "bbh": "34.0",
571
+ "createTime": "2019-09-12 08:54:16.0",
572
+ "gjz": "玉米细粉、糯米细粉、荞麦细粉、黑麦细粉、莜麦细粉、高粱细粉、大麦细粉",
573
+ "gxsj": "20200601",
574
+ "hzx": "N",
575
+ "id": 50925,
576
+ "pid": "1030101000000000000",
577
+ "productName": "其他谷物细粉",
578
+ "qysj": "20190401",
579
+ "shorthand": "谷物细粉",
580
+ "sm": "",
581
+ "specification": null,
582
+ "ssflbbh": "32.0",
583
+ "statusDesc": null,
584
+ "taxCategoryCode": "1030101990000000000",
585
+ "updateTime": "2021-08-17 15:12:08.0",
586
+ "zzssl": "9%",
587
+ "zzstsgl": "免税",
588
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
589
+ },
590
+ {
591
+ "bbh": "34.0",
592
+ "createTime": "2019-09-12 08:54:16.0",
593
+ "gjz": "籼米、粳米",
594
+ "gxsj": "20200601",
595
+ "hzx": "N",
596
+ "id": 50928,
597
+ "pid": "1030102010000000000",
598
+ "productName": "大米",
599
+ "qysj": "20190401",
600
+ "shorthand": "谷物加工品",
601
+ "sm": "",
602
+ "specification": null,
603
+ "ssflbbh": "32.0",
604
+ "statusDesc": null,
605
+ "taxCategoryCode": "1030102010100000000",
606
+ "updateTime": "2021-08-17 15:12:11.0",
607
+ "zzssl": "9%",
608
+ "zzstsgl": "免税",
609
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
610
+ },
611
+ {
612
+ "bbh": "34.0",
613
+ "createTime": "2019-09-12 08:54:16.0",
614
+ "gjz": "大米",
615
+ "gxsj": "20200601",
616
+ "hzx": "N",
617
+ "id": 50929,
618
+ "pid": "1030102010000000000",
619
+ "productName": "小米",
620
+ "qysj": "20190401",
621
+ "shorthand": "谷物加工品",
622
+ "sm": "",
623
+ "specification": null,
624
+ "ssflbbh": "32.0",
625
+ "statusDesc": null,
626
+ "taxCategoryCode": "1030102010200000000",
627
+ "updateTime": "2021-08-17 15:12:25.0",
628
+ "zzssl": "9%",
629
+ "zzstsgl": "免税",
630
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
631
+ },
632
+ {
633
+ "bbh": "34.0",
634
+ "createTime": "2019-09-12 08:54:16.0",
635
+ "gjz": "糯米",
636
+ "gxsj": "20200601",
637
+ "hzx": "N",
638
+ "id": 50930,
639
+ "pid": "1030102010000000000",
640
+ "productName": "糯米",
641
+ "qysj": "20190401",
642
+ "shorthand": "谷物加工品",
643
+ "sm": "",
644
+ "specification": null,
645
+ "ssflbbh": "32.0",
646
+ "statusDesc": null,
647
+ "taxCategoryCode": "1030102010300000000",
648
+ "updateTime": "2021-08-17 15:12:14.0",
649
+ "zzssl": "9%",
650
+ "zzstsgl": "免税",
651
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
652
+ },
653
+ {
654
+ "bbh": "34.0",
655
+ "createTime": "2019-09-12 08:54:16.0",
656
+ "gjz": "高粱米",
657
+ "gxsj": "20200601",
658
+ "hzx": "N",
659
+ "id": 50931,
660
+ "pid": "1030102010000000000",
661
+ "productName": "高粱米",
662
+ "qysj": "20190401",
663
+ "shorthand": "谷物加工品",
664
+ "sm": "",
665
+ "specification": null,
666
+ "ssflbbh": "32.0",
667
+ "statusDesc": null,
668
+ "taxCategoryCode": "1030102010400000000",
669
+ "updateTime": "2021-08-17 15:12:13.0",
670
+ "zzssl": "9%",
671
+ "zzstsgl": "免税",
672
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
673
+ },
674
+ {
675
+ "bbh": "34.0",
676
+ "createTime": "2019-09-12 08:54:16.0",
677
+ "gjz": "脱壳燕麦",
678
+ "gxsj": "20200601",
679
+ "hzx": "N",
680
+ "id": 50932,
681
+ "pid": "1030102010000000000",
682
+ "productName": "脱壳燕麦",
683
+ "qysj": "20190401",
684
+ "shorthand": "谷物加工品",
685
+ "sm": "指已脱壳但未去皮的燕麦。",
686
+ "specification": null,
687
+ "ssflbbh": "32.0",
688
+ "statusDesc": null,
689
+ "taxCategoryCode": "1030102010500000000",
690
+ "updateTime": "2021-08-17 15:12:06.0",
691
+ "zzssl": "9%",
692
+ "zzstsgl": "免税",
693
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
694
+ },
695
+ {
696
+ "bbh": "34.0",
697
+ "createTime": "2019-09-12 08:54:16.0",
698
+ "gjz": "脱壳青稞",
699
+ "gxsj": "20200601",
700
+ "hzx": "N",
701
+ "id": 50933,
702
+ "pid": "1030102010000000000",
703
+ "productName": "脱壳青稞",
704
+ "qysj": "20190401",
705
+ "shorthand": "谷物加工品",
706
+ "sm": "",
707
+ "specification": null,
708
+ "ssflbbh": "32.0",
709
+ "statusDesc": null,
710
+ "taxCategoryCode": "1030102010600000000",
711
+ "updateTime": "2021-08-17 15:12:11.0",
712
+ "zzssl": "9%",
713
+ "zzstsgl": "免税",
714
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
715
+ },
716
+ {
717
+ "bbh": "34.0",
718
+ "createTime": "2019-09-12 08:54:16.0",
719
+ "gjz": "珠粒大麦",
720
+ "gxsj": "20200601",
721
+ "hzx": "N",
722
+ "id": 50934,
723
+ "pid": "1030102010000000000",
724
+ "productName": "珠粒大麦",
725
+ "qysj": "20190401",
726
+ "shorthand": "谷物加工品",
727
+ "sm": "",
728
+ "specification": null,
729
+ "ssflbbh": "32.0",
730
+ "statusDesc": null,
731
+ "taxCategoryCode": "1030102010700000000",
732
+ "updateTime": "2021-08-17 15:12:12.0",
733
+ "zzssl": "9%",
734
+ "zzstsgl": "免税",
735
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
736
+ },
737
+ {
738
+ "bbh": "34.0",
739
+ "createTime": "2019-09-12 08:54:16.0",
740
+ "gjz": "",
741
+ "gxsj": "20200601",
742
+ "hzx": "N",
743
+ "id": 50935,
744
+ "pid": "1030102010000000000",
745
+ "productName": "其他碾磨、脱壳谷物",
746
+ "qysj": "20190401",
747
+ "shorthand": "谷物加工品",
748
+ "sm": "",
749
+ "specification": null,
750
+ "ssflbbh": "32.0",
751
+ "statusDesc": null,
752
+ "taxCategoryCode": "1030102019900000000",
753
+ "updateTime": "2021-08-17 15:12:21.0",
754
+ "zzssl": "9%",
755
+ "zzstsgl": "免税",
756
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
757
+ },
758
+ {
759
+ "bbh": "34.0",
760
+ "createTime": "2019-09-12 08:54:16.0",
761
+ "gjz": "小麦粗磨、大米粗磨、玉米粗磨、燕麦粗磨",
762
+ "gxsj": "20200601",
763
+ "hzx": "N",
764
+ "id": 50936,
765
+ "pid": "1030102000000000000",
766
+ "productName": "粗磨谷物",
767
+ "qysj": "20190401",
768
+ "shorthand": "谷物加工品",
769
+ "sm": "包括谷物去壳谷粉、粗粉及团粒。",
770
+ "specification": null,
771
+ "ssflbbh": "32.0",
772
+ "statusDesc": null,
773
+ "taxCategoryCode": "1030102020000000000",
774
+ "updateTime": "2021-08-17 15:12:15.0",
775
+ "zzssl": "9%",
776
+ "zzstsgl": "免税",
777
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
778
+ },
779
+ {
780
+ "bbh": "34.0",
781
+ "createTime": "2019-09-12 08:54:16.0",
782
+ "gjz": "燕麦片、大麦片、玉米片、谷物胚芽",
783
+ "gxsj": "20200601",
784
+ "hzx": "N",
785
+ "id": 50937,
786
+ "pid": "1030102000000000000",
787
+ "productName": "谷物加工制品",
788
+ "qysj": "20190401",
789
+ "shorthand": "谷物加工品",
790
+ "sm": "包括燕麦片、大麦片、玉米片,谷物胚芽等。",
791
+ "specification": null,
792
+ "ssflbbh": "32.0",
793
+ "statusDesc": null,
794
+ "taxCategoryCode": "1030102030000000000",
795
+ "updateTime": "2021-08-17 15:12:19.0",
796
+ "zzssl": "13%、9%",
797
+ "zzstsgl": "免税",
798
+ "zzszcyj": "《财政部 国家税务总局关于粮食企业增值税征免问题的通知》(财税字〔1999〕198号)"
799
+ },
800
+ {
801
+ "bbh": "34.0",
802
+ "createTime": "2019-09-12 08:54:16.0",
803
+ "gjz": "谷物制品类罐头、甜玉米罐头、米粥罐头、米饭罐头、八宝粥罐头、蔬菜粥罐头、八宝饭罐头",
804
+ "gxsj": "20200601",
805
+ "hzx": "N",
806
+ "id": 51065,
807
+ "pid": "1030205000000000000",
808
+ "productName": "谷物制品类罐头",
809
+ "qysj": "20190401",
810
+ "shorthand": "罐头",
811
+ "sm": "指经过处理后的谷类、干果及其他原料(桂圆、枸杞、蔬菜等)装罐制成的罐头产品",
812
+ "specification": null,
813
+ "ssflbbh": "32.0",
814
+ "statusDesc": null,
815
+ "taxCategoryCode": "1030205080000000000",
816
+ "updateTime": "2021-08-17 15:12:25.0",
817
+ "zzssl": "13%",
818
+ "zzstsgl": "",
819
+ "zzszcyj": ""
820
+ },
821
+ {
822
+ "bbh": "34.0",
823
+ "createTime": "2019-09-12 08:54:16.0",
824
+ "gjz": "谷物磨粉工业用筛、谷物磨粉工业用筛架、混合滚筒、分离滚筒、谷物磨粉机的滚筒、谷物磨粉机的变换器、谷物磨粉工业用机械零件",
825
+ "gxsj": "20200601",
826
+ "hzx": "N",
827
+ "id": 53402,
828
+ "pid": "1090220000000000000",
829
+ "productName": "谷物磨粉工业用机械零件",
830
+ "qysj": "20190401",
831
+ "shorthand": "食品制造机械",
832
+ "sm": "包括谷物磨粉工业用筛及筛架、混合或分离滚筒、谷物磨粉机的滚筒或变换器、其他谷物磨粉工业用机械零件",
833
+ "specification": null,
834
+ "ssflbbh": "32.0",
835
+ "statusDesc": null,
836
+ "taxCategoryCode": "1090220050000000000",
837
+ "updateTime": "2021-08-17 15:12:11.0",
838
+ "zzssl": "13%",
839
+ "zzstsgl": "",
840
+ "zzszcyj": ""
841
+ },
842
+ {
843
+ "bbh": "34.0",
844
+ "createTime": "2019-09-12 08:54:16.0",
845
+ "gjz": "",
846
+ "gxsj": "20200601",
847
+ "hzx": "Y",
848
+ "id": 50549,
849
+ "pid": "1010100000000000000",
850
+ "productName": "谷物",
851
+ "qysj": "20190401",
852
+ "shorthand": "谷物",
853
+ "sm": "包括稻谷、小麦、玉米、谷子、高粱、大麦、燕麦、黑麦、荞麦、其他谷物,不包括种用谷物(详见101011901)。",
854
+ "specification": null,
855
+ "ssflbbh": "32.0",
856
+ "statusDesc": null,
857
+ "taxCategoryCode": "1010101000000000000",
858
+ "updateTime": "2021-08-17 15:12:22.0",
859
+ "zzssl": "",
860
+ "zzstsgl": "",
861
+ "zzszcyj": ""
862
+ },
863
+ {
864
+ "bbh": "34.0",
865
+ "createTime": "2019-09-12 08:54:16.0",
866
+ "gjz": "种子、种苗、种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽",
867
+ "gxsj": "20200601",
868
+ "hzx": "Y",
869
+ "id": 50682,
870
+ "pid": "1010100000000000000",
871
+ "productName": "种子、种苗",
872
+ "qysj": "20190401",
873
+ "shorthand": "种子种苗",
874
+ "sm": "包括种用谷物、种用薯类、种用油料、种用豆类、种用饲料作物、蔬菜籽、花草种、水果籽及其他种子、种苗",
875
+ "specification": null,
876
+ "ssflbbh": "32.0",
877
+ "statusDesc": null,
878
+ "taxCategoryCode": "1010119000000000000",
879
+ "updateTime": "2021-08-17 15:12:22.0",
880
+ "zzssl": "",
881
+ "zzstsgl": "",
882
+ "zzszcyj": ""
883
+ },
884
+ {
885
+ "bbh": "34.0",
886
+ "createTime": "2019-09-12 08:54:16.0",
887
+ "gjz": "",
888
+ "gxsj": "20200601",
889
+ "hzx": "Y",
890
+ "id": 50922,
891
+ "pid": "1030100000000000000",
892
+ "productName": "谷物细粉",
893
+ "qysj": "20190401",
894
+ "shorthand": "谷物细粉",
895
+ "sm": "",
896
+ "specification": null,
897
+ "ssflbbh": "32.0",
898
+ "statusDesc": null,
899
+ "taxCategoryCode": "1030101000000000000",
900
+ "updateTime": "2021-08-17 15:12:09.0",
901
+ "zzssl": "",
902
+ "zzstsgl": "",
903
+ "zzszcyj": ""
904
+ },
905
+ {
906
+ "bbh": "34.0",
907
+ "createTime": "2019-09-12 08:54:16.0",
908
+ "gjz": "",
909
+ "gxsj": "20200601",
910
+ "hzx": "Y",
911
+ "id": 50927,
912
+ "pid": "1030102000000000000",
913
+ "productName": "碾磨、脱壳谷物",
914
+ "qysj": "20190401",
915
+ "shorthand": "谷物加工品",
916
+ "sm": "",
917
+ "specification": null,
918
+ "ssflbbh": "32.0",
919
+ "statusDesc": null,
920
+ "taxCategoryCode": "1030102010000000000",
921
+ "updateTime": "2021-08-17 15:12:07.0",
922
+ "zzssl": "",
923
+ "zzstsgl": "",
924
+ "zzszcyj": ""
925
+ },
926
+ {
927
+ "bbh": "34.0",
928
+ "createTime": "2019-09-12 08:54:16.0",
929
+ "gjz": "",
930
+ "gxsj": "20200601",
931
+ "hzx": "Y",
932
+ "id": 51057,
933
+ "pid": "1030200000000000000",
934
+ "productName": "罐头",
935
+ "qysj": "20190401",
936
+ "shorthand": "罐头",
937
+ "sm": "",
938
+ "specification": null,
939
+ "ssflbbh": "32.0",
940
+ "statusDesc": null,
941
+ "taxCategoryCode": "1030205000000000000",
942
+ "updateTime": "2021-08-17 15:12:13.0",
943
+ "zzssl": "",
944
+ "zzstsgl": "",
945
+ "zzszcyj": ""
946
+ },
947
+ {
948
+ "bbh": "34.0",
949
+ "createTime": "2019-09-12 08:54:16.0",
950
+ "gjz": "",
951
+ "gxsj": "20200601",
952
+ "hzx": "Y",
953
+ "id": 53397,
954
+ "pid": "1090200000000000000",
955
+ "productName": "食品、饮料、烟草专用生产设备零件",
956
+ "qysj": "20190401",
957
+ "shorthand": "食品制造机械",
958
+ "sm": "",
959
+ "specification": null,
960
+ "ssflbbh": "32.0",
961
+ "statusDesc": null,
962
+ "taxCategoryCode": "1090220000000000000",
963
+ "updateTime": "2021-08-17 15:12:09.0",
964
+ "zzssl": "",
965
+ "zzstsgl": "",
966
+ "zzszcyj": ""
967
+ },
968
+ {
969
+ "bbh": "34.0",
970
+ "createTime": "2019-09-12 08:54:16.0",
971
+ "gjz": "",
972
+ "gxsj": "20200601",
973
+ "hzx": "Y",
974
+ "id": 50548,
975
+ "pid": "1010000000000000000",
976
+ "productName": "农业产品",
977
+ "qysj": "20190401",
978
+ "shorthand": "农业产品",
979
+ "sm": "",
980
+ "specification": null,
981
+ "ssflbbh": "32.0",
982
+ "statusDesc": null,
983
+ "taxCategoryCode": "1010100000000000000",
984
+ "updateTime": "2021-08-17 15:12:32.0",
985
+ "zzssl": "",
986
+ "zzstsgl": "",
987
+ "zzszcyj": ""
988
+ },
989
+ {
990
+ "bbh": "34.0",
991
+ "createTime": "2019-09-12 08:54:16.0",
992
+ "gjz": "",
993
+ "gxsj": "20200601",
994
+ "hzx": "Y",
995
+ "id": 50921,
996
+ "pid": "1030000000000000000",
997
+ "productName": "农副食品,动、植物油制品",
998
+ "qysj": "20190401",
999
+ "shorthand": "农副食品",
1000
+ "sm": "",
1001
+ "specification": null,
1002
+ "ssflbbh": "32.0",
1003
+ "statusDesc": null,
1004
+ "taxCategoryCode": "1030100000000000000",
1005
+ "updateTime": "2021-08-17 15:12:23.0",
1006
+ "zzssl": "",
1007
+ "zzstsgl": "",
1008
+ "zzszcyj": ""
1009
+ },
1010
+ {
1011
+ "bbh": "34.0",
1012
+ "createTime": "2019-09-12 08:54:16.0",
1013
+ "gjz": "",
1014
+ "gxsj": "20200601",
1015
+ "hzx": "Y",
1016
+ "id": 50926,
1017
+ "pid": "1030100000000000000",
1018
+ "productName": "碾磨谷物及谷物加工品",
1019
+ "qysj": "20190401",
1020
+ "shorthand": "谷物加工品",
1021
+ "sm": "",
1022
+ "specification": null,
1023
+ "ssflbbh": "32.0",
1024
+ "statusDesc": null,
1025
+ "taxCategoryCode": "1030102000000000000",
1026
+ "updateTime": "2021-08-17 15:12:20.0",
1027
+ "zzssl": "",
1028
+ "zzstsgl": "",
1029
+ "zzszcyj": ""
1030
+ },
1031
+ {
1032
+ "bbh": "34.0",
1033
+ "createTime": "2019-09-12 08:54:16.0",
1034
+ "gjz": "",
1035
+ "gxsj": "20200601",
1036
+ "hzx": "Y",
1037
+ "id": 51032,
1038
+ "pid": "1030000000000000000",
1039
+ "productName": "食品及加工盐",
1040
+ "qysj": "20190401",
1041
+ "shorthand": "食品",
1042
+ "sm": "",
1043
+ "specification": null,
1044
+ "ssflbbh": "32.0",
1045
+ "statusDesc": null,
1046
+ "taxCategoryCode": "1030200000000000000",
1047
+ "updateTime": "2021-08-17 15:12:30.0",
1048
+ "zzssl": "",
1049
+ "zzstsgl": "",
1050
+ "zzszcyj": ""
1051
+ },
1052
+ {
1053
+ "bbh": "34.0",
1054
+ "createTime": "2019-09-12 08:54:16.0",
1055
+ "gjz": "",
1056
+ "gxsj": "20200601",
1057
+ "hzx": "Y",
1058
+ "id": 53261,
1059
+ "pid": "1090000000000000000",
1060
+ "productName": "专用设备",
1061
+ "qysj": "20190401",
1062
+ "shorthand": "专用设备",
1063
+ "sm": "指只在一个特定产业,用来生产、加工、处理特定产品或者改变特定物质形态的机械设备及其专门配套件",
1064
+ "specification": null,
1065
+ "ssflbbh": "32.0",
1066
+ "statusDesc": null,
1067
+ "taxCategoryCode": "1090200000000000000",
1068
+ "updateTime": "2021-08-17 15:12:15.0",
1069
+ "zzssl": "",
1070
+ "zzstsgl": "",
1071
+ "zzszcyj": ""
1072
+ },
1073
+ {
1074
+ "bbh": "34.0",
1075
+ "createTime": "2019-09-12 08:54:16.0",
1076
+ "gjz": "",
1077
+ "gxsj": "20200601",
1078
+ "hzx": "Y",
1079
+ "id": 50547,
1080
+ "pid": "1000000000000000000",
1081
+ "productName": "农、林、牧、渔业类产品",
1082
+ "qysj": "20190401",
1083
+ "shorthand": "农产品",
1084
+ "sm": "",
1085
+ "specification": null,
1086
+ "ssflbbh": "32.0",
1087
+ "statusDesc": null,
1088
+ "taxCategoryCode": "1010000000000000000",
1089
+ "updateTime": "2021-08-17 15:12:19.0",
1090
+ "zzssl": "",
1091
+ "zzstsgl": "",
1092
+ "zzszcyj": ""
1093
+ },
1094
+ {
1095
+ "bbh": "34.0",
1096
+ "createTime": "2019-09-12 08:54:16.0",
1097
+ "gjz": "",
1098
+ "gxsj": "20200601",
1099
+ "hzx": "Y",
1100
+ "id": 50920,
1101
+ "pid": "1000000000000000000",
1102
+ "productName": "食品、饮料、烟、酒类产品",
1103
+ "qysj": "20190401",
1104
+ "shorthand": "食品类产品",
1105
+ "sm": "",
1106
+ "specification": null,
1107
+ "ssflbbh": "32.0",
1108
+ "statusDesc": null,
1109
+ "taxCategoryCode": "1030000000000000000",
1110
+ "updateTime": "2021-08-17 15:12:07.0",
1111
+ "zzssl": "",
1112
+ "zzstsgl": "",
1113
+ "zzszcyj": ""
1114
+ },
1115
+ {
1116
+ "bbh": "34.0",
1117
+ "createTime": "2019-09-12 08:54:16.0",
1118
+ "gjz": "",
1119
+ "gxsj": "20200601",
1120
+ "hzx": "Y",
1121
+ "id": 53022,
1122
+ "pid": "1000000000000000000",
1123
+ "productName": "机械、设备类产品",
1124
+ "qysj": "20190401",
1125
+ "shorthand": "机械设备",
1126
+ "sm": "",
1127
+ "specification": null,
1128
+ "ssflbbh": "32.0",
1129
+ "statusDesc": null,
1130
+ "taxCategoryCode": "1090000000000000000",
1131
+ "updateTime": "2021-08-17 15:12:15.0",
1132
+ "zzssl": "",
1133
+ "zzstsgl": "",
1134
+ "zzszcyj": ""
1135
+ },
1136
+ {
1137
+ "bbh": "34.0",
1138
+ "createTime": "2019-09-12 08:54:16.0",
1139
+ "gjz": "",
1140
+ "gxsj": "20200601",
1141
+ "hzx": "Y",
1142
+ "id": 50546,
1143
+ "pid": "0",
1144
+ "productName": "货物",
1145
+ "qysj": "20190401",
1146
+ "shorthand": "货物",
1147
+ "sm": "",
1148
+ "specification": null,
1149
+ "ssflbbh": "32.0",
1150
+ "statusDesc": null,
1151
+ "taxCategoryCode": "1000000000000000000",
1152
+ "updateTime": "2021-08-17 15:12:12.0",
1153
+ "zzssl": "",
1154
+ "zzstsgl": "",
1155
+ "zzszcyj": ""
1156
+ }
1157
1157
  ].map(e => ({ ...e, "zeroTaxRateFlag": 'dddddd' }))