zxz 2 лет назад
Родитель
Сommit
5b76a0a921
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 2
      pages/erpbusiness/quality_testing.vue
  2. 1 0
      pages/user/user.vue

+ 2 - 2
pages/erpbusiness/quality_testing.vue

@@ -270,7 +270,7 @@
 			}
 			}
 			this.gridList = []
 			this.gridList = []
 			this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelfApp', {
 			this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelfApp', {
-				compId: '',
+				compId: uni.getStorageSync('pcUserInfo').compId,
 				personCharge: this.userInfo.phone
 				personCharge: this.userInfo.phone
 			}).then(res => {
 			}).then(res => {
 				if (res.data.data) {
 				if (res.data.data) {
@@ -376,7 +376,7 @@
 						statusType:this.statusType,
 						statusType:this.statusType,
 						managementType: this.managementType,
 						managementType: this.managementType,
 						warehouseName: this.warehouseName,
 						warehouseName: this.warehouseName,
-						compId: '',
+						compId: uni.getStorageSync('pcUserInfo').compId,
 						// pcFlag:1
 						// pcFlag:1
 					}).then(res => {
 					}).then(res => {
 						uni.hideLoading()
 						uni.hideLoading()

+ 1 - 0
pages/user/user.vue

@@ -562,6 +562,7 @@
 						if (res.data.code == 200) {
 						if (res.data.code == 200) {
 							console.log("userInfo", res.data.data)
 							console.log("userInfo", res.data.data)
 							uni.setStorageSync('userInfo', res.data.data)
 							uni.setStorageSync('userInfo', res.data.data)
+							uni.removeStorageSync("cangid")
 							this.$api.doRequest('post', '/commonUser/api/loginQuickly', {
 							this.$api.doRequest('post', '/commonUser/api/loginQuickly', {
 								mobilePhone: this.userInfo.phone,
 								mobilePhone: this.userInfo.phone,
 								companyName: this.companyList[e[0]].compName,
 								companyName: this.companyList[e[0]].compName,