/**
 * 订单主信息
 * 字段以后端返回的数据结构为准
 */
export interface OrderMain {
  id?: number;
  parentOrderId?: number;
  orderNo?: string;
  shipmentNo?: string;
  subOrderNo?: string;
  companyId?: number;
  customerId?: number;
  customerCode?: string;
  userId?: number;
  shippingAddressId?: number;
  purchaseReason?: string;
  invoiceType?: string;
  payType?: string;
  warehouseId?: number;
  orderStatus?: string;
  checkStatus?: string;
  payStatus?: string;
  deliveryStatus?: string;
  totalAmount?: number;
  discountAmount?: number;
  actualAmount?: number;
  freight?: number;
  remark?: string;
  createTime?: string;
  updateTime?: string;
  [key: string]: any;
}

/**
 * 订单商品明细
 * 字段以后端返回的数据结构为准
 */
export interface OrderProduct {
  id?: number;
  orderId?: number;
  orderNo?: string;
  shipmentNo?: string;
  productId?: number;
  productNo?: string;
  productName?: string;
  productSpec?: string;
  productBrand?: string;
  productUnit?: string;
  quantity?: number;
  unitPrice?: number;
  totalPrice?: number;
  discountAmount?: number;
  actualPrice?: number;
  remark?: string;
  [key: string]: any;
}

/**
 * 订单状态统计
 * 字段以后端返回的数据结构为准
 */
export interface OrderStatusStats {
  pendingPaymentCount?: number;
  pendingShipmentCount?: number;
  shippedCount?: number;
  completedCount?: number;
  closedCount?: number;
  totalCount?: number;
}
