shared.ts 987 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export const typeOptions = [
  2. { value: '1', label: '入库' },
  3. { value: '2', label: '出库' },
  4. { value: '3', label: '入库红冲' },
  5. { value: '4', label: '出库红冲' },
  6. ]
  7. export const mapLabelToType = typeOptions.reduce((prev, current) => ({
  8. ...prev,
  9. [current.label]: current.value
  10. }), {})
  11. export const sourceOptions = [
  12. { value: '1', label: '采销结算' },
  13. { value: '2', label: '非采销结算' }
  14. ]
  15. export const mapLabelToSource = sourceOptions.reduce((prev, current) => ({
  16. ...prev,
  17. [current.label]: current.value
  18. }), {})
  19. export const statusOptions = [
  20. { value: '1', label: '待处理', type: 'warning' },
  21. { value: '2', label: '审核完成', type: 'success' },
  22. { value: '4', label: '已取消', type: 'warning' },
  23. // { value: '3', label: '驳回', type: 'success' }
  24. ]
  25. export const managerStatusOptions = [
  26. { value: '1', label: '正常' },
  27. { value: '2', label: '计提' },
  28. { value: '3', label: '异常' }
  29. ]