|
@ -193,7 +193,7 @@ export default {
|
|
|
if(res.status == 200){
|
|
|
this.$toast.clear()
|
|
|
if(res.obj && res.obj.orderList){
|
|
|
var list = _.map(res.obj.orderList, v=>{
|
|
|
var list = _.filter(res.obj.orderList, v=>{
|
|
|
return v.status===0
|
|
|
})
|
|
|
if(list.length){
|
|
@ -266,7 +266,7 @@ export default {
|
|
|
console.log("连接错误")
|
|
|
},
|
|
|
getMessage: function(msg) {
|
|
|
// console.log(msg.data)
|
|
|
console.log(msg.data)
|
|
|
var msgobj = JSON.parse(msg.data)
|
|
|
if (msgobj.type == 'ShipInfo') {
|
|
|
var item = this.orderdetail[this.currindex]
|
|
@ -314,7 +314,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.clearReadCardCountDown()
|
|
|
if (msgobj.mess.indexOf("异常") != -1) {
|
|
|
if (msgobj.mess.indexOf("异常") != -1 || msgobj.mess.indexOf("读取信息失败") != -1) {
|
|
|
this.$toast(msgobj.mess)
|
|
|
return
|
|
|
}
|
|
@ -344,7 +344,7 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
sendReadCard: function() {
|
|
|
this.$loading('加载中..')
|
|
|
this.$loading('读取中..')
|
|
|
this.clearReadCardCountDown()
|
|
|
readCardCountDown = setTimeout(()=>{
|
|
|
this.$toast('读取医保卡失败')
|