constant.js 723 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @项目常用且不可变更
  3. */
  4. //定义文件大小全局化(MB)
  5. export const FileSize = 80
  6. export const PicSize = 15
  7. // 手机号的基础正则
  8. export const phoneRegexp = /^1[0-9]{10}$/i
  9. // excel suffix
  10. export const excelSuffix = [
  11. 'xlsx',
  12. 'xls'
  13. ]
  14. // word suffix
  15. export const wordSuffix = [
  16. 'word','doc','docx'
  17. ]
  18. // pdf suffix
  19. export const pdfSuffix = [
  20. 'pdf','ppt','pptx'
  21. ]
  22. // pic suffix
  23. export const pictureSuffix = [
  24. 'gif','icon','jpeg','jpg', 'png'
  25. ]
  26. // 定义采购单临时存储本地字段
  27. export const SAVE_APPROVAL_NAME = 'TEMPORARY_APPROVAL_SAVE'
  28. // 定义采购单明细查看临时本地存储数据字段
  29. export const SAVE_PROCURE_INFO_TEMPORARY = 'TEMPORARY_PROCURE_INFO_LIST'