ccjgmwz 3 年之前
父节点
当前提交
8a68a867ba
共有 41 个文件被更改,包括 1078 次插入282 次删除
  1. 14 4
      main.js
  2. 14 5
      pageA/freightTransport/confirmpaygoods.vue
  3. 14 5
      pageA/freightTransport/contract_detail.vue
  4. 28 10
      pageA/product/Identity_switching.vue
  5. 14 6
      pageA/product/business_buy.vue
  6. 42 3
      pageA/product/buydetails.vue
  7. 28 2
      pageA/product/detail.vue
  8. 14 1
      pageA/product/detail_upload.vue
  9. 56 20
      pageA/product/lookup.vue
  10. 112 12
      pageA/product/querylist.vue
  11. 14 1
      pageA/product/sale_trade.vue
  12. 42 3
      pageA/product/saledetails.vue
  13. 28 2
      pageA/product/sales_detail.vue
  14. 14 1
      pageB/car/mycar_detail.vue
  15. 42 11
      pageB/contract/collectLook.vue
  16. 84 14
      pageB/contract/contract.vue
  17. 14 5
      pageB/contract/contract_detail.vue
  18. 42 11
      pageB/contract/look.vue
  19. 28 10
      pageD/identity/companyIdentityEdit.vue
  20. 14 5
      pageD/identity/companyIdentityLook.vue
  21. 14 5
      pageD/identity/driverIdentityEdit.vue
  22. 14 5
      pageD/identity/driverIdentityLook.vue
  23. 28 10
      pageD/myRelease/Identity_switching.vue
  24. 14 5
      pageD/myRelease/buyDetails.vue
  25. 28 10
      pageD/myRelease/buyEdit.vue
  26. 14 5
      pageD/myRelease/buyGrain.vue
  27. 14 5
      pageD/myRelease/sellDetails.vue
  28. 28 10
      pageD/myRelease/sellEdit.vue
  29. 14 5
      pageD/myRelease/sellGrain.vue
  30. 14 5
      pageD/warehousings/ex_warehouse.vue
  31. 14 5
      pageD/warehousings/ex_warehouse_detail.vue
  32. 14 5
      pageD/warehousings/warehousingDetails.vue
  33. 14 5
      pageD/warehousings/warehousings.vue
  34. 56 20
      pages/attestation/index.vue
  35. 28 10
      pages/attestation/indexThree.vue
  36. 42 15
      pages/attestation/indexTwo.vue
  37. 28 10
      pages/business/business.vue
  38. 14 5
      pages/public/reset.vue
  39. 14 5
      pages/user/set_nickname.vue
  40. 14 5
      pages/user/set_picture.vue
  41. 0 1
      websocket_sdk.js

+ 14 - 4
main.js

@@ -164,10 +164,20 @@ const request = (_gp, _mt, data = {}, failCallback) => {
 						if (failCallback) {
 							failCallback(res.data)
 						} else {
-							uni.showToast({
-								title: res.data.errmsg,
-								icon: 'none'
-							})
+							if(res.data.errmsg){
+								uni.showToast({
+									title: res.data.errmsg,
+									icon: 'none',
+									duration: 2000
+								})
+							}
+							else{
+								uni.showToast({
+									title: "系统异常,请联系管理员",
+									icon: 'none',
+									duration: 2000
+								})
+							}
 						}
 					}
 				}

+ 14 - 5
pageA/freightTransport/confirmpaygoods.vue

@@ -319,11 +319,20 @@
 										}
 									})
 								.catch(res => {
-									uni.showToast({
-										title: res.errmsg,
-										icon: 'none',
-										duration: 2000
-									})
+									if(res.errmsg){
+										uni.showToast({
+											title: res.errmsg,
+											icon: 'none',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: "系统异常,请联系管理员",
+											icon: 'none',
+											duration: 2000
+										})
+									}
 								});
 						} else if (res.cancel) {
 

+ 14 - 5
pageA/freightTransport/contract_detail.vue

@@ -272,11 +272,20 @@
 											}
 										})
 										.catch(res => {
-											uni.showToast({
-												title: res.errmsg,
-												icon: 'none',
-												duration: 2000
-											})
+											if(res.errmsg){
+												uni.showToast({
+													title: res.errmsg,
+													icon: 'none',
+													duration: 2000
+												})
+											}
+											else{
+												uni.showToast({
+													title: "系统异常,请联系管理员",
+													icon: 'none',
+													duration: 2000
+												})
+											}
 										});
 								} else {
 									console.log('验证失败');

+ 28 - 10
pageA/product/Identity_switching.vue

@@ -114,11 +114,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			checkBox(e,item){
@@ -142,11 +151,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			// adddriver(index) {

+ 14 - 6
pageA/product/business_buy.vue

@@ -342,12 +342,20 @@
 										})
 									}
 								}).catch(res => {
-									console.log(res)
-									uni.showToast({
-										title: res.errMsg,
-										icon: 'none',
-										duration: 2000
-									})
+									if(res.errmsg){
+										uni.showToast({
+											title: res.errmsg,
+											icon: 'none',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: "系统异常,请联系管理员",
+											icon: 'none',
+											duration: 2000
+										})
+									}
 								})
 							}
 						}

+ 42 - 3
pageA/product/buydetails.vue

@@ -231,7 +231,20 @@
 			that.$api.request('goods', 'getSaleDetailInfo', {
 				id: options.id
 			}, failres => {
-				that.$api.msg(failres.errmsg)
+				if(failres.errmsg){
+					uni.showToast({
+						title: failres.errmsg,
+						icon: 'none',
+						duration: 2000
+					})
+				}
+				else{
+					uni.showToast({
+						title: "系统异常,请联系管理员",
+						icon: 'none',
+						duration: 2000
+					})
+				}
 				uni.hideLoading()
 			}).then(res => {
 				console.log(res.data)
@@ -313,7 +326,20 @@
 					id: that.goods.id,
 					price:that.price
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('修改成功')
@@ -331,7 +357,20 @@
 					id: that.goods.id,
 					reason:that.reason
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('终止成功')

+ 28 - 2
pageA/product/detail.vue

@@ -354,7 +354,20 @@
 					id: that.goods.id,
 					price:that.price
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('修改成功')
@@ -457,7 +470,20 @@
 					id: that.goods.id,
 					reason:that.reason
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('终止成功')

+ 14 - 1
pageA/product/detail_upload.vue

@@ -192,7 +192,20 @@
 					carImg:that.carImg,
 					
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					uni.hideLoading()

+ 56 - 20
pageA/product/lookup.vue

@@ -222,11 +222,20 @@
 				})
 				.catch(res => {
 					uni.hideLoading()
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			},
 			emptysearch(){
@@ -242,11 +251,20 @@
 					this.hotKeywordList=res.data.data.records
 				})
 				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			},
 			tabSelect(e) {
@@ -273,11 +291,20 @@
 					this.keywordList=res.data.data.records
 				})
 				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			},
 			//加载默认搜索关键字
@@ -460,11 +487,20 @@
 					})
 					.catch(res => {
 						uni.hideLoading()
-						uni.showToast({
-							title: res.errmsg,
-							icon:'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			//保存关键字到历史记录

+ 112 - 12
pageA/product/querylist.vue

@@ -194,7 +194,20 @@
 						page: this.pages,
 						limit:this.limit
 					}, failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						this.isLoadMore = false
 						this.loadStatus = 'nomore'
 						if(this.pages>1){this.pages=1}
@@ -216,7 +229,20 @@
 						page: this.pages,
 						limit:this.limit
 					}, failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						this.isLoadMore = false
 						this.loadStatus = 'nomore'
 						if(this.pages>1){this.pages=1}
@@ -238,7 +264,20 @@
 						page: this.pages,
 						limit:this.limit
 					}, failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						this.isLoadMore = false
 						this.loadStatus = 'nomore'
 						if(this.pages>1){this.pages=1}
@@ -261,7 +300,20 @@
 						page: this.pages,
 						limit:this.limit
 					}, failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						this.isLoadMore = false
 						this.loadStatus = 'nomore'
 						if(this.pages>1){this.pages=1}
@@ -328,7 +380,20 @@
 						page: pages,
 						limit:limit
 					},failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						that.isLoadMore=false
 						that.loadStatus = 'nomore'
 						if(that.pages>1){that.pages-=1}
@@ -353,11 +418,20 @@
 					currentPage:this.currentPage,keywords:this.keywords}).then(res => {
 									})
 									.catch(res => {
-										uni.showToast({
-											title: res.errmsg,
-											icon:'none',
-											duration: 2000
-										})
+										if(res.errmsg){
+											uni.showToast({
+												title: res.errmsg,
+												icon: 'none',
+												duration: 2000
+											})
+										}
+										else{
+											uni.showToast({
+												title: "系统异常,请联系管理员",
+												icon: 'none',
+												duration: 2000
+											})
+										}
 									});
 				}
 				else if(this.TabCur == 2){
@@ -366,7 +440,20 @@
 						page: pages,
 						limit:limit
 					},failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						that.isLoadMore=false
 						that.loadStatus = 'nomore'
 						if(that.pages>1){that.pages-=1}
@@ -392,7 +479,20 @@
 						page: pages,
 						limit:limit
 					},failres => {
-						that.$api.msg(failres.errmsg)
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						that.isLoadMore=false
 						that.loadStatus = 'nomore'
 						if(that.pages>1){that.pages-=1}

+ 14 - 1
pageA/product/sale_trade.vue

@@ -402,7 +402,20 @@
 					})
 					that.$api.request('trade', 'addTrade',that.tradeInfo, failres => {
 						uni.hideLoading()
-						that.$api.msg(failres.errmsg);
+						if(failres.errmsg){
+							uni.showToast({
+								title: failres.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 						
 					}).then(res => {
 						uni.hideLoading()

+ 42 - 3
pageA/product/saledetails.vue

@@ -231,7 +231,20 @@
 			that.$api.request('goods', 'getSaleDetailInfo', {
 				id: options.id
 			}, failres => {
-				that.$api.msg(failres.errmsg)
+				if(failres.errmsg){
+					uni.showToast({
+						title: failres.errmsg,
+						icon: 'none',
+						duration: 2000
+					})
+				}
+				else{
+					uni.showToast({
+						title: "系统异常,请联系管理员",
+						icon: 'none',
+						duration: 2000
+					})
+				}
 				uni.hideLoading()
 			}).then(res => {
 				console.log(res.data)
@@ -313,7 +326,20 @@
 					id: that.goods.id,
 					price:that.price
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('修改成功')
@@ -331,7 +357,20 @@
 					id: that.goods.id,
 					reason:that.reason
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('终止成功')

+ 28 - 2
pageA/product/sales_detail.vue

@@ -346,7 +346,20 @@
 					id: that.goods.id,
 					price:that.price
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('修改成功')
@@ -449,7 +462,20 @@
 					id: that.goods.id,
 					reason:that.reason
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {			
 					that.$api.msg('终止成功')

+ 14 - 1
pageB/car/mycar_detail.vue

@@ -61,7 +61,20 @@
 			that.$api.request('tran', 'getMyCarListByCarNo', {
 				carNo: options.carNo
 			}, failres => {
-				that.$api.msg(failres.errmsg)
+				if(failres.errmsg){
+					uni.showToast({
+						title: failres.errmsg,
+						icon: 'none',
+						duration: 2000
+					})
+				}
+				else{
+					uni.showToast({
+						title: "系统异常,请联系管理员",
+						icon: 'none',
+						duration: 2000
+					})
+				}
 				uni.hideLoading()
 			}).then(res => {			
 				that.carInfo = res.data

+ 42 - 11
pageB/contract/collectLook.vue

@@ -181,11 +181,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			loaddata() {
@@ -197,11 +206,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			ViewImage(e) {
@@ -229,7 +247,20 @@
 					id: that.goods.id,
 					reason: that.reason
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {
 					that.$api.msg('终止成功')

+ 84 - 14
pageB/contract/contract.vue

@@ -189,11 +189,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			someprice(item) {
@@ -275,11 +284,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 
@@ -581,7 +599,20 @@
 												that.$api.request('sale', 'addSale', that.saleInfo,
 													failres => {
 														uni.hideLoading()
-														that.$api.msg(failres.errmsg);
+														if(failres.errmsg){
+															uni.showToast({
+																title: failres.errmsg,
+																icon: 'none',
+																duration: 2000
+															})
+														}
+														else{
+															uni.showToast({
+																title: "系统异常,请联系管理员",
+																icon: 'none',
+																duration: 2000
+															})
+														}
 													}).then(res => {
 													uni.hideLoading()
 													uni.showModal({
@@ -600,7 +631,20 @@
 												that.$api.request('sale', 'addBuy', that.saleInfo,
 													failres => {
 														uni.hideLoading()
-														that.$api.msg(failres.errmsg);
+														if(failres.errmsg){
+															uni.showToast({
+																title: failres.errmsg,
+																icon: 'none',
+																duration: 2000
+															})
+														}
+														else{
+															uni.showToast({
+																title: "系统异常,请联系管理员",
+																icon: 'none',
+																duration: 2000
+															})
+														}
 													}).then(res => {
 													uni.hideLoading()
 													uni.showModal({
@@ -619,7 +663,20 @@
 												that.$api.request('tran', 'addTran', that.tran,
 													failres => {
 														uni.hideLoading()
-														that.$api.msg(failres.errmsg);
+														if(failres.errmsg){
+															uni.showToast({
+																title: failres.errmsg,
+																icon: 'none',
+																duration: 2000
+															})
+														}
+														else{
+															uni.showToast({
+																title: "系统异常,请联系管理员",
+																icon: 'none',
+																duration: 2000
+															})
+														}
 													}).then(res => {
 													uni.hideLoading()
 													uni.showModal({
@@ -638,7 +695,20 @@
 												that.$api.request('tran', 'addCarDriver', that.tran,
 													failres => {
 														uni.hideLoading()
-														that.$api.msg(failres.errmsg);
+														if(failres.errmsg){
+															uni.showToast({
+																title: failres.errmsg,
+																icon: 'none',
+																duration: 2000
+															})
+														}
+														else{
+															uni.showToast({
+																title: "系统异常,请联系管理员",
+																icon: 'none',
+																duration: 2000
+															})
+														}
 													}).then(res => {
 													uni.hideLoading()
 													uni.showModal({

+ 14 - 5
pageB/contract/contract_detail.vue

@@ -299,11 +299,20 @@
 									}
 								    })
 								    .catch(res => {
-								     uni.showToast({
-								      title: res.errmsg,
-								      icon:'none',
-								      duration: 2000
-								     })
+										 if(res.errmsg){
+										 	uni.showToast({
+										 		title: res.errmsg,
+										 		icon: 'none',
+										 		duration: 2000
+										 	})
+										 }
+										 else{
+										 	uni.showToast({
+										 		title: "系统异常,请联系管理员",
+										 		icon: 'none',
+										 		duration: 2000
+										 	})
+										 }
 								    });
 							} else if (res.cancel) {
 							

+ 42 - 11
pageB/contract/look.vue

@@ -199,11 +199,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			loaddata() {
@@ -215,11 +224,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			ViewImage(e) {
@@ -253,7 +271,20 @@
 					id: that.goods.id,
 					reason: that.reason
 				}, failres => {
-					that.$api.msg(failres.errmsg)
+					if(failres.errmsg){
+						uni.showToast({
+							title: failres.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 					uni.hideLoading()
 				}).then(res => {
 					that.$api.msg('终止成功')

+ 28 - 10
pageD/identity/companyIdentityEdit.vue

@@ -244,11 +244,20 @@
 					
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 				
 				
@@ -376,11 +385,20 @@
 		
 						})
 						.catch(res => {
-							uni.showToast({
-								title: res.errmsg,
-								icon: 'none',
-								duration: 2000
-							})
+							if(res.errmsg){
+								uni.showToast({
+									title: res.errmsg,
+									icon: 'none',
+									duration: 2000
+								})
+							}
+							else{
+								uni.showToast({
+									title: "系统异常,请联系管理员",
+									icon: 'none',
+									duration: 2000
+								})
+							}
 						});
 			},
 			consent(){

+ 14 - 5
pageD/identity/companyIdentityLook.vue

@@ -165,11 +165,20 @@
 							}
 						})
 						.catch(res => {
-							uni.showToast({
-								title: res.errmsg,
-								icon: 'none',
-								duration: 2000
-							})
+							if(res.errmsg){
+								uni.showToast({
+									title: res.errmsg,
+									icon: 'none',
+									duration: 2000
+								})
+							}
+							else{
+								uni.showToast({
+									title: "系统异常,请联系管理员",
+									icon: 'none',
+									duration: 2000
+								})
+							}
 						});
 			},
 			consent(){

+ 14 - 5
pageD/identity/driverIdentityEdit.vue

@@ -363,11 +363,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			commitEdit() {

+ 14 - 5
pageD/identity/driverIdentityLook.vue

@@ -267,11 +267,20 @@
 						this.bankimg = this.procurementPlanInfos.driverPayeeInfoList.payeeAddressUrl.split(",")
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 

+ 28 - 10
pageD/myRelease/Identity_switching.vue

@@ -110,11 +110,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			checkBox(e,item){
@@ -131,11 +140,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			// adddriver(index) {

+ 14 - 5
pageD/myRelease/buyDetails.vue

@@ -191,11 +191,20 @@
 					
 				})
 				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			}
 		}

+ 28 - 10
pageD/myRelease/buyEdit.vue

@@ -322,11 +322,20 @@
 					}
 				})
 				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			},
 			yearpicker(e) {
@@ -631,11 +640,20 @@
 													}
 											})
 											.catch(res => {
-												uni.showToast({
-													title: res.errmsg,
-													icon: 'none',
-													duration: 2000
-												})
+												if(res.errmsg){
+													uni.showToast({
+														title: res.errmsg,
+														icon: 'none',
+														duration: 2000
+													})
+												}
+												else{
+													uni.showToast({
+														title: "系统异常,请联系管理员",
+														icon: 'none',
+														duration: 2000
+													})
+												}
 											});
 									} 
 									else if(res.data.code=='11003'){

+ 14 - 5
pageD/myRelease/buyGrain.vue

@@ -605,11 +605,20 @@
 										}
 									})
 									.catch(res => {
-										uni.showToast({
-											title: res.errmsg,
-											icon: 'none',
-											duration: 2000
-										})
+										if(res.errmsg){
+											uni.showToast({
+												title: res.errmsg,
+												icon: 'none',
+												duration: 2000
+											})
+										}
+										else{
+											uni.showToast({
+												title: "系统异常,请联系管理员",
+												icon: 'none',
+												duration: 2000
+											})
+										}
 									});
 								} 
 								else if(res.data.code=='11003'){

+ 14 - 5
pageD/myRelease/sellDetails.vue

@@ -235,11 +235,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			regionpicker(e) {

+ 28 - 10
pageD/myRelease/sellEdit.vue

@@ -332,11 +332,20 @@
 
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			getcode() {
@@ -623,11 +632,20 @@
 												}
 											})
 											.catch(res => {
-												uni.showToast({
-													title: res.errmsg,
-													icon: 'none',
-													duration: 2000
-												})
+												if(res.errmsg){
+													uni.showToast({
+														title: res.errmsg,
+														icon: 'none',
+														duration: 2000
+													})
+												}
+												else{
+													uni.showToast({
+														title: "系统异常,请联系管理员",
+														icon: 'none',
+														duration: 2000
+													})
+												}
 											});
 									} else if (res.data.code == '11003') {
 										uni.showModal({

+ 14 - 5
pageD/myRelease/sellGrain.vue

@@ -635,11 +635,20 @@
 
 								})
 								.catch(res => {
-									uni.showToast({
-										title: res.errmsg,
-										icon: 'none',
-										duration: 2000
-									})
+									if(res.errmsg){
+										uni.showToast({
+											title: res.errmsg,
+											icon: 'none',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: "系统异常,请联系管理员",
+											icon: 'none',
+											duration: 2000
+										})
+									}
 								});
 						} else if (res.data.code == '11003') {
 							uni.showModal({

+ 14 - 5
pageD/warehousings/ex_warehouse.vue

@@ -365,11 +365,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 	 async warehouseChange3(id){

+ 14 - 5
pageD/warehousings/ex_warehouse_detail.vue

@@ -188,11 +188,20 @@
 
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			}
 		}

+ 14 - 5
pageD/warehousings/warehousingDetails.vue

@@ -182,11 +182,20 @@
 					
 				})
 				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			}
 		}

+ 14 - 5
pageD/warehousings/warehousings.vue

@@ -341,11 +341,20 @@ import upload from '@/components/upload.vue';
 					this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount) 
 				})
 				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
-					})
+					if(res.errmsg){
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					}
+					else{
+						uni.showToast({
+							title: "系统异常,请联系管理员",
+							icon: 'none',
+							duration: 2000
+						})
+					}
 				});
 			},
 			warehouseChange(e){

+ 56 - 20
pages/attestation/index.vue

@@ -133,11 +133,20 @@
 										}
 									})
 									.catch(res => {
-										uni.showToast({
-											title: res.errmsg,
-											icon: 'none',
-											duration: 2000
-										})
+										if(res.errmsg){
+											uni.showToast({
+												title: res.errmsg,
+												icon: 'none',
+												duration: 2000
+											})
+										}
+										else{
+											uni.showToast({
+												title: "系统异常,请联系管理员",
+												icon: 'none',
+												duration: 2000
+											})
+										}
 									});
 							}
 							
@@ -182,11 +191,20 @@
 								}
 							})
 							.catch(res => {
-								uni.showToast({
-									title: res.errmsg,
-									icon: 'none',
-									duration: 2000
-								})
+								if(res.errmsg){
+									uni.showToast({
+										title: res.errmsg,
+										icon: 'none',
+										duration: 2000
+									})
+								}
+								else{
+									uni.showToast({
+										title: "系统异常,请联系管理员",
+										icon: 'none',
+										duration: 2000
+									})
+								}
 							});
 					},
 					fail: () => {},
@@ -213,11 +231,20 @@
 
 							})
 							.catch(res => {
-								uni.showToast({
-									title: res.errmsg,
-									icon: 'none',
-									duration: 2000
-								})
+								if(res.errmsg){
+									uni.showToast({
+										title: res.errmsg,
+										icon: 'none',
+										duration: 2000
+									})
+								}
+								else{
+									uni.showToast({
+										title: "系统异常,请联系管理员",
+										icon: 'none',
+										duration: 2000
+									})
+								}
 							});
 					},
 					fail: () => {},
@@ -238,11 +265,20 @@
 						}
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.message,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			adddriver(index) {

+ 28 - 10
pages/attestation/indexThree.vue

@@ -144,11 +144,20 @@
 						this.drivers = res.data.data.records
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			amendprice(item) {
@@ -343,11 +352,20 @@
 									}
 								})
 								.catch(res => {
-									uni.showToast({
-										title: res.errmsg,
-										icon: 'none',
-										duration: 2000
-									})
+									if(res.errmsg){
+										uni.showToast({
+											title: res.errmsg,
+											icon: 'none',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: "系统异常,请联系管理员",
+											icon: 'none',
+											duration: 2000
+										})
+									}
 								});
 						}
 						

+ 42 - 15
pages/attestation/indexTwo.vue

@@ -156,11 +156,20 @@
 							this.getList()
 						})
 						.catch(res => {
-							uni.showToast({
-								title: res.errmsg,
-								icon: 'none',
-								duration: 2000
-							})
+							if(res.errmsg){
+								uni.showToast({
+									title: res.errmsg,
+									icon: 'none',
+									duration: 2000
+								})
+							}
+							else{
+								uni.showToast({
+									title: "系统异常,请联系管理员",
+									icon: 'none',
+									duration: 2000
+								})
+							}
 						});
 				} else {
 					this.$api.msg('已认证的身份才能设为默认!')
@@ -194,11 +203,20 @@
 
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			},
 			amendprice(item) {
@@ -387,11 +405,20 @@
 								}
 							})
 							.catch(res => {
-								uni.showToast({
-									title: res.errmsg,
-									icon: 'none',
-									duration: 2000
-								})
+								if(res.errmsg){
+									uni.showToast({
+										title: res.errmsg,
+										icon: 'none',
+										duration: 2000
+									})
+								}
+								else{
+									uni.showToast({
+										title: "系统异常,请联系管理员",
+										icon: 'none',
+										duration: 2000
+									})
+								}
 							});
 						}
 					},

+ 28 - 10
pages/business/business.vue

@@ -251,11 +251,20 @@
 					})
 					.catch(res => {
 						uni.hideLoading()
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 				// that.$api.request(param1, param2, {
 				// 	page: 1,
@@ -360,11 +369,20 @@
 					})
 					.catch(res => {
 						uni.hideLoading()
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
-						})
+						if(res.errmsg){
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						}
+						else{
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
 					});
 			}
 

+ 14 - 5
pages/public/reset.vue

@@ -118,11 +118,20 @@
 					}, 1000)
 					})
 					.catch(res => {
-					    uni.showToast({
-							title: res.errMsg,
-							icon:'none',
-							duration: 2000
-						})
+					    if(res.errmsg){
+					    	uni.showToast({
+					    		title: res.errmsg,
+					    		icon: 'none',
+					    		duration: 2000
+					    	})
+					    }
+					    else{
+					    	uni.showToast({
+					    		title: "系统异常,请联系管理员",
+					    		icon: 'none',
+					    		duration: 2000
+					    	})
+					    }
 					 });
 				}else{
 					uni.showToast({

+ 14 - 5
pages/user/set_nickname.vue

@@ -72,11 +72,20 @@
 										}
 									})
 								.catch(res => {
-									uni.showToast({
-										title: res.errmsg,
-										icon: 'none',
-										duration: 2000
-									})
+									if(res.errmsg){
+										uni.showToast({
+											title: res.errmsg,
+											icon: 'none',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: "系统异常,请联系管理员",
+											icon: 'none',
+											duration: 2000
+										})
+									}
 								});
 
 						} else if (res.cancel) {

+ 14 - 5
pages/user/set_picture.vue

@@ -151,11 +151,20 @@
 										}
 									})
 								.catch(res => {
-									uni.showToast({
-										title: res.data.errmsg,
-										icon: 'none',
-										duration: 2000
-									})
+									if(res.data.errmsg){
+										uni.showToast({
+											title: res.data.errmsg,
+											icon: 'none',
+											duration: 2000
+										})
+									}
+									else{
+										uni.showToast({
+											title: "系统异常,请联系管理员",
+											icon: 'none',
+											duration: 2000
+										})
+									}
 								});
 						} else if (res.cancel) {
 							// console.log('用户点击取消');

+ 0 - 1
websocket_sdk.js

@@ -141,7 +141,6 @@ export default class Websocket {
                         uni.showModal({
                             title: '网络错误',
                             content: '请重新打开网络',
-                            showCancel: false,
                             success: function(res) {
                                 if (res.confirm) {
                                     console.log('用户点击确定')