gjy 2 rokov pred
rodič
commit
39e715604e

+ 10 - 3
src/views/houseSelfCollect/newWeighingManagement.vue

@@ -346,11 +346,15 @@ import {
 import {
   addstorageputList
 } from '@/model/warehouse/index'
+import {
+    getcomp
+  } from '@/model/indexRx'
 import weightCheckPrint from './component/weightCheckPrint.vue'
 import BalanceAlert from '@/components/balanceAlert'
 import html2canvas from 'html2canvas'
 import axios from 'axios'
 import configText from '../../../vue.config.js'
+
 export default {
   components: {
     weightCheckPrint,
@@ -617,8 +621,10 @@ export default {
   },
   mounted() {
     localStorage.setItem('serverIp', configText.devServer.proxy['/pb'].target)
-    if (localStorage.getItem('compNameoptions')) {
-      var company=JSON.parse(localStorage.getItem('compNameoptions'))
+    getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
+        this.compNameoptions=res
+    if (this.compNameoptions.length>0) {
+      var company=this.compNameoptions
         
         var extra=company.filter((item)=>{
           return item!='黑龙江中天昊元贸易有限公司'
@@ -747,7 +753,8 @@ export default {
             this.companyNameEWOptions.push({value: extra[i],label:extra[i]})
           }
         }
-    }
+      }
+    })
     // this.getVideos()
     this.isShowBalance = true
     var _saomaData = JSON.parse(localStorage.getItem('saoma_data')) //判断是否扫码进来的

+ 5 - 2
src/views/houseSelfCollect/weightCheckRecord.vue

@@ -470,8 +470,10 @@
     activated() {
       //仓库
       console.log(localStorage.getItem('compNameoptions'))
-      if(localStorage.getItem('compNameoptions')){
-        var company=JSON.parse(localStorage.getItem('compNameoptions'))
+      getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
+        this.compNameoptions=res
+    if (this.compNameoptions.length>0) {
+        var company=this.compNameoptions
         
         var extra=company.filter((item)=>{
           return item!='黑龙江中天昊元贸易有限公司'
@@ -600,6 +602,7 @@
           }
         }
       }
+    })
       selectWarehouseSelf({
           compId: localStorage.getItem('ws-pf_compId'),
         })

+ 1 - 0
src/views/outboundManagement/newQualityInspectionManagement.vue

@@ -197,6 +197,7 @@
   import {
     packList
   } from '@/model/contarct/index'
+  
   import html2canvas from 'html2canvas'
   import axios from 'axios'
   import outInspectPrint from './component/outInspectPrint.vue'

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

@@ -414,7 +414,9 @@
     getstaff,
     getReceiptTaskNo,
   } from '@/model/warehouse/index'
-  
+  import {
+    getcomp
+  } from '@/model/indexRx'
   import axios from 'axios'
   import weightCheckPrint from './component/weightCheckPrint.vue'
   import inspectInfoPrint from './component/inspectInfoPrint.vue'
@@ -643,8 +645,10 @@
       }
     },
     mounted() {
-      if(localStorage.getItem('compNameoptions')){
-        var company=JSON.parse(localStorage.getItem('compNameoptions'))
+      getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
+        this.compNameoptions=res
+    if (this.compNameoptions.length>0) {
+      var company=this.compNameoptions
         var extra=company.filter((item)=>{
           return item!='黑龙江中天昊元贸易有限公司'
           &&item!='黑龙江利润元粮食贸易有限公司'
@@ -755,6 +759,7 @@
           }
         }
       }
+    })
       this.getNowTime()
       this.selectWarehouse()
       this.showType = this.isShow

+ 8 - 2
src/views/outboundManagement/weighingManagementrecord.vue

@@ -235,6 +235,9 @@
   import {
     EventBus
   } from 'base-core-lib'
+  import {
+    getcomp
+  } from '@/model/indexRx'
   import WsUpload from '@/components/WsUpload'
   import weightCheckPrint from './component/weightCheckPrint.vue'
   import inspectInfoPrint from './component/inspectInfoPrint.vue'
@@ -377,8 +380,10 @@
       }
     },
     activated() {
-      if(localStorage.getItem('compNameoptions')){
-        var company=JSON.parse(localStorage.getItem('compNameoptions'))
+      getcomp({userMobilePhone:JSON.parse(localStorage.getItem('ws_login_getTenantInfoByUser')).loginInfo.userMobilePhone}).toPromise().then((res)=>{
+        this.compNameoptions=res
+    if (this.compNameoptions.length>0) {
+      var company=this.compNameoptions
         var extra=company.filter((item)=>{
           return item!='黑龙江中天昊元贸易有限公司'
           &&item!='黑龙江利润元粮食贸易有限公司'
@@ -489,6 +494,7 @@
           }
         }
       }
+    })
       this.selectWarehouse()
       this.showType = this.isShow
     },