kts-component-invoice-operate 3.2.153 → 3.2.155
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 +6 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +4 -0
- package/dist/Invoice/InvoiceController/index.d.ts +2 -0
- package/dist/Invoice/_test/children/index.d.ts +4 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.d.ts +6 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useRowSelection/index.d.ts +6 -0
- package/dist/index.esm.js +498 -185
- package/dist/index.js +497 -184
- package/docs-dist/static/I001.4ff48f20.svg +1 -0
- package/docs-dist/static/I002.38b94da1.svg +1 -0
- package/docs-dist/umi.css +1 -1
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +9 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +6 -0
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +1 -1
- package/src/Invoice/InvoiceController/index.ts +4 -0
- package/src/Invoice/_test/children/index.tsx +203 -0
- package/src/Invoice/index.md +3 -0
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +39 -3
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +15 -2
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +53 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/svg/I001.svg +1 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/svg/I002.svg +1 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +1 -0
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +13 -0
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +8 -2
- package/src/Invoice/ui/default/GoodsList/index.less +8 -1
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +35 -12
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +14 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +13 -1
package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import LineAttributeType from '../LineAttributeType';
|
|
|
2
2
|
export default interface IGood {
|
|
3
3
|
/** 数据索引 */
|
|
4
4
|
$index: string;
|
|
5
|
+
/** 级别 */
|
|
6
|
+
level?: number;
|
|
5
7
|
/** 序号 */
|
|
6
8
|
serialNo?: number;
|
|
7
9
|
/** 折扣组 uuid */
|
|
@@ -34,6 +36,8 @@ export default interface IGood {
|
|
|
34
36
|
lineAmountIncludeTax?: number;
|
|
35
37
|
/** 金额(不含税) */
|
|
36
38
|
lineAmountExcludeTax?: number;
|
|
39
|
+
/** 税率列表 */
|
|
40
|
+
goodsTaxRateList?: number[] | null;
|
|
37
41
|
/** 税率 */
|
|
38
42
|
taxRate?: number;
|
|
39
43
|
/** 免税类型 */
|
|
@@ -50,4 +54,6 @@ export default interface IGood {
|
|
|
50
54
|
favouredPolicyName?: string;
|
|
51
55
|
/** 税收分类名称 */
|
|
52
56
|
productName?: string;
|
|
57
|
+
/** 孩子 */
|
|
58
|
+
children?: IGood[];
|
|
53
59
|
}
|
|
@@ -16,6 +16,8 @@ export default class GoodsListState {
|
|
|
16
16
|
isSwitchTax?: boolean;
|
|
17
17
|
/** 切换含税时是否重新计算 */
|
|
18
18
|
isRecalculateWhenSwitchTax: boolean;
|
|
19
|
+
/** 是否根据税收分类编码改变商品的可选税率 */
|
|
20
|
+
isUpdateGoodsTaxRateList: boolean;
|
|
19
21
|
/** 是否能添加折扣行 */
|
|
20
22
|
isAddDiscount?: boolean;
|
|
21
23
|
/** 是否可以添加行 */
|
|
@@ -55,6 +57,8 @@ export default class GoodsListState {
|
|
|
55
57
|
goodsList: IGood[];
|
|
56
58
|
/** 货物字典 */
|
|
57
59
|
goodsMap: Map<string, IGood>;
|
|
60
|
+
/** 子级展开的货物 */
|
|
61
|
+
expandedRowKeys: string[];
|
|
58
62
|
/** 货物菜单扩展 */
|
|
59
63
|
goodsMenuExpand: ((index: string, controller: InvoiceController) => React.ReactNode)[];
|
|
60
64
|
/** 金额含税(受控,输入后不再自动计算) */
|
|
@@ -40,4 +40,6 @@ export default class InvoiceController extends InvoiceControllerForm {
|
|
|
40
40
|
getTaxCategoryCodeList?: () => Promise<any>;
|
|
41
41
|
/** 获取筛选后的列表 */
|
|
42
42
|
getGoodsSearch: typeof getGoodsSearch;
|
|
43
|
+
/** 获取货物的税率可选列表, 如果没传taxClassificationCode,返回undefined */
|
|
44
|
+
getGoodsTaxRateList?: (taxClassificationCode: string) => Promise<number[] | undefined | null>;
|
|
43
45
|
}
|
|
@@ -4,5 +4,11 @@ declare const _default: () => {
|
|
|
4
4
|
columnTitle: JSX.Element;
|
|
5
5
|
onSelect: (record: any, selected: any) => Promise<void>;
|
|
6
6
|
selectedRowKeys: string[];
|
|
7
|
+
getCheckboxProps: (record: any) => {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
style: {
|
|
10
|
+
display: string;
|
|
11
|
+
} | undefined;
|
|
12
|
+
};
|
|
7
13
|
};
|
|
8
14
|
export default _default;
|