ccjgmwz 3 jaren geleden
bovenliggende
commit
ac5ab95c5f
2 gewijzigde bestanden met toevoegingen van 22 en 9 verwijderingen
  1. 19 4
      pageD/warehousings/warehousings.vue
  2. 3 5
      pages/user/set_picture.vue

+ 19 - 4
pageD/warehousings/warehousings.vue

@@ -276,6 +276,21 @@ import upload from '@/components/upload.vue';
 						 			 arr.push(res.data.data[i].warehouseName)
 						 		 }
 						 		 this.warehouselist=res.data.data
+								 for(var i=0;i<this.warehouselist.length;i++){
+								 	if(this.warehouselist[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
+								 		var id=this.warehouselist[i].id
+										this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {id:id,}).then(res => {
+											var arr=[]
+											for(var i=0;i<res.data.data.warehousePositionInfoList.length;i++){
+												arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
+											}
+											this.warehouse1=arr
+											this.warehouselist11=res.data.data
+										})
+										break;
+								 	}
+								 }
+								
 						 		 this.warehouse=arr
 						 	 }
 						 })
@@ -493,8 +508,8 @@ import upload from '@/components/upload.vue';
 							duration: 2000
 						})
 						setTimeout(() => {
-							uni.navigateBack({})
-						}, 200)
+							uni.navigateBack()
+						}, 1000)
 					}else{
 						uni.showToast({
 							title: res.data.message,
@@ -651,8 +666,8 @@ import upload from '@/components/upload.vue';
 							icon: 'none'
 						})
 						setTimeout(() => {
-							uni.navigateBack({})
-						}, 200)
+							uni.navigateBack()
+						}, 1000)
 					}else{
 						uni.showToast({
 							title: res.data.message,

+ 3 - 5
pages/user/set_picture.vue

@@ -130,13 +130,11 @@
 												// 	duration: 2000
 												// })
 											that.userInfo.avatarUrl = that.identityUrl
-											var _student = wx.getStorageSync('userInfo');
+											var _student = uni.getStorageSync('userInfo');
 											_student.avatarUrl = that.identityUrl;
-											wx.setStorageSync('userInfo', _student);
+											uni.setStorageSync('userInfo', _student);
 										    // this.$api.msg('修改成功!')
-											uni.navigateTo({
-												url: `/pages/user/setUp`
-											})
+											uni.navigateBack()
 										}
 									})
 								.catch(res => {