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

export interface ErpOrderQuery extends PageQuery {
  code?: string;
  placer?: number | string;
  isConfirmed?: number | string;
  docCode?: string;
  urgentFlag?: number;
}

export interface ErpOrderVo {
  rowId: string;
  code: string;
  placer: number;
  placeTime: string;
  isConfirmed: number;
  urgentFlag?: number;
  docCode?: string;
  clientId?: string;
  clientName?: string;
  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;
  docCode?: string;
  itemNo?: string;
}

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

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