kts-component-invoice-operate 2.0.21 → 3.0.0

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 (29) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +2 -0
  2. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/{useAddComparison → _useAddComparison}/index.d.ts +1 -1
  3. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +5 -2
  4. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +5 -2
  5. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +5 -2
  6. package/dist/Invoice/ui/GoodsList/hook/useToGenerateId/index.d.ts +3 -0
  7. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +1 -0
  8. package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +1 -1
  9. package/dist/index.esm.js +901 -1027
  10. package/dist/index.js +900 -1026
  11. package/docs-dist/umi.js +1 -1
  12. package/package.json +1 -1
  13. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +3 -0
  14. package/src/Invoice/index.tsx +15 -18
  15. package/src/Invoice/tools/idGenerator/index.ts +1 -1
  16. package/src/Invoice/ui/AddComparisonDrawer/index.tsx +1 -1
  17. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +22 -29
  18. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/{useAddComparison → _useAddComparison}/index.tsx +5 -1
  19. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +33 -10
  20. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +19 -7
  21. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +11 -5
  22. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +52 -18
  23. package/src/Invoice/ui/GoodsList/hook/useToGenerateId/index.ts +13 -0
  24. package/src/Invoice/ui/GoodsList/index.tsx +17 -3
  25. package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +1 -1
  26. package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +10 -39
  27. package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +11 -2
  28. package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +2 -2
  29. package/src/Invoice/ui/ImportGoodsDrawer/index.tsx +58 -63
@@ -2,6 +2,8 @@ import LineAttributeType from '../LineAttributeType';
2
2
  export default interface IGood {
3
3
  /** 数据索引 */
4
4
  $index: number;
5
+ /** 序号 */
6
+ serialNo?: number;
5
7
  /** 折扣组 uuid */
6
8
  discountGroup?: string;
7
9
  /** 发票ID */
@@ -1,5 +1,5 @@
1
1
  /** 添加商品对照 */
2
2
  /// <reference types="react" />
3
3
  import { IGood } from '../../../../../../../../InvoiceController';
4
- declare const _default: (goods: IGood) => JSX.Element;
4
+ declare const _default: (goods: IGood) => JSX.Element | undefined;
5
5
  export default _default;
@@ -1,4 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../../../InvoiceController';
3
- declare const _default: (goods: IGood) => JSX.Element | undefined;
2
+ declare const _default: (goods: IGood) => {
3
+ key: string;
4
+ title: string;
5
+ onClick: () => Promise<void>;
6
+ } | undefined;
4
7
  export default _default;
@@ -1,4 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../../../InvoiceController';
3
- declare const _default: (goods: IGood) => JSX.Element | undefined;
2
+ declare const _default: (goods: IGood) => {
3
+ key: string;
4
+ title: string;
5
+ onClick: () => void;
6
+ } | undefined;
4
7
  export default _default;
@@ -1,4 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { IGood } from '../../../../../../../../InvoiceController';
3
- declare const _default: (goods: IGood) => JSX.Element;
2
+ declare const _default: (goods: IGood) => {
3
+ key: string;
4
+ title: string;
5
+ onClick: () => Promise<void>;
6
+ };
4
7
  export default _default;
@@ -0,0 +1,3 @@
1
+ import InvoiceController from '../../../../InvoiceController';
2
+ /** 更新 商品序号 */
3
+ export default function useToGenerateId(controller: InvoiceController): void;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: () => {
3
+ button: JSX.Element;
3
4
  menuItem: JSX.Element;
4
5
  };
5
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: () => {
3
3
  menuItem: JSX.Element;
4
- buuton: JSX.Element;
4
+ button: JSX.Element;
5
5
  };
6
6
  export default _default;