kts-component-invoice-operate 1.2.20 → 2.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 (88) hide show
  1. package/d.dio +2 -69
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{EndowCode.d.ts → EndowCode/index.d.ts} +2 -2
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{IGood.d.ts → IGood/index.d.ts} +15 -5
  4. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{ImportGoods.d.ts → ImportGoods/index.d.ts} +0 -0
  5. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{LineAttributeType.d.ts → LineAttributeType/index.d.ts} +0 -0
  6. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.d.ts +7 -0
  7. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +7 -0
  8. package/dist/Invoice/InvoiceController/fns/addGood.d.ts +1 -1
  9. package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
  10. package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
  11. package/dist/Invoice/InvoiceController/fns/saveEditGood.d.ts +1 -1
  12. package/dist/Invoice/InvoiceController/fns/setEditGood.d.ts +1 -1
  13. package/dist/Invoice/InvoiceController/fns/setGoods.d.ts +1 -1
  14. package/dist/Invoice/InvoiceController/fns/updateInvoiceNo.d.ts +1 -1
  15. package/dist/Invoice/_test/buyerNameSearch/index.d.ts +1 -0
  16. package/dist/Invoice/_test/deduction/index.d.ts +1 -0
  17. package/dist/Invoice/_test/draft/index.d.ts +1 -0
  18. package/dist/Invoice/_test/easiest/index.d.ts +1 -0
  19. package/dist/Invoice/_test/endowCode/index.d.ts +1 -0
  20. package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +1 -0
  21. package/dist/Invoice/_test/importBuyer/index.d.ts +1 -0
  22. package/dist/Invoice/_test/importGoods/index.d.ts +1 -0
  23. package/dist/Invoice/_test/invoiceType/index.d.ts +1 -0
  24. package/dist/Invoice/_test/isInvoiceNo/index.d.ts +1 -0
  25. package/dist/Invoice/_test/replaceHead/index.d.ts +1 -0
  26. package/dist/Invoice/_test/retrieveData/index.d.ts +1 -0
  27. package/dist/Invoice/_test/seller/index.d.ts +1 -0
  28. package/dist/Invoice/_test/setDataSource/index.d.ts +1 -0
  29. package/dist/Invoice/_test/unit/index.d.ts +1 -0
  30. package/dist/Invoice/index.d.ts +1 -1
  31. package/dist/Invoice/tools/coolingFn/index.d.ts +1 -1
  32. package/dist/Invoice/tools/itemName/index.d.ts +14 -0
  33. package/dist/Invoice/tools/lazyFn/index.d.ts +1 -1
  34. package/dist/Invoice/ui/AddComparisonDrawer/index.d.ts +3 -0
  35. package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +1 -0
  36. package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +1 -0
  37. package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +1 -0
  38. package/dist/Invoice/ui/GoodsList/hook/useColumns/autoFillFn/index.d.ts +2 -0
  39. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +1 -0
  40. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddComparison/index.d.ts +5 -0
  41. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -0
  42. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -0
  43. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -0
  44. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +1 -0
  45. package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +1 -0
  46. package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +1 -0
  47. package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +1 -0
  48. package/dist/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.d.ts +3 -0
  49. package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +1 -0
  50. package/dist/Invoice/ui/GoodsList/ui/DescribeSwitch/index.d.ts +3 -0
  51. package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +1 -0
  52. package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +1 -0
  53. package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +1 -0
  54. package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +1 -0
  55. package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -0
  56. package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +1 -0
  57. package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +1 -0
  58. package/dist/index.d.ts +1 -0
  59. package/dist/index.esm.js +1740 -626
  60. package/dist/index.js +1739 -625
  61. package/docs/index.md +2 -2
  62. package/docs-dist/umi.js +1 -1
  63. package/package.json +4 -1
  64. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{EndowCode.tsx → EndowCode/index.tsx} +3 -3
  65. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{IGood.ts → IGood/index.ts} +20 -5
  66. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{ImportGoods.ts → ImportGoods/index.ts} +0 -0
  67. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/{LineAttributeType.ts → LineAttributeType/index.ts} +0 -0
  68. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +10 -0
  69. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +12 -2
  70. package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +4 -3
  71. package/src/Invoice/_test/importGoods/index.tsx +21 -3
  72. package/src/Invoice/index.tsx +5 -1
  73. package/src/Invoice/tools/itemName/index.ts +48 -0
  74. package/src/Invoice/ui/AddComparisonDrawer/index.tsx +179 -0
  75. package/src/Invoice/ui/EndowCodeDrawer/index.tsx +23 -28
  76. package/src/Invoice/ui/GoodsList/hook/useColumns/autoFillFn/index.ts +21 -24
  77. package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +71 -29
  78. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddComparison/index.tsx +39 -0
  79. package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +5 -2
  80. package/src/Invoice/ui/GoodsList/index.less +34 -37
  81. package/src/Invoice/ui/GoodsList/index.tsx +8 -0
  82. package/src/Invoice/ui/GoodsList/ui/AddDiscountRowButton/index.tsx +6 -16
  83. package/src/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.tsx +74 -0
  84. package/src/Invoice/ui/GoodsList/ui/DescribeSwitch/index.tsx +37 -0
  85. package/src/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.tsx +2 -2
  86. package/src/Invoice/ui/ImportGoodsDrawer/index.tsx +70 -18
  87. package/src/index.ts +1 -0
  88. package/yarn.o.lock +14800 -0
package/d.dio CHANGED
@@ -1,76 +1,9 @@
1
1
  <mxfile host="65bd71144e">
2
- <diagram id="w7p1MQGa3Cr9dDrN48fI" name="第 1 页">
3
- <mxGraphModel dx="966" dy="284" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
2
+ <diagram id="fPgEJXQJnfzUtXCRGjsd" name="第 1 页">
3
+ <mxGraphModel dx="1721" dy="1025" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
4
4
  <root>
5
5
  <mxCell id="0"/>
6
6
  <mxCell id="1" parent="0"/>
7
- <mxCell id="5" style="edgeStyle=none;html=1;" edge="1" parent="1" source="3" target="4">
8
- <mxGeometry relative="1" as="geometry"/>
9
- </mxCell>
10
- <mxCell id="3" value="Schema 编辑器" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
11
- <mxGeometry x="105" y="10" width="110" height="40" as="geometry"/>
12
- </mxCell>
13
- <mxCell id="7" style="edgeStyle=none;html=1;" edge="1" parent="1" source="4" target="12">
14
- <mxGeometry relative="1" as="geometry">
15
- <mxPoint x="260" y="200" as="targetPoint"/>
16
- </mxGeometry>
17
- </mxCell>
18
- <mxCell id="24" style="edgeStyle=none;html=1;" edge="1" parent="1" source="4" target="25">
19
- <mxGeometry relative="1" as="geometry">
20
- <mxPoint x="720" y="120" as="targetPoint"/>
21
- </mxGeometry>
22
- </mxCell>
23
- <mxCell id="4" value="schema Data" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
24
- <mxGeometry x="105" y="100" width="110" height="40" as="geometry"/>
25
- </mxCell>
26
- <mxCell id="8" value="表格" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
27
- <mxGeometry x="10" y="340" width="100" height="30" as="geometry"/>
28
- </mxCell>
29
- <mxCell id="9" value="表单" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
30
- <mxGeometry x="130" y="340" width="100" height="30" as="geometry"/>
31
- </mxCell>
32
- <mxCell id="10" value="详情" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
33
- <mxGeometry x="250" y="340" width="100" height="30" as="geometry"/>
34
- </mxCell>
35
- <mxCell id="11" value="编辑" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
36
- <mxGeometry x="370" y="340" width="100" height="30" as="geometry"/>
37
- </mxCell>
38
- <mxCell id="13" style="edgeStyle=none;html=1;" edge="1" parent="1" source="12" target="8">
39
- <mxGeometry relative="1" as="geometry"/>
40
- </mxCell>
41
- <mxCell id="15" style="edgeStyle=none;html=1;" edge="1" parent="1" source="12" target="9">
42
- <mxGeometry relative="1" as="geometry"/>
43
- </mxCell>
44
- <mxCell id="16" style="edgeStyle=none;html=1;" edge="1" parent="1" source="12" target="10">
45
- <mxGeometry relative="1" as="geometry"/>
46
- </mxCell>
47
- <mxCell id="17" style="edgeStyle=none;html=1;" edge="1" parent="1" source="12" target="11">
48
- <mxGeometry relative="1" as="geometry"/>
49
- </mxCell>
50
- <mxCell id="21" style="edgeStyle=none;html=1;" edge="1" parent="1" source="12" target="20">
51
- <mxGeometry relative="1" as="geometry"/>
52
- </mxCell>
53
- <mxCell id="12" value="schema 解析器" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
54
- <mxGeometry x="10" y="180" width="300" height="50" as="geometry"/>
55
- </mxCell>
56
- <mxCell id="19" style="edgeStyle=none;html=1;" edge="1" parent="1" source="18" target="12">
57
- <mxGeometry relative="1" as="geometry"/>
58
- </mxCell>
59
- <mxCell id="18" value="业务方 schema 解析器" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
60
- <mxGeometry x="460" y="180" width="140" height="50" as="geometry"/>
61
- </mxCell>
62
- <mxCell id="20" value="搜索" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
63
- <mxGeometry x="500" y="340" width="100" height="30" as="geometry"/>
64
- </mxCell>
65
- <mxCell id="23" style="edgeStyle=none;html=1;" edge="1" parent="1" source="22" target="3">
66
- <mxGeometry relative="1" as="geometry"/>
67
- </mxCell>
68
- <mxCell id="22" value="&lt;h1&gt;&lt;span style=&quot;font-size: 12px ; font-weight: 400&quot;&gt;字段,规则&lt;/span&gt;&lt;/h1&gt;" style="text;html=1;strokeColor=none;fillColor=none;spacing=5;spacingTop=-20;whiteSpace=wrap;overflow=hidden;rounded=0;" vertex="1" parent="1">
69
- <mxGeometry x="293" y="10" width="130" height="40" as="geometry"/>
70
- </mxCell>
71
- <mxCell id="25" value="平台统一管理" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
72
- <mxGeometry x="500" y="100" width="100" height="40" as="geometry"/>
73
- </mxCell>
74
7
  </root>
75
8
  </mxGraphModel>
76
9
  </diagram>
@@ -1,5 +1,5 @@
1
- import GoodsListState from '../GoodsListState';
2
- import IGood from './IGood';
1
+ import GoodsListState from '../../GoodsListState';
2
+ import IGood from '../IGood';
3
3
  export default class EndowCode {
4
4
  /** 准备赋码的货物索引列表 */
5
5
  endowcodeGoodIndex: number[];
@@ -1,4 +1,4 @@
1
- import LineAttributeType from './LineAttributeType';
1
+ import LineAttributeType from '../LineAttributeType';
2
2
  export default interface IGood {
3
3
  /** 数据索引 */
4
4
  $index: number;
@@ -6,12 +6,22 @@ export default interface IGood {
6
6
  discountGroup?: string;
7
7
  /** 发票ID */
8
8
  id?: string;
9
- /** 货物名称 */
9
+ /** 商品编码(我方) */
10
+ itemCode?: string;
11
+ /** 货物名称(我方) */
10
12
  itemName?: string;
11
- /** 货物规格型号 */
12
- itemModelName?: string;
13
- /** 单位 */
13
+ /** 单位(我方) */
14
14
  unit?: string;
15
+ /** 货物规格型号(我方) */
16
+ itemModelName?: string;
17
+ /** 商品编码(对方) */
18
+ itemCodeOther?: string;
19
+ /** 货物名称(对方) */
20
+ itemNameOther?: string;
21
+ /** 单位(对方) */
22
+ unitOther?: string;
23
+ /** 货物规格型号(对方) */
24
+ itemModelNameOther?: string;
15
25
  /** 数量 */
16
26
  quantity?: number;
17
27
  /** 单价(含税) */
@@ -0,0 +1,7 @@
1
+ import IGood from "../IGood";
2
+ export default class ProductComparison {
3
+ /** 执行商品对照 */
4
+ onComply?: (e: IGood[]) => Promise<IGood[]>;
5
+ /** 更新对照表 */
6
+ onUpdateComparisonTable?: (e: IGood, values: any) => Promise<void>;
7
+ }
@@ -2,6 +2,7 @@
2
2
  import IGood from './IGood';
3
3
  import ImportGoods from './ImportGoods';
4
4
  import EndowCode from './EndowCode';
5
+ import ProductComparison from './ProductComparison';
5
6
  import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
6
7
  import InvoiceController from '../..';
7
8
  export default class GoodsListState {
@@ -15,6 +16,8 @@ export default class GoodsListState {
15
16
  isAddDiscount?: boolean;
16
17
  /** 是否含税 */
17
18
  isTaxIncluded: boolean;
19
+ /** 是否显示我方 */
20
+ isMyShow: boolean;
18
21
  /** 正在编辑的货物 */
19
22
  editGood?: IGood;
20
23
  /** 被编辑行的form对象 */
@@ -39,6 +42,10 @@ export default class GoodsListState {
39
42
  endowCode: EndowCode;
40
43
  /** 导入商品的相关数据 */
41
44
  importGoods: ImportGoods<any>;
45
+ /** 商品对照 相关 */
46
+ productComparison: ProductComparison;
42
47
  /** 是否显购买示导入抽屉 */
43
48
  isVisibleDrawer: boolean;
49
+ /** 正在 添加商品对照 的货物 */
50
+ addComparisonIndex?: number;
44
51
  }
@@ -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;
@@ -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;
@@ -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;
@@ -22,7 +22,7 @@ export interface IInvoiceProps {
22
22
  /** 底部扩展UI */
23
23
  footExpand?: React.ReactNode;
24
24
  }
25
- export default class extends React.PureComponent<IInvoiceProps> {
25
+ export default class Invoice extends React.PureComponent<IInvoiceProps> {
26
26
  /** 控制器 */
27
27
  static readonly InvoiceController: typeof InvoiceController;
28
28
  /** 发票头 */
@@ -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;
@@ -0,0 +1,14 @@
1
+ export interface ISN {
2
+ /** 简称 */
3
+ shorthand?: string;
4
+ /** 全称 */
5
+ full: string;
6
+ }
7
+ /** 拆分全称加简称 */
8
+ export declare const getSN: (value?: string) => ISN | undefined;
9
+ /** 组合全称加简称 */
10
+ export declare const getItemName: (value: ISN) => string;
11
+ /** 设置全称 */
12
+ export declare const setFull: (name?: string, full?: string) => string | undefined;
13
+ /** 设置简称 */
14
+ export declare const setShorthand: (name?: string, shorthand?: string) => string | undefined;
@@ -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,3 @@
1
+ import React from "react";
2
+ declare const AddComparisonDrawer: React.FunctionComponent<any>;
3
+ export default AddComparisonDrawer;
@@ -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;
@@ -29,3 +29,5 @@ export declare const updateUnitPriceTax: (controller: InvoiceController, form: W
29
29
  export declare const onSaveEditGood: (...par: any[]) => void;
30
30
  /** 单调赋码 */
31
31
  export declare const endowCode: (controller: InvoiceController, goods: IGood) => Promise<void>;
32
+ /** 修改了 货物名称 */
33
+ export declare const onChangeItemName: (controller: InvoiceController, form: WrappedFormUtils<any>, record: IGood) => Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IGood } from '../../../../../../InvoiceController';
2
3
  declare const _default: (props: {
3
4
  goods: IGood;
@@ -0,0 +1,5 @@
1
+ /** 添加商品对照 */
2
+ /// <reference types="react" />
3
+ import { IGood } from '../../../../../../../../InvoiceController';
4
+ declare const _default: (goods: IGood) => JSX.Element;
5
+ 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 | 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;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
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
+ declare const _default: () => JSX.Element;
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
  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;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import 'kts-components-antd-x3/dist/kts-components-antd-x3.css';
2
2
  export { default as Invoice } from './Invoice';
3
3
  export { default as InvoiceController } from './Invoice/InvoiceController';
4
+ export type { default as IGood } from './Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood';