export const typeOptions = [
    { value: '1', label: '入库' },
    { value: '2', label: '出库' },
    { value: '3', label: '入库红冲' },
    { value: '4', label: '出库红冲' },
]

export const mapLabelToType = typeOptions.reduce((prev, current) => ({
    ...prev,
    [current.label]: current.value
}), {})



export const sourceOptions = [
    { value: '1', label: '采销结算' },
    { value: '2', label: '线下订单' }
]

export const mapLabelToSource = sourceOptions.reduce((prev, current) => ({
    ...prev,
    [current.label]: current.value
}), {})



export const statusOptions = [
    { value: '1', label: '待处理', type: 'warning' },
    { value: '2', label: '处理完成', type: 'success' }
]


export const managerStatusOptions = [
  { value: '1', label: '正常' },
  { value: '2', label: '计提' },
  { value: '3', label: '异常' }
]