kts-component-invoice-operate 2.0.0 → 2.0.3
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/IGood/index.d.ts +10 -12
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.d.ts +0 -2
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
- package/dist/Invoice/InvoiceController/index.d.ts +3 -0
- package/dist/Invoice/ui/AddComparisonDrawer/index.d.ts +2 -3
- package/dist/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.d.ts +5 -2
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +5 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +5 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +5 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/index.d.ts +2 -0
- package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +3 -0
- package/dist/index.esm.js +820 -595
- package/dist/index.js +819 -594
- package/docs-dist/404.html +1 -1
- package/docs-dist/index.html +1 -1
- package/docs-dist/static/magnifier.2b26be6e.svg +1 -0
- package/docs-dist/umi.css +21 -20
- package/docs-dist/umi.js +1 -1
- package/package.json +5 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +10 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
- package/src/Invoice/InvoiceController/index.ts +4 -0
- package/src/Invoice/tools/itemName/index.ts +0 -1
- package/src/Invoice/ui/AddComparisonDrawer/index.tsx +98 -142
- package/src/Invoice/ui/EndowCodeDrawer/index.tsx +1 -1
- package/src/Invoice/ui/GoodsList/hook/useColumns/autoFillFn/index.ts +5 -4
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +61 -15
- package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
- package/src/Invoice/ui/GoodsList/index.less +10 -2
- package/src/Invoice/ui/GoodsList/index.tsx +17 -21
- package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
- package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.less +0 -0
- package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.tsx +20 -17
- package/src/Invoice/ui/GoodsList/ui/{CommodityComparisonButton → BulkMenu/hooks/useCommodityComparisonButton}/index.tsx +23 -22
- package/src/Invoice/ui/GoodsList/ui/{DelRowButton → BulkMenu/hooks/useDelRowButton}/index.tsx +15 -7
- package/src/Invoice/ui/GoodsList/ui/{EndowCodeButton → BulkMenu/hooks/useEndowCodeButton}/index.tsx +13 -9
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/index.tsx +43 -0
- package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
- package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
- package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
- package/src/Invoice/ui/ImportGoodsDrawer/index.tsx +10 -10
- package/yarn.e.lock +14331 -0
- package/dist/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.d.ts +0 -3
- package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +0 -3
- package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +0 -3
package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts
CHANGED
|
@@ -6,22 +6,20 @@ export default interface IGood {
|
|
|
6
6
|
discountGroup?: string;
|
|
7
7
|
/** 发票ID */
|
|
8
8
|
id?: string;
|
|
9
|
-
/** 商品编码(
|
|
9
|
+
/** 商品编码(对方-购买方) */
|
|
10
10
|
itemCode?: string;
|
|
11
|
-
/** 货物名称(
|
|
11
|
+
/** 货物名称(对方-购买方) */
|
|
12
12
|
itemName?: string;
|
|
13
|
-
/** 单位(
|
|
13
|
+
/** 单位(对方-购买方) */
|
|
14
14
|
unit?: string;
|
|
15
|
-
/** 货物规格型号(
|
|
15
|
+
/** 货物规格型号(对方-购买方) */
|
|
16
16
|
itemModelName?: string;
|
|
17
|
-
/** 商品编码(
|
|
18
|
-
|
|
19
|
-
/** 货物名称(
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
/** 货物规格型号(对方) */
|
|
24
|
-
itemModelNameOther?: string;
|
|
17
|
+
/** 商品编码(我方-销售) */
|
|
18
|
+
itemCodeSelf?: string;
|
|
19
|
+
/** 货物名称(我方-销售) */
|
|
20
|
+
itemNameSelf?: string;
|
|
21
|
+
/** 货物规格型号(我方-销售) */
|
|
22
|
+
itemModelNameSelf?: string;
|
|
25
23
|
/** 数量 */
|
|
26
24
|
quantity?: number;
|
|
27
25
|
/** 单价(含税) */
|
|
@@ -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,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default AddComparisonDrawer;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function AddComparisonDrawer(): JSX.Element;
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* 不含税扣额 = 含税折扣额 / (1+税率)
|
|
6
6
|
* 折扣税额 = 含税折扣额 - 不含税扣额
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/// <reference types="react" />
|
|
9
9
|
import './index.less';
|
|
10
|
-
declare const _default:
|
|
10
|
+
declare const _default: () => {
|
|
11
|
+
menuItem: JSX.Element | undefined;
|
|
12
|
+
drawer: JSX.Element;
|
|
13
|
+
};
|
|
11
14
|
export default _default;
|