|
|
@@ -91,9 +91,16 @@
|
|
|
<view class="button">
|
|
|
<u-button size="mini" shape="square" v-if="index+1 == form.flowRecordList.length"
|
|
|
@click="goLive">实况记录</u-button>
|
|
|
- <u-button size="mini" shape="square" v-if="item.content=='商户确认收车'" @click="goPhoto(checkType == 0 ? 1 : 2)">车辆交接照片</u-button>
|
|
|
- <u-button size="mini" shape="square" v-if="checkType== 1 && item.content=='检测完毕,等待用户取车'" @click="goPhoto(3)">服务照片</u-button>
|
|
|
- <u-button size="mini" shape="square" v-if="checkType== 0 && item.content=='检测完成,准备送车'" @click="goPhoto(3)">服务照片</u-button>
|
|
|
+ <u-button size="mini" shape="square" v-if="item.content=='商户确认收车'"
|
|
|
+ @click="goPhoto(checkType == 0 ? 1 : 2)">车辆交接照片</u-button>
|
|
|
+ <u-button size="mini" shape="square" v-if="checkType== 1 && item.content=='检测完毕,等待用户取车'"
|
|
|
+ @click="goPhoto(3)">服务照片</u-button>
|
|
|
+ <u-button size="mini" shape="square" v-if="checkType== 0 && item.content=='检测完成,准备送车'"
|
|
|
+ @click="goPhoto(3)">服务照片</u-button>
|
|
|
+ <u-button size="mini" shape="square" v-if="item.content=='正在救援中'"
|
|
|
+ @click="goPhoto(4)">现场照片</u-button>
|
|
|
+ <u-button size="mini" shape="square" v-if="item.content=='等待用户确认'"
|
|
|
+ @click="goPhoto(3)">服务照片</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -181,7 +188,7 @@
|
|
|
<view class="item_title">
|
|
|
附订单信息
|
|
|
</view>
|
|
|
- <view class="item_child" >
|
|
|
+ <view class="item_child">
|
|
|
<span>订单号:</span>
|
|
|
<view class="center">
|
|
|
{{item.orderNo}}
|
|
|
@@ -205,7 +212,7 @@
|
|
|
接单
|
|
|
</view>
|
|
|
<view class="func" v-if="form.checkType == 1">
|
|
|
- <view class="accept" @click="collect" v-if="form.statusCode ==3">
|
|
|
+ <view class="accept" @click="collect" v-if="form.statusCode ==3 && form.flowStatus =='05'">
|
|
|
确认收车
|
|
|
</view>
|
|
|
<view class="accept" @click="goProject" v-if=" form.statusCode ==4">
|
|
|
@@ -228,6 +235,9 @@
|
|
|
<view class="accept" @click="collect" v-if="form.statusCode ==5 && form.flowStatus == 5">
|
|
|
确认取车
|
|
|
</view>
|
|
|
+ <view class="accept" @click="goProject" v-if=" form.statusCode ==4">
|
|
|
+ 添加收费服务
|
|
|
+ </view>
|
|
|
<view class="accept" @click="finish" v-if="form.statusCode ==4 && form.flowStatus==7 || form.flowStatus==8">
|
|
|
检测完成
|
|
|
</view>
|
|
|
@@ -237,17 +247,32 @@
|
|
|
<view class="accept" @click.stop="delivered" v-if="form.statusCode ==3&& form.flowStatus==13">
|
|
|
车已送达
|
|
|
</view>
|
|
|
- <view class="accept" @click.stop="evaluat" v-if=" form.flowStatus =='16' ">
|
|
|
+ <view class="accept" @click.stop="evaluate" v-if=" form.flowStatus =='16' ">
|
|
|
+ 去评价
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="func" v-if="form.checkType>20">
|
|
|
+ <view class="accept" @click.stop="depart" v-if="form.flowStatus == '04'">
|
|
|
+ 出发
|
|
|
+ </view>
|
|
|
+ <view class="accept" @click.stop="arrive" v-if="form.flowStatus == '05'">
|
|
|
+ 到达现场
|
|
|
+ </view>
|
|
|
+ <view class="accept" @click.stop="help"
|
|
|
+ v-if="form.statusCode ==4 && form.flowStatus=='07' || form.flowStatus=='06'|| form.flowStatus=='08'">
|
|
|
+ 救援完成
|
|
|
+ </view>
|
|
|
+ <view class="accept" @click.stop="evaluate" v-if=" form.flowStatus =='12' ">
|
|
|
去评价
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<receive v-if="isSuccess" @cut="refresh" />
|
|
|
<upload :type="uptype" :taskId="taskId" v-if="isUpload" @cut="isUpload = false" @upSuccess="upSuccess" />
|
|
|
<serviceDetail :subOrderId="subOrderId" @cut="isServiceDeatil =false" v-if="isServiceDeatil" />
|
|
|
- <evaluate :userId="userId" :taskId="taskId" v-if="iseEvaluate" @cut="cutEvaluate"/>
|
|
|
+ <evaluate :userId="userId" :taskId="taskId" v-if="iseEvaluate" @cut="cutEvaluate" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -275,9 +300,9 @@
|
|
|
checkType: '', //上传图片修改状态用
|
|
|
isServiceDeatil: false,
|
|
|
subOrderId: '',
|
|
|
- iseEvaluate:false,//评论弹窗显隐
|
|
|
- userId:'',//传值给评论弹窗
|
|
|
- paramState:null,
|
|
|
+ iseEvaluate: false, //评论弹窗显隐
|
|
|
+ userId: '', //传值给评论弹窗
|
|
|
+ paramState: null,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -287,7 +312,7 @@
|
|
|
// delta: 1
|
|
|
// });
|
|
|
uni.switchTab({
|
|
|
- url:'/pages/order/index'
|
|
|
+ url: '/pages/order/index'
|
|
|
})
|
|
|
},
|
|
|
refresh() {
|
|
|
@@ -313,7 +338,7 @@
|
|
|
goPhoto(type) {
|
|
|
console.log(type)
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/order/serviceOrder/photo?taskId='+this.taskId+'&businessType='+type
|
|
|
+ url: '/pages/order/serviceOrder/photo?taskId=' + this.taskId + '&businessType=' + type
|
|
|
})
|
|
|
},
|
|
|
// 接单
|
|
|
@@ -322,12 +347,14 @@
|
|
|
taskId: this.taskId,
|
|
|
checkType: this.checkType,
|
|
|
paramState: '04',
|
|
|
- serveType: '01'
|
|
|
+ // serveType: '01'
|
|
|
}
|
|
|
+ item.checkType < 20 ? data.serveType = '01' : data.serveType = '02'
|
|
|
this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.data.code == 200) {
|
|
|
this.isSuccess = true
|
|
|
+ this.getDeatil()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -338,57 +365,54 @@
|
|
|
this.checkType = this.form.checkType
|
|
|
//0 取车,1送车
|
|
|
if (this.form.checkType == 0) {
|
|
|
-
|
|
|
+ this.uptype = 1
|
|
|
} else if (this.form.checkType == 1) {
|
|
|
//客户送车,商户收车
|
|
|
- if (this.form.statusCode == 3) {
|
|
|
- this.uptype = 2
|
|
|
+ // if (this.form.statusCode == 3) {
|
|
|
+ this.uptype = 2
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
this.isUpload = true
|
|
|
},
|
|
|
//送车到站————收车上传图片后修改状态
|
|
|
- upSuccess(){
|
|
|
+ upSuccess() {
|
|
|
let data = {
|
|
|
taskId: this.taskId,
|
|
|
checkType: this.checkType,
|
|
|
- paramState: this.paramState,//商户上传图片成功
|
|
|
+ paramState: this.paramState, //商户上传图片成功
|
|
|
serveType: '01'
|
|
|
}
|
|
|
this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.isUpload = false
|
|
|
this.getDeatil()
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: res.data.message
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//检测完成上传检测图片
|
|
|
- finish(item){
|
|
|
+ finish(item) {
|
|
|
this.paramState = '12'
|
|
|
// this.taskId = item.taskId
|
|
|
// this.checkType = item.checkType
|
|
|
//0 取车,1送车
|
|
|
- if (item.checkType == 0) {
|
|
|
-
|
|
|
- }else if(item.checkType == 1 ){
|
|
|
- //客户送车,商户收车
|
|
|
- if (item.statusCode == 4) {
|
|
|
- this.uptype=3
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ this.uptype = 3
|
|
|
this.isUpload = true
|
|
|
// this.paramState = '12'
|
|
|
// this.serveType = '01'
|
|
|
this.getDeatil()
|
|
|
},
|
|
|
//送车到站--确认取车
|
|
|
- takeCar(item){
|
|
|
+ takeCar(item) {
|
|
|
let data = {
|
|
|
taskId: this.form.taskId,
|
|
|
checkType: this.form.checkType,
|
|
|
- paramState: '14',//
|
|
|
+ paramState: '14', //
|
|
|
serveType: '01'
|
|
|
}
|
|
|
this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
@@ -416,14 +440,120 @@
|
|
|
this.isServiceDeatil = true
|
|
|
},
|
|
|
//评价弹窗显示
|
|
|
- evaluate(){
|
|
|
+ evaluate() {
|
|
|
this.iseEvaluate = true
|
|
|
- this.userId =this.form.userId
|
|
|
+ this.userId = this.form.userId
|
|
|
},
|
|
|
- cutEvaluate(){
|
|
|
+ cutEvaluate() {
|
|
|
this.iseEvaluate = false
|
|
|
this.getDeatil()
|
|
|
- }
|
|
|
+ },
|
|
|
+ //商户去取车
|
|
|
+ goGetCar(item) {
|
|
|
+ console.log(item)
|
|
|
+ let data = {
|
|
|
+ taskId: this.form.taskId,
|
|
|
+ checkType: this.form.checkType,
|
|
|
+ paramState: '05', //商户接单成功
|
|
|
+ serveType: '01'
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ let that = this
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: (window.location.href = `https://uri.amap.com/navigation?to=${item.userLongitude},${item.userLatitude},${item.carAddress}&mode=car&policy=1&src=https://gawl.gazhcs.com/wap/index.html&callnative=0`)
|
|
|
+ // })
|
|
|
+
|
|
|
+ uni.openLocation({
|
|
|
+ longitude: Number(item.userLongitude),
|
|
|
+ latitude: Number(item.userLatitude),
|
|
|
+ name: item.carAddres, // 位置名称
|
|
|
+ // address: e.F_Address, // 位置地点
|
|
|
+ success: function(res) {
|
|
|
+ console.log('打开系统位置地图成功')
|
|
|
+ that.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ // this.isReceive = true
|
|
|
+ that.getDeatil()
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: function(error) {
|
|
|
+ console.log(error)
|
|
|
+ },
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goAlso() {
|
|
|
+ let data = {
|
|
|
+ taskId: this.form.taskId,
|
|
|
+ checkType: this.form.checkType,
|
|
|
+ paramState: '13', //商户点击去送车
|
|
|
+ serveType: '01'
|
|
|
+ }
|
|
|
+ this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ let page = {
|
|
|
+ num: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ this.getDeatil()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //商户点击车已送达
|
|
|
+ delivered() {
|
|
|
+ let data = {
|
|
|
+ taskId: this.form.taskId,
|
|
|
+ checkType: this.form.checkType,
|
|
|
+ paramState: '14', //商户点击车已送达
|
|
|
+ serveType: '01'
|
|
|
+ }
|
|
|
+ this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ let page = {
|
|
|
+ num: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ this.getDeatil()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //救援出发
|
|
|
+ depart() {
|
|
|
+ let data = {
|
|
|
+ taskId: this.form.taskId,
|
|
|
+ checkType: this.form.checkType,
|
|
|
+ paramState: '05', //商户出发成功
|
|
|
+ serveType: '02'
|
|
|
+ }
|
|
|
+ this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ // this.isReceive = true
|
|
|
+ this.getDeatil()
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ //救援到达现场
|
|
|
+ arrive() {
|
|
|
+ this.taskId = this.form.taskId
|
|
|
+ this.checkType = this.form.checkType
|
|
|
+ this.uptype = 4 //道路救援
|
|
|
+ this.paramState = '06'
|
|
|
+ this.serveType = '02'
|
|
|
+ this.isUpload = true
|
|
|
+ this.getDeatil()
|
|
|
+ },
|
|
|
+ help() {
|
|
|
+ this.taskId = this.form.taskId
|
|
|
+ this.checkType = this.form.checkType
|
|
|
+ this.uptype = 3
|
|
|
+ this.isUpload = true
|
|
|
+ this.paramState = '11'
|
|
|
+ this.serveType = '02'
|
|
|
+ this.getDeatil()
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getDeatil()
|
|
|
@@ -656,11 +786,12 @@
|
|
|
.sun_product {
|
|
|
width: 100%;
|
|
|
// height: 126rpx;
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
border-radius: 12rpx;
|
|
|
margin-top: 20rpx;
|
|
|
- .item{
|
|
|
+
|
|
|
+ .item {
|
|
|
margin-bottom: 20rpx;
|
|
|
padding: 12rpx 16rpx;
|
|
|
background: linear-gradient(180deg, #EEF7FF 0%, #F6FBFF 100%);
|
|
|
@@ -777,6 +908,7 @@
|
|
|
margin-top: 10rpx;
|
|
|
font-size: 28rpx;
|
|
|
padding-right: 24rpx;
|
|
|
+
|
|
|
.customer {
|
|
|
border-radius: 49rpx;
|
|
|
border: 1px solid #2D88F4;
|
|
|
@@ -797,11 +929,13 @@
|
|
|
margin: 0 24rpx;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
- .func{
|
|
|
+
|
|
|
+ .func {
|
|
|
// flex: 1;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: end;
|
|
|
+
|
|
|
.accept {
|
|
|
display: flex;
|
|
|
align-items: center;
|