kts-component-invoice-operate 1.2.21 → 1.2.24

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 (35) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  2. package/dist/Invoice/InvoiceController/fns/addGood.d.ts +1 -1
  3. package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
  4. package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
  5. package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
  6. package/dist/Invoice/InvoiceController/fns/saveEditGood.d.ts +1 -1
  7. package/dist/Invoice/InvoiceController/fns/setEditGood.d.ts +1 -1
  8. package/dist/Invoice/InvoiceController/fns/setGoods.d.ts +1 -1
  9. package/dist/Invoice/InvoiceController/fns/updateInvoiceNo.d.ts +1 -1
  10. package/dist/Invoice/InvoiceController/index.d.ts +3 -0
  11. package/dist/Invoice/tools/coolingFn/index.d.ts +1 -1
  12. package/dist/Invoice/tools/lazyFn/index.d.ts +1 -1
  13. package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +2 -0
  14. package/dist/index.esm.js +1203 -615
  15. package/dist/index.js +1203 -615
  16. package/docs/index.md +1 -1
  17. package/package.json +1 -1
  18. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +4 -1
  19. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
  20. package/src/Invoice/InvoiceController/index.ts +4 -0
  21. package/src/Invoice/ui/EndowCodeDrawer/index.tsx +19 -13
  22. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +27 -4
  23. package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
  24. package/src/Invoice/ui/GoodsList/index.less +41 -33
  25. package/src/Invoice/ui/GoodsList/index.tsx +11 -1
  26. package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
  27. package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  28. package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
  29. package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
  30. package/docs-dist/404.html +0 -33
  31. package/docs-dist/index.html +0 -33
  32. package/docs-dist/static/auto.a6cd905c.svg +0 -1
  33. package/docs-dist/static/spot.42e620e1.svg +0 -1
  34. package/docs-dist/umi.css +0 -20
  35. package/docs-dist/umi.js +0 -1
@@ -25,6 +25,8 @@ export default class GoodsListState {
25
25
  defaultRate: number;
26
26
  /** 税率列表 */
27
27
  taxRateList: number[];
28
+ /** 搜索条件 */
29
+ searchValue: string;
28
30
  /** 货物列表 */
29
31
  goodsList: IGood[];
30
32
  /** 货物字典 */
@@ -1,6 +1,6 @@
1
1
  import { InvoiceControllerState } from '../';
2
- declare const _default: (state: InvoiceControllerState, options?: any) => Promise<any>;
3
2
  /**
4
3
  * 添加的编辑货物
5
4
  */
5
+ declare const _default: (state: InvoiceControllerState, options?: any) => Promise<any>;
6
6
  export default _default;
@@ -15,8 +15,8 @@ export interface IOptions {
15
15
  /** 折扣 金额 */
16
16
  discolineAmountunt: number;
17
17
  }
18
- declare const _default: (state: InvoiceControllerState, options?: IOptions | undefined) => Promise<void>;
19
18
  /**
20
19
  * 设置当前的编辑货物
21
20
  */
21
+ declare const _default: (state: InvoiceControllerState, options?: IOptions) => Promise<void>;
22
22
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { InvoiceControllerState } from '../';
2
- declare const _default: (state: InvoiceControllerState, $index?: number | undefined) => Promise<void>;
3
2
  /**
4
3
  * 设置当前的编辑货物
5
4
  */
5
+ declare const _default: (state: InvoiceControllerState, $index?: number) => Promise<void>;
6
6
  export default _default;
@@ -0,0 +1,2 @@
1
+ import IGood from "../InvoiceControllerState/GoodsListState/IGood";
2
+ export default function getGoodsSearch(goodsList: IGood[], search: string): IGood[];
@@ -1,6 +1,6 @@
1
1
  import { InvoiceControllerState } from '../';
2
- declare const _default: (state: InvoiceControllerState) => Promise<void>;
3
2
  /**
4
3
  * 保存正在编辑的货物
5
4
  */
5
+ declare const _default: (state: InvoiceControllerState) => Promise<void>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { InvoiceControllerState } from '../';
2
- declare const _default: (state: InvoiceControllerState, newEditGood?: any) => Promise<void>;
3
2
  /**
4
3
  * 设置当前的编辑货物
5
4
  */
5
+ declare const _default: (state: InvoiceControllerState, newEditGood?: any) => Promise<void>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { InvoiceControllerState, IGood } from '../';
2
- declare const _default: (state: InvoiceControllerState, options?: IGood | undefined) => Promise<void>;
3
2
  /**
4
3
  * 设置单个货物属性
5
4
  */
5
+ declare const _default: (state: InvoiceControllerState, options?: IGood) => Promise<void>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import InvoiceControllerState from '../InvoiceControllerState';
2
- declare const _default: (state: InvoiceControllerState) => Promise<string>;
3
2
  /**
4
3
  * 更新 发票单据编号
5
4
  */
5
+ declare const _default: (state: InvoiceControllerState) => Promise<string>;
6
6
  export default _default;
@@ -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,8 +1,8 @@
1
- declare const _default: (key: string | undefined, delayed: number | undefined, fn: Function) => void;
2
1
  /**
3
2
  * 有冷却时间的函数
4
3
  * @param fn 方法
5
4
  * @param key 方法key
6
5
  * @param delayed 冷却时间
7
6
  */
7
+ declare const _default: (key: string | undefined, delayed: number | undefined, fn: Function) => void;
8
8
  export default _default;
@@ -1,3 +1,3 @@
1
- declare const _default: (fn: Function, delayed?: number) => (...par: any[]) => void;
2
1
  /** 延迟函数 */
2
+ declare const _default: (fn: Function, delayed?: number) => (...par: any[]) => void;
3
3
  export default _default;
@@ -0,0 +1,2 @@
1
+ import './index.less';
2
+ export default function Search(): JSX.Element;