gjy 2 лет назад
Родитель
Сommit
3a075f5f36

+ 21 - 1
pages/goodSource/index.vue

@@ -451,11 +451,31 @@
 				this.$request.baseRequest('get', '/driverInfo/firstAuthentication', {
 					driverPhone: this.userInfo.phone,
 				}).then(res2 => {
+					if(res2.data.authenticationStatus=='已过期'){
+						that.$refs.uToast.show({
+							type: 'error',
+							message: '证件已过期,请上传新证件!',
+						})
+						return
+					}else if(res2.data.authenticationStatus=='未认证'||res2.data.authenticationStatus=='已驳回'){
+						that.$refs.uToast.show({
+							type: 'error',
+							message: '请先完成司机认证!',
+						})
+						return
+					}
+					else if(res2.data.authenticationStatus=='审核中'){
+						that.$refs.uToast.show({
+							type: 'error',
+							message: '司机审核中!',
+						})
+						return
+					}
 					let _obj = {
 						driverCommonId: res2.data.commonId,
 						commonId: item.commonId,
 						compId:item.compId,
-						cargoOwnerName: item.cargoOwnerName,
+						cargoOwnerName: item.cargoOwnerReallyName,
 						cargoOwner: item.cargoOwner,
 						sendPrivate: item.sendPrivate,
 						sendCity: item.sendCity,

+ 27 - 3
pages/goodSource/shippingDetails.vue

@@ -67,6 +67,7 @@
 						<view>{{detailData.goodsName}}</view>
 						<view style='margin: 0 10rpx;'>|</view>
 						<view v-if='detailData.weight'>{{detailData.weight}}吨</view>
+						<view v-else>无</view>
 					</view>
 
 				</view>
@@ -261,12 +262,32 @@
 				this.$request.baseRequest('get', '/driverInfo/firstAuthentication', {
 					driverPhone: this.userInfo.phone,
 				}).then(res2 => {
+					if(res2.data.authenticationStatus=='已过期'){
+						that.$refs.uToast.show({
+							type: 'error',
+							message: '证件已过期,请上传新证件!',
+						})
+						return
+					}else if(res2.data.authenticationStatus=='未认证'||res2.data.authenticationStatus=='已驳回'){
+						that.$refs.uToast.show({
+							type: 'error',
+							message: '请先完成司机认证!',
+						})
+						return
+					}
+					else if(res2.data.authenticationStatus=='审核中'){
+						that.$refs.uToast.show({
+							type: 'error',
+							message: '司机审核中!',
+						})
+						return
+					}
 				let _obj = {
 					driverCommonId: that.firstAuthentication.commonId,
 					commonId: item.commonId,
 					id:item.id,
 					compId:item.compId,
-					cargoOwnerName: item.cargoOwnerName,
+					cargoOwnerName: item.cargoOwnerReallyName,
 					cargoOwner: item.cargoOwner,
 					sendPrivate: item.sendPrivate,
 					sendCity: item.sendCity,
@@ -296,9 +317,12 @@
 								}
 							})
 
+						}else{
+							that.$refs.uToast.show({
+								type: 'error',
+								message: res.message,
+							})
 						}
-
-
 					})
 					.catch(res => {
 						uni.$u.toast(res.message);

+ 15 - 13
pages/mine/driverCertification.vue

@@ -617,7 +617,7 @@
 				if (uni.$u.test.isEmpty(this.bankType[this.index])) {
 					this.$refs.uToast.show({
 						type: 'error',
-						message: "请先上传银行卡!",
+						message: "请选择手动输入!",
 					})
 					return true
 				}
@@ -821,18 +821,20 @@
 														bankImg: result,
 													}).then(res => {
 													_this.dataDetails.hyDriverPayeeInfoList[_this.index].payeeAddressUrl = result
-													if (res.data.bankNo) {
-														_this.dataDetails.hyDriverPayeeInfoList[_this
-															.index].bankCard = res.data.bankNo
-													}
-													if (res.data.bankName) {
-														_this.dataDetails.hyDriverPayeeInfoList[_this
-															.index].bankDeposit = res.data.bankName
-													}
-													// 开户支行LIst
-													if (res.data.bankNameZhihang) {
-														_this.bankType[_this.index].push(res.data
-															.bankNameZhihang)
+													if(res.data){
+														if (res.data.bankNo) {
+															_this.dataDetails.hyDriverPayeeInfoList[_this
+																.index].bankCard = res.data.bankNo
+														}
+														if (res.data.bankName) {
+															_this.dataDetails.hyDriverPayeeInfoList[_this
+																.index].bankDeposit = res.data.bankName
+														}
+														// 开户支行LIst
+														if (res.data.bankNameZhihang) {
+															_this.bankType[_this.index].push(res.data
+																.bankNameZhihang)
+														}
 													}
 													_this.$forceUpdate()
 												})

+ 1 - 1
pages/mine/manageVehicles/addVehicle.vue

@@ -352,7 +352,7 @@
 					</u--input>
 				</view>
 				<view class="flex row">
-					<view class="left-text">挂车核定载质量(千克)</view>
+					<view style='width:180px' class="left-text">挂车核定载质量(千克)</view>
 					<u--input type='number' placeholder="输入核定载质量" inputAlign='right' border="none"
 						v-model="dataDetails.guaCarApprovedWeight">
 					</u--input>

+ 11 - 10
pages/mine/manageVehicles/editVehicle.vue

@@ -255,7 +255,7 @@
 			</view>
 			<view class="flex row noborder input-ckg">
 				<view class="input-positon">
-					<u--input class="input" placeholder="长" inputAlign='left' border="none"
+					<u--input class="input" type='number' placeholder="长" inputAlign='left' border="none"
 						v-model="dataDetails.carLong">
 					</u--input>
 					<view class="position-right">
@@ -264,7 +264,7 @@
 				</view>
 				<view class="star">*</view>
 				<view class="input-positon">
-					<u--input placeholder="宽" inputAlign='left' border="none" v-model="dataDetails.carWidth">
+					<u--input placeholder="宽" type='number' inputAlign='left' border="none" v-model="dataDetails.carWidth">
 					</u--input>
 					<view class="position-right">
 						mm
@@ -272,7 +272,7 @@
 				</view>
 				<view class="star">*</view>
 				<view class="input-positon">
-					<u--input placeholder="高" inputAlign='left' border="none" v-model="dataDetails.carHeight">
+					<u--input placeholder="高" type='number' inputAlign='left' border="none" v-model="dataDetails.carHeight">
 					</u--input>
 					<view class="position-right">
 						mm
@@ -294,7 +294,7 @@
 				<view class="flex row">
 					<view class="left left-text">挂车车牌号</view>
 					<view class="right flex">
-						<input class="car-uumber" maxlength="6" v-model='dataDetails.guaCarNumber'
+						<input class="car-uumber" maxlength="6" v-model='dataDetails.guaCarNumber1'
 							@click.stop="handleShowKeyboard1(index)" :disabled="true" placeholder="输入挂车牌号"
 							name="input"></input>
@@ -313,7 +313,7 @@
 					</u--input>
 				</view>
 				<view class="flex row">
-					<view class="left-text">挂车核定载质量(千克)</view>
+					<view style='width:180px' class="left-text">挂车核定载质量(千克)</view>
 					<u--input placeholder="输入核定载质量" inputAlign='right' border="none"
 						v-model="dataDetails.guaCarApprovedWeight">
 					</u--input>
@@ -323,7 +323,7 @@
 				</view>
 				<view class="flex row noborder input-ckg">
 					<view class="input-positon">
-						<u--input class="input" placeholder="长" inputAlign='left' border="none"
+						<u--input class="input" type='number' placeholder="长" inputAlign='left' border="none"
 							v-model="dataDetails.guaCarLong">
 						</u--input>
 						<view class="position-right">
@@ -332,7 +332,7 @@
 					</view>
 					<view class="star">*</view>
 					<view class="input-positon">
-						<u--input placeholder="宽" inputAlign='left' border="none" v-model="dataDetails.guaCarWidth">
+						<u--input placeholder="宽" type='number' inputAlign='left' border="none" v-model="dataDetails.guaCarWidth">
 						</u--input>
 						<view class="position-right">
 							mm
@@ -340,7 +340,7 @@
 					</view>
 					<view class="star">*</view>
 					<view class="input-positon">
-						<u--input placeholder="高" inputAlign='left' border="none" v-model="dataDetails.guaCarHeight">
+						<u--input placeholder="高" type='number' inputAlign='left' border="none" v-model="dataDetails.guaCarHeight">
 						</u--input>
 						<view class="position-right">
 							mm
@@ -443,6 +443,7 @@
 			console.log(options)
 			if(options.guaCarNumber){
 				options.guaCarNumber=options.guaCarNumber.substring(0,6);
+				options.guaCarNumber1=options.guaCarNumber.substring(0,6);
 			}
 			this.dataDetails = options
 			this.sign = options.carCategory
@@ -1331,8 +1332,8 @@
 			submit() {
 					if (this.validate()) return
 					if(this.dataDetails.carCategory == "挂车"){
-						if(this.dataDetails.guaCarNumber.indexOf('挂')==-1){
-							this.dataDetails.guaCarNumber=this.dataDetails.guaCarNumber+'挂'
+						if(this.dataDetails.guaCarNumber1.indexOf('挂')==-1){
+							this.dataDetails.guaCarNumber=this.dataDetails.guaCarNumber1+'挂'
 						}
 					}
 				this.$request.baseRequest('post', '/driverCarInfo/api/editInfo', this.dataDetails).then(res => {

+ 3 - 1
pages/mine/settings/editPassword.vue

@@ -68,6 +68,9 @@
 		},
 		onLoad(options) {
 			this.phone = options.phone //个人首页修改密码
+			if(this.phone.length==11){
+				this.status=true
+			}
 			// this.isPhone = options.phone //个人首页修改密码成功后自动退出重新登录
 			// if( wx.getUserProfile ){  
 			//     console.log('--check getUserProfile--OK');  
@@ -94,7 +97,6 @@
 				}
 			},
 			getcode(e){
-				console.log(this.phone)
 				if(this.phone.length!=11){
 					uni.showToast({
 						title: '请输入正确的手机号',

+ 1 - 1
pages/news/index.vue

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

+ 2 - 1
pages/order/addEvaluation.vue

@@ -112,7 +112,7 @@
 		
 		onNavigationBarButtonTap() {
 			console.log(12112)
-			uni.$u.debounce(this.submit, 500)
+			uni.$u.throttle(this.submit(), 5000)
 		},
 		onLoad(options) {
 			that = this
@@ -177,6 +177,7 @@
 			clickStar(index) {
 				console.log(index)
 				this.selectStar = index
+				this.rate[index].value1=this.starIndex
 				if (index == 0 || index == 1) {
 					if (this.starIndex == '1') {
 						this.rate[index].level = '极差'

+ 86 - 23
pages/order/confirmLoading.vue

@@ -84,7 +84,7 @@
 			<view class='s-flex'>
 				<view class="" style="margin:20rpx 0;">上传装车照片</view>
 				<u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
-					name="1" multiple='true' :maxCount="3"></u-upload>
+					name="1" :multiple='true' :maxCount="3"></u-upload>
 			</view>
 			<!-- 			<view class='s-flex'>
 				<view class="">上传装车磅单</view>
@@ -218,7 +218,9 @@
 								console.log(this.fileList1)
 								this.detailData.carNo = res.data.carNo
 								this.detailData.loadingDate = res.data.loadingDate
-								this.detailData.loadingDate1=res.data.loadingDate.split(' ')[0]
+								if(res.data.loadingDate){
+									this.detailData.loadingDate1=res.data.loadingDate.split(' ')[0]
+								}
 								this.detailData.weight = res.data.loadingWeight
 								this.detailData.freight = res.data.estimatedFreight
 							}
@@ -270,7 +272,68 @@
 				this.carNumber = e.value
 				this.detailData.hyCarrierInfo.carNo = e.value //键盘输入值
 			},
+			checkOpenGPSServiceByAndroidIOS() {
+			    let system = uni.getSystemInfoSync(); // 获取系统信息
+			    if (system.platform === 'android') { // 判断平台
+			        var context = plus.android.importClass("android.content.Context");
+			        var locationManager = plus.android.importClass("android.location.LocationManager");
+			        var main = plus.android.runtimeMainActivity();
+			        var mainSvr = main.getSystemService(context.LOCATION_SERVICE);
+					console.log(mainSvr.isProviderEnabled(locationManager.GPS_PROVIDER))
+			        if (!mainSvr.isProviderEnabled(locationManager.GPS_PROVIDER)) {
+			            uni.showModal({
+			                title: '提示',
+			                content: '请打开定位服务功能',
+			                // showCancel: false, // 不显示取消按钮
+			                success(res) {
+								if(res.confirm){
+									if (!mainSvr.isProviderEnabled(locationManager.GPS_PROVIDER)) {
+										
+										var Intent = plus.android.importClass('android.content.Intent');
+										var Settings = plus.android.importClass('android.provider.Settings');
+										var intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
+										main.startActivity(intent); // 打开系统设置GPS服务页面
+									} 
+								}
+			                }
+			            });
+			        }
+			    } else if (system.platform === 'ios') {
+			        // console.log("苹果");
+			        var cllocationManger = plus.ios.import("CLLocationManager");
+			        var enable = cllocationManger.locationServicesEnabled();
+			        var status = cllocationManger.authorizationStatus();
+			        plus.ios.deleteObject(cllocationManger);
+			        if (enable && status != 2) {
+			            console.log("手机系统的定位已经打开");
+			        } else {
+			            console.log("手机系统的定位没有打开");
+			            uni.showModal({
+			                title: '提示',
+			                content: '请前往设置-隐私-定位服务打开定位服务功能',
+			                // showCancel: false, // 不显示取消按钮
+			                success(res) {
+								if(res.confirm){
+									var UIApplication = plus.ios.import("UIApplication");
+									var application2 = UIApplication.sharedApplication();
+									var NSURL2 = plus.ios.import("NSURL");
+									// var setting2 = NSURL2.URLWithString("prefs:root=LOCATION_SERVICES");
+									// var setting2 = NSURL2.URLWithString("App-Prefs:root=LOCATION_SERVICES");
+									// var setting2 = NSURL2.URLWithString("app-settings");
+									var setting2 = NSURL2.URLWithString("App-Prefs:root=Privacy&path=LOCATION");
+									// var setting2 = NSURL2.URLWithString("App-Prefs:root=Privacy&path=LOCATION_SERVICES");
+									application2.openURL(setting2);
+									plus.ios.deleteObject(setting2);
+									plus.ios.deleteObject(NSURL2);
+									plus.ios.deleteObject(application2);
+								}
+			                }
+			            });
+			        }
+			    }
+			},
 			getLngLat() {
+				this.checkOpenGPSServiceByAndroidIOS()
 				var that=this
 				uni.showLoading({
 					title: '获取定位中',
@@ -301,7 +364,6 @@
 				// 		});
 				// 	}
 				// );
-				console.log(111111)
 				// console.log(that.detailData,111111)
 				uni.getLocation({
 					type: 'gcj02',
@@ -379,6 +441,7 @@
 			// 删除图片
 			deletePic(event) {
 				this[`fileList${event.name}`].splice(event.index, 1)
+				this.imgList.splice(event.index, 1)
 			},
 			// 新增图片
 			async afterRead(event) {
@@ -471,20 +534,20 @@
 					})
 					return true
 				}
-				// if (uni.$u.test.isEmpty(this.detailData.carrierInfo.sendCity)) {
-				// 	this.$refs.uToast.show({
-				// 		type: 'error',
-				// 		message: "定位不能为空!",
-				// 	})
-				// 	return true
-				// }
-				// if (uni.$u.test.isEmpty(this.detailData.carrierInfo.sendArea)) {
-				// 	this.$refs.uToast.show({
-				// 		type: 'error',
-				// 		message: "定位不能为空!",
-				// 	})
-				// 	return true
-				// }
+				if (uni.$u.test.isEmpty(this.detailData.loadingCity)) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "定位不能为空!",
+					})
+					return true
+				}
+				if (uni.$u.test.isEmpty(this.detailData.loadingArea)) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "定位不能为空!",
+					})
+					return true
+				}
 			
 				if(this.imgList.length == 0){
 					this.$refs.uToast.show({
@@ -531,7 +594,7 @@
 					id:this.detailData.hyCarrierInfo.id
 				}
 				
-				console.log("查看id--------",this.detailData.hyCarrierInfo.id)
+				// console.log("查看id--------",this.detailData.hyCarrierInfo.id)
 				this.$request.baseRequest('post', '/carrierInfo/loadingAdd', data).then(res => {
 						if (res.code == 200) {
 							uni.hideLoading()
@@ -558,8 +621,8 @@
 									// }
 								},
 								res => {
-									console.log('====确认装车开启连续定位====');
-									console.log(res)
+									// console.log('====确认装车开启连续定位====');
+									// console.log(res)
 									let _data = {
 										orderId: that.id,
 										longitude: res.longitude,
@@ -570,9 +633,9 @@
 									}
 									this.$helper.gjList.push(_data)
 									uni.setStorageSync('mapGJ', this.$helper.gjList);
-									console.log('this.$helper.gjList')
-									console.log(this.$helper.gjList)
-									console.log("条数", uni.getStorageSync('mapGJ').length)
+									// console.log('this.$helper.gjList')
+									// console.log(this.$helper.gjList)
+									// console.log("条数", uni.getStorageSync('mapGJ').length)
 									if (uni.getStorageSync('mapGJ').length > 100) {
 										console.log(JSON.stringify(uni.getStorageSync('mapGJ')) )
 										this.$request.baseRequest('post', '/hyOrderTravelPath/api/addInfo',  {

+ 1 - 0
pages/order/index.vue

@@ -396,6 +396,7 @@
 		},
 		methods: {
 			moveHandle(){
+				// this.closeMenu()
 				// console.log(1111)
 			},
 			closepopup(){

+ 2 - 2
pages/order/orderDetails.vue

@@ -21,7 +21,7 @@
 			     <!-- <u-button class="btn" text="签订合同" @click="signContract" v-if="dataObj.cargoOwnerStatus=='未装车'&&dataObj.driverContract!='1'"></u-button> -->
 				<u-button class="btn" text="终止" @click="stop"  v-if="dataObj.orderStatus=='待货主确认'||dataObj.orderStatus=='未装车'"></u-button>
 				<!-- <u-button class="btn" text="联系客服"  @click="$helper.contactCustomerService()"></u-button> -->
-				<u-button class="btn" text="确认装车" @click="confirmLoading" ></u-button>
+				<u-button v-if="dataObj.orderStatus=='未装车'" class="btn" text="确认装车" @click="confirmLoading" ></u-button>
 				<!-- <u-button class="btn" text="确认装车" @click="confirmLoading"></u-button> -->
 				<u-button class="btn" text="修改装车信息"  @click="confirmLoading" v-if="dataObj.orderStatus=='货主驳回装车信息'||dataObj.orderStatus=='平台驳回装车信息'"></u-button>
 				<u-button class="btn" text="确认卸车" @click="confirmUnLoading" v-if="dataObj.orderStatus=='运输中'"></u-button>
@@ -192,7 +192,7 @@
 			<view class="level2-title">运费信息(单位:元)</view>
 			<view class='row-between'>
 				<view class=" gray">预付运费</view>
-				<view class="">{{freightInfo.prepaidFreight}}</view>
+				<view class="">{{freightInfo.prepaidFreightDate?freightInfo.prepaidFreight:'未支付'}}</view>
 			</view>
 			<view class='flex flex-end'>
 				<view class="">{{freightInfo.prepaidFreightDate}}</view>

+ 14 - 7
pages/order/signContract.vue

@@ -136,7 +136,7 @@
 			</view>
 			<view class='row-between'>
 				<view style='width:200px;' class="gray">收款账户</view>
-				<view style='word-wrap:break-word;word-break:normal;' class="" @click="collection">
+				<view style='word-wrap:break-word;word-break:normal;text-align:right;' class="" @click="collection">
 					{{dataDetails.bankDeposit?dataDetails.bankDeposit:"请选择收款账户"}}
 					(尾号{{dataDetails.bankCard?dataDetails.bankCard.substring(dataDetails.bankCard.length - 4):""}})
 				</view>
@@ -287,15 +287,13 @@
 
 			this.carList = []
 			that = this
-			this.dataDetails = JSON.parse(options.obj)
-			if(this.dataDetails.billingMethod==1){
-				this.dataDetails.freight1=this.dataDetails.freight
-			}else{
-				this.dataDetails.freight1=''
-			}
+			// this.dataDetails = JSON.parse(options.obj)
+			// console.log(this.dataDetails.billingMethod==1,this.dataDetails.freight)
+			
 			// console.log(this.dataDetails.carNo,this.dataDetails.carrierInfo)
 			// this.dataDetails.advanceFreightService = '平台垫付运费'
 			this.dataDetails = JSON.parse(decodeURIComponent(options.obj))
+			console.log(this.dataDetails)
 			if (this.dataDetails.hyCarrierInfo) {
 				this.dataDetails.weight = this.dataDetails.hyCarrierInfo.loadingWeight
 			}
@@ -303,6 +301,15 @@
 				this.proportion = this.dataDetails.driverAdvancePayment >= this.dataDetails.ownerAdvancePayment ? this
 					.dataDetails.ownerAdvancePayment : this.dataDetails.driverAdvancePayment
 			}
+			if(this.dataDetails.billingMethod==1){
+				this.dataDetails.freight1=this.dataDetails.freight
+			}else{
+				if(this.dataDetails.driverContract!=1){
+					this.dataDetails.freight1=''
+				}else{
+					this.dataDetails.freight1=this.dataDetails.freight
+				}
+			}
 			// console.log(this.dataDetails)
 			this.dataDetails.carrierInfo = {}
 			this.ctx = uni.createCanvasContext("handWriting");