/**
 * 订单管理类型定义
 * @Author: Antigravity
 */

export interface ErpOrderQuery extends PageQuery {
  code?: string;
  placer?: number | string;
  status?: number | string;
}

export interface ErpOrderVo {
  rowId: string;
  code: string;
  placer: number;
  placeTime: string;
  status: number;
  createTime: string;
  totalCount: number;
  details?: ErpOrderDetailVo[];
}

export interface ErpOrderDetailVo {
  rowId: string;
  orderId: string;
  modelId: string;
  modelNum?: string;
  modelName: string;
  material?: string;
  surfaceId?: string;
  surfaceName?: string;
  packId?: string;
  packName?: string;
  length?: number;
  wallThickness?: number;
  colorId: string;
  colorName: string;
  count: number;
  remark: string;
}

export interface ErpOrderForm {
  rowId?: string;
  code?: string;
  placer?: number;
  status?: number;
  details: ErpOrderDetailForm[];
}

export interface ErpOrderDetailForm {
  rowId?: string;
  modelId?: string;
  colorId?: string;
  count?: number;
  remark?: string;
}
