export class ShopDim {
  public static ServiceCode = class {
    public static tk = "tk"
  }

  public static ServiceCodeMap = {
    [this.ServiceCode.tk]: "TikTok",
  }

  public static AuthorizatioinStatus = class {
    public static wait = "wait"
    public static normal = "normal"
    public static expired = "expired"
  }

  public static AuthorizatioinStatusMap = {
    [this.AuthorizatioinStatus.wait]: "未授权",
    [this.AuthorizatioinStatus.normal]: "已授权",
    [this.AuthorizatioinStatus.expired]: "授权过期",
  }

  public static OrderStatus = class {
    public static All = ""
    public static wait = "wait"         // 待处理：包含供应商推送订单，获取跟踪号/填写跟踪号
    public static match = "match"   // 已匹配：已匹配仓库和运输方式
    public static preout = "preout"     // 待发货：已经获取到跟踪号，等待仓库拣货打包
    public static success = "success"   // 已完成：已签收
    public static cancel = "cancel"     // 取消：已取消的订单
    public static exception = "exception"     // 异常
    // public static invalid = "invalid"   // 无效订单
  }

  public static OrderStatusMap = {
    [ShopDim.OrderStatus.All]: '所有订单',
    [ShopDim.OrderStatus.wait]: '待处理',
    [ShopDim.OrderStatus.match]: '已匹配',
    [ShopDim.OrderStatus.preout]: '待发货',
    [ShopDim.OrderStatus.success]: '已完成',
    [ShopDim.OrderStatus.cancel]: '取消',
    [ShopDim.OrderStatus.exception]: '异常',
    // [ShopDim.OrderStatus.invalid]: '无效订单',
  }
}
