|
@ -324,14 +324,26 @@ export default {
|
|
|
socketUtils.$on('onMessage', (msg)=>{
|
|
|
if(msg.type == 'CardInfo'){
|
|
|
this.clearReadCardCountDown()
|
|
|
this.$toast.clear()
|
|
|
var TipsDialog = this.prevReadCard? this.prevReadCard : this.$refs.TipsDialog
|
|
|
if(this.prevReadCard || TipsDialog.contentType == 2){
|
|
|
if(this.prevReadCard && (msg.mess.indexOf("IC卡没有插入") != -1 || msg.mess.indexOf("未插卡") != -1) ){
|
|
|
this.showTipsDialog(this.prevReadCard)
|
|
|
this.prevReadCard = false
|
|
|
if(this.prevReadCard
|
|
|
&& ( msg.mess.indexOf("IC卡没有插入") != -1
|
|
|
|| msg.mess.indexOf("未插卡") != -1
|
|
|
|| msg.mess.indexOf("读取临时卡信息失败") != -1
|
|
|
|| msg.mess.indexOf("读取信息失败") != -1 )
|
|
|
){
|
|
|
if(msg.mess.indexOf("读取临时卡信息失败") != -1){
|
|
|
//已经读取医保卡和临时卡 并都未读取到卡信息
|
|
|
this.$toast.clear()
|
|
|
this.showTipsDialog(this.prevReadCard)
|
|
|
this.prevReadCard = false
|
|
|
} else {
|
|
|
//读取不到医保卡 继续读取临时卡
|
|
|
this.readcard(12)
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
this.$toast.clear()
|
|
|
this.prevReadCard = false
|
|
|
if(msg.mess.indexOf("异常") != -1 || msg.mess.indexOf("读取信息失败") != -1 || msg.mess.indexOf("读取识别码失败") != -1 || msg.mess.indexOf("读取临时卡信息失败") != -1) {
|
|
|
playAudio(3)
|
|
@ -364,6 +376,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
this.$toast.clear()
|
|
|
}
|
|
|
} else if(msg.type == 'medical_recharge'){
|
|
|
// message:"{\"result\":\"succ\",\"resultName\":\"支付成功交易成功\"}"
|