|
@@ -122,6 +122,7 @@ export default {
|
|
|
onLoad(options) {
|
|
|
// 创建websocket
|
|
|
this.$store.commit('$webSocket')
|
|
|
+ this.$store.state.vuex_workStatus = 'start'
|
|
|
// 获取用户及订单信息
|
|
|
let orderInfo = this.$store.state.vuex_orderInfo
|
|
|
this.washCarType = orderInfo.itemCode
|
|
@@ -131,14 +132,18 @@ export default {
|
|
|
// 监听消息
|
|
|
uni.$on('wsMessage',(e)=>{
|
|
|
console.log(e)
|
|
|
+ if(e.type == 'xcz'){
|
|
|
+ if(e.data.level == 'c'){
|
|
|
+ // 启动成功
|
|
|
+ this.startWashCarSuccess()
|
|
|
+ }
|
|
|
+ }
|
|
|
// 进度消息
|
|
|
// 错误消息
|
|
|
- // 启动成功
|
|
|
- this.startWashCarSuccess()
|
|
|
// 紧急停止成功
|
|
|
- this.stopWashCarSuccess()
|
|
|
+ // this.stopWashCarSuccess()
|
|
|
// 复位成功
|
|
|
- this.resetRabtSuccess()
|
|
|
+ // this.resetRabtSuccess()
|
|
|
})
|
|
|
},
|
|
|
methods: {
|