|
@ -159,7 +159,7 @@ export default {
|
|
|
watch:{
|
|
|
step(n){
|
|
|
if(n==2){
|
|
|
clearInterval(countDownFunc)
|
|
|
this.clearCountDown()
|
|
|
this.countDown()
|
|
|
}else if(n!=3){
|
|
|
this.rsType = 0
|
|
@ -167,13 +167,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
rsType(n){
|
|
|
clearInterval(countDownFunc)
|
|
|
this.clearCountDown()
|
|
|
if(n!=4 && this.step==3){
|
|
|
this.countDown()
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
//由于开太久会导致程序崩溃, 设定每天凌晨3点重载页面
|
|
|
setInterval(()=>{
|
|
|
var d = new Date()
|
|
|
if(d.getHours() == 3){
|
|
|
this.systemUpdate()
|
|
|
}
|
|
|
}, 30 * 60 * 1000)
|
|
|
|
|
|
window.vm2 = this
|
|
|
this.init()
|
|
|
window.socketUtils = socketUtils
|
|
@ -223,6 +231,11 @@ export default {
|
|
|
SetPrintPageTest(){
|
|
|
socketUtils.SetPrintPageTest()
|
|
|
},
|
|
|
clearCountDown(){
|
|
|
if(countDownFunc){
|
|
|
clearInterval(countDownFunc)
|
|
|
}
|
|
|
},
|
|
|
onPrevReadCard(params){
|
|
|
playAudio(16)
|
|
|
this.prevReadCard = params
|
|
@ -625,7 +638,7 @@ export default {
|
|
|
this.times = 30
|
|
|
countDownFunc = setInterval(()=>{
|
|
|
if(this.times === 0){
|
|
|
clearInterval(countDownFunc)
|
|
|
this.clearCountDown()
|
|
|
this.onPrev()
|
|
|
}
|
|
|
this.times--
|
|
@ -923,7 +936,7 @@ export default {
|
|
|
// },
|
|
|
|
|
|
sendShipment: function() {
|
|
|
clearInterval(countDownFunc)
|
|
|
this.clearCountDown()
|
|
|
this.currindex = 0;
|
|
|
this.$loading(`正在出第${this.currindex+1}个药..`)
|
|
|
//循环订单返回的列表,读取第一个
|
|
@ -1138,7 +1151,7 @@ export default {
|
|
|
destroyed() {
|
|
|
this.forceClose = true
|
|
|
clearInterval(this.heartbitInterval)
|
|
|
clearInterval(countDownFunc)
|
|
|
this.clearCountDown()
|
|
|
}
|
|
|
}
|
|
|
</script>
|