CommonConstants.ets 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import DictValue from '../../viewmodel/DictValue'
  2. import HashMap from '@ohos.util.HashMap'
  3. export default class CommonConstants {
  4. static readonly RDB_NAME: string = 'Presentation.db'
  5. static readonly PRE_NAME: string = 'MyPreferences'
  6. static AUTH_TOKEN: string = ''
  7. // 附件地址前缀
  8. static FILE_URL_PREFIX: string = 'http://192.168.1.3:9000'
  9. // 当前登录用户相关信息
  10. static USER_ID?: number = 1
  11. static USER_NAME: string = '1'
  12. static USER_AVATAR: string = ''
  13. static STATION_NANE: string = '1'
  14. static STATION_ID: number
  15. static STATION_CODE: string = 'GW0002'
  16. static STATION_IP: string = ''
  17. static stationDictValue: string = ''
  18. static MATERIAL_BOX_ID: string = ''
  19. // 是否是退出登陆
  20. static LOGIN_OUT: boolean = false
  21. static readonly STORAGE_TYPE: string[] = ['电子元器件', '电路板', '结构件', '辅助材料']
  22. //吊篮高度
  23. static readonly HANGING_HEIGHT :Array<SelectOption> =[
  24. {value:"原位"},
  25. {value:"第一层"},
  26. {value:"第二层"},
  27. {value:"第三层"},
  28. {value:"第四层"},
  29. {value:"第五层"},
  30. {value:"第六层"},
  31. {value:"工位料口层"},
  32. {value:"库位料口层"}
  33. ]
  34. static readonly PARK_TYPE: string[] = ['出入库位置', '充电位置', '工作台', '其他']
  35. static readonly RGV_STATUS: Record<string, string> = {
  36. '0': '空闲',
  37. '1': '移动中',
  38. '2': '等待路径',
  39. '3': '取箱中',
  40. '4': '放箱中',
  41. '5': '充电中',
  42. '6': '关机',
  43. };
  44. static DICT_DATA: HashMap<string, DictValue[]> = new HashMap<string, DictValue[]>()
  45. }