|
@ -10,6 +10,7 @@ export function getJobStatuStyle(val) { |
|
|
else if (val == 8) return 'close' |
|
|
else if (val == 8) return 'close' |
|
|
else if (val == 9) return 'cancelled ' |
|
|
else if (val == 9) return 'cancelled ' |
|
|
else if (val == 30) return 'close' |
|
|
else if (val == 30) return 'close' |
|
|
|
|
|
else if (val == 31) return 'agvWait' |
|
|
} |
|
|
} |
|
|
//任务状态
|
|
|
//任务状态
|
|
|
//open pending completed close
|
|
|
//open pending completed close
|
|
@ -22,6 +23,7 @@ export function getJobStatuDesc(val) { |
|
|
else if (val == 8) return '关闭' |
|
|
else if (val == 8) return '关闭' |
|
|
else if (val == 9) return '作废' |
|
|
else if (val == 9) return '作废' |
|
|
else if (val == 30) return '待库移' |
|
|
else if (val == 30) return '待库移' |
|
|
|
|
|
else if (val == 31) return '待AGV库移' |
|
|
else return '其他' |
|
|
else return '其他' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -484,10 +486,17 @@ export function deepCopyData(target) { |
|
|
//发料任务列表状态
|
|
|
//发料任务列表状态
|
|
|
export function getIssueJobState(val) { |
|
|
export function getIssueJobState(val) { |
|
|
if (val == 0) return 'ALL' |
|
|
if (val == 0) return 'ALL' |
|
|
else if (val == 1) return 'Open' |
|
|
else if (val == 1) return 'WaitAgv' |
|
|
else if (val == 2) return 'Wait' |
|
|
else if (val == 2) return 'Open' |
|
|
|
|
|
else if (val == 3) return 'Wait' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// export function getIssueJobState(val) {
|
|
|
|
|
|
// if (val == 0) return 31
|
|
|
|
|
|
// else if (val == 1) return 1
|
|
|
|
|
|
// else if (val == 2) return 30
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
const S4 = function() { |
|
|
const S4 = function() { |
|
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); |
|
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); |
|
|
}; |
|
|
}; |
|
|