|
@@ -4,10 +4,12 @@
|
|
|
<view class="fixed1"></view>
|
|
|
<view class="fixed">
|
|
|
<view class='title flex flex-center'>
|
|
|
- <image class="back" src="../../static/images/return.png" @click="back" mode="" style="width: 40rpx; height: 40rpx;"></image>
|
|
|
+ <image class="back" src="../../static/images/return.png" @click="back" mode=""
|
|
|
+ style="width: 40rpx; height: 40rpx;"></image>
|
|
|
<!-- <u-icon class="back" name="arrow-left" color="" size="20" @click="back"></u-icon> -->
|
|
|
<view class="nav-title">订单详情</view>
|
|
|
- <image class="search" style='width:18px;height:18px;' src="../../static/images/kefu.png" @click="$helper.contactCustomerService()" mode=""></image>
|
|
|
+ <image class="search" style='width:18px;height:18px;' src="../../static/images/kefu.png"
|
|
|
+ @click="$helper.contactCustomerService()" mode=""></image>
|
|
|
<!-- <u-icon class="search" name="server-fill" color="" size="28" @click="$helper.contactCustomerService()"> -->
|
|
|
</u-icon>
|
|
|
</view>
|
|
@@ -41,7 +43,8 @@
|
|
|
</u-button>
|
|
|
<u-button class="btn" text="确认卸车" @click="confirmUnLoading(4)" v-if="dataObj.cargoOwnerStatus=='待收货'">
|
|
|
</u-button>
|
|
|
- <u-button class="btn" text="确认运费" @click="freightOk()" v-if="dataObj.cargoOwnerStatus=='司机驳回运费信息'"></u-button>
|
|
|
+ <u-button class="btn" text="确认运费" @click="freightOk()" v-if="dataObj.cargoOwnerStatus=='司机驳回运费信息'">
|
|
|
+ </u-button>
|
|
|
<!-- <u-button class="btn" text="确认卸车" @click="confirmLoading(4)" v-if="dataObj.cargoOwnerStatus=='待收货'">
|
|
|
</u-button> -->
|
|
|
<u-button class="btn" text="付款" @click="closed"
|
|
@@ -64,7 +67,8 @@
|
|
|
</view>
|
|
|
<view class="right flex s-row align-center phone">
|
|
|
<view class="bgc">
|
|
|
- <image class="phone" style='width:24px;height:24px;' src="../../static/images/dianhua.png" @click="toPhone" mode=""></image>
|
|
|
+ <image class="phone" style='width:24px;height:24px;' src="../../static/images/dianhua.png"
|
|
|
+ @click="toPhone" mode=""></image>
|
|
|
<!-- <u-icon class="phone" name="phone-fill" color="#2772FB" size="20" @click="toPhone"></u-icon> -->
|
|
|
</view>
|
|
|
|
|
@@ -154,7 +158,9 @@
|
|
|
<view class="level2-title">承运信息</view>
|
|
|
<view class='row-between'>
|
|
|
<view class="row-left-text gray">合同编号</view>
|
|
|
- <view class="row-right-text">{{dataObj.publishTaskInfo.wtContractNo?dataObj.publishTaskInfo.wtContractNo:'未签订'}}</view>
|
|
|
+ <view class="row-right-text">
|
|
|
+ {{dataObj.publishTaskInfo.wtContractNo?dataObj.publishTaskInfo.wtContractNo:'未签订'}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class='row-between'>
|
|
|
<view class="row-left-text gray">车牌号</view>
|
|
@@ -164,7 +170,7 @@
|
|
|
<view class="row-left-text gray">预计运费</view>
|
|
|
<view class="row-right-text">{{dataObj.hyCarrierInfo.estimatedFreight}}元</view>
|
|
|
</view>
|
|
|
- <view class='row-between' >
|
|
|
+ <view class='row-between'>
|
|
|
<view class="row-left-text gray">预付款</view>
|
|
|
<view class="row-right-text">{{dataObj.advanceCharge}}元</view>
|
|
|
</view>
|
|
@@ -199,12 +205,17 @@
|
|
|
v-for="(item,index) in zcImgList" @click='ylImg(zcImgList)'></u--image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='dataObj.orderStatus=="待货主确认卸车"||dataObj.orderStatus=="待平台确认卸车"||dataObj.orderStatus=="货主驳回装车信息"||dataObj.orderStatus=="平台驳回装车信息"||dataObj.orderStatus=="待确认运费"||dataObj.cargoOwnerStatus=="已完结"'>
|
|
|
+ <view
|
|
|
+ v-if='dataObj.orderStatus=="待货主确认卸车"||dataObj.orderStatus=="待平台确认卸车"||dataObj.orderStatus=="货主驳回装车信息"||dataObj.orderStatus=="平台驳回装车信息"||dataObj.orderStatus=="待确认运费"||dataObj.cargoOwnerStatus=="已完结"'>
|
|
|
<view class='row-between'>
|
|
|
<view class="row-left-text gray">合计应付运费</view>
|
|
|
<view class="row-right-text">
|
|
|
- <u--input v-if='dataObj.orderStatus=="待货主确认卸车"' placeholder="请输入合计应付运费" border="none" inputAlign="right" clearable v-model="totalFreight"></u--input>
|
|
|
- <view v-if='dataObj.orderStatus=="待平台确认卸车"||dataObj.orderStatus=="货主驳回装车信息"||dataObj.orderStatus=="平台驳回装车信息"||dataObj.orderStatus=="待确认运费"||dataObj.cargoOwnerStatus=="已完结"'>{{totalFreight}}</view>
|
|
|
+ <u--input v-if='dataObj.orderStatus=="待货主确认卸车"' placeholder="请输入合计应付运费" border="none"
|
|
|
+ inputAlign="right" clearable v-model="totalFreight"></u--input>
|
|
|
+ <view
|
|
|
+ v-if='dataObj.orderStatus=="待平台确认卸车"||dataObj.orderStatus=="货主驳回装车信息"||dataObj.orderStatus=="平台驳回装车信息"||dataObj.orderStatus=="待确认运费"||dataObj.cargoOwnerStatus=="已完结"'>
|
|
|
+ {{totalFreight}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='row-between'>
|
|
@@ -221,7 +232,8 @@
|
|
|
<view class='row-between'>
|
|
|
<view class="row-left-text gray">回单照片</view>
|
|
|
<view class="flex">
|
|
|
- <u--image @click='ylImg(hdImgList)' :showLoading="true" :src='item' width="40px" height="40px" v-for="(item,index) in hdImgList"></u--image>
|
|
|
+ <u--image @click='ylImg(hdImgList)' :showLoading="true" :src='item' width="40px" height="40px"
|
|
|
+ v-for="(item,index) in hdImgList"></u--image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -247,8 +259,10 @@
|
|
|
</view>
|
|
|
<view style='flex-wrap: wrap;' class='flex mx row-left-text'>
|
|
|
<!-- 明细:预付{{dataObj.advanceCharge}}元,服务费{{dataObj.freightInfo.driverServiceCharge}}元,尾款{{dataObj.freightInfo.ownerFreightBalance}}元,合计{{dataObj.freightInfo.totalPayment}}元。 -->
|
|
|
- 明细:预付{{dataObj.advanceCharge}}元,工本费{{dataObj.freightInfo.ownerServiceCharge}}元,<text v-if="dataObj.freightInfo.ownerFreightBalance">尾款{{dataObj.freightInfo.ownerFreightBalance}}元,</text>合计{{dataObj.freightInfo.totalPayment}}元。</view>
|
|
|
+ 明细:预付{{dataObj.advanceCharge}}元,工本费{{dataObj.freightInfo.ownerServiceCharge}}元,<text
|
|
|
+ v-if="dataObj.freightInfo.ownerFreightBalance">尾款{{dataObj.freightInfo.ownerFreightBalance}}元,</text>合计{{dataObj.freightInfo.totalPayment}}元。
|
|
|
</view>
|
|
|
+ </view>
|
|
|
<!-- v-if="status3" -->
|
|
|
<view class="content4" v-if="status3">
|
|
|
<view class="level2-title gray">还款信息</view>
|
|
@@ -277,8 +291,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :confirmText='confirmText'
|
|
|
- :closeOnClickOverlay='true' :showCancelButton='true' @confirm="$u.throttle(confirmClick(), 1000)" @close="cancelClick"
|
|
|
- @cancel="cancelClick" class="modal">
|
|
|
+ :closeOnClickOverlay='true' :showCancelButton='true' @confirm="$u.throttle(confirmClick(), 1000)"
|
|
|
+ @close="cancelClick" @cancel="cancelClick" class="modal">
|
|
|
<u-radio-group v-model="radiovalue1" placement="" v-if='isShowTerminationReason' class='row'>
|
|
|
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
|
|
|
:label="item.name" :name="item.name" @change="radioChange">
|
|
@@ -290,24 +304,26 @@
|
|
|
</u-modal>
|
|
|
<u-popup :show="show" mode="bottom" @close="close" @open="open">
|
|
|
<view class="u-popup-wrap">
|
|
|
- <view >
|
|
|
- <image style='width:12px;height:12px;' @click='closepopup' class='close' src="../../static/images/order/guanbi@3x.png" mode=""></image>
|
|
|
+ <view>
|
|
|
+ <image style='width:12px;height:12px;' @click='closepopup' class='close'
|
|
|
+ src="../../static/images/order/guanbi@3x.png" mode=""></image>
|
|
|
<!-- <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="" >
|
|
|
- <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'>
|
|
|
- </u--textarea>
|
|
|
- <view class='termination' :class="{'active':value2.length>0}" @click='$u.throttle(termination(), 1000)'>终止</view>
|
|
|
+ <u-radio-group iconPlacement="right" v-model="radiovalue1" placement="">
|
|
|
+ <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'>
|
|
|
+ </u--textarea>
|
|
|
+ <view class='termination' :class="{'active':value2.length>0}" @click='$u.throttle(termination(), 1000)'>
|
|
|
+ 终止</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
@@ -324,11 +340,11 @@
|
|
|
</view>
|
|
|
|
|
|
</u-popup> -->
|
|
|
- <u-modal :show="moneyShow" title="合计运费" showCancelButton @confirm="moneyClick" @close="moneyclose"
|
|
|
+ <u-modal :show="moneyShow" title="合计运费" showCancelButton @confirm="moneyClick" @close="moneyclose"
|
|
|
@cancel="moneyclose">
|
|
|
- <view class="slot-content">
|
|
|
- <u--input v-model="totalFreight" type="number" placeholder="合计应付运费(含预付款)"></u--input>
|
|
|
- </view>
|
|
|
+ <view class="slot-content">
|
|
|
+ <u--input v-model="totalFreight" type="number" placeholder="合计应付运费(含预付款)"></u--input>
|
|
|
+ </view>
|
|
|
</u-modal>
|
|
|
<!-- <view v-if="lookAlert" class="look-contract" @click="lookAlert==false">
|
|
|
<u-button class="btn" text="查看合同" @click="lookContract"></u-button>
|
|
@@ -364,7 +380,7 @@
|
|
|
import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
|
import uploadImage from '@/components/ossutil/uploadFile.js';
|
|
|
export default {
|
|
|
- components:{
|
|
|
+ components: {
|
|
|
uniPopup
|
|
|
},
|
|
|
data() {
|
|
@@ -381,7 +397,7 @@
|
|
|
status2: false,
|
|
|
status3: false,
|
|
|
id: '',
|
|
|
- show:false,
|
|
|
+ show: false,
|
|
|
value2: '',
|
|
|
radiolist1: [{
|
|
|
name: '已与司机协商',
|
|
@@ -406,7 +422,7 @@
|
|
|
isShowAlert: false,
|
|
|
zcImgList: [],
|
|
|
xcImgList: [],
|
|
|
- hdImgList:[],
|
|
|
+ hdImgList: [],
|
|
|
contractSrc: '',
|
|
|
canvasName: 'handWriting',
|
|
|
ctx: '',
|
|
@@ -417,8 +433,8 @@
|
|
|
selectColor: 'black',
|
|
|
lineColor: '#1A1A1A', // 颜色
|
|
|
lineSize: 5, // 笔记倍数
|
|
|
- moneyShow:false,
|
|
|
- totalFreight:""
|
|
|
+ moneyShow: false,
|
|
|
+ totalFreight: ""
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -458,45 +474,59 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- moneyClick(){
|
|
|
+ moneyClick() {
|
|
|
this.moneyShow = false
|
|
|
- if(this.dataObj.cargoOwnerStatus == "司机驳回运费信息"){
|
|
|
+ if (this.dataObj.cargoOwnerStatus == "司机驳回运费信息") {
|
|
|
this.$request.baseRequest('post', '/orderInfo/api/confirmFreight', {
|
|
|
- id: this.dataObj.id,
|
|
|
- typeFlag:1,
|
|
|
- totalFreight:this.totalFreight
|
|
|
- }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: "确认成功",
|
|
|
- })
|
|
|
- // this.getList()
|
|
|
- }
|
|
|
- })
|
|
|
- }else{
|
|
|
+ id: this.dataObj.id,
|
|
|
+ typeFlag: 1,
|
|
|
+ totalFreight: this.totalFreight
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: "确认成功",
|
|
|
+ })
|
|
|
+ // this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.confirmUnLoading(4)
|
|
|
}
|
|
|
},
|
|
|
- moneyclose(){
|
|
|
+ moneyclose() {
|
|
|
this.moneyShow = false
|
|
|
this.totalFreight = ""
|
|
|
},
|
|
|
- freightOk(){
|
|
|
- this.moneyShow = true
|
|
|
+ freightOk() {
|
|
|
+ // billingMethod 0:元/吨 1:元/车
|
|
|
+ if (this.dataObj.billingMethod == 1) { //元/车
|
|
|
+ this.totalFreight = this.dataObj.freight
|
|
|
+ } else { //元/吨
|
|
|
+ //装车净重和卸车净重最小值 * 运输单价
|
|
|
+ if (Number(this.dataObj.hyCarrierInfo.loadingWeight) > Number(this.dataObj.hyCarrierInfo
|
|
|
+ .unloadingWeight)) {
|
|
|
+ this.totalFreight = Number(this.dataObj.hyCarrierInfo.unloadingWeight) * Number(this.dataObj.freight)
|
|
|
+ this.totalFreight = this.totalFreight.toFixed(2)
|
|
|
+ } else {
|
|
|
+ this.totalFreight = Number(this.dataObj.hyCarrierInfo.loadingWeight) * Number(this.dataObj.freight)
|
|
|
+ this.totalFreight = this.totalFreight.toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.moneyShow = true
|
|
|
},
|
|
|
radioChange(n) {
|
|
|
console.log('radioChange', n);
|
|
|
},
|
|
|
- closepopup(){
|
|
|
- this.show=false
|
|
|
+ closepopup() {
|
|
|
+ this.show = false
|
|
|
},
|
|
|
open() {
|
|
|
- // console.log('open');
|
|
|
+ // console.log('open');
|
|
|
},
|
|
|
close() {
|
|
|
this.show = false
|
|
|
- // console.log('close');
|
|
|
+ // console.log('close');
|
|
|
},
|
|
|
ylImg(src) {
|
|
|
uni.previewImage({
|
|
@@ -537,7 +567,6 @@
|
|
|
uni.$u.route('/pages/order/signContract', {
|
|
|
obj: JSON.stringify(this.dataObj)
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
// 完结
|
|
|
closed() {
|
|
@@ -557,7 +586,6 @@
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
@@ -603,31 +631,44 @@
|
|
|
this.confirmText = '确定'
|
|
|
this.isShowAlert = true
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// uni.$u.route('/pages/order/confirmLoading', item);
|
|
|
},
|
|
|
confirmUnLoading(type) {
|
|
|
- this.type=type
|
|
|
- if(type == 4){
|
|
|
- console.log(this.totalFreight)
|
|
|
- if(this.totalFreight){
|
|
|
+ this.type = type
|
|
|
+ if (type == 4) {
|
|
|
+ if (this.totalFreight) {
|
|
|
this.alertTitle = '确认卸车?'
|
|
|
this.confirmText = '确定'
|
|
|
this.isShowAlert = true
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
+ // billingMethod 0:元/吨 1:元/车
|
|
|
+ if (this.dataObj.billingMethod == 1) { //元/车
|
|
|
+ this.totalFreight = this.dataObj.freight
|
|
|
+ } else { //元/吨
|
|
|
+ //装车净重和卸车净重最小值 * 运输单价
|
|
|
+ if (Number(this.dataObj.hyCarrierInfo.loadingWeight) > Number(this.dataObj.hyCarrierInfo
|
|
|
+ .unloadingWeight)) {
|
|
|
+ this.totalFreight = Number(this.dataObj.hyCarrierInfo.unloadingWeight) * Number(this.dataObj.freight)
|
|
|
+ this.totalFreight = this.totalFreight.toFixed(2)
|
|
|
+ } else {
|
|
|
+ this.totalFreight = Number(this.dataObj.hyCarrierInfo.loadingWeight) * Number(this.dataObj.freight)
|
|
|
+ this.totalFreight = this.totalFreight.toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
this.moneyShow = true
|
|
|
}
|
|
|
- }else if(type == 6){
|
|
|
+ } else if (type == 6) {
|
|
|
this.alertTitle = '确定驳回卸车信息?'
|
|
|
this.confirmText = '确定'
|
|
|
this.isShowAlert = true
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// let item = this.dataObj
|
|
|
// uni.$u.route('/pages/order/confirmUnloading', item);
|
|
|
},
|
|
|
confirmClick() {
|
|
|
- var that=this
|
|
|
+ var that = this
|
|
|
that.isShowAlert = false
|
|
|
if (this.type == 1 || this.type == 2) {
|
|
|
let _title = ''
|
|
@@ -658,7 +699,7 @@
|
|
|
type: 'success',
|
|
|
message: _title,
|
|
|
complete() {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -670,13 +711,13 @@
|
|
|
let _flag = ''
|
|
|
if (this.type == 3) _flag = 1
|
|
|
if (this.type == 4) _flag = 2
|
|
|
-
|
|
|
+
|
|
|
this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
|
|
|
orderId: this.dataObj.id,
|
|
|
id: this.dataObj.hyCarrierInfo.id,
|
|
|
loadingFlag: _flag,
|
|
|
flag: 1,
|
|
|
- totalFreight:this.totalFreight,
|
|
|
+ totalFreight: this.totalFreight,
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$refs.uToast.show({
|
|
@@ -696,7 +737,7 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
- }else if(this.type==5){
|
|
|
+ } else if (this.type == 5) {
|
|
|
this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
|
|
|
orderId: this.dataObj.id,
|
|
|
loadingFlag: 1,
|
|
@@ -719,7 +760,7 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
- }else if(this.type == 6){
|
|
|
+ } else if (this.type == 6) {
|
|
|
this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
|
|
|
orderId: this.dataObj.id,
|
|
|
loadingFlag: 2,
|
|
@@ -737,59 +778,14 @@
|
|
|
// })
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
- } else{
|
|
|
- var that=this
|
|
|
- if (this.radiovalue1 == '其他' && !this.value2) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "请填写终止原因描述!",
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- let _terminationReason = ''
|
|
|
- if (this.radiovalue1 == '已与司机协商') {
|
|
|
- _terminationReason = 1
|
|
|
- } else if (this.radiovalue1 == '司机原因终止') {
|
|
|
- _terminationReason = 2
|
|
|
- } else if (this.radiovalue1 == '货主个人原因终止') {
|
|
|
- _terminationReason = 3
|
|
|
- } else if (this.radiovalue1 == '其他') {
|
|
|
- _terminationReason = 4
|
|
|
- }
|
|
|
- this.$request.baseRequest('post', '/orderInfo/api/end', {
|
|
|
- id: this.id,
|
|
|
- terminator: 2,
|
|
|
- terminationReason: _terminationReason,
|
|
|
- terminationReasonDescription: this.value2
|
|
|
- }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- that.show=false
|
|
|
- that.value2=''
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: '终止订单成功',
|
|
|
- })
|
|
|
- that.getList()
|
|
|
- } else {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: '终止订单失败',
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- uni.$u.toast(res.message);
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- termination(){
|
|
|
- var that=this
|
|
|
+ } else {
|
|
|
+ var that = this
|
|
|
if (this.radiovalue1 == '其他' && !this.value2) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -814,8 +810,8 @@
|
|
|
terminationReasonDescription: this.value2
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- that.show=false
|
|
|
- that.value2=''
|
|
|
+ that.show = false
|
|
|
+ that.value2 = ''
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'success',
|
|
|
message: '终止订单成功',
|
|
@@ -831,6 +827,51 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ termination() {
|
|
|
+ var that = this
|
|
|
+ if (this.radiovalue1 == '其他' && !this.value2) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "请填写终止原因描述!",
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let _terminationReason = ''
|
|
|
+ if (this.radiovalue1 == '已与司机协商') {
|
|
|
+ _terminationReason = 1
|
|
|
+ } else if (this.radiovalue1 == '司机原因终止') {
|
|
|
+ _terminationReason = 2
|
|
|
+ } else if (this.radiovalue1 == '货主个人原因终止') {
|
|
|
+ _terminationReason = 3
|
|
|
+ } else if (this.radiovalue1 == '其他') {
|
|
|
+ _terminationReason = 4
|
|
|
+ }
|
|
|
+ this.$request.baseRequest('post', '/orderInfo/api/end', {
|
|
|
+ id: this.id,
|
|
|
+ terminator: 2,
|
|
|
+ terminationReason: _terminationReason,
|
|
|
+ terminationReasonDescription: this.value2
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ that.show = false
|
|
|
+ that.value2 = ''
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: '终止订单成功',
|
|
|
+ })
|
|
|
+ that.getList()
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: '终止订单失败',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
},
|
|
|
cancelClick() {
|
|
|
this.isShowAlert = false
|
|
@@ -846,7 +887,7 @@
|
|
|
this.id = item.id
|
|
|
this.isShowAlert = true
|
|
|
},
|
|
|
- clickstop(){
|
|
|
+ clickstop() {
|
|
|
let item = this.dataObj
|
|
|
// 货主接单
|
|
|
if (item.cargoOwnerStatusKey == 1) {
|
|
@@ -858,7 +899,7 @@
|
|
|
this.show = true
|
|
|
},
|
|
|
toPhone() {
|
|
|
- var that=this
|
|
|
+ var that = this
|
|
|
that.get_camera_permission()
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: that.dataObj.driverPhone,
|
|
@@ -880,10 +921,10 @@
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.dataObj = res.data
|
|
|
- if(this.dataObj.hyCarrierInfo.totalFreight){//货主确定卸车输入的 合计运费
|
|
|
+ if (this.dataObj.hyCarrierInfo.totalFreight) { //货主确定卸车输入的 合计运费
|
|
|
this.totalFreight = this.dataObj.hyCarrierInfo.totalFreight
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 承运信息显示
|
|
|
if (res.data.cargoOwnerStatus != "待接单" && res.data.cargoOwnerStatus != "未装车" && res.data
|
|
|
.cargoOwnerStatus != "已终止") {
|
|
@@ -899,7 +940,7 @@
|
|
|
this.status3 = true
|
|
|
}
|
|
|
if (res.data.hyCarrierInfo) {
|
|
|
- this.zcImgList=[]
|
|
|
+ this.zcImgList = []
|
|
|
if (res.data.hyCarrierInfo.loadingImg) {
|
|
|
let _zcList = res.data.hyCarrierInfo.loadingImg.split(',')
|
|
|
for (let i = 0; i < _zcList.length; i++) {
|
|
@@ -907,14 +948,14 @@
|
|
|
}
|
|
|
}
|
|
|
if (res.data.hyCarrierInfo.unloadingImg) {
|
|
|
- this.xcImgList=[]
|
|
|
+ this.xcImgList = []
|
|
|
let _xcList = res.data.hyCarrierInfo.unloadingImg.split(',')
|
|
|
for (let i = 0; i < _xcList.length; i++) {
|
|
|
if (_xcList[i]) this.xcImgList.push(_xcList[i])
|
|
|
}
|
|
|
}
|
|
|
if (res.data.hyCarrierInfo.receiptImg) {
|
|
|
- this.hdImgList=[]
|
|
|
+ this.hdImgList = []
|
|
|
let _hdList = res.data.hyCarrierInfo.receiptImg.split(',')
|
|
|
console.log(_hdList)
|
|
|
for (let i = 0; i < _hdList.length; i++) {
|
|
@@ -1277,49 +1318,58 @@
|
|
|
top: 120rpx;
|
|
|
left: 10rpx;
|
|
|
}
|
|
|
- /deep/.u-popup__content{
|
|
|
+
|
|
|
+ /deep/.u-popup__content {
|
|
|
border-radius: 10px;
|
|
|
// padding:20px;
|
|
|
}
|
|
|
- /deep/.u-radio{
|
|
|
- margin:40rpx 0;
|
|
|
+
|
|
|
+ /deep/.u-radio {
|
|
|
+ margin: 40rpx 0;
|
|
|
}
|
|
|
- .close{
|
|
|
- position:absolute;
|
|
|
- right:20px;
|
|
|
+
|
|
|
+ .close {
|
|
|
+ position: absolute;
|
|
|
+ right: 20px;
|
|
|
}
|
|
|
- .termination{
|
|
|
- background:#F1F3F6;
|
|
|
- color:#C5CAD4;
|
|
|
- padding:10px;
|
|
|
- border-radius:30px;
|
|
|
+
|
|
|
+ .termination {
|
|
|
+ background: #F1F3F6;
|
|
|
+ color: #C5CAD4;
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 30px;
|
|
|
text-align: center;
|
|
|
- margin-top:30rpx;
|
|
|
+ margin-top: 30rpx;
|
|
|
}
|
|
|
- .termination.active{
|
|
|
+
|
|
|
+ .termination.active {
|
|
|
background: #2772FB;
|
|
|
color: white;
|
|
|
}
|
|
|
- .freight{
|
|
|
- .freight_text{
|
|
|
+
|
|
|
+ .freight {
|
|
|
+ .freight_text {
|
|
|
font-size: 34rpx;
|
|
|
font-weight: 600;
|
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
|
- .freight_up{
|
|
|
+
|
|
|
+ .freight_up {
|
|
|
display: flex;
|
|
|
border-top: 1px solid #EEEEEE;
|
|
|
height: 60rpx;
|
|
|
background: red;
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
- .freight_item{
|
|
|
+
|
|
|
+ .freight_item {
|
|
|
width: 50%;
|
|
|
text-align: center;
|
|
|
line-height: 50rpx;
|
|
|
}
|
|
|
}
|
|
|
- .u-popup-wrap{
|
|
|
- padding:20px;
|
|
|
+
|
|
|
+ .u-popup-wrap {
|
|
|
+ padding: 20px;
|
|
|
}
|
|
|
</style>
|