export const InvoiceStatus = {
  LOADING: 4,
  WAIT: 1,
  SUCCESS: 2,
  FAIL: 3,
  VOID: 5,
  VOID_FAIL: 6,
  CANCEL: 7
}

export const InvoiceStatusObj = {
  [InvoiceStatus.LOADING]: {
    label: '开票中',
    color: 'default',
    hide: true
  },
  [InvoiceStatus.WAIT]: {
    label: '待开票',
    color: 'warning'
  },
  [InvoiceStatus.SUCCESS]: {
    label: '已开票',
    color: 'success'
  },
  [InvoiceStatus.FAIL]: {
    label: '失败',
    color: 'error'
  },
  [InvoiceStatus.VOID]: {
    label: '作废',
    color: 'default'
  },
  [InvoiceStatus.VOID_FAIL]: {
    label: '作废失败',
    color: 'error'
  },
  [InvoiceStatus.CANCEL]: {
    label: '取消',
    color: 'default'
  }
}
