kts-component-invoice-operate 3.1.4 → 3.1.6

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.
@@ -29,6 +29,10 @@ export default class InvoiceControllerState {
29
29
  goodsListState: GoodsListState;
30
30
  /** 计算中启动字段 */
31
31
  calculating?: string;
32
+ /** 数量,单价计算时保留的小数位,不传默认8位 */
33
+ calculatingDigits?: number;
34
+ /** 金额整数位限制,不传默认9位 */
35
+ priceIntegerDigit?: number;
32
36
  /** 组件根结构 */
33
37
  rootElement?: HTMLDivElement | null;
34
38
  }
@@ -1,14 +1,14 @@
1
1
  /** 格式化 保留2位小数 */
2
2
  export declare const format2: (value: number | string) => number | "";
3
3
  /** 格式化 保留15位数字 */
4
- export declare const format15: (value: number | string) => number | "";
4
+ export declare const format15: (value: number | string, defaultFractionDigits?: number) => number | "";
5
5
  /**
6
6
  * 金额(含税) = 数量 * 单价(含税)
7
7
  * @param quantity 数量
8
8
  * @param priceIncludeTax 单价(含税)
9
9
  * @returns 金额(含税)
10
10
  */
11
- export declare function countAmountIncludeTax(quantity?: number | string, priceIncludeTax?: number | string): number | undefined;
11
+ export declare function countAmountIncludeTax(quantity?: number | string, priceIncludeTax?: number | string, calculatingDigits?: number): number | undefined;
12
12
  /**
13
13
  * 不含税金额 = 含税金额-税额
14
14
  * @param amountIncludeTax 含税金额
@@ -30,4 +30,4 @@ export declare function countTaxAmount(amountIncludeTax: string | number, deduct
30
30
  * @param quantity 数量
31
31
  * @returns 单价
32
32
  */
33
- export declare function countPrice(amount: string | number, quantity: string | number): number | undefined | '';
33
+ export declare function countPrice(amount: string | number, quantity: string | number, calculatingDigits?: number): number | undefined | '';