kts-component-invoice-operate 3.2.264 → 3.2.265
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/DifferenceInputModal/demo.d.ts +4 -0
- package/dist/DifferenceInputModal/index.d.ts +67 -0
- package/dist/Invoice/Invoice-digtal/_test/differenceInput/index.d.ts +4 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/DifferenceInputState/index.d.ts +9 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +3 -0
- package/dist/Invoice/_test/differenceInput/index.d.ts +4 -0
- package/dist/Invoice/ui/digtal/DifferenceInput/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +892 -114
- package/dist/index.js +889 -110
- package/package.json +1 -1
- package/src/DifferenceInputModal/demo.tsx +22 -0
- package/src/DifferenceInputModal/index.less +102 -0
- package/src/DifferenceInputModal/index.md +5 -0
- package/src/DifferenceInputModal/index.tsx +450 -0
- package/src/Invoice/Invoice-digtal/_test/differenceInput/index.tsx +31 -0
- package/src/Invoice/Invoice-digtal/index.md +4 -1
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +8 -2
- package/src/Invoice/InvoiceController/InvoiceControllerState/DifferenceInputState/index.ts +13 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +4 -0
- package/src/Invoice/_test/differenceInput/index.tsx +25 -0
- package/src/Invoice/index.md +3 -0
- package/src/Invoice/index.tsx +18 -6
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +7 -2
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +4 -0
- package/src/Invoice/ui/digtal/DifferenceInput/index.tsx +39 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +15 -4
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +7 -7
- package/src/TaxClassificationCodeModal/index.tsx +2 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
/** 合计行 */
|
|
4
|
+
export interface IDifferenceTotal {
|
|
5
|
+
/** 凭证合计金额总计 */
|
|
6
|
+
voucherTotal: number;
|
|
7
|
+
/** 本次扣除金额总计 */
|
|
8
|
+
deductTotal: number;
|
|
9
|
+
}
|
|
10
|
+
/** 明细行 */
|
|
11
|
+
export interface IDifferenceRow {
|
|
12
|
+
/** 唯一标识 */
|
|
13
|
+
$index?: string;
|
|
14
|
+
/** 合计金额 */
|
|
15
|
+
voucherTotalAmt?: number;
|
|
16
|
+
/** 本次扣除金额 */
|
|
17
|
+
currentDeductAmt?: number;
|
|
18
|
+
/** 凭证类型 */
|
|
19
|
+
voucherType?: string;
|
|
20
|
+
/** 凭证号码 */
|
|
21
|
+
deductVoucherNo?: string;
|
|
22
|
+
/** 开具日期 */
|
|
23
|
+
issueDate?: string;
|
|
24
|
+
/** 备注 */
|
|
25
|
+
remark?: string;
|
|
26
|
+
/** 来源 */
|
|
27
|
+
source?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IData {
|
|
30
|
+
/** 申报项目代码 */
|
|
31
|
+
projectCode?: string;
|
|
32
|
+
/** 凭证合计金额总计 */
|
|
33
|
+
voucherTotal: number;
|
|
34
|
+
/** 本次扣除金额总计 */
|
|
35
|
+
deductTotal: number;
|
|
36
|
+
/** 明细数据 */
|
|
37
|
+
rows?: IDifferenceRow[];
|
|
38
|
+
}
|
|
39
|
+
export interface IDifferenceInputModalProps {
|
|
40
|
+
/** 是否可见 */
|
|
41
|
+
open?: boolean;
|
|
42
|
+
/** 合计 */
|
|
43
|
+
total?: IDifferenceTotal;
|
|
44
|
+
/** 点击取消 */
|
|
45
|
+
onCancel?: () => void;
|
|
46
|
+
value?: IData;
|
|
47
|
+
/** 点击确定 */
|
|
48
|
+
onOk?: (data: IData) => void;
|
|
49
|
+
}
|
|
50
|
+
/** 数据来源枚举 */
|
|
51
|
+
export declare enum DataSrcEnum {
|
|
52
|
+
/** 手工录入 */
|
|
53
|
+
MANUAL = 1,
|
|
54
|
+
/** 勾选录入 */
|
|
55
|
+
CHECK = 2,
|
|
56
|
+
/** 模板录入 */
|
|
57
|
+
TEMPLATE = 3
|
|
58
|
+
}
|
|
59
|
+
export declare const dataSrcOptions: {
|
|
60
|
+
value: DataSrcEnum;
|
|
61
|
+
label: string;
|
|
62
|
+
}[];
|
|
63
|
+
/**
|
|
64
|
+
* 差额录入弹窗(静态)
|
|
65
|
+
*/
|
|
66
|
+
export declare function DifferenceInputModal(props: IDifferenceInputModalProps): JSX.Element;
|
|
67
|
+
export default DifferenceInputModal;
|
|
@@ -7,6 +7,7 @@ import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
|
|
|
7
7
|
import { TaxClassificationProps } from '../../../TaxClassificationCodeModal';
|
|
8
8
|
import AutoComplete from './AutoComplete';
|
|
9
9
|
import PassengerListState from './PassengerListState';
|
|
10
|
+
import DifferenceInputState from './DifferenceInputState';
|
|
10
11
|
export default class InvoiceControllerState {
|
|
11
12
|
/**
|
|
12
13
|
* 组件模式
|
|
@@ -61,5 +62,7 @@ export default class InvoiceControllerState {
|
|
|
61
62
|
* 旅客运输列表
|
|
62
63
|
*/
|
|
63
64
|
passengerListState: PassengerListState;
|
|
65
|
+
/** 差额开票 */
|
|
66
|
+
differenceInputState: DifferenceInputState;
|
|
64
67
|
addGoodsCheck?: any;
|
|
65
68
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,3 +6,6 @@ export { default as InvoiceTypeModal } from './InvoiceTypeModal';
|
|
|
6
6
|
export type { IInvoiceTypeModalProps } from './InvoiceTypeModal';
|
|
7
7
|
export { default as TaxClassificationModal } from './TaxClassificationCodeModal';
|
|
8
8
|
export type { TaxClassificationProps } from './TaxClassificationCodeModal';
|
|
9
|
+
/** */
|
|
10
|
+
export { DifferenceInputModal } from './DifferenceInputModal';
|
|
11
|
+
export type { IDifferenceInputModalProps } from './DifferenceInputModal';
|