You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.5 KiB
110 lines
2.5 KiB
declare namespace System {
|
|
|
|
interface SystemStore {
|
|
systemStatus: SystemStatus
|
|
systemList: Socket.NotificationData[]
|
|
streamVisible: boolean
|
|
isDebug: boolean
|
|
menuExpand: boolean
|
|
systemUser: SystemUser
|
|
loginForm: LoginForm
|
|
systemLogList: SystemLog[]
|
|
currentTime: string
|
|
}
|
|
interface SystemLog {
|
|
cmdName: string
|
|
status: 'start' | 'success' | 'fail'
|
|
time: string
|
|
}
|
|
interface SystemStatus {
|
|
virtual: boolean
|
|
initComplete: boolean
|
|
selfTest: boolean
|
|
emergencyStop: boolean
|
|
currentUser: User.User | null
|
|
currentTasks: Task.Task[] | null
|
|
doorModule: {
|
|
open: boolean
|
|
}
|
|
transferModule: {
|
|
idle: boolean
|
|
trayStatus: boolean
|
|
}
|
|
solutionModule: {
|
|
idle: boolean
|
|
feedAreaTrayStatus: boolean
|
|
pumping: boolean
|
|
valveState: {
|
|
state: number
|
|
}
|
|
solutionContainer: SolutionContainer[]
|
|
|
|
}
|
|
heatModule: HeatArea[]
|
|
trays?: Tray[]
|
|
}
|
|
interface Tray {
|
|
uuid: string
|
|
heatModuleCode: 'heat_module_01' | 'heat_module_02' | 'heat_module_03' | 'heat_module_04' | 'heat_module_05' | 'heat_module_06'
|
|
inFeedArea: boolean
|
|
inSolutionPositon: boolean
|
|
inHeatModule: boolean
|
|
tubes: Tubes[]
|
|
crafts?: {
|
|
state: 'READY' | 'RUNNING' | 'PAUSED' | 'STOPPED' | 'ERROR' | 'FINISHED'
|
|
craft?: CraftTypes.Craft
|
|
currentIndex?: number
|
|
}
|
|
}
|
|
interface Tubes {
|
|
columnNum: number
|
|
addSolution: boolean
|
|
exists: boolean
|
|
}
|
|
interface HeatArea {
|
|
moduleCode: 'heat_module_01' | 'heat_module_02' | 'heat_module_03' | 'heat_module_04'
|
|
trayStatus: boolean
|
|
enable: boolean
|
|
heatingType: 'heating' | 'drying' | 'annealing' | 'stop'
|
|
fanOpen: boolean
|
|
dryTemperature?: number
|
|
annealTemperature?: number
|
|
heatTemperature?: number
|
|
targetTemperature?: number
|
|
temperature: number
|
|
targetTime?: number
|
|
startHeatTime?: number
|
|
}
|
|
interface SolutionContainer {
|
|
containerCode: number
|
|
type: 'solution' | 'neutralization'
|
|
empty: boolean
|
|
full: boolean
|
|
filledSolution: boolean
|
|
}
|
|
interface CmdControlParams<T> {
|
|
commandId: string
|
|
command: string
|
|
params: T
|
|
}
|
|
interface SystemUser {
|
|
username: string
|
|
}
|
|
interface LoginForm {
|
|
username: string
|
|
password: string
|
|
}
|
|
interface ApiResponse<T> {
|
|
code: string
|
|
data: T
|
|
msg: string
|
|
}
|
|
interface Page {
|
|
pageNum: number
|
|
pageSize: number
|
|
}
|
|
interface PageResponse<T> {
|
|
list: T[]
|
|
total: number
|
|
}
|
|
}
|