1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import {RobotInfo} from '../../viewmodel/wms/rgv/RobotsParam'
- import DictValue from '../../viewmodel/DictValue'
- import HashMap from '@ohos.util.HashMap'
- export default class CommonConstants {
- static readonly RDB_NAME: string = 'Presentation.db'
- static readonly PRE_NAME: string = 'MyPreferences'
- static AUTH_TOKEN: string = ''
- // 附件地址前缀
- static FILE_URL_PREFIX: string = 'http://192.168.1.3:9000'
- // 当前登录用户相关信息
- static USER_ID?: number = 1
- static USER_NAME: string = ''
- static USER_AVATAR: string = ''
- static STATION_NANE: string = ''
- static STATION_ID: number
- static STATION_CODE: string = 'GW0002'
- static STATION_IP: string = ''
- static stationDictValue: string = ''
- static MATERIAL_BOX_ID: string = ''
- // 是否是退出登陆
- static LOGIN_OUT: boolean = false
- static readonly STORAGE_TYPE: string[] = ['电子元器件', '电路板', '结构件', '辅助材料']
- //吊篮高度
- static readonly HANGING_HEIGHT :Array<SelectOption> =[
- {value:"原位"},
- {value:"第一层"},
- {value:"第二层"},
- {value:"第三层"},
- {value:"第四层"},
- {value:"第五层"},
- {value:"第六层"},
- {value:"工位料口层"},
- {value:"库位料口层"}
- ]
- static readonly PARK_TYPE: string[] = ['出入库位置', '充电位置', '工作台', '其他']
- static readonly RGV_STATUS: Record<string, string> = {
- '0': '空闲',
- '1': '移动中',
- '2': '等待路径',
- '3': '取箱中',
- '4': '放箱中',
- '5': '充电中',
- '6': '关机',
- };
- static readonly ROBOTS: RobotInfo[] = [
- {
- id: 1,
- robotCode: 'rgv1',
- robotNo:'RGV-001',
- storageId: 1,
- robotType: 2,
- robotToward: 2,
- x: 1,
- y: 1,
- lastSelfCheck: '2024/02/16 11:11:34'
- } as RobotInfo,
- {
- id: 2,
- robotCode: 'rgv2',
- robotNo:'RGV-002',
- storageId: 1,
- robotType: 2,
- robotToward: 2,
- x: 1,
- y: 1,
- lastSelfCheck: '2024/02/16 11:11:34'
- } as RobotInfo,
- ]
- static DICT_DATA: HashMap<string, DictValue[]> = new HashMap<string, DictValue[]>()
- }
|