kts-component-invoice-operate 3.2.265 → 3.2.266
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/index.d.ts +8 -2
- package/dist/Invoice/InvoiceController/InvoiceControllerState/DifferenceInputState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/hooks/index.d.ts +3 -0
- package/dist/Invoice/tools/calculate/index.d.ts +1 -1
- package/dist/index.esm.js +670 -286
- package/dist/index.js +670 -286
- package/package.json +1 -1
- package/src/DifferenceInputModal/index.tsx +87 -17
- package/src/Invoice/Invoice-digtal/index.md +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +2 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/DifferenceInputState/index.ts +3 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +1 -0
- package/src/Invoice/InvoiceController/hooks/index.ts +63 -0
- package/src/Invoice/index.tsx +3 -0
- package/src/Invoice/tools/calculate/index.ts +2 -3
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +2 -1
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +19 -6
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +5 -4
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +4 -1
- package/src/Invoice/ui/default/GoodsList/index.tsx +1 -1
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +1 -1
- package/src/Invoice/ui/digtal/DifferenceInput/index.tsx +33 -3
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +2 -2
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +34 -21
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +4 -1
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +1 -1
|
@@ -29,8 +29,8 @@ export interface IDifferenceRow {
|
|
|
29
29
|
export interface IData {
|
|
30
30
|
/** 申报项目代码 */
|
|
31
31
|
projectCode?: string;
|
|
32
|
-
/**
|
|
33
|
-
|
|
32
|
+
/** 含税销售额 */
|
|
33
|
+
amountIncludeTax?: number;
|
|
34
34
|
/** 本次扣除金额总计 */
|
|
35
35
|
deductTotal: number;
|
|
36
36
|
/** 明细数据 */
|
|
@@ -60,6 +60,12 @@ export declare const dataSrcOptions: {
|
|
|
60
60
|
value: DataSrcEnum;
|
|
61
61
|
label: string;
|
|
62
62
|
}[];
|
|
63
|
+
/** 最多只允许输入两位小数的校验器 */
|
|
64
|
+
export declare const maxTwoDecimalsValidator: (_rule: any, value: any) => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* 本次扣除金额不能大于凭证合计金额的校验器
|
|
67
|
+
*/
|
|
68
|
+
export declare const deductAmtNotExceedVoucherTotalValidator: (_rule: any, value: any) => Promise<void>;
|
|
63
69
|
/**
|
|
64
70
|
* 差额录入弹窗(静态)
|
|
65
71
|
*/
|
|
@@ -10,7 +10,7 @@ export declare const format15: (value: number | string, defaultFractionDigits?:
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function countAmountIncludeTax(quantity?: number | string, priceIncludeTax?: number | string, calculatingDigits?: number): number | undefined;
|
|
12
12
|
/**
|
|
13
|
-
* 不含税金额 =
|
|
13
|
+
* 不含税金额 = 含税金额 - 税额
|
|
14
14
|
* @param amountIncludeTax 含税金额
|
|
15
15
|
* @param taxAmount 税额
|
|
16
16
|
* @returns 不含税金额
|