Browse Source

修改首次进入页面公司无数据问题

zhongtianhaoyuan 3 years ago
parent
commit
a231d5be2b
2 changed files with 7 additions and 6 deletions
  1. 7 4
      src/layout/index/top/index.vue
  2. 0 2
      src/views/houseSelfCollect/weightCheck.vue

+ 7 - 4
src/layout/index/top/index.vue

@@ -329,13 +329,14 @@
         userCompany: localStorage.getItem('ws-pf_compId'),
         userName: localStorage.getItem('ws-pf_staffName'),
       }
-      
-    },
-    mounted() {
-      listenfullscreen(this.setScreen)
+         listenfullscreen(this.setScreen)
       getcomp({userMobilePhone:this.UserInfo.loginInfo.userMobilePhone}).toPromise().then((res)=>{
         this.compNameoptions=res
       })
+    },
+    
+    mounted() {
+   
       // this.complogin({username: Cookies.get('ws_login_account'),
       // password: Cookies.get('ws_login_pwd'),
       // companyName: this.compName})
@@ -408,6 +409,7 @@
         //  this.barCode = ''
         //判断当前账号公司是否是二维码上公司
         if (this.userINfo.userCompany != _userCompId) {
+          console.log("请切换公司在试!")
           this.$message.error('当前身份不可操作');
            this.barCode = ''
           return
@@ -550,6 +552,7 @@
                   //扫码枪扫码后显示弹框
                    this.getQRCodeData(this.tmp)
               }else{
+                console.log("你没有该权限,不可操作")
                  this.$message.error('当前身份不可操作');
                  this.barCode = ''
                  return

+ 0 - 2
src/views/houseSelfCollect/weightCheck.vue

@@ -693,8 +693,6 @@ export default {
               weight: this.weighingList.grossWeight,
             }
           }
-
-
         } else {
           this.index = 1
           this.carList = this.pList