kts-component-invoice-operate 3.2.48 → 3.2.49

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 (200) 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 +5 -5
  8. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.d.ts +0 -1
  9. package/dist/index.esm.js +5665 -7880
  10. package/dist/index.js +5665 -7880
  11. package/docs/index.md +5 -5
  12. package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
  13. package/docs-dist/static/arrowUp.4c482054.svg +2 -2
  14. package/docs-dist/static/fork.5431267d.svg +11 -11
  15. package/docs-dist/static/plus.44013ce3.svg +11 -11
  16. package/docs-dist/static/plus.4fd1af30.svg +11 -11
  17. package/index.html +12 -12
  18. package/package.json +60 -60
  19. package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
  20. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
  21. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
  22. package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +470 -470
  23. package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
  24. package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
  25. package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
  26. package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +41 -41
  27. package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
  28. package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
  29. package/src/Invoice/Invoice-digtal/index.md +30 -30
  30. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +94 -94
  31. package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +17 -17
  32. package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
  33. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +12 -12
  34. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +93 -93
  35. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
  36. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +75 -75
  37. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
  38. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +5 -5
  39. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
  40. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +107 -107
  41. package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +10 -10
  42. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +60 -60
  43. package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
  44. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +125 -125
  45. package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +84 -84
  46. package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
  47. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
  48. package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +67 -67
  49. package/src/Invoice/InvoiceController/fns/mergeDetails.ts +163 -163
  50. package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +28 -28
  51. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
  52. package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
  53. package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
  54. package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
  55. package/src/Invoice/InvoiceController/index.ts +77 -77
  56. package/src/Invoice/_test/buyerNameSearch/index.tsx +41 -41
  57. package/src/Invoice/_test/deduction/index.tsx +935 -935
  58. package/src/Invoice/_test/draft/index.tsx +40 -40
  59. package/src/Invoice/_test/easiest/index.tsx +5 -5
  60. package/src/Invoice/_test/endowCode/index.tsx +1099 -1099
  61. package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
  62. package/src/Invoice/_test/importBuyer/index.tsx +74 -74
  63. package/src/Invoice/_test/importGoods/index.tsx +515 -515
  64. package/src/Invoice/_test/invoiceType/index.tsx +59 -59
  65. package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
  66. package/src/Invoice/_test/replaceHead/index.tsx +22 -22
  67. package/src/Invoice/_test/retrieveData/index.tsx +22 -22
  68. package/src/Invoice/_test/seller/index.tsx +28 -28
  69. package/src/Invoice/_test/setDataSource/index.tsx +73 -73
  70. package/src/Invoice/_test/unit/index.tsx +19 -19
  71. package/src/Invoice/index.less +29 -29
  72. package/src/Invoice/index.md +53 -53
  73. package/src/Invoice/index.tsx +165 -165
  74. package/src/Invoice/tools/calculate/index.ts +112 -112
  75. package/src/Invoice/tools/coolingFn/index.ts +17 -17
  76. package/src/Invoice/tools/evaluate/index.ts +7 -7
  77. package/src/Invoice/tools/idGenerator/index.ts +2 -2
  78. package/src/Invoice/tools/itemName/index.ts +55 -55
  79. package/src/Invoice/tools/lazyFn/index.ts +19 -19
  80. package/src/Invoice/tools/mounting/index.ts +13 -13
  81. package/src/Invoice/tools/strringFn/index.ts +40 -40
  82. package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
  83. package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
  84. package/src/Invoice/ui/default/Buyer/index.less +219 -219
  85. package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
  86. package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
  87. package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
  88. package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
  89. package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +431 -431
  90. package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +533 -533
  91. package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +664 -665
  92. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  93. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +202 -202
  94. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
  95. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +58 -56
  96. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
  97. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +128 -128
  98. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  99. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  100. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
  101. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  102. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
  103. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  104. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  105. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  106. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  107. package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
  108. package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
  109. package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +111 -111
  110. package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
  111. package/src/Invoice/ui/default/GoodsList/index.less +177 -177
  112. package/src/Invoice/ui/default/GoodsList/index.tsx +191 -191
  113. package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
  114. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
  115. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
  116. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  117. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
  118. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +58 -58
  119. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +37 -37
  120. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
  121. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
  122. package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  123. package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
  124. package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
  125. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
  126. package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +109 -109
  127. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +13 -13
  128. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +46 -46
  129. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
  130. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
  131. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
  132. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  133. package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
  134. package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
  135. package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +193 -193
  136. package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
  137. package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
  138. package/src/Invoice/ui/default/Seller/index.less +113 -113
  139. package/src/Invoice/ui/default/Seller/index.tsx +98 -98
  140. package/src/Invoice/ui/default/Sign/index.less +14 -14
  141. package/src/Invoice/ui/default/Sign/index.tsx +71 -71
  142. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +519 -519
  143. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +648 -648
  144. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
  145. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
  146. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +186 -186
  147. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
  148. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +50 -50
  149. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
  150. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
  151. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
  152. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
  153. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
  154. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
  155. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
  156. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
  157. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
  158. package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
  159. package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
  160. package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
  161. package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
  162. package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
  163. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
  164. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +341 -341
  165. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
  166. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
  167. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
  168. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -35
  169. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
  170. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
  171. package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
  172. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
  173. package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
  174. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
  175. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -99
  176. package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
  177. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +13 -13
  178. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +40 -40
  179. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
  180. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
  181. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
  182. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
  183. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
  184. package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
  185. package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
  186. package/src/Invoice/ui/digtal/Sign/index.less +48 -48
  187. package/src/Invoice/ui/digtal/Sign/index.tsx +89 -89
  188. package/src/Invoice/ui/digtal/Stakeholder/index.less +75 -75
  189. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +388 -388
  190. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
  191. package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
  192. package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
  193. package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
  194. package/src/InvoiceTypeModal/index.less +7 -7
  195. package/src/InvoiceTypeModal/index.md +5 -5
  196. package/src/InvoiceTypeModal/index.tsx +153 -153
  197. package/src/index.ts +9 -9
  198. package/tsconfig.json +31 -31
  199. package/typings.d.ts +3 -3
  200. package/yarn.e.lock +14331 -14331
@@ -1,516 +1,516 @@
1
-
2
- import React from 'react';
3
- import { Button } from 'kts-components-antd-x3/lib/radio';
4
- import { Invoice, IGood } from '../../../../src';
5
- import { IGetBuyerListOption } from '../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
6
-
7
- const InvoiceController = Invoice.InvoiceController
8
-
9
- export default () => {
10
-
11
- // 初始化控制器
12
- const controller = React.useMemo(() => new MyInvoiceController(), []);
13
-
14
- return (
15
- <>
16
- <Button style={{ marginBottom: 10 }} onClick={async () => { console.log('===> 当前组件状态', await controller.validateFields()); }} >获取数据</Button>
17
- <Invoice controller={controller} />
18
- </>
19
- );
20
- };
21
-
22
- // 重写 购买方 的数据源,实现 ‘获取 购买方 列表’ 方法
23
- class MyInvoiceController extends InvoiceController {
24
- constructor() {
25
- super();
26
-
27
- // 添加附加信息
28
- this.state.goodsListState.importGoods.columns = [
29
- ...this.state.goodsListState.importGoods.columns,
30
- {
31
- title: '附加信息',
32
- dataIndex: 'affix',
33
- key: 'affix',
34
- },
35
- ];
36
-
37
- // 设置比对方法
38
- this.state.goodsListState.productComparison = {
39
- onComply: async (e: IGood[]) => {
40
- // return e.map(e => {
41
- // return {
42
- // ...e,
43
- // itemName: e.itemNameSelf + '(他方)',
44
- // itemModelName: e.itemModelNameSelf + '(他方)',
45
- // itemCode: e.itemCodeSelf + '(他方)',
46
- // }
47
- // })
48
- return [
49
- {
50
- "itemCodeSelf": null,
51
- "itemNameSelf": "china",
52
- "itemModelNameSelf": "xx",
53
- "itemCode": null,
54
- "itemName": "中国",
55
- "itemModelName": "北京房山 "
56
- },
57
- {
58
- "itemCodeSelf": null,
59
- "itemNameSelf": "china",
60
- "itemModelNameSelf": "xx",
61
- "itemCode": null,
62
- "itemName": "中国",
63
- "itemModelName": "北京房山 "
64
- }
65
- ] as any
66
- }
67
- }
68
-
69
- this.state.en = '08'
70
- this.state.invoiceType = '10'
71
- }
72
-
73
- // 重写 的 获取商品列表
74
- getGoodsList = this.pipeline<IGetBuyerListOption>(async (state, option) => {
75
- if (!option) return;
76
-
77
- // 初始化测试数据
78
- const dataSource = await getMok(option.pagination.current)
79
-
80
- // 设置分页数据
81
- state.goodsListState.importGoods.pagination = {
82
- ...option.pagination,
83
- pageSize: 20,
84
- total: 80,
85
- };
86
-
87
- // 设置列表数据
88
- state.goodsListState.importGoods.dataSource = dataSource;
89
- });
90
- }
91
-
92
- // const getMok = async (current: number = 1) => {
93
- // const dataSource: any[] = [];
94
- // for (let i = 0; i < 20; i++) {
95
- // const p = i + 20 * (current - 1);
96
- // dataSource.push({
97
- // itemType: `商品分类${p}`,
98
- // itemNo: `商品编码${p}`,
99
- // itemName: `商品名称${p}`,
100
- // shorthand: `前缀${p}`,
101
- // itemModelName: `规格型号${p}`,
102
- // unit: `计量单位${p}`,
103
- // priceIncludeTax: p,
104
- // priceExcludeTax: p,
105
- // taxClassificationCode: `税收分类编码${p}`,
106
- // affix: `附加信息${p}`,
107
- // });
108
- // }
109
- // return dataSource;
110
- // }
111
-
112
-
113
- const getMok = async (current: number = 1) => {
114
- return [
115
- {
116
- "attributeVOList": null,
117
- "brandName": null,
118
- "buyGroupCode": null,
119
- "buyGroupId": null,
120
- "buyGroupName": null,
121
- "categoryId": 2073,
122
- "categoryName": "通用",
123
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
124
- "createTime": "2021-09-10 15:45:43.0",
125
- "enjoyPreferentialPolicies": 0,
126
- "factoryCode": null,
127
- "factoryId": null,
128
- "factoryName": null,
129
- "id": 146200,
130
- "internalNumber": "发动机盖",
131
- "isUalityInspection": null,
132
- "name": "发动机ABC",
133
- "preferentialPoliciesType": null,
134
- "priceAmount": 50,
135
- "procurementCycle": 0,
136
- "shorthand": "发动机",
137
- "specification": "abc",
138
- "spuCode": "6000001738252675",
139
- "status": 1,
140
- "taxCategoryCode": "1090102040000000000",
141
- "taxExemptionType": "",
142
- "taxId": 11,
143
- "taxRate": 13,
144
- "unitId": 30,
145
- "unitName": "件",
146
- "itemType": "通用",
147
- "itemNo": "6000001738252675",
148
- "itemName": "发动机ABC",
149
- "itemModelName": "abc",
150
- "unit": "件",
151
- "priceIncludeTax": 50,
152
- "priceExcludeTax": 50,
153
- "taxClassificationCode": "1090102040000000000"
154
- },
155
- {
156
- "attributeVOList": null,
157
- "brandName": "丹东一号",
158
- "buyGroupCode": null,
159
- "buyGroupId": null,
160
- "buyGroupName": null,
161
- "categoryId": 2073,
162
- "categoryName": "通用",
163
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
164
- "createTime": "2021-09-02 14:59:52.0",
165
- "enjoyPreferentialPolicies": 0,
166
- "factoryCode": null,
167
- "factoryId": null,
168
- "factoryName": null,
169
- "id": 146199,
170
- "internalNumber": null,
171
- "isUalityInspection": null,
172
- "name": "aaaa",
173
- "preferentialPoliciesType": null,
174
- "priceAmount": 0,
175
- "procurementCycle": 0,
176
- "shorthand": "活牲畜",
177
- "specification": null,
178
- "spuCode": "6000001311479375",
179
- "status": 1,
180
- "taxCategoryCode": "1010301010000000000",
181
- "taxExemptionType": "1",
182
- "taxId": 1,
183
- "taxRate": 0,
184
- "unitId": null,
185
- "unitName": null,
186
- "itemType": "通用",
187
- "itemNo": "6000001311479375",
188
- "itemName": "aaaa",
189
- "itemModelName": null,
190
- "unit": null,
191
- "priceIncludeTax": 0,
192
- "priceExcludeTax": 0,
193
- "taxClassificationCode": "1010301010000000000"
194
- },
195
- {
196
- "attributeVOList": null,
197
- "brandName": "丹东一号",
198
- "buyGroupCode": null,
199
- "buyGroupId": null,
200
- "buyGroupName": null,
201
- "categoryId": 246,
202
- "categoryName": "分类cc>1",
203
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
204
- "createTime": "2020-12-28 18:23:55.0",
205
- "enjoyPreferentialPolicies": 0,
206
- "factoryCode": null,
207
- "factoryId": null,
208
- "factoryName": null,
209
- "id": 146131,
210
- "internalNumber": null,
211
- "isUalityInspection": null,
212
- "name": "AAAA",
213
- "preferentialPoliciesType": null,
214
- "priceAmount": null,
215
- "procurementCycle": 0,
216
- "shorthand": null,
217
- "specification": "1234EFF",
218
- "spuCode": "6000002120658581",
219
- "status": 1,
220
- "taxCategoryCode": null,
221
- "taxExemptionType": null,
222
- "taxId": null,
223
- "taxRate": 0,
224
- "unitId": 362,
225
- "unitName": "年",
226
- "itemType": "分类cc>1",
227
- "itemNo": "6000002120658581",
228
- "itemName": "AAAA",
229
- "itemModelName": "1234EFF",
230
- "unit": "年",
231
- "priceIncludeTax": 0,
232
- "priceExcludeTax": 0,
233
- "taxClassificationCode": null
234
- },
235
- {
236
- "attributeVOList": null,
237
- "brandName": null,
238
- "buyGroupCode": null,
239
- "buyGroupId": null,
240
- "buyGroupName": null,
241
- "categoryId": 2073,
242
- "categoryName": "通用",
243
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
244
- "createTime": "2020-12-15 10:14:14.0",
245
- "enjoyPreferentialPolicies": 0,
246
- "factoryCode": null,
247
- "factoryId": null,
248
- "factoryName": null,
249
- "id": 146129,
250
- "internalNumber": null,
251
- "isUalityInspection": null,
252
- "name": "服务费",
253
- "preferentialPoliciesType": null,
254
- "priceAmount": null,
255
- "procurementCycle": 0,
256
- "shorthand": "软件",
257
- "specification": null,
258
- "spuCode": "6000001474077629",
259
- "status": 1,
260
- "taxCategoryCode": "1060301020100000000",
261
- "taxExemptionType": null,
262
- "taxId": null,
263
- "taxRate": 0,
264
- "unitId": null,
265
- "unitName": null,
266
- "itemType": "通用",
267
- "itemNo": "6000001474077629",
268
- "itemName": "服务费",
269
- "itemModelName": null,
270
- "unit": null,
271
- "priceIncludeTax": 0,
272
- "priceExcludeTax": 0,
273
- "taxClassificationCode": "1060301020100000000"
274
- },
275
- {
276
- "attributeVOList": null,
277
- "brandName": "丹东一号",
278
- "buyGroupCode": null,
279
- "buyGroupId": null,
280
- "buyGroupName": null,
281
- "categoryId": 2073,
282
- "categoryName": "通用",
283
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
284
- "createTime": "2020-10-30 15:07:05.0",
285
- "enjoyPreferentialPolicies": 0,
286
- "factoryCode": null,
287
- "factoryId": null,
288
- "factoryName": null,
289
- "id": 145809,
290
- "internalNumber": "0987",
291
- "isUalityInspection": null,
292
- "name": "中科",
293
- "preferentialPoliciesType": null,
294
- "priceAmount": 1000,
295
- "procurementCycle": 0,
296
- "shorthand": "糖料",
297
- "specification": "12",
298
- "spuCode": "6000001168374126",
299
- "status": 1,
300
- "taxCategoryCode": "1010107010000000000",
301
- "taxExemptionType": "3",
302
- "taxId": 1,
303
- "taxRate": 0,
304
- "unitId": 32,
305
- "unitName": "把",
306
- "itemType": "通用",
307
- "itemNo": "6000001168374126",
308
- "itemName": "中科",
309
- "itemModelName": "12",
310
- "unit": "把",
311
- "priceIncludeTax": 1000,
312
- "priceExcludeTax": 1000,
313
- "taxClassificationCode": "1010107010000000000"
314
- },
315
- {
316
- "attributeVOList": null,
317
- "brandName": null,
318
- "buyGroupCode": null,
319
- "buyGroupId": null,
320
- "buyGroupName": null,
321
- "categoryId": 1862,
322
- "categoryName": "通用",
323
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
324
- "createTime": "2019-03-22 11:06:53.0",
325
- "enjoyPreferentialPolicies": 0,
326
- "factoryCode": null,
327
- "factoryId": null,
328
- "factoryName": null,
329
- "id": 144321,
330
- "internalNumber": "4302111",
331
- "isUalityInspection": 0,
332
- "name": "农用化肥2",
333
- "preferentialPoliciesType": "",
334
- "priceAmount": 90,
335
- "procurementCycle": 0,
336
- "shorthand": "肥料",
337
- "specification": "HLHF-211",
338
- "spuCode": "1000019000000056",
339
- "status": 1,
340
- "taxCategoryCode": "1000000000000000000",
341
- "taxExemptionType": null,
342
- "taxId": null,
343
- "taxRate": 0,
344
- "unitId": 11,
345
- "unitName": "包",
346
- "itemType": "通用",
347
- "itemNo": "1000019000000056",
348
- "itemName": "农用化肥2",
349
- "itemModelName": "HLHF-211",
350
- "unit": "包",
351
- "priceIncludeTax": 90,
352
- "priceExcludeTax": 90,
353
- "taxClassificationCode": "1000000000000000000"
354
- },
355
- {
356
- "attributeVOList": null,
357
- "brandName": null,
358
- "buyGroupCode": null,
359
- "buyGroupId": null,
360
- "buyGroupName": null,
361
- "categoryId": 1862,
362
- "categoryName": "通用",
363
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
364
- "createTime": "2019-03-22 11:06:52.0",
365
- "enjoyPreferentialPolicies": 0,
366
- "factoryCode": null,
367
- "factoryId": null,
368
- "factoryName": null,
369
- "id": 144320,
370
- "internalNumber": "4302111",
371
- "isUalityInspection": 0,
372
- "name": "园林轻化肥",
373
- "preferentialPoliciesType": "",
374
- "priceAmount": null,
375
- "procurementCycle": null,
376
- "shorthand": "肥料",
377
- "specification": "HLHF-211",
378
- "spuCode": "1000019000000055",
379
- "status": 1,
380
- "taxCategoryCode": "233WD5FG00911",
381
- "taxExemptionType": null,
382
- "taxId": null,
383
- "taxRate": 0,
384
- "unitId": 11,
385
- "unitName": "包",
386
- "itemType": "通用",
387
- "itemNo": "1000019000000055",
388
- "itemName": "园林轻化肥",
389
- "itemModelName": "HLHF-211",
390
- "unit": "包",
391
- "priceIncludeTax": 0,
392
- "priceExcludeTax": 0,
393
- "taxClassificationCode": "233WD5FG00911"
394
- },
395
- {
396
- "attributeVOList": null,
397
- "brandName": null,
398
- "buyGroupCode": null,
399
- "buyGroupId": null,
400
- "buyGroupName": null,
401
- "categoryId": 1862,
402
- "categoryName": "通用",
403
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
404
- "createTime": "2019-03-06 16:06:16.0",
405
- "enjoyPreferentialPolicies": 0,
406
- "factoryCode": null,
407
- "factoryId": null,
408
- "factoryName": null,
409
- "id": 101211,
410
- "internalNumber": "4302111",
411
- "isUalityInspection": 0,
412
- "name": "营养土壤",
413
- "preferentialPoliciesType": "",
414
- "priceAmount": null,
415
- "procurementCycle": null,
416
- "shorthand": "肥料",
417
- "specification": "HLHF-211",
418
- "spuCode": "1000019000000053",
419
- "status": 1,
420
- "taxCategoryCode": "233WD5FG00911",
421
- "taxExemptionType": null,
422
- "taxId": null,
423
- "taxRate": 0,
424
- "unitId": 11,
425
- "unitName": "包",
426
- "itemType": "通用",
427
- "itemNo": "1000019000000053",
428
- "itemName": "营养土壤",
429
- "itemModelName": "HLHF-211",
430
- "unit": "包",
431
- "priceIncludeTax": 0,
432
- "priceExcludeTax": 0,
433
- "taxClassificationCode": "233WD5FG00911"
434
- },
435
- {
436
- "attributeVOList": null,
437
- "brandName": null,
438
- "buyGroupCode": null,
439
- "buyGroupId": null,
440
- "buyGroupName": null,
441
- "categoryId": 1862,
442
- "categoryName": "通用",
443
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
444
- "createTime": "2019-03-06 16:06:16.0",
445
- "enjoyPreferentialPolicies": 0,
446
- "factoryCode": null,
447
- "factoryId": null,
448
- "factoryName": null,
449
- "id": 101212,
450
- "internalNumber": "4302111",
451
- "isUalityInspection": 0,
452
- "name": "植物营养液",
453
- "preferentialPoliciesType": "",
454
- "priceAmount": null,
455
- "procurementCycle": null,
456
- "shorthand": "肥料",
457
- "specification": "HLHF-211",
458
- "spuCode": "1000019000000054",
459
- "status": 1,
460
- "taxCategoryCode": "233WD5FG00911",
461
- "taxExemptionType": null,
462
- "taxId": null,
463
- "taxRate": 0,
464
- "unitId": 11,
465
- "unitName": "包",
466
- "itemType": "通用",
467
- "itemNo": "1000019000000054",
468
- "itemName": "植物营养液",
469
- "itemModelName": "HLHF-211",
470
- "unit": "包",
471
- "priceIncludeTax": 0,
472
- "priceExcludeTax": 0,
473
- "taxClassificationCode": "233WD5FG00911"
474
- },
475
- {
476
- "attributeVOList": null,
477
- "brandName": null,
478
- "buyGroupCode": null,
479
- "buyGroupId": null,
480
- "buyGroupName": null,
481
- "categoryId": 1862,
482
- "categoryName": "通用",
483
- "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
484
- "createTime": "2019-03-05 18:15:59.0",
485
- "enjoyPreferentialPolicies": 0,
486
- "factoryCode": null,
487
- "factoryId": null,
488
- "factoryName": null,
489
- "id": 101203,
490
- "internalNumber": "4353245243",
491
- "isUalityInspection": 0,
492
- "name": "医用棉布纱布条",
493
- "preferentialPoliciesType": "",
494
- "priceAmount": null,
495
- "procurementCycle": null,
496
- "shorthand": "布料",
497
- "specification": "ZC11D-006",
498
- "spuCode": "6000000804084562",
499
- "status": 1,
500
- "taxCategoryCode": "1234567890123456789",
501
- "taxExemptionType": null,
502
- "taxId": 5,
503
- "taxRate": 3,
504
- "unitId": 3,
505
- "unitName": "米",
506
- "itemType": "通用",
507
- "itemNo": "6000000804084562",
508
- "itemName": "医用棉布纱布条",
509
- "itemModelName": "ZC11D-006",
510
- "unit": "米",
511
- "priceIncludeTax": 0,
512
- "priceExcludeTax": 0,
513
- "taxClassificationCode": "1234567890123456789"
514
- }
515
- ]
1
+
2
+ import React from 'react';
3
+ import { Button } from 'kts-components-antd-x3/lib/radio';
4
+ import { Invoice, IGood } from '../../../../src';
5
+ import { IGetBuyerListOption } from '../../../Invoice/InvoiceController/InvoiceControllerState/BuyerState';
6
+
7
+ const InvoiceController = Invoice.InvoiceController
8
+
9
+ export default () => {
10
+
11
+ // 初始化控制器
12
+ const controller = React.useMemo(() => new MyInvoiceController(), []);
13
+
14
+ return (
15
+ <>
16
+ <Button style={{ marginBottom: 10 }} onClick={async () => { console.log('===> 当前组件状态', await controller.validateFields()); }} >获取数据</Button>
17
+ <Invoice controller={controller} />
18
+ </>
19
+ );
20
+ };
21
+
22
+ // 重写 购买方 的数据源,实现 ‘获取 购买方 列表’ 方法
23
+ class MyInvoiceController extends InvoiceController {
24
+ constructor() {
25
+ super();
26
+
27
+ // 添加附加信息
28
+ this.state.goodsListState.importGoods.columns = [
29
+ ...this.state.goodsListState.importGoods.columns,
30
+ {
31
+ title: '附加信息',
32
+ dataIndex: 'affix',
33
+ key: 'affix',
34
+ },
35
+ ];
36
+
37
+ // 设置比对方法
38
+ this.state.goodsListState.productComparison = {
39
+ onComply: async (e: IGood[]) => {
40
+ // return e.map(e => {
41
+ // return {
42
+ // ...e,
43
+ // itemName: e.itemNameSelf + '(他方)',
44
+ // itemModelName: e.itemModelNameSelf + '(他方)',
45
+ // itemCode: e.itemCodeSelf + '(他方)',
46
+ // }
47
+ // })
48
+ return [
49
+ {
50
+ "itemCodeSelf": null,
51
+ "itemNameSelf": "china",
52
+ "itemModelNameSelf": "xx",
53
+ "itemCode": null,
54
+ "itemName": "中国",
55
+ "itemModelName": "北京房山 "
56
+ },
57
+ {
58
+ "itemCodeSelf": null,
59
+ "itemNameSelf": "china",
60
+ "itemModelNameSelf": "xx",
61
+ "itemCode": null,
62
+ "itemName": "中国",
63
+ "itemModelName": "北京房山 "
64
+ }
65
+ ] as any
66
+ }
67
+ }
68
+
69
+ this.state.en = '08'
70
+ this.state.invoiceType = '10'
71
+ }
72
+
73
+ // 重写 的 获取商品列表
74
+ getGoodsList = this.pipeline<IGetBuyerListOption>(async (state, option) => {
75
+ if (!option) return;
76
+
77
+ // 初始化测试数据
78
+ const dataSource = await getMok(option.pagination.current)
79
+
80
+ // 设置分页数据
81
+ state.goodsListState.importGoods.pagination = {
82
+ ...option.pagination,
83
+ pageSize: 20,
84
+ total: 80,
85
+ };
86
+
87
+ // 设置列表数据
88
+ state.goodsListState.importGoods.dataSource = dataSource;
89
+ });
90
+ }
91
+
92
+ // const getMok = async (current: number = 1) => {
93
+ // const dataSource: any[] = [];
94
+ // for (let i = 0; i < 20; i++) {
95
+ // const p = i + 20 * (current - 1);
96
+ // dataSource.push({
97
+ // itemType: `商品分类${p}`,
98
+ // itemNo: `商品编码${p}`,
99
+ // itemName: `商品名称${p}`,
100
+ // shorthand: `前缀${p}`,
101
+ // itemModelName: `规格型号${p}`,
102
+ // unit: `计量单位${p}`,
103
+ // priceIncludeTax: p,
104
+ // priceExcludeTax: p,
105
+ // taxClassificationCode: `税收分类编码${p}`,
106
+ // affix: `附加信息${p}`,
107
+ // });
108
+ // }
109
+ // return dataSource;
110
+ // }
111
+
112
+
113
+ const getMok = async (current: number = 1) => {
114
+ return [
115
+ {
116
+ "attributeVOList": null,
117
+ "brandName": null,
118
+ "buyGroupCode": null,
119
+ "buyGroupId": null,
120
+ "buyGroupName": null,
121
+ "categoryId": 2073,
122
+ "categoryName": "通用",
123
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
124
+ "createTime": "2021-09-10 15:45:43.0",
125
+ "enjoyPreferentialPolicies": 0,
126
+ "factoryCode": null,
127
+ "factoryId": null,
128
+ "factoryName": null,
129
+ "id": 146200,
130
+ "internalNumber": "发动机盖",
131
+ "isUalityInspection": null,
132
+ "name": "发动机ABC",
133
+ "preferentialPoliciesType": null,
134
+ "priceAmount": 50,
135
+ "procurementCycle": 0,
136
+ "shorthand": "发动机",
137
+ "specification": "abc",
138
+ "spuCode": "6000001738252675",
139
+ "status": 1,
140
+ "taxCategoryCode": "1090102040000000000",
141
+ "taxExemptionType": "",
142
+ "taxId": 11,
143
+ "taxRate": 13,
144
+ "unitId": 30,
145
+ "unitName": "件",
146
+ "itemType": "通用",
147
+ "itemNo": "6000001738252675",
148
+ "itemName": "发动机ABC",
149
+ "itemModelName": "abc",
150
+ "unit": "件",
151
+ "priceIncludeTax": 50,
152
+ "priceExcludeTax": 50,
153
+ "taxClassificationCode": "1090102040000000000"
154
+ },
155
+ {
156
+ "attributeVOList": null,
157
+ "brandName": "丹东一号",
158
+ "buyGroupCode": null,
159
+ "buyGroupId": null,
160
+ "buyGroupName": null,
161
+ "categoryId": 2073,
162
+ "categoryName": "通用",
163
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
164
+ "createTime": "2021-09-02 14:59:52.0",
165
+ "enjoyPreferentialPolicies": 0,
166
+ "factoryCode": null,
167
+ "factoryId": null,
168
+ "factoryName": null,
169
+ "id": 146199,
170
+ "internalNumber": null,
171
+ "isUalityInspection": null,
172
+ "name": "aaaa",
173
+ "preferentialPoliciesType": null,
174
+ "priceAmount": 0,
175
+ "procurementCycle": 0,
176
+ "shorthand": "活牲畜",
177
+ "specification": null,
178
+ "spuCode": "6000001311479375",
179
+ "status": 1,
180
+ "taxCategoryCode": "1010301010000000000",
181
+ "taxExemptionType": "1",
182
+ "taxId": 1,
183
+ "taxRate": 0,
184
+ "unitId": null,
185
+ "unitName": null,
186
+ "itemType": "通用",
187
+ "itemNo": "6000001311479375",
188
+ "itemName": "aaaa",
189
+ "itemModelName": null,
190
+ "unit": null,
191
+ "priceIncludeTax": 0,
192
+ "priceExcludeTax": 0,
193
+ "taxClassificationCode": "1010301010000000000"
194
+ },
195
+ {
196
+ "attributeVOList": null,
197
+ "brandName": "丹东一号",
198
+ "buyGroupCode": null,
199
+ "buyGroupId": null,
200
+ "buyGroupName": null,
201
+ "categoryId": 246,
202
+ "categoryName": "分类cc>1",
203
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
204
+ "createTime": "2020-12-28 18:23:55.0",
205
+ "enjoyPreferentialPolicies": 0,
206
+ "factoryCode": null,
207
+ "factoryId": null,
208
+ "factoryName": null,
209
+ "id": 146131,
210
+ "internalNumber": null,
211
+ "isUalityInspection": null,
212
+ "name": "AAAA",
213
+ "preferentialPoliciesType": null,
214
+ "priceAmount": null,
215
+ "procurementCycle": 0,
216
+ "shorthand": null,
217
+ "specification": "1234EFF",
218
+ "spuCode": "6000002120658581",
219
+ "status": 1,
220
+ "taxCategoryCode": null,
221
+ "taxExemptionType": null,
222
+ "taxId": null,
223
+ "taxRate": 0,
224
+ "unitId": 362,
225
+ "unitName": "年",
226
+ "itemType": "分类cc>1",
227
+ "itemNo": "6000002120658581",
228
+ "itemName": "AAAA",
229
+ "itemModelName": "1234EFF",
230
+ "unit": "年",
231
+ "priceIncludeTax": 0,
232
+ "priceExcludeTax": 0,
233
+ "taxClassificationCode": null
234
+ },
235
+ {
236
+ "attributeVOList": null,
237
+ "brandName": null,
238
+ "buyGroupCode": null,
239
+ "buyGroupId": null,
240
+ "buyGroupName": null,
241
+ "categoryId": 2073,
242
+ "categoryName": "通用",
243
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
244
+ "createTime": "2020-12-15 10:14:14.0",
245
+ "enjoyPreferentialPolicies": 0,
246
+ "factoryCode": null,
247
+ "factoryId": null,
248
+ "factoryName": null,
249
+ "id": 146129,
250
+ "internalNumber": null,
251
+ "isUalityInspection": null,
252
+ "name": "服务费",
253
+ "preferentialPoliciesType": null,
254
+ "priceAmount": null,
255
+ "procurementCycle": 0,
256
+ "shorthand": "软件",
257
+ "specification": null,
258
+ "spuCode": "6000001474077629",
259
+ "status": 1,
260
+ "taxCategoryCode": "1060301020100000000",
261
+ "taxExemptionType": null,
262
+ "taxId": null,
263
+ "taxRate": 0,
264
+ "unitId": null,
265
+ "unitName": null,
266
+ "itemType": "通用",
267
+ "itemNo": "6000001474077629",
268
+ "itemName": "服务费",
269
+ "itemModelName": null,
270
+ "unit": null,
271
+ "priceIncludeTax": 0,
272
+ "priceExcludeTax": 0,
273
+ "taxClassificationCode": "1060301020100000000"
274
+ },
275
+ {
276
+ "attributeVOList": null,
277
+ "brandName": "丹东一号",
278
+ "buyGroupCode": null,
279
+ "buyGroupId": null,
280
+ "buyGroupName": null,
281
+ "categoryId": 2073,
282
+ "categoryName": "通用",
283
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
284
+ "createTime": "2020-10-30 15:07:05.0",
285
+ "enjoyPreferentialPolicies": 0,
286
+ "factoryCode": null,
287
+ "factoryId": null,
288
+ "factoryName": null,
289
+ "id": 145809,
290
+ "internalNumber": "0987",
291
+ "isUalityInspection": null,
292
+ "name": "中科",
293
+ "preferentialPoliciesType": null,
294
+ "priceAmount": 1000,
295
+ "procurementCycle": 0,
296
+ "shorthand": "糖料",
297
+ "specification": "12",
298
+ "spuCode": "6000001168374126",
299
+ "status": 1,
300
+ "taxCategoryCode": "1010107010000000000",
301
+ "taxExemptionType": "3",
302
+ "taxId": 1,
303
+ "taxRate": 0,
304
+ "unitId": 32,
305
+ "unitName": "把",
306
+ "itemType": "通用",
307
+ "itemNo": "6000001168374126",
308
+ "itemName": "中科",
309
+ "itemModelName": "12",
310
+ "unit": "把",
311
+ "priceIncludeTax": 1000,
312
+ "priceExcludeTax": 1000,
313
+ "taxClassificationCode": "1010107010000000000"
314
+ },
315
+ {
316
+ "attributeVOList": null,
317
+ "brandName": null,
318
+ "buyGroupCode": null,
319
+ "buyGroupId": null,
320
+ "buyGroupName": null,
321
+ "categoryId": 1862,
322
+ "categoryName": "通用",
323
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
324
+ "createTime": "2019-03-22 11:06:53.0",
325
+ "enjoyPreferentialPolicies": 0,
326
+ "factoryCode": null,
327
+ "factoryId": null,
328
+ "factoryName": null,
329
+ "id": 144321,
330
+ "internalNumber": "4302111",
331
+ "isUalityInspection": 0,
332
+ "name": "农用化肥2",
333
+ "preferentialPoliciesType": "",
334
+ "priceAmount": 90,
335
+ "procurementCycle": 0,
336
+ "shorthand": "肥料",
337
+ "specification": "HLHF-211",
338
+ "spuCode": "1000019000000056",
339
+ "status": 1,
340
+ "taxCategoryCode": "1000000000000000000",
341
+ "taxExemptionType": null,
342
+ "taxId": null,
343
+ "taxRate": 0,
344
+ "unitId": 11,
345
+ "unitName": "包",
346
+ "itemType": "通用",
347
+ "itemNo": "1000019000000056",
348
+ "itemName": "农用化肥2",
349
+ "itemModelName": "HLHF-211",
350
+ "unit": "包",
351
+ "priceIncludeTax": 90,
352
+ "priceExcludeTax": 90,
353
+ "taxClassificationCode": "1000000000000000000"
354
+ },
355
+ {
356
+ "attributeVOList": null,
357
+ "brandName": null,
358
+ "buyGroupCode": null,
359
+ "buyGroupId": null,
360
+ "buyGroupName": null,
361
+ "categoryId": 1862,
362
+ "categoryName": "通用",
363
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
364
+ "createTime": "2019-03-22 11:06:52.0",
365
+ "enjoyPreferentialPolicies": 0,
366
+ "factoryCode": null,
367
+ "factoryId": null,
368
+ "factoryName": null,
369
+ "id": 144320,
370
+ "internalNumber": "4302111",
371
+ "isUalityInspection": 0,
372
+ "name": "园林轻化肥",
373
+ "preferentialPoliciesType": "",
374
+ "priceAmount": null,
375
+ "procurementCycle": null,
376
+ "shorthand": "肥料",
377
+ "specification": "HLHF-211",
378
+ "spuCode": "1000019000000055",
379
+ "status": 1,
380
+ "taxCategoryCode": "233WD5FG00911",
381
+ "taxExemptionType": null,
382
+ "taxId": null,
383
+ "taxRate": 0,
384
+ "unitId": 11,
385
+ "unitName": "包",
386
+ "itemType": "通用",
387
+ "itemNo": "1000019000000055",
388
+ "itemName": "园林轻化肥",
389
+ "itemModelName": "HLHF-211",
390
+ "unit": "包",
391
+ "priceIncludeTax": 0,
392
+ "priceExcludeTax": 0,
393
+ "taxClassificationCode": "233WD5FG00911"
394
+ },
395
+ {
396
+ "attributeVOList": null,
397
+ "brandName": null,
398
+ "buyGroupCode": null,
399
+ "buyGroupId": null,
400
+ "buyGroupName": null,
401
+ "categoryId": 1862,
402
+ "categoryName": "通用",
403
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
404
+ "createTime": "2019-03-06 16:06:16.0",
405
+ "enjoyPreferentialPolicies": 0,
406
+ "factoryCode": null,
407
+ "factoryId": null,
408
+ "factoryName": null,
409
+ "id": 101211,
410
+ "internalNumber": "4302111",
411
+ "isUalityInspection": 0,
412
+ "name": "营养土壤",
413
+ "preferentialPoliciesType": "",
414
+ "priceAmount": null,
415
+ "procurementCycle": null,
416
+ "shorthand": "肥料",
417
+ "specification": "HLHF-211",
418
+ "spuCode": "1000019000000053",
419
+ "status": 1,
420
+ "taxCategoryCode": "233WD5FG00911",
421
+ "taxExemptionType": null,
422
+ "taxId": null,
423
+ "taxRate": 0,
424
+ "unitId": 11,
425
+ "unitName": "包",
426
+ "itemType": "通用",
427
+ "itemNo": "1000019000000053",
428
+ "itemName": "营养土壤",
429
+ "itemModelName": "HLHF-211",
430
+ "unit": "包",
431
+ "priceIncludeTax": 0,
432
+ "priceExcludeTax": 0,
433
+ "taxClassificationCode": "233WD5FG00911"
434
+ },
435
+ {
436
+ "attributeVOList": null,
437
+ "brandName": null,
438
+ "buyGroupCode": null,
439
+ "buyGroupId": null,
440
+ "buyGroupName": null,
441
+ "categoryId": 1862,
442
+ "categoryName": "通用",
443
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
444
+ "createTime": "2019-03-06 16:06:16.0",
445
+ "enjoyPreferentialPolicies": 0,
446
+ "factoryCode": null,
447
+ "factoryId": null,
448
+ "factoryName": null,
449
+ "id": 101212,
450
+ "internalNumber": "4302111",
451
+ "isUalityInspection": 0,
452
+ "name": "植物营养液",
453
+ "preferentialPoliciesType": "",
454
+ "priceAmount": null,
455
+ "procurementCycle": null,
456
+ "shorthand": "肥料",
457
+ "specification": "HLHF-211",
458
+ "spuCode": "1000019000000054",
459
+ "status": 1,
460
+ "taxCategoryCode": "233WD5FG00911",
461
+ "taxExemptionType": null,
462
+ "taxId": null,
463
+ "taxRate": 0,
464
+ "unitId": 11,
465
+ "unitName": "包",
466
+ "itemType": "通用",
467
+ "itemNo": "1000019000000054",
468
+ "itemName": "植物营养液",
469
+ "itemModelName": "HLHF-211",
470
+ "unit": "包",
471
+ "priceIncludeTax": 0,
472
+ "priceExcludeTax": 0,
473
+ "taxClassificationCode": "233WD5FG00911"
474
+ },
475
+ {
476
+ "attributeVOList": null,
477
+ "brandName": null,
478
+ "buyGroupCode": null,
479
+ "buyGroupId": null,
480
+ "buyGroupName": null,
481
+ "categoryId": 1862,
482
+ "categoryName": "通用",
483
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
484
+ "createTime": "2019-03-05 18:15:59.0",
485
+ "enjoyPreferentialPolicies": 0,
486
+ "factoryCode": null,
487
+ "factoryId": null,
488
+ "factoryName": null,
489
+ "id": 101203,
490
+ "internalNumber": "4353245243",
491
+ "isUalityInspection": 0,
492
+ "name": "医用棉布纱布条",
493
+ "preferentialPoliciesType": "",
494
+ "priceAmount": null,
495
+ "procurementCycle": null,
496
+ "shorthand": "布料",
497
+ "specification": "ZC11D-006",
498
+ "spuCode": "6000000804084562",
499
+ "status": 1,
500
+ "taxCategoryCode": "1234567890123456789",
501
+ "taxExemptionType": null,
502
+ "taxId": 5,
503
+ "taxRate": 3,
504
+ "unitId": 3,
505
+ "unitName": "米",
506
+ "itemType": "通用",
507
+ "itemNo": "6000000804084562",
508
+ "itemName": "医用棉布纱布条",
509
+ "itemModelName": "ZC11D-006",
510
+ "unit": "米",
511
+ "priceIncludeTax": 0,
512
+ "priceExcludeTax": 0,
513
+ "taxClassificationCode": "1234567890123456789"
514
+ }
515
+ ]
516
516
  }