export class OrderDim {
  public static OrderStatus = class {
    public static All = ""
    public static init = "init"
    public static waitout = "waitout"
    public static preout = "preout"
    public static out = "out"
    public static exception = "exception"
    public static cancel = "cancel"
  }

  public static OrderStatusMap = {
    [OrderDim.OrderStatus.All]: '全部',
    [OrderDim.OrderStatus.init]: '创建中',
    [OrderDim.OrderStatus.waitout]: '等待面单',
    [OrderDim.OrderStatus.preout]: '待发货',
    [OrderDim.OrderStatus.out]: '已发货',
    [OrderDim.OrderStatus.exception]: '异常',
    [OrderDim.OrderStatus.cancel]: '取消/退款'
  }

  public static cancelOrderStatus = class {
    public static All = ""
    public static wait = "wait"
    public static apply = "apply"
    public static reject = "reject"
    public static success = "success"
  }

  public static cancelOrderStatusMap = {
    [OrderDim.cancelOrderStatus.All]: '全部',
    [OrderDim.cancelOrderStatus.wait]: '待取消',
    [OrderDim.cancelOrderStatus.apply]: '审核中',
    [OrderDim.cancelOrderStatus.reject]: '已拒绝',
    [OrderDim.cancelOrderStatus.success]: '已取消',
  }

  public static cancelOrderStatusMap2 = {
    [OrderDim.cancelOrderStatus.apply]: '审核中',
    [OrderDim.cancelOrderStatus.reject]: '已拒绝',
    [OrderDim.cancelOrderStatus.success]: '已取消',
  }

  public static DetailStatus = class {
    public static init = "init"
    public static success = "success"
  }

  public static DetailStatusMap = {
    [OrderDim.DetailStatus.init]: '明细创建中',
    [OrderDim.DetailStatus.success]: '已成功',
  }

  public static ShipStatus = class {
    public static wait = "wait"
    public static success = "success"
  }

  public static ShipStatusMap = {
    [OrderDim.ShipStatus.wait]: '等待履约',
    [OrderDim.ShipStatus.success]: '履约成功'
  }

  public static RefundStatus = class {
    public static no = "no"
    public static yes = "yes"
    public static reject = "reject"
  }

  public static RefundStatusMap = {
    [this.RefundStatus.no]: "未退款",
    [this.RefundStatus.yes]: "已退款",
    [this.RefundStatus.reject]: "已拒绝",
  }

  public static cancelOrderByUserType = class {
    public static seller = "seller"
    public static vendor = "vendor"
    public static operate = "operate"
  }

  public static cancelOrderByUserTypeMap = {
    [this.cancelOrderByUserType.seller]: "卖家",
    [this.cancelOrderByUserType.vendor]: "供应商",
    [this.cancelOrderByUserType.operate]: "平台",
  }
}
