kts-component-invoice-operate 2.0.22 → 3.0.1
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.
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.d.ts +1 -1
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +3 -1
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +5 -5
- package/dist/Invoice/InvoiceController/fns/addGoodDiscount.d.ts +1 -1
- package/dist/Invoice/InvoiceController/fns/delGood.d.ts +1 -1
- package/dist/Invoice/InvoiceController/index.d.ts +1 -1
- package/dist/Invoice/index.d.ts +1 -1
- package/dist/Invoice/tools/idGenerator/index.d.ts +1 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/{useAddComparison → _useAddComparison}/index.d.ts +1 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +5 -2
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +5 -2
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +5 -2
- package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +1 -1
- package/dist/Invoice/ui/GoodsList/hook/useToGenerateId/index.d.ts +3 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +1 -1
- package/dist/index.esm.js +915 -1038
- package/dist/index.js +914 -1037
- package/docs-dist/umi.css +2 -3
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +4 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +5 -5
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +1 -1
- package/src/Invoice/InvoiceController/fns/delGood.ts +2 -4
- package/src/Invoice/index.tsx +13 -18
- package/src/Invoice/tools/idGenerator/index.ts +3 -2
- package/src/Invoice/ui/GoodsList/hook/useColumns/autoFillFn/index.ts +1 -1
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +22 -29
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/{useAddComparison → _useAddComparison}/index.tsx +5 -1
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +34 -11
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +19 -7
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +11 -5
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +53 -19
- package/src/Invoice/ui/GoodsList/hook/useOnRow/index.tsx +0 -1
- package/src/Invoice/ui/GoodsList/hook/useToGenerateId/index.ts +9 -0
- package/src/Invoice/ui/GoodsList/index.less +5 -1
- package/src/Invoice/ui/GoodsList/index.tsx +17 -3
- package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +1 -1
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +10 -39
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +11 -2
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +2 -2
- package/src/Invoice/ui/GoodsList/ui/TableRow/index.tsx +13 -4
- package/src/Invoice/ui/ImportGoodsDrawer/index.tsx +58 -63
package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import GoodsListState from '../../GoodsListState';
|
|
|
2
2
|
import IGood from '../IGood';
|
|
3
3
|
export default class EndowCode {
|
|
4
4
|
/** 准备赋码的货物索引列表 */
|
|
5
|
-
endowcodeGoodIndex:
|
|
5
|
+
endowcodeGoodIndex: string[];
|
|
6
6
|
/**
|
|
7
7
|
* 获取 税收分类编码列表 (弃用)
|
|
8
8
|
* @deprecated 请使用 getTaxCategoryCodeTree 替换
|
|
@@ -33,13 +33,13 @@ export default class GoodsListState {
|
|
|
33
33
|
/** 货物列表 */
|
|
34
34
|
goodsList: IGood[];
|
|
35
35
|
/** 货物字典 */
|
|
36
|
-
goodsMap: Map<
|
|
36
|
+
goodsMap: Map<string, IGood>;
|
|
37
37
|
/** 货物菜单扩展 */
|
|
38
|
-
goodsMenuExpand: ((index:
|
|
38
|
+
goodsMenuExpand: ((index: string, controller: InvoiceController) => React.ReactNode)[];
|
|
39
39
|
/** 列表选中的货物索引列表 */
|
|
40
|
-
selectedGoodIndex:
|
|
40
|
+
selectedGoodIndex: string[];
|
|
41
41
|
/** 准备添加折扣的货物索引列表 */
|
|
42
|
-
discountGoodIndex:
|
|
42
|
+
discountGoodIndex: string[];
|
|
43
43
|
/** 货物赋码的相关数据 */
|
|
44
44
|
endowCode: EndowCode;
|
|
45
45
|
/** 导入商品的相关数据 */
|
|
@@ -49,5 +49,5 @@ export default class GoodsListState {
|
|
|
49
49
|
/** 是否显购买示导入抽屉 */
|
|
50
50
|
isVisibleDrawer: boolean;
|
|
51
51
|
/** 正在 添加商品对照 的货物 */
|
|
52
|
-
addComparisonIndex?:
|
|
52
|
+
addComparisonIndex?: string;
|
|
53
53
|
}
|
|
@@ -2,5 +2,5 @@ import { InvoiceControllerState } from '../';
|
|
|
2
2
|
/**
|
|
3
3
|
* 设置当前的编辑货物
|
|
4
4
|
*/
|
|
5
|
-
declare const _default: (state: InvoiceControllerState, $index?:
|
|
5
|
+
declare const _default: (state: InvoiceControllerState, $index?: string) => Promise<void>;
|
|
6
6
|
export default _default;
|
|
@@ -19,7 +19,7 @@ export default class InvoiceController extends InvoiceControllerForm {
|
|
|
19
19
|
/** 保存正在编辑的货物 */
|
|
20
20
|
saveEditGood: (option?: undefined) => Promise<any>;
|
|
21
21
|
/** 删除一个货物 */
|
|
22
|
-
delGood: (option?:
|
|
22
|
+
delGood: (option?: string | undefined) => Promise<any>;
|
|
23
23
|
/** 添加一个货物 */
|
|
24
24
|
addGood: (option?: any) => Promise<any>;
|
|
25
25
|
/** 给一组货物添加折扣行 */
|
package/dist/Invoice/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
|
|
|
36
36
|
/** 购买方 */
|
|
37
37
|
static readonly Buyer: typeof Buyer;
|
|
38
38
|
/** 货物索引生成器 */
|
|
39
|
-
static idGenerator: () =>
|
|
39
|
+
static idGenerator: () => string;
|
|
40
40
|
/** 获取控制器钩子 */
|
|
41
41
|
static useInvoiceController: () => InvoiceController;
|
|
42
42
|
render(): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: () =>
|
|
1
|
+
declare const _default: () => string;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IGood } from '../../../../../../../../InvoiceController';
|
|
3
|
-
declare const _default: (goods: IGood) =>
|
|
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) =>
|
|
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) =>
|
|
2
|
+
declare const _default: (goods: IGood) => {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
onClick: () => Promise<void>;
|
|
6
|
+
};
|
|
4
7
|
export default _default;
|