|
@@ -144,7 +144,18 @@ export default {
|
|
// 错误消息
|
|
// 错误消息
|
|
if(e.data.level == 'F'){
|
|
if(e.data.level == 'F'){
|
|
this.curWorkStutesText= e.data.msgCodeInfo
|
|
this.curWorkStutesText= e.data.msgCodeInfo
|
|
- this.devError()
|
|
|
|
|
|
+ // 显示急停提示弹框
|
|
|
|
+ this.showStop = true;
|
|
|
|
+ }
|
|
|
|
+ // 急停
|
|
|
|
+ if(e.data.level == 'A'){
|
|
|
|
+ if(e.data.msgCode=="JJTZ"||e.data.msgCode=="XCX_JJTZ"){
|
|
|
|
+ this.curWorkStutesText= e.data.msgCodeInfo
|
|
|
|
+ // 显示急停提示弹框
|
|
|
|
+ this.showStop = true;
|
|
|
|
+ }else{
|
|
|
|
+ this.devError()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// 复位状态
|
|
// 复位状态
|
|
if(e.data.leve == 'D'){
|
|
if(e.data.leve == 'D'){
|
|
@@ -159,15 +170,6 @@ export default {
|
|
this.resetRabtSuccess()
|
|
this.resetRabtSuccess()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // 停止
|
|
|
|
- if(e.data.level == 'A'){
|
|
|
|
- if(e.data.msgCode=="JJTZ"||e.data.msgCode=="XCX_JJTZ"){
|
|
|
|
- this.curWorkStutesText= e.data.msgCodeInfo
|
|
|
|
- this.stopWashCarSuccess()
|
|
|
|
- }else{
|
|
|
|
- this.devError()
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -207,8 +209,6 @@ export default {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
cmd.operateType = 'stop' //操作命令
|
|
cmd.operateType = 'stop' //操作命令
|
|
_this.$store.commit("$sendWebsocket",JSON.stringify(cmd))
|
|
_this.$store.commit("$sendWebsocket",JSON.stringify(cmd))
|
|
- // 显示急停提示弹框
|
|
|
|
- _this.showStop = true;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -222,8 +222,7 @@ export default {
|
|
this.showStart = false;
|
|
this.showStart = false;
|
|
this.step = 0;
|
|
this.step = 0;
|
|
// 进度条,服务时间根据不同的服务类型而不同
|
|
// 进度条,服务时间根据不同的服务类型而不同
|
|
- // let serverTime = this.washDuration/60
|
|
|
|
- let serverTime = 20
|
|
|
|
|
|
+ let serverTime = this.washDuration/60
|
|
this.interId = setInterval(()=>{
|
|
this.interId = setInterval(()=>{
|
|
// 小于60时说明洗车机正在工作中
|
|
// 小于60时说明洗车机正在工作中
|
|
if(this.step<=60){
|
|
if(this.step<=60){
|
|
@@ -234,13 +233,13 @@ export default {
|
|
}
|
|
}
|
|
},1000*serverTime)
|
|
},1000*serverTime)
|
|
},
|
|
},
|
|
- // 紧急停止成功
|
|
|
|
|
|
+ // 设备停止成功
|
|
stopWashCarSuccess(){
|
|
stopWashCarSuccess(){
|
|
// 关闭socket
|
|
// 关闭socket
|
|
this.$store.commit("$closeWebsocket")
|
|
this.$store.commit("$closeWebsocket")
|
|
this.status = 'stop';
|
|
this.status = 'stop';
|
|
this.$store.state.vuex_workStatus = 'stop'
|
|
this.$store.state.vuex_workStatus = 'stop'
|
|
- this.curWorkStutesText='设备已紧急停止';
|
|
|
|
|
|
+ this.curWorkStutesText='设备已停止';
|
|
this.resetLoadingStatus();
|
|
this.resetLoadingStatus();
|
|
},
|
|
},
|
|
// 设备异常
|
|
// 设备异常
|