Browse Source

出入库明细冻结时,不不准查看,然后提示

caojunjie 4 years ago
parent
commit
710fc972f8

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "name" : "耀灵全钢店管家",
     "appid" : "__UNI__0C3473D",
     "description" : "测试",
-    "versionName" : "0.0.1",
+    "versionName" : "0.0.2",
     "versionCode" : "100",
     "transformPx" : false,
     "app-plus" : {

+ 8 - 0
pages/me/Delivery-details/index.vue

@@ -325,6 +325,13 @@
 					}
 				}).then(res => {
 					console.log(res)
+					if(res.data.code = 500){
+						uni.showToast({
+							icon: 'none',
+							title: res.data.msg,
+							position: "bottom"
+						})
+					}else{
 					this.total = res.data.stock
 					this.length = res.data.count
 					this.itemList = this.itemList.concat(res.data.record)
@@ -337,6 +344,7 @@
 					}
 					console.log(this.itemList)
 					return this.itemList
+					}
 				}).catch(err => {
 					console.log(err)
 				}).finally(() => {

+ 19 - 11
pages/me/Warehousing-details/index.vue

@@ -324,18 +324,26 @@
 					}
 				}).then(res => {
 					console.log(res)
-					this.total = res.data.stock
-					this.length = res.data.count
-					this.itemList = this.itemList.concat(res.data.record)
-					if (this.itemList.length >= res.data.count) this.status = 'nomore';
-					else this.status = 'loading';
-					if (this.itemList.length == 0) {
-						this.judge = true
-					} else {
-						this.judge = false
+					if(res.data.code = 500){
+						uni.showToast({
+							icon: 'none',
+							title: res.data.msg,
+							position: "bottom"
+						})
+					}else{
+						this.total = res.data.stock
+						this.length = res.data.count
+						this.itemList = this.itemList.concat(res.data.record)
+						if (this.itemList.length >= res.data.count) this.status = 'nomore';
+						else this.status = 'loading';
+						if (this.itemList.length == 0) {
+							this.judge = true
+						} else {
+							this.judge = false
+						}
+						console.log(this.itemList)
+						return this.itemList
 					}
-					console.log(this.itemList)
-					return this.itemList
 				}).catch(err => {
 					console.log(err)
 				}).finally(() => {

+ 1 - 1
pages/me/suppliers.vue

@@ -99,7 +99,7 @@
 		width: 667rpx;
 		height: auto;
 		background: #FFFFFF;
-		box-shadow: 0px 10px 40px 0px rgba(223, 223, 223, 0.51);
+		box-shadow: 0px 10rpx 30rpx 0px rgba(223, 223, 223, 0.51);
 		border-radius: 18px;
 		margin: 0 auto;
 		padding-top: 30rpx;