kts-component-invoice-operate 3.2.21 → 3.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 (23) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.d.ts +4 -0
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  3. package/dist/Invoice/InvoiceController/fns/importGoodsDrawer.d.ts +6 -0
  4. package/dist/Invoice/InvoiceController/fns/mergeDiscount.d.ts +2 -0
  5. package/dist/Invoice/InvoiceController/index.d.ts +4 -0
  6. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +1 -0
  7. package/dist/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.d.ts +6 -0
  8. package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +1 -1
  9. package/dist/index.esm.js +7097 -6733
  10. package/dist/index.js +7097 -6733
  11. package/package.json +1 -1
  12. package/src/Invoice/Invoice-digtal/_test/header/index.tsx +68 -0
  13. package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +7 -1
  14. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
  15. package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +68 -0
  16. package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +29 -0
  17. package/src/Invoice/InvoiceController/index.ts +9 -1
  18. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +61 -61
  19. package/src/Invoice/ui/default/GoodsList/index.tsx +7 -0
  20. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +1 -1
  21. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +37 -0
  22. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +33 -7
  23. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +88 -14
@@ -3,4 +3,8 @@ import IGood from "../GoodsListState/IGood";
3
3
  export default class AutoComplete {
4
4
  /** 商品名称自动补全 */
5
5
  onItemNameSearch?: (searchText: string) => Promise<IGood[]>;
6
+ /** 购方名称自动补全 */
7
+ onBuyerNameSearch?: (searchText: string) => Promise<any[]>;
8
+ /** 统一社会信用代码/纳税人识别号 */
9
+ onBuyerTaxIdSearch?: (searchText: string) => Promise<any[]>;
6
10
  }
@@ -65,6 +65,8 @@ export default class GoodsListState {
65
65
  isVisibleDrawer: boolean;
66
66
  /** 是否可以合并明细 */
67
67
  isMergeDetails: boolean;
68
+ /** 是否可以合并折扣 */
69
+ isMergeDiscount: boolean;
68
70
  /** 正在 添加商品对照 的货物 */
69
71
  addComparisonIndex?: string;
70
72
  }
@@ -0,0 +1,6 @@
1
+ import { InvoiceControllerState } from '../';
2
+ /**
3
+ * 删除一个货物
4
+ */
5
+ declare const _default: (s: InvoiceControllerState, record: any, controller: any) => Promise<void>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { InvoiceControllerState } from '..';
2
+ export default function mergeDiscount(state: InvoiceControllerState): Promise<void>;
@@ -24,10 +24,14 @@ export default class InvoiceController extends InvoiceControllerForm {
24
24
  addGood: (option?: any) => Promise<any>;
25
25
  /** 全单合并明细 */
26
26
  mergeDetails: (option?: any) => Promise<any>;
27
+ /** 全单合并折扣 */
28
+ mergeDiscount: (option?: any) => Promise<any>;
27
29
  /** 给一组货物添加折扣行 */
28
30
  addGoodDiscount: (option?: import("./fns/addGoodDiscount").IOptions | undefined) => Promise<any>;
29
31
  /** 给一组货物添加折扣行 */
30
32
  addGoodDiscountV2: (option?: import("./fns/addGoodDiscountV2").IOptions[] | undefined) => Promise<any>;
33
+ /** 导入商品 */
34
+ importGoodsDrawer: (option?: any) => Promise<any>;
31
35
  /** 获取 商品 列表 */
32
36
  getGoodsList?: (option?: IGetGoodsListOption | undefined) => Promise<any>;
33
37
  /** 税收分类编码列表 */
@@ -5,3 +5,4 @@ export default function ItemNameInput(props: {
5
5
  value?: string;
6
6
  shorthand?: string;
7
7
  }): JSX.Element;
8
+ /** 货物单价,不含税 */
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /** 全单合并折扣 */
3
+ export default function useMergeDiscount(): {
4
+ /** 按钮 */
5
+ button: JSX.Element;
6
+ };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import InvoiceController from "../../../InvoiceController";
3
3
  import './index.less';
4
4
  export interface IStakeholder {