kts-component-invoice-operate 2.0.0 → 2.0.1

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 (75) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  2. package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
  3. package/dist/Invoice/InvoiceController/index.d.ts +3 -0
  4. package/dist/Invoice/_test/buyerNameSearch/index.d.ts +0 -1
  5. package/dist/Invoice/_test/deduction/index.d.ts +0 -1
  6. package/dist/Invoice/_test/draft/index.d.ts +0 -1
  7. package/dist/Invoice/_test/easiest/index.d.ts +0 -1
  8. package/dist/Invoice/_test/endowCode/index.d.ts +0 -1
  9. package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +0 -1
  10. package/dist/Invoice/_test/importBuyer/index.d.ts +0 -1
  11. package/dist/Invoice/_test/importGoods/index.d.ts +0 -1
  12. package/dist/Invoice/_test/invoiceType/index.d.ts +0 -1
  13. package/dist/Invoice/_test/isInvoiceNo/index.d.ts +0 -1
  14. package/dist/Invoice/_test/replaceHead/index.d.ts +0 -1
  15. package/dist/Invoice/_test/retrieveData/index.d.ts +0 -1
  16. package/dist/Invoice/_test/seller/index.d.ts +0 -1
  17. package/dist/Invoice/_test/setDataSource/index.d.ts +0 -1
  18. package/dist/Invoice/_test/unit/index.d.ts +0 -1
  19. package/dist/Invoice/ui/AddComparisonDrawer/index.d.ts +1 -1
  20. package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +0 -1
  21. package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +0 -1
  22. package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +0 -1
  23. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +0 -1
  24. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddComparison/index.d.ts +0 -1
  25. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +0 -1
  26. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +0 -1
  27. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +0 -1
  28. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +0 -1
  29. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +0 -1
  30. package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +0 -1
  31. package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +0 -1
  32. package/dist/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.d.ts +4 -2
  33. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +4 -0
  34. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +4 -0
  35. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +4 -0
  36. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/index.d.ts +1 -0
  37. package/dist/Invoice/ui/GoodsList/ui/DescribeSwitch/index.d.ts +0 -1
  38. package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +2 -0
  39. package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +0 -1
  40. package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +0 -1
  41. package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +0 -1
  42. package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +0 -1
  43. package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +0 -1
  44. package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +0 -1
  45. package/dist/index.esm.js +715 -457
  46. package/dist/index.js +714 -456
  47. package/package.json +3 -1
  48. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
  49. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
  50. package/src/Invoice/InvoiceController/index.ts +4 -0
  51. package/src/Invoice/ui/AddComparisonDrawer/index.tsx +154 -158
  52. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +34 -8
  53. package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
  54. package/src/Invoice/ui/GoodsList/index.less +10 -2
  55. package/src/Invoice/ui/GoodsList/index.tsx +17 -21
  56. package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
  57. package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.less +0 -0
  58. package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.tsx +20 -17
  59. package/src/Invoice/ui/GoodsList/ui/{CommodityComparisonButton → BulkMenu/hooks/useCommodityComparisonButton}/index.tsx +17 -11
  60. package/src/Invoice/ui/GoodsList/ui/{DelRowButton → BulkMenu/hooks/useDelRowButton}/index.tsx +15 -7
  61. package/src/Invoice/ui/GoodsList/ui/{EndowCodeButton → BulkMenu/hooks/useEndowCodeButton}/index.tsx +13 -9
  62. package/src/Invoice/ui/GoodsList/ui/BulkMenu/index.tsx +43 -0
  63. package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  64. package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
  65. package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
  66. package/yarn.e.lock +14331 -0
  67. package/dist/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.d.ts +0 -3
  68. package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +0 -3
  69. package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +0 -3
  70. package/docs-dist/404.html +0 -33
  71. package/docs-dist/index.html +0 -33
  72. package/docs-dist/static/auto.a6cd905c.svg +0 -1
  73. package/docs-dist/static/spot.42e620e1.svg +0 -1
  74. package/docs-dist/umi.css +0 -20
  75. package/docs-dist/umi.js +0 -1
@@ -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
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import 'antd/dist/antd.css';
3
2
  declare const _default: () => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import 'antd/dist/antd.css';
3
2
  declare const _default: () => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- declare const AddComparisonDrawer: React.FunctionComponent<any>;
2
+ declare const AddComparisonDrawer: React.FunctionComponent<{}>;
3
3
  export default AddComparisonDrawer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IBuyerNameInputProps {
3
2
  value?: string;
4
3
  onChange?: (e: string) => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: () => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../InvoiceController';
3
2
  declare const _default: (props: {
4
3
  goods: IGood;
@@ -1,5 +1,4 @@
1
1
  /** 添加商品对照 */
2
- /// <reference types="react" />
3
2
  import { IGood } from '../../../../../../../../InvoiceController';
4
3
  declare const _default: (goods: IGood) => JSX.Element;
5
4
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../../../InvoiceController';
3
2
  declare const _default: (goods: IGood) => JSX.Element | undefined;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../../../InvoiceController';
3
2
  declare const _default: (goods: IGood) => JSX.Element | undefined;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../../../InvoiceController';
3
2
  declare const _default: (goods: IGood) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../InvoiceController';
3
2
  import './index.less';
4
3
  declare const _default: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../InvoiceController';
3
2
  declare const _default: (props: {
4
3
  goods: IGood;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => {
3
2
  columnWidth: number;
4
3
  columnTitle: JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -5,7 +5,9 @@
5
5
  * 不含税扣额 = 含税折扣额 / (1+税率)
6
6
  * 折扣税额 = 含税折扣额 - 不含税扣额
7
7
  */
8
- import React from 'react';
9
8
  import './index.less';
10
- declare const _default: React.FunctionComponent<{}>;
9
+ declare const _default: () => {
10
+ menuItem: JSX.Element | undefined;
11
+ drawer: JSX.Element;
12
+ };
11
13
  export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: () => {
2
+ menuItem: JSX.Element;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: () => {
2
+ menuItem: JSX.Element;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: () => {
2
+ menuItem: JSX.Element;
3
+ };
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function BulkMenu(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -0,0 +1,2 @@
1
+ import './index.less';
2
+ export default function Search(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: () => JSX.Element;
4
3
  export default _default;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function TableRow(props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from 'kts-components-antd-x3/lib/table/interface';
3
2
  import './index.less';
4
3
  export default function <T = any>(props: TableProps<T>): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;