|
@@ -110,8 +110,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created(){
|
|
created(){
|
|
|
- this.listenScanItem()
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//判断是否有单可取
|
|
//判断是否有单可取
|
|
|
let has = uni.getStorageSync('selectList_'+this.currentJobType+'_target_'+this.currentBackJobId)
|
|
let has = uni.getStorageSync('selectList_'+this.currentJobType+'_target_'+this.currentBackJobId)
|
|
|
if(!this.$util.isEmpty(has)){
|
|
if(!this.$util.isEmpty(has)){
|
|
@@ -119,6 +118,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ mounted(){
|
|
|
|
|
+ this.listenScanItem()
|
|
|
|
|
+ },
|
|
|
destroyed(){
|
|
destroyed(){
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
//避免重复,每次进来先移除全局自定义事件监听器
|
|
//避免重复,每次进来先移除全局自定义事件监听器
|