import GoodsListState from '../../GoodsListState'; import IGood from '../IGood'; export default class EndowCode { /** 准备赋码的货物索引列表 */ endowcodeGoodIndex: string[]; /** * 获取 税收分类编码列表 (弃用) * @deprecated 请使用 getTaxCategoryCodeTree 替换 * */ getTaxCategoryCodeList: (value: string) => Promise<{ value: string; label: string; }[]>; /** * 获取 税收分类编码树 * @param taxCategoryCode 税收分类编码 * @param val val * @returns 税收分类编码树 */ getTaxCategoryCodeTree?: (taxCategoryCode?: string, val?: string) => Promise<{ id: string; pid: string; }[]>; /** * 动态加载 * */ onLoadTaxClassificationCode: (value?: any) => Promise; /** 税率 优惠政策 */ getReadOnlyTaxRate?: (value?: GoodsListState) => boolean; /** 优惠政策 优惠政策 */ getReadOnlyFavouredPolicy?: (value?: GoodsListState) => boolean; /** * 获取赋码时候的默认值 * @param value 商品信息 * @param length 商品数量 * */ getDefaultValue?: (value: IGood, length: number) => Promise; /** 税率 是否可以编辑 校验函数 */ readonly readOnlyTaxRateMap: { [key: string]: (value?: GoodsListState) => boolean; }; /** 优惠政策类型列表 */ favouredPolicyNameList: string[]; /** 免税类型 是否需要 */ isTaxFreeTypeNeeded: boolean; /** 免税类型 列表 */ taxFreeTypeList: any[]; /** * 小规模纳税人 自动赋码缓存 、 * */ cache: { [key: string]: any; }; /** * 打开侧边栏 * */ onSearchTaxClassificationCode: (value?: any) => Promise; }