kts-component-invoice-operate 3.1.13 → 3.1.15

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.
@@ -42,6 +42,8 @@ export default interface IGood {
42
42
  taxAmount?: number;
43
43
  /** 税收分类编码 */
44
44
  taxClassificationCode?: string;
45
+ /** 商品和服务分类简称 */
46
+ shorthand?: string;
45
47
  /** 是否享受优惠政策 */
46
48
  favouredPolicyMark?: number;
47
49
  /** 优惠政策类型 */
@@ -28,7 +28,7 @@ export default class InvoiceControllerState {
28
28
  /** 货物信息 */
29
29
  goodsListState: GoodsListState;
30
30
  /** 计算中启动字段 */
31
- calculating?: string;
31
+ calculatingField?: string;
32
32
  /** 数量,单价计算时保留的小数位,不传默认8位 */
33
33
  calculatingDigits?: number;
34
34
  /** 金额整数位限制,不传默认9位 */
@@ -12,3 +12,5 @@ export declare const getItemName: (value: ISN) => string;
12
12
  export declare const setFull: (name?: string, full?: string) => string | undefined;
13
13
  /** 设置简称 */
14
14
  export declare const setShorthand: (name?: string, shorthand?: string) => string | undefined;
15
+ /** 组合全称加简称 */
16
+ export declare const getItemNameWithShorthand: (value: ISN) => string;
@@ -24,9 +24,9 @@ export declare const onChangeTaxRate: (...par: any[]) => void;
24
24
  /** 小规模纳税人 1% 和 3% 自动赋码免税 */
25
25
  export declare function dutyFree(controller: InvoiceController, taxRate: number, form: WrappedFormUtils<any>, record: IGood): number | undefined;
26
26
  /** 含税 => 更新(不含税) */
27
- export declare const updateUnitPriceExcludingTax: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => void;
27
+ export declare const updateUnitPriceExcludingTax: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => Promise<unknown>;
28
28
  /** 不含税 => 更新(含税) */
29
- export declare const updateUnitPriceTax: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => void;
29
+ export declare const updateUnitPriceTax: (controller: InvoiceController, form: WrappedFormUtils, record: IGood) => Promise<unknown>;
30
30
  /** 保存到编辑货物 */
31
31
  export declare const onSaveEditGood: (...par: any[]) => void;
32
32
  /** 单调赋码 */
@@ -3,4 +3,5 @@ import './index.less';
3
3
  export default function ItemNameInput(props: {
4
4
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
5
5
  value?: string;
6
+ shorthand?: string;
6
7
  }): JSX.Element;