import IGood from './IGood'; import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form'; export default class FreightListState { /** 产品最大数 */ goodMax?: number; /** 正在编辑的货物 */ editGood?: IGood; /** 是否可以添加行 */ isAddRow = true; /** 是否可以删除行 */ isRemRow = true; /** 货物字典 */ goodsMap = new Map(); /** 被编辑行的form对象 */ form?: WrappedFormUtils; /** 运输工具种类列表 */ vehicleTypeList: any[] = []; /** 货物列表 */ goodsList: IGood[] = []; /** 列表选中的货物索引列表 */ selectedGoodIndex: string[] = []; /** 地区 */ area: any[] = []; addressFieldNames: IFieldNames = { label: 'label', value: 'value', children: 'children' } } interface IFieldNames { label: string; value: string; children: string }