gjy il y a 2 ans
Parent
commit
38b71a9ddf

+ 2 - 2
config/index.js

@@ -1,6 +1,6 @@
 const dev = {
-	baseUrlNew: 'https://apitest.eliangeyun.com',
-	// baseUrlNew: 'http://192.168.110.9:8099',
+	// baseUrlNew: 'https://apitest.eliangeyun.com',
+	baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'http://192.168.110.82:8999',
 	// baseUrlNew: 'http://192.168.1.119:8999',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 4 - 4
pages/goodSource/shippingDetails.vue

@@ -63,7 +63,7 @@
 			<view class="content2">
 				<view class="flex align-center">
 					<view class="left">货物</view>
-					<view class="flex">
+					<view class="right flex">
 						<view>{{detailData.goodsName}}</view>
 						<view style='margin: 0 10rpx;'>|</view>
 						<view v-if='detailData.weight'>{{detailData.weight}}吨</view>
@@ -283,7 +283,7 @@
 						return
 					}
 				let _obj = {
-					driverCommonId: that.firstAuthentication.commonId,
+					driverCommonId: res2.data.commonId,
 					commonId: item.commonId,
 					id:item.id,
 					compId:item.compId,
@@ -300,8 +300,8 @@
 					goodsName: item.goodsName,
 					distance: item.distance,
 					freightPrice: item.freightPrice,
-					driverName: that.firstAuthentication.driverName,
-					driverPhone: that.firstAuthentication.driverPhone,
+					driverName: res2.data.driverName,
+					driverPhone: res2.data.driverPhone,
 					cargoOwnerPhone: item.cargoOwnerPhone
 				}
 

+ 17 - 3
pages/mine/driverCertification.vue

@@ -992,6 +992,7 @@
 					})
 					return true
 				}
+				
 				if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -999,7 +1000,20 @@
 					})
 					return true
 				}
-
+				if (uni.$u.test.isEmpty(this.dataDetails.driverCall)) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "司机称呼不能为空!",
+					})
+					return true
+				}
+				if (!uni.$u.test.chinese(this.dataDetails.driverCall)) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "称呼为汉字!",
+					})
+					return true
+				}
 				if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -1032,14 +1046,14 @@
 				// 	}
 				// }
 
-				if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
+				if (uni.$u.test.isEmpty(this.dataDetails.cardAddressUrl)) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "身份证人像页不能为空!",
 					})
 					return true
 				}
-				if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
+				if (uni.$u.test.isEmpty(this.dataDetails.cardBackAddressUrl)) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "身份证国徽页不能为空!",

+ 2 - 1
pages/mine/driverCertificationNext.vue

@@ -299,7 +299,8 @@
 				this.dataDetails = JSON.parse(options.data)
 				this.dataDetails.driverType = 1
 			}
-			this.validityPeriod = this.$helper.makeValidityPeriod()
+			this.validityPeriod = this.$helper.makeValidityPeriod('kong',1980)
+			this.validityPeriod1 = this.$helper.makeValidityPeriod(0,1980)
 			console.log(this.validityPeriod)
 		},
 		methods: {

+ 59 - 5
pages/mine/editDriverCertification.vue

@@ -466,6 +466,7 @@
 					})
 					return true
 				}
+				
 				if (!uni.$u.test.chinese(this.dataDetails.driverName)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -487,7 +488,6 @@
 					})
 					return true
 				}
-
 				if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -502,16 +502,32 @@
 					})
 					return true
 				}
-
-
-				if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
+				// for (let i = 0; i < this.dataDetails.hyDriverCarInfoList.length; i++) {
+				// 	let _item = this.dataDetails.hyDriverCarInfoList[i]
+				// 	if (uni.$u.test.isEmpty(_item.carNumber)) {
+				// 		this.$refs.uToast.show({
+				// 			type: 'error',
+				// 			message: "车牌号不能为空!",
+				// 		})
+				// 		return true
+				// 	}
+				// 	if (uni.$u.test.isEmpty(_item.fileList1)) {
+				// 		this.$refs.uToast.show({
+				// 			type: 'error',
+				// 			message: "人车合影不能为空!",
+				// 		})
+				// 		return true
+				// 	}
+				// }
+			
+				if (uni.$u.test.isEmpty(this.dataDetails.cardAddressUrl)) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "身份证人像页不能为空!",
 					})
 					return true
 				}
-				if (uni.$u.test.isEmpty(this.dataDetails.driverPhone)) {
+				if (uni.$u.test.isEmpty(this.dataDetails.cardBackAddressUrl)) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "身份证国徽页不能为空!",
@@ -532,6 +548,44 @@
 					})
 					return true
 				}
+				for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
+					let _item = this.dataDetails.hyDriverPayeeInfoList[i]
+					if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
+						this.$refs.uToast.show({
+							type: 'error',
+							message: "银行卡不能为空!",
+						})
+						return true
+					}
+					if (uni.$u.test.isEmpty(_item.bankCard)) {
+						this.$refs.uToast.show({
+							type: 'error',
+							message: "银行卡号码不能为空!",
+						})
+						return true
+					}
+					if (uni.$u.test.isEmpty(_item.bankDeposit)) {
+						this.$refs.uToast.show({
+							type: 'error',
+							message: "开户行不能为空!",
+						})
+						return true
+					}
+					if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
+						this.$refs.uToast.show({
+							type: 'error',
+							message: "开户支行不能为空!",
+						})
+						return true
+					}
+					if (uni.$u.test.isEmpty(_item.payeeName)) {
+						this.$refs.uToast.show({
+							type: 'error',
+							message: "收款人姓名不能为空!",
+						})
+						return true
+					}
+				}
 				return false
 			}
 		},

+ 64 - 43
pages/mine/editDriverCertificationNext.vue

@@ -361,7 +361,6 @@
 				// 	data: this.consentStatus
 				// });
 			},
-			validate(data) {},
 			confirmValidityPeriod(e) {
 				console.log('confirm', e)
 				if(e.value[0]=='长期'){
@@ -587,24 +586,31 @@
 					})
 					return true
 				}
-				if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseBackPage)) {
+				if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseHomePage)) {
 					this.$refs.uToast.show({
 						type: 'error',
 						message: "驾驶证副页不能为空!",
 					})
 					return true
 				}
-				if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityStartDate)) {
+				if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityDate)) {
 					this.$refs.uToast.show({
 						type: 'error',
-						message: "驾驶证起始有效期不能为空!",
+						message: "驾驶证有效期不能为空!",
 					})
 					return true
 				}
-				if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityDate)) {
+				if (uni.$u.test.isEmpty(this.dataDetails.quasiDrivingVehicle)) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "准驾车型不能为空!",
+					})
+					return true
+				}
+				if (uni.$u.test.isEmpty(this.dataDetails.lssuingAuthority)) {
 					this.$refs.uToast.show({
 						type: 'error',
-						message: "驾驶证结束有效期不能为空!",
+						message: "驾驶证发证机关不能为空!",
 					})
 					return true
 				}
@@ -636,7 +642,45 @@
 				// 	})
 				// 	return true
 				// }
-
+				// if(this.radiovalue=='挂车司机'){
+				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
+				// 		this.$refs.uToast.show({
+				// 			type: 'error',
+				// 			message: "挂车行驶证主页不能为空!",
+				// 		})
+				// 		return true
+				// 	}
+				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
+				// 		this.$refs.uToast.show({
+				// 			type: 'error',
+				// 			message: "挂车行驶证副页不能为空!",
+				// 		})
+				// 		return true
+				// 	}
+				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
+				// 		this.$refs.uToast.show({
+				// 			type: 'error',
+				// 			message: "挂车行驶证档案编号不能为空!",
+				// 		})
+				// 		return true
+				// 	}
+				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
+				// 		this.$refs.uToast.show({
+				// 			type: 'error',
+				// 			message: "挂车行驶证有效期不能为空!",
+				// 		})
+				// 		return true
+				// 	}
+				// }
+				
+				// if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
+				// 	this.$refs.uToast.show({
+				// 		type: 'error',
+				// 		message: "行驶证副页不能为空!",
+				// 	})
+				// 	return true
+				// }
+				
 				if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificate)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -651,6 +695,7 @@
 					})
 					return true
 				}
+				
 				if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificateNumber)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -658,15 +703,14 @@
 					})
 					return true
 				}
-
-				// if (uni.$u.test.rangeLength(this.dataDetails.qualificationCertificateNumber,[12,19])) {
+				// if (!uni.$u.test.rangeLength(this.dataDetails.qualificationCertificateNumber,[12,19])) {
 				// 	this.$refs.uToast.show({
 				// 		type: 'error',
 				// 		message: "从业资格证号输入错误!",
 				// 	})
 				// 	return true
 				// }
-
+			
 				if (this.dataDetails.qualificationCertificateNumber.length!=19) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -681,6 +725,13 @@
 				// 	})
 				// 	return true
 				// }
+				// if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateNumber)) {
+				// 	this.$refs.uToast.show({
+				// 		type: 'error',
+				// 		message: "道路运输证号不能为空!",
+				// 	})
+				// 	return true
+				// }
 				// if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateValidityDate)) {
 				// 	this.$refs.uToast.show({
 				// 		type: 'error',
@@ -688,30 +739,7 @@
 				// 	})
 				// 	return true
 				// }
-
-
-				// if (this.radiovalue == '挂车司机') {
-				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
-				// 		this.$refs.uToast.show({
-				// 			type: 'error',
-				// 			message: "挂车行驶证主页不能为空!",
-				// 		})
-				// 		return true
-				// 	}
-				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
-				// 		this.$refs.uToast.show({
-				// 			type: 'error',
-				// 			message: "挂车行驶证副页不能为空!",
-				// 		})
-				// 		return true
-				// 	}
-				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
-				// 		this.$refs.uToast.show({
-				// 			type: 'error',
-				// 			message: "挂车行驶证有效期不能为空!",
-				// 		})
-				// 		return true
-				// 	}
+				// if(this.radiovalue=='挂车司机'){
 				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
 				// 		this.$refs.uToast.show({
 				// 			type: 'error',
@@ -719,13 +747,6 @@
 				// 		})
 				// 		return true
 				// 	}
-				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
-				// 		this.$refs.uToast.show({
-				// 			type: 'error',
-				// 			message: "挂车道路运输证有效期不能为空!",
-				// 		})
-				// 		return true
-				// 	}
 				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
 				// 		this.$refs.uToast.show({
 				// 			type: 'error',
@@ -733,10 +754,10 @@
 				// 		})
 				// 		return true
 				// 	}
-				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
+				// 	if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
 				// 		this.$refs.uToast.show({
 				// 			type: 'error',
-				// 			message: "挂车行驶证档案编号不能为空!",
+				// 			message: "挂车道路运输证有效期不能为空!",
 				// 		})
 				// 		return true
 				// 	}

+ 1 - 1
pages/news/index.vue

@@ -28,7 +28,7 @@
 						</view>
 						<view class="row2 flex flex-space-between align-center">
 							<view style='white-space: pre-wrap;' class="text point1">
-								{{item.newsContent}}
+								{{item.newsTitle}}
 							</view>
 							<view class="red-point" v-if="item.newsFlag==0"></view>
 						</view>