kts-component-invoice-operate 1.0.79 → 1.0.83

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.
@@ -1,4 +1,5 @@
1
1
  import GoodsListState from '../GoodsListState';
2
+ import IGood from './IGood';
2
3
  export default class EndowCode {
3
4
  /** 准备赋码的货物索引列表 */
4
5
  endowcodeGoodIndex: number[];
@@ -9,6 +10,8 @@ export default class EndowCode {
9
10
  }[]>;
10
11
  /** 税率 是否可以编辑 */
11
12
  getReadOnlyTaxRate?: (value?: GoodsListState) => boolean;
13
+ /** 获取单条赋码时候的默认值 */
14
+ getDefaultValue?: (value: IGood) => Promise<IGood>;
12
15
  /** 税率 是否可以编辑 校验函数 */
13
16
  readonly readOnlyTaxRateMap: {
14
17
  [key: string]: (value?: GoodsListState) => boolean;