zhangyuewww 2 rokov pred
rodič
commit
40977bb09e

+ 10 - 8
pages/user/depotAcquisition/grainDeliveryRegistration.vue

@@ -152,13 +152,6 @@
 			...mapState(['hasLogin', 'userInfo']),
 		},
 		onShow() {
-			this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
-				console.log("checkSession", res)
-				if (res.data.data == "INVALID") {
-					this.isShowAlert = true;
-				}
-				this.getCustomer()
-			})
 			this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
 				warehouseId: this.warehouseId
 			}).then(res => {
@@ -166,8 +159,14 @@
 					this.goodsName = res.data.data[0]?res.data.data[0].goodsName:''
 					this.goodsnameList = res.data.data
 				}
+				this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
+					console.log("checkSession", res)
+					if (res.data.data == "INVALID") {
+						this.isShowAlert = true;
+					}
+					this.getCustomer()
+				})
 			})
-			console.log("hasLogin", this.hasLogin)
 		},
 		methods: {
 			keyClose(){
@@ -243,6 +242,9 @@
 						else if(res.data.code == 11019){
 							this.$api.msg('未认证粮商身份')
 						}
+						else if(res.data.code == 11021){
+							this.$api.msg('该仓库未设置收购价格或收购价格正在审核中')
+						}
 					})
 			},
 			getTime() {