zhangyuewww 1 rok temu
rodzic
commit
f78bf4ef3f

+ 3 - 3
src/views/outboundManagement/weighingManagementNew.vue

@@ -672,8 +672,8 @@
       }
     },
     mounted() {
-      getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
-        this.compNameoptions=res
+      // getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
+         this.compNameoptions=localStorage.getItem("ws-pf_compName").split(',')
     if (this.compNameoptions.length>0) {
       var company=this.compNameoptions
         var extra=company.filter((item)=>{
@@ -821,7 +821,7 @@
       }
       
       // window.addEventListener("keydown", this.enterCallback);
-    })
+    // })
       this.getNowTime()
       this.selectWarehouse()
       this.showType = this.isShow

+ 3 - 4
src/views/outboundManagement/weighingManagementrecord.vue

@@ -411,8 +411,8 @@
       }
     },
     activated() {
-      getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
-        this.compNameoptions=res
+      // getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
+       this.compNameoptions=localStorage.getItem("ws-pf_compName").split(',')
     if (this.compNameoptions.length>0) {
       var company=this.compNameoptions
         var extra=company.filter((item)=>{
@@ -559,7 +559,7 @@
           }
         }
       }
-    })
+    // })
       this.selectWarehouse()
       this.showType = this.isShow
     },
@@ -747,7 +747,6 @@
           this.isShowPrintType = true
           this.onePrint = true //单个打印标识
         }
-
       },
       check(name, type) {
         if (type == 1) {