kts-component-invoice-operate 1.2.22 → 1.2.23

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 (58) 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 +1 -0
  5. package/dist/Invoice/_test/deduction/index.d.ts +1 -0
  6. package/dist/Invoice/_test/draft/index.d.ts +1 -0
  7. package/dist/Invoice/_test/easiest/index.d.ts +1 -0
  8. package/dist/Invoice/_test/endowCode/index.d.ts +1 -0
  9. package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +1 -0
  10. package/dist/Invoice/_test/importBuyer/index.d.ts +1 -0
  11. package/dist/Invoice/_test/importGoods/index.d.ts +1 -0
  12. package/dist/Invoice/_test/invoiceType/index.d.ts +1 -0
  13. package/dist/Invoice/_test/isInvoiceNo/index.d.ts +1 -0
  14. package/dist/Invoice/_test/replaceHead/index.d.ts +1 -0
  15. package/dist/Invoice/_test/retrieveData/index.d.ts +1 -0
  16. package/dist/Invoice/_test/seller/index.d.ts +1 -0
  17. package/dist/Invoice/_test/setDataSource/index.d.ts +1 -0
  18. package/dist/Invoice/_test/unit/index.d.ts +1 -0
  19. package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +1 -0
  20. package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +1 -0
  21. package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +1 -0
  22. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +1 -0
  23. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -0
  24. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -0
  25. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -0
  26. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +1 -0
  27. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +1 -0
  28. package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +1 -0
  29. package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +1 -0
  30. package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +1 -0
  31. package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +1 -0
  32. package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +3 -0
  33. package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +1 -0
  34. package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +1 -0
  35. package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +1 -0
  36. package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -0
  37. package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +1 -0
  38. package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +1 -0
  39. package/dist/index.esm.js +326 -111
  40. package/dist/index.js +326 -111
  41. package/docs/index.md +1 -1
  42. package/docs-dist/404.html +1 -1
  43. package/docs-dist/index.html +1 -1
  44. package/docs-dist/static/magnifier.2b26be6e.svg +1 -0
  45. package/docs-dist/umi.css +2 -2
  46. package/docs-dist/umi.js +1 -1
  47. package/package.json +1 -1
  48. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +4 -1
  49. package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
  50. package/src/Invoice/InvoiceController/index.ts +4 -0
  51. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +17 -4
  52. package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
  53. package/src/Invoice/ui/GoodsList/index.less +41 -33
  54. package/src/Invoice/ui/GoodsList/index.tsx +11 -1
  55. package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
  56. package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
  57. package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
  58. package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
@@ -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
  /** 货物字典 */
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'antd/dist/antd.css';
2
3
  declare const _default: () => JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'antd/dist/antd.css';
2
3
  declare const _default: () => JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface IBuyerNameInputProps {
2
3
  value?: string;
3
4
  onChange?: (e: string) => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const _default: () => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../InvoiceController';
2
3
  declare const _default: (props: {
3
4
  goods: IGood;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../../../InvoiceController';
2
3
  declare const _default: (goods: IGood) => JSX.Element | undefined;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../../../InvoiceController';
2
3
  declare const _default: (goods: IGood) => JSX.Element | undefined;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../../../InvoiceController';
2
3
  declare const _default: (goods: IGood) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../InvoiceController';
2
3
  import './index.less';
3
4
  declare const _default: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../InvoiceController';
2
3
  declare const _default: (props: {
3
4
  goods: IGood;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => {
2
3
  columnWidth: number;
3
4
  columnTitle: JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export default function Search(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const _default: () => JSX.Element;
3
4
  export default _default;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function TableRow(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'kts-components-antd-x3/lib/table/interface';
2
3
  import './index.less';
3
4
  export default function <T = any>(props: TableProps<T>): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;