kts-component-invoice-operate 2.0.0 → 2.0.3

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 (48) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +10 -12
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.d.ts +0 -2
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  4. package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
  5. package/dist/Invoice/InvoiceController/index.d.ts +3 -0
  6. package/dist/Invoice/ui/AddComparisonDrawer/index.d.ts +2 -3
  7. package/dist/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.d.ts +5 -2
  8. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +5 -0
  9. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +5 -0
  10. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +5 -0
  11. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/index.d.ts +2 -0
  12. package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +3 -0
  13. package/dist/index.esm.js +820 -595
  14. package/dist/index.js +819 -594
  15. package/docs-dist/404.html +1 -1
  16. package/docs-dist/index.html +1 -1
  17. package/docs-dist/static/magnifier.2b26be6e.svg +1 -0
  18. package/docs-dist/umi.css +21 -20
  19. package/docs-dist/umi.js +1 -1
  20. package/package.json +5 -1
  21. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +10 -13
  22. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +1 -1
  23. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
  24. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
  25. package/src/Invoice/InvoiceController/index.ts +4 -0
  26. package/src/Invoice/tools/itemName/index.ts +0 -1
  27. package/src/Invoice/ui/AddComparisonDrawer/index.tsx +98 -142
  28. package/src/Invoice/ui/EndowCodeDrawer/index.tsx +1 -1
  29. package/src/Invoice/ui/GoodsList/hook/useColumns/autoFillFn/index.ts +5 -4
  30. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +61 -15
  31. package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
  32. package/src/Invoice/ui/GoodsList/index.less +10 -2
  33. package/src/Invoice/ui/GoodsList/index.tsx +17 -21
  34. package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
  35. package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.less +0 -0
  36. package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.tsx +20 -17
  37. package/src/Invoice/ui/GoodsList/ui/{CommodityComparisonButton → BulkMenu/hooks/useCommodityComparisonButton}/index.tsx +23 -22
  38. package/src/Invoice/ui/GoodsList/ui/{DelRowButton → BulkMenu/hooks/useDelRowButton}/index.tsx +15 -7
  39. package/src/Invoice/ui/GoodsList/ui/{EndowCodeButton → BulkMenu/hooks/useEndowCodeButton}/index.tsx +13 -9
  40. package/src/Invoice/ui/GoodsList/ui/BulkMenu/index.tsx +43 -0
  41. package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  42. package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
  43. package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
  44. package/src/Invoice/ui/ImportGoodsDrawer/index.tsx +10 -10
  45. package/yarn.e.lock +14331 -0
  46. package/dist/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.d.ts +0 -3
  47. package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +0 -3
  48. package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +0 -3
@@ -6,22 +6,20 @@ export default interface IGood {
6
6
  discountGroup?: string;
7
7
  /** 发票ID */
8
8
  id?: string;
9
- /** 商品编码(我方) */
9
+ /** 商品编码(对方-购买方) */
10
10
  itemCode?: string;
11
- /** 货物名称(我方) */
11
+ /** 货物名称(对方-购买方) */
12
12
  itemName?: string;
13
- /** 单位(我方) */
13
+ /** 单位(对方-购买方) */
14
14
  unit?: string;
15
- /** 货物规格型号(我方) */
15
+ /** 货物规格型号(对方-购买方) */
16
16
  itemModelName?: string;
17
- /** 商品编码(对方) */
18
- itemCodeOther?: string;
19
- /** 货物名称(对方) */
20
- itemNameOther?: string;
21
- /** 单位(对方) */
22
- unitOther?: string;
23
- /** 货物规格型号(对方) */
24
- itemModelNameOther?: string;
17
+ /** 商品编码(我方-销售) */
18
+ itemCodeSelf?: string;
19
+ /** 货物名称(我方-销售) */
20
+ itemNameSelf?: string;
21
+ /** 货物规格型号(我方-销售) */
22
+ itemModelNameSelf?: string;
25
23
  /** 数量 */
26
24
  quantity?: number;
27
25
  /** 单价(含税) */
@@ -2,6 +2,4 @@ import IGood from "../IGood";
2
2
  export default class ProductComparison {
3
3
  /** 执行商品对照 */
4
4
  onComply?: (e: IGood[]) => Promise<IGood[]>;
5
- /** 更新对照表 */
6
- onUpdateComparisonTable?: (e: IGood, values: any) => Promise<void>;
7
5
  }
@@ -28,6 +28,8 @@ export default class GoodsListState {
28
28
  defaultRate: number;
29
29
  /** 税率列表 */
30
30
  taxRateList: number[];
31
+ /** 搜索条件 */
32
+ searchValue: string;
31
33
  /** 货物列表 */
32
34
  goodsList: IGood[];
33
35
  /** 货物字典 */
@@ -0,0 +1,2 @@
1
+ import IGood from "../InvoiceControllerState/GoodsListState/IGood";
2
+ export default function getGoodsSearch(goodsList: IGood[], search: string): IGood[];
@@ -2,6 +2,7 @@ import InvoiceControllerForm from './InvoiceControllerForm';
2
2
  import InvoiceControllerState from './InvoiceControllerState';
3
3
  import { IGetBuyerListOption } from './InvoiceControllerState/BuyerState';
4
4
  import { IGetGoodsListOption } from './InvoiceControllerState/GoodsListState/ImportGoods';
5
+ import getGoodsSearch from './fns/getGoodsSearch';
5
6
  export { default as InvoiceControllerState } from './InvoiceControllerState';
6
7
  export { default as IGood } from './InvoiceControllerState/GoodsListState/IGood';
7
8
  export { default as LineAttributeType } from './InvoiceControllerState/GoodsListState/LineAttributeType';
@@ -27,4 +28,6 @@ export default class InvoiceController extends InvoiceControllerForm {
27
28
  getGoodsList?: (option?: IGetGoodsListOption | undefined) => Promise<any>;
28
29
  /** 税收分类编码列表 */
29
30
  getTaxCategoryCodeList?: () => Promise<any>;
31
+ /** 获取筛选后的列表 */
32
+ getGoodsSearch: typeof getGoodsSearch;
30
33
  }
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const AddComparisonDrawer: React.FunctionComponent<any>;
3
- export default AddComparisonDrawer;
1
+ /// <reference types="react" />
2
+ export default function AddComparisonDrawer(): JSX.Element;
@@ -5,7 +5,10 @@
5
5
  * 不含税扣额 = 含税折扣额 / (1+税率)
6
6
  * 折扣税额 = 含税折扣额 - 不含税扣额
7
7
  */
8
- import React from 'react';
8
+ /// <reference types="react" />
9
9
  import './index.less';
10
- declare const _default: React.FunctionComponent<{}>;
10
+ declare const _default: () => {
11
+ menuItem: JSX.Element | undefined;
12
+ drawer: JSX.Element;
13
+ };
11
14
  export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => {
3
+ menuItem: JSX.Element;
4
+ };
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => {
3
+ menuItem: JSX.Element;
4
+ };
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => {
3
+ menuItem: JSX.Element;
4
+ };
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function BulkMenu(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export default function Search(): JSX.Element;