gjy 2 年之前
父节点
当前提交
ca58d78714

+ 16 - 11
pages/goodSource/cargoOwnerSee.vue

@@ -65,16 +65,16 @@
 						<view class="gray fontsize-24">累计发运{{dataObj.countFa}}次</view>
 					</view>
 				</view>
-				<view class="right">
+				<view v-if='dataObj.haoPing>20' class="right">
 					<view>{{dataObj.haoPingLv}}%</view>
 					<view class="gray fontsize-24">好评率</view>
 				</view>
 			</view>
 				<view class="flex flex-space-between">
-					<view :class="btnData == 1 ? 'btn-active':'btn'" @click="btnChange(1)">全部({{totalPL}})</view>
-					<view :class="btnData == 2 ? 'btn-active':'btn'" @click="btnChange(2)">最新</view>
-					<view :class="btnData == 3 ? 'btn-active':'btn'" @click="btnChange(3)">好评({{dataObj.haoPing}})</view>
-					<view :class="btnData == 4 ? 'btn-active':'btn'" @click="btnChange(4)">差评({{dataObj.chaPing}})</view>
+					<view :class="btnData == '' ? 'btn-active':'btn'" @click="btnChange('')">全部({{totalPL}})</view>
+					<!-- <view :class="btnData == 2 ? 'btn-active':'btn'" @click="btnChange(2)">最新</view> -->
+					<view :class="btnData == 1 ? 'btn-active':'btn'" @click="btnChange(1)">好评({{dataObj.haoPing}})</view>
+					<view :class="btnData == 2 ? 'btn-active':'btn'" @click="btnChange(2)">差评({{dataObj.chaPing}})</view>
 				</view>
 				<view class="evaluate_css" v-for="(item,index) in list">
 					<view class="flex">
@@ -97,8 +97,8 @@
 								<view class="">
 									{{item.driverContent}}
 								</view>
-								<view>
-									<u--image v-for="(item,index) in item.imgList" :src="item" width='170rpx'
+								<view style='flex-wrap: wrap;' class='flex'>
+									<u--image style='margin:7rpx;border:1px solid #ccc;' v-for="(item,index) in item.imgList" :src="item" width='170rpx'
 										height='170rpx'>
 									</u--image>
 								</view>
@@ -138,10 +138,11 @@
 				],
 				id: "",
 				objectInfo: {},
+				haoType:'',
 				companyList:[],
 				commonId:'',
 				indexBtn: 1,
-				btnData: 1,
+				btnData: '',
 				totalPL:'0'
 			}
 		},
@@ -204,14 +205,16 @@
 				that.$request.baseRequest('get', '/evaluateInfo/selectEvaluateInfo', {
 						evaluatoredId: this.objectInfo.commonId,
 						flag: 2,
-						haoType:'',
-						searchType:'',
+						haoType:this.haoType,
+						searchType:2,
 						pageSize: page.size,
 						currentPage: page.num
 					}).then(res => {
 						if (page.num == 1) that.list = [];
 						that.list = that.list.concat(res.data.records); //追加新数据
-						that.totalPL = res.data.total
+						if(this.haoType==''){
+							that.totalPL = res.data.total
+						}
 						for (let i = 0; i < that.list.length; i++) {
 							if (that.list[i].driverUrl) {
 								that.list[i].imgList = that.list[i].driverUrl.split(',')
@@ -265,8 +268,10 @@
 				this.show = false
 			},
 			btnChange(num) {
+				this.haoType=num
 				this.btnData = num
 				this.getList()
+				this.upCallback({size:10,num:1})
 			}
 		}
 	}

+ 5 - 3
pages/goodSource/map.vue

@@ -16,7 +16,7 @@
 			}
 		},
 		created() {
-			this.getLngLat();
+			// this.getLngLat();
 		},
 		methods: {
 			back(){
@@ -25,9 +25,11 @@
 				})
 			},
 			srcHandler() {
+				// console.log(uni.getStorageSync('sendaddress'),uni.getStorageSync('unsendaddress'))
+				var sendaddress=uni.getStorageSync('sendaddress').sendLatitude+','+uni.getStorageSync('sendaddress').sendLongitude
 				var unsendaddress=uni.getStorageSync('unsendaddress').unsendLatitude+','+uni.getStorageSync('unsendaddress').unsendLongitude
-				console.log(this.lat,)
-				return `/hybrid/html/map.html?lat=${this.lat}&unsendaddress=${unsendaddress}&distance=${uni.getStorageSync('distance')}`
+				// console.log(this.lat,)
+				return `/hybrid/html/map.html?lat=${sendaddress}&unsendaddress=${unsendaddress}&distance=${uni.getStorageSync('distance')}`
 			},
 			getLngLat() {
 				uni.getLocation({

+ 4 - 0
pages/goodSource/shippingDetails.vue

@@ -218,6 +218,10 @@
 					});
 			},
 			toMap() {
+				uni.setStorageSync('sendaddress',{
+					sendLatitude:this.detailData.sendLatitude,
+					sendLongitude:this.detailData.sendLongitude,
+					})
 				uni.setStorageSync('unsendaddress',{
 					unsendLatitude:this.detailData.unsendLatitude,
 					unsendLongitude:this.detailData.unsendLongitude,

+ 75 - 3
pages/order/index.vue

@@ -118,8 +118,10 @@
 							</view> -->
 						</view>
 						<view class="row5 flex flex-end">
-							<view class="stop active" @click.stop="stop(good)"
+							<view class="stop active" @click.stop="toggle(good)"
 								v-if="good.orderStatus=='待货主确认'||good.orderStatus=='未装车'">终止</view>
+							<!-- <view class="stop active" @click.stop="stop(good)"
+								v-if="good.orderStatus=='待货主确认'||good.orderStatus=='未装车'">终止</view> -->
 							<!-- 		<view class="start normal" @click.stop="confirmLoading(good)"
 								v-if="good.orderStatus=='未装车'||good.orderStatus=='货主驳回装车信息'||good.orderStatus=='平台驳回装车信息'">
 								确认装车</view> -->
@@ -166,6 +168,7 @@
 		<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='true'
 			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick"
 			@cancel="cancelClick">
+			
 			<view style="margin: 0 auto;">
 				<u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' >
 				<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
@@ -178,7 +181,28 @@
 				v-if='isShowTerminationReason'>
 			</u--textarea>
 		</u-modal>
-
+					<!-- 普通弹窗 -->
+			<u-popup :show="show" mode="bottom" @close="close" @open="open">
+				<view class="">
+					<view ><u-icon @click="closepopup" class='close' name="close" size="20"></u-icon></view>
+					
+					<view style='fon-size:34rpx;margin-bottom:20px;text-align:center;font-weight: 600;'>确认终止订单</view>
+					<view style="margin: 0 auto;">
+			           	<u-radio-group iconPlacement="right" v-model="radiovalue1" placement="" v-if='isShowTerminationReason' >
+			           	<u-radio  :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
+			           		:label="item.name" :name="item.name" @change="radioChange" >
+			           	</u-radio>
+			           </u-radio-group>
+			           </view>
+					   <view style='border-top:10px solid #F2F4F7;position:absolute;left:0;height:0;width:100%;'></view>
+			           <view style='padding:40rpx 0 30rpx;'>终止原因描述</view>
+			           <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'
+			           	v-if='isShowTerminationReason'>
+			           </u--textarea>
+					   <view class='termination' :class="{'active':value2.length>0}" @click='confirmClick'>终止</view>
+				</view>
+			           
+			</u-popup>
 		<u-toast ref="uToast"></u-toast>
 	</view>
 </template>
@@ -192,13 +216,19 @@
 	import {
 		apiGoods
 	} from "@/api/mock.js"
+	import uniPopup from '@/components/uni-popup/uni-popup.vue'
 	export default {
+		components:{
+			uniPopup
+		},
 		mixins: [MescrollMixin], // 使用mixin
 		data() {
 			return {
 				confirmText: '确定',
 				showCancelButton: true,
 				showMenu: false,
+				show:false,
+				type:'bottom',
 				searchStyle: {
 					background: "#317AFE",
 					color: 'white',
@@ -333,6 +363,7 @@
 				num: 1
 			})
 		},
+		
 		onPageScroll(res) {
 			this.scrollTop = res.scrollTop
 			console.log("页面滚动了", res.scrollTop)
@@ -354,6 +385,25 @@
 
 		},
 		methods: {
+			closepopup(){
+				this.show=false
+			},
+			toggle(item){
+				if (item.orderStatusKey == 1) {
+					this.isShowTerminationReason = false
+				} else {
+					this.isShowTerminationReason = true
+				}
+				this.id = item.id
+				this.show = true
+			},
+			open() {
+			          // console.log('open');
+			},
+			close() {
+				this.show = false
+			          // console.log('close');
+			},
 			addevaluation(good) {
 				uni.$u.route('/pages/order/addEvaluation', {
 					val: JSON.stringify(good)
@@ -602,7 +652,10 @@
 		z-index: 999;
 		width: 100%;
 	}
-
+	/deep/.u-popup__content{
+		border-radius: 10px;
+		padding:20px;
+	}
 	.fixed {
 		.title {
 			background: white;
@@ -901,4 +954,23 @@
 		padding: 20rpx;
 		border-radius: 20rpx;
 	}
+	/deep/.u-radio{
+		margin:40rpx 0;
+	}
+	.close{
+		position:absolute;
+		right:20px;
+	}
+	.termination{
+		background:#F1F3F6;
+		color:#C5CAD4;
+		padding:10px;
+		border-radius:30px;
+		text-align: center;
+		margin-top:30rpx;
+	}
+	.termination.active{
+		background: #2772FB;
+		color: white;
+	}
 </style>

+ 13 - 0
pages/order/orderDetails.vue

@@ -113,6 +113,19 @@
 				<view class=" gray">距离</view>
 				<view class="">约{{dataObj.distance}}公里</view>
 			</view>
+			<view class='row-between'>
+				<view class=" gray">收货联系人</view>
+				
+				<view class="flex">{{dataObj.publishTaskInfo.sender?dataObj.publishTaskInfo.sender:''}}
+				<u-icon v-if='dataObj.publishTaskInfo.senderPhone' class="phone" name="phone-fill" color="#2772FB" size="20" @click="$helper.contactCustomerService(dataObj.publishTaskInfo.senderPhone)"></u-icon>
+				</view>
+			</view>
+			<view class='row-between'>
+				<view class=" gray">发货联系人</view>
+				<view class="flex">{{dataObj.publishTaskInfo.receiver?dataObj.publishTaskInfo.receiver:''}}
+				<u-icon v-if='dataObj.publishTaskInfo.receiverPhone' class="phone" name="phone-fill" color="#2772FB" size="20" @click="$helper.contactCustomerService(dataObj.publishTaskInfo.receiverPhone)"></u-icon>
+				</view>
+			</view>
 		<!-- 	<view class='row-between'>
 				<view class=" gray">运费</view>
 				<view class="">{{dataObj.freight}}{{dataObj.illingMethod==0?'元/吨':'元/车'}}</view>