kts-component-invoice-operate 3.2.156-2 → 3.2.156-20zh
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 +1 -1
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +3 -0
- package/dist/Invoice/index.d.ts +2 -0
- package/dist/index.esm.js +3360 -3560
- package/dist/index.js +3357 -3557
- package/docs-dist/static/arrowDown.22c7885c.svg +3 -0
- package/docs-dist/static/arrowUp.d707a3e4.svg +3 -0
- package/docs-dist/static/download.18f10f45.svg +1 -0
- package/docs-dist/static/fork.43eb4ffa.svg +12 -0
- package/docs-dist/static/plus.0e60e9ea.svg +12 -0
- package/docs-dist/static/plus.384f41d9.svg +12 -0
- package/docs-dist/static/upload.d7ea1893.svg +1 -0
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +2 -2
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +5 -1
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +2 -0
- package/src/Invoice/index.tsx +17 -0
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +57 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +31 -11
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +5 -4
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +61 -10
- package/src/Invoice/ui/default/GoodsList/index.tsx +4 -1
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +3 -3
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +1 -1
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +1 -1
package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ export default interface IGood {
|
|
|
32
32
|
priceExcludeTax?: number;
|
|
33
33
|
/** 类型 0 正常行, 1 折扣行 2 被折扣行 */
|
|
34
34
|
lineAttribute: LineAttributeType;
|
|
35
|
-
referenceLines?: any[];
|
|
36
35
|
/** 金额(含税) */
|
|
37
36
|
lineAmountIncludeTax?: number;
|
|
38
37
|
/** 金额(不含税) */
|
|
@@ -57,4 +56,5 @@ export default interface IGood {
|
|
|
57
56
|
productName?: string;
|
|
58
57
|
/** 孩子 */
|
|
59
58
|
children?: IGood[];
|
|
59
|
+
referenceLines?: any[];
|
|
60
60
|
}
|
|
@@ -24,6 +24,7 @@ export default class GoodsListState {
|
|
|
24
24
|
isAddRow: boolean;
|
|
25
25
|
/** 是否可以删除行 */
|
|
26
26
|
isRemRow: boolean;
|
|
27
|
+
isBatchRemRow: boolean;
|
|
27
28
|
/** 是否含税 */
|
|
28
29
|
isTaxIncluded: boolean;
|
|
29
30
|
/**
|
|
@@ -53,6 +54,8 @@ export default class GoodsListState {
|
|
|
53
54
|
taxRateList: number[];
|
|
54
55
|
/** 搜索条件 */
|
|
55
56
|
searchValue: string;
|
|
57
|
+
/** 货物列表版本号 */
|
|
58
|
+
goodsListVersion: number;
|
|
56
59
|
/** 货物列表 */
|
|
57
60
|
goodsList: IGood[];
|
|
58
61
|
/** 货物字典 */
|
package/dist/Invoice/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export interface IInvoiceProps {
|
|
|
30
30
|
footExpand?: React.ReactNode;
|
|
31
31
|
/** 发票种类: default-默认,digtal-数电 */
|
|
32
32
|
invoiceType?: 'default' | 'digtal';
|
|
33
|
+
/** 编辑中的商品行变化时触发(数量/单价/税率等字段变更时) */
|
|
34
|
+
onEditGoodChange?: (editGood: any) => void;
|
|
33
35
|
}
|
|
34
36
|
export default class Invoice extends React.PureComponent<IInvoiceProps> {
|
|
35
37
|
/** 控制器 */
|