|
|
@@ -7,9 +7,11 @@
|
|
|
<view class="case">
|
|
|
<view class="select_type">
|
|
|
<div class="tab-item" :class="tabIndex == 0?'active':''"
|
|
|
- @click="getList(servicePage),tabIndex=0;productName='';productStatus=0;">普通订单</div>
|
|
|
+ @click="getList(servicePage),tabIndex=0;productName='';productStatus=0;merchantUserInfo = '';orderList = [];buyStartTime = '';buyEndTime = ''">
|
|
|
+ 普通订单</div>
|
|
|
<div class="tab-item" :class="tabIndex == 1?'active':''"
|
|
|
- @click="getserviceList(servicePage),tabIndex=1;productName='';productStatus=0;">服务订单</div>
|
|
|
+ @click="getserviceList(servicePage),tabIndex=1;productName='';productStatus=0;merchantUserInfo = '';serviceList = [];buyStartTime = '';buyEndTime = ''">
|
|
|
+ 服务订单</div>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -91,12 +93,12 @@
|
|
|
</view>
|
|
|
<view class="car_id">
|
|
|
{{item.licenseNo}}
|
|
|
- <!-- <span>{{item.checkType==0?'上门取车':'送车到站'}}</span> -->
|
|
|
- <span v-if="item.checkType==0">上门取车</span>
|
|
|
- <span v-if="item.checkType==1">送车到站</span>
|
|
|
- <span v-if="item.checkType==21">搭电救援</span>
|
|
|
- <span v-if="item.checkType==22">换胎救援</span>
|
|
|
- <span v-if="item.checkType==23">拖车救援</span>
|
|
|
+ <!-- <span>{{item.checkType==0?'上门取车':'送车到站'}}</span> -->
|
|
|
+ <span v-if="item.checkType==0">上门取车</span>
|
|
|
+ <span v-if="item.checkType==1">送车到站</span>
|
|
|
+ <span v-if="item.checkType==21">搭电救援</span>
|
|
|
+ <span v-if="item.checkType==22">换胎救援</span>
|
|
|
+ <span v-if="item.checkType==23">拖车救援</span>
|
|
|
</view>
|
|
|
<view class="name">
|
|
|
{{item.productName}}
|
|
|
@@ -107,20 +109,22 @@
|
|
|
<span> <text>¥</text> {{item.price}}</span>
|
|
|
</view>
|
|
|
<view class="btn_box">
|
|
|
- <view class="btn">
|
|
|
+ <view class="btn" @click.stop="goLive(item)">
|
|
|
实况记录
|
|
|
</view>
|
|
|
- <view class="btn" style="margin-left: 16rpx;">
|
|
|
+ <view class="btn" style="margin-left: 16rpx;" @click.stop="callService(item)">
|
|
|
联系客服
|
|
|
</view>
|
|
|
- <view class="btn border">
|
|
|
+ <view class="btn border" @click.stop="callUser(item)">
|
|
|
联系客户
|
|
|
</view>
|
|
|
<!-- 03显示救援接单 -->
|
|
|
- <view class="btn join" @click.stop="receive(item)" v-if="item.checkType<20 && item.statusCode ==2" style="margin-left: 16rpx;">
|
|
|
+ <view class="btn join" @click.stop="receive(item)" v-if="item.checkType<20 && item.statusCode ==2"
|
|
|
+ style="margin-left: 16rpx;">
|
|
|
接单
|
|
|
</view>
|
|
|
- <view class="btn join" @click.stop="receive(item)" v-if="item.checkType>20 && item.flowStatus =='03'" style="margin-left: 16rpx;">
|
|
|
+ <view class="btn join" @click.stop="receive(item)" v-if="item.checkType>20 && item.flowStatus =='03'"
|
|
|
+ style="margin-left: 16rpx;">
|
|
|
接单
|
|
|
</view>
|
|
|
<!-- 送车到站按钮区域开始item.checkType==1 -->
|
|
|
@@ -161,10 +165,10 @@
|
|
|
去评价
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<!-- 上门取车按钮区域结束 -->
|
|
|
<!-- 救援相关按钮 -->
|
|
|
- <view class=""v-if="item.checkType >20 " style="flex:1;display: flex;justify-content: space-around;">
|
|
|
+ <view class="" v-if="item.checkType >20 " style="flex:1;display: flex;justify-content: space-around;">
|
|
|
<!--flowStatus == 04 显示-->
|
|
|
<view class="btn join" @click.stop="depart(item)" v-if="item.flowStatus == '04'">
|
|
|
出发
|
|
|
@@ -208,7 +212,7 @@
|
|
|
{{row.date}}
|
|
|
</view>
|
|
|
<view class="row_btn" @click.stop="editProject(row)"
|
|
|
- v-if="row.statusCode == '0' || row.statusCode == '11' ">
|
|
|
+ v-if="row.statusCode == '0'|| row.statusCode == '7' || row.statusCode == '11' ">
|
|
|
<span>修改收费服务</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -216,7 +220,7 @@
|
|
|
</view>
|
|
|
</mescroll-uni>
|
|
|
<rangTime ref="rangTime" :mode="mode" :isYear="true" @onSubmit="onEndTimeChange" @cut="cutPopup" />
|
|
|
- <receive @cut="isReceive =false" v-if="isReceive" :titleCheckType="titleCheckType"/>
|
|
|
+ <receive @cut="isReceive =false" v-if="isReceive" :titleCheckType="titleCheckType" />
|
|
|
<serviceDetail :subOrderId="subOrderId" @cut="cutsubOrderId" v-if="isServiceDeatil" />
|
|
|
<upload :type="uptype" :taskId="taskId" v-if="isUpload" @cut="isUpload = false" @upSuccess="upSuccess" />
|
|
|
<evaluate :userId="userId" :taskId="taskId" v-if="iseEvaluate" @cut="cutEvaluate" />
|
|
|
@@ -319,26 +323,76 @@
|
|
|
num: 1,
|
|
|
size: 10
|
|
|
},
|
|
|
- titleCheckType:null,//接单提示区分
|
|
|
+ titleCheckType: null, //接单提示区分
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ //联系客户
|
|
|
+ callUser(item) {
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: item.contactsPhone,
|
|
|
+ success: () => {
|
|
|
+ uni.showToast({
|
|
|
+ title: '正在拨号',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ uni.showToast({
|
|
|
+ title: '拨打失败: ' + err.errMsg,
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //俩系客服
|
|
|
+ callService(item) {
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: item.custSerPhone,
|
|
|
+ success: () => {
|
|
|
+ uni.showToast({
|
|
|
+ title: '正在拨号',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ uni.showToast({
|
|
|
+ title: '拨打失败: ' + err.errMsg,
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //跳转实况记录
|
|
|
+ goLive(item) {
|
|
|
+ console.log(item)
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/order/serviceOrder/live?taskId=' + item.taskId
|
|
|
+ })
|
|
|
+ },
|
|
|
selectTime() {
|
|
|
this.$refs.rangTime.open()
|
|
|
uni.hideTabBar()
|
|
|
},
|
|
|
onEndTimeChange(val) {
|
|
|
+ this.buyStartTime = val.startDate
|
|
|
+ this.buyEndTime = val.endDate
|
|
|
if (this.tabIndex == 0) {
|
|
|
this.orderList = []
|
|
|
- this.buyStartTime = val.startDate
|
|
|
- this.buyEndTime = val.endDate
|
|
|
+
|
|
|
let page = {
|
|
|
num: 1,
|
|
|
size: 10
|
|
|
}
|
|
|
this.getList(page)
|
|
|
} else {
|
|
|
-
|
|
|
+ this.serviceList = []
|
|
|
+ let page = {
|
|
|
+ num: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ this.getserviceList(page)
|
|
|
}
|
|
|
|
|
|
},
|
|
|
@@ -385,7 +439,12 @@
|
|
|
this.orderList = []
|
|
|
this.getList(page)
|
|
|
} else {
|
|
|
-
|
|
|
+ this.serviceList = []
|
|
|
+ let page = {
|
|
|
+ num: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ this.getserviceList(page)
|
|
|
}
|
|
|
|
|
|
},
|
|
|
@@ -431,7 +490,10 @@
|
|
|
merchantId: this.merchantId,
|
|
|
pageSize: page.size,
|
|
|
pageNo: page.num,
|
|
|
- status: this.statusCode
|
|
|
+ status: this.statusCode,
|
|
|
+ searchContent: this.merchantUserInfo,
|
|
|
+ buyStartTime: this.buyStartTime,
|
|
|
+ buyEndTime: this.buyEndTime
|
|
|
}
|
|
|
this.$http.post("/ts/merchant/serviceOrder", data).then(res => {
|
|
|
this.serviceList = this.serviceList.concat(res.data.result.records)
|
|
|
@@ -452,7 +514,7 @@
|
|
|
paramState: '04', //商户接单成功
|
|
|
// serveType: '01'//救援02
|
|
|
}
|
|
|
- item.checkType<20?data.serveType = '01':data.serveType = '02'
|
|
|
+ item.checkType < 20 ? data.serveType = '01' : data.serveType = '02'
|
|
|
this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.isReceive = true
|
|
|
@@ -474,7 +536,7 @@
|
|
|
if (item.checkType == 0) {
|
|
|
//收车
|
|
|
// if (item.statusCode == 5) {
|
|
|
- this.uptype = 1
|
|
|
+ this.uptype = 1
|
|
|
// }
|
|
|
// else if (item.statusCode == 4) {
|
|
|
// this.uptype = 3
|
|
|
@@ -482,7 +544,7 @@
|
|
|
} else if (item.checkType == 1) {
|
|
|
//客户送车,商户收车
|
|
|
// if (item.statusCode == 3) {
|
|
|
- this.uptype = 2
|
|
|
+ this.uptype = 2
|
|
|
// }
|
|
|
/* else {
|
|
|
this.uptype = 3
|
|
|
@@ -492,7 +554,7 @@
|
|
|
this.serveType = '01'
|
|
|
this.isUpload = true
|
|
|
// this.upSuccess('07','01')
|
|
|
-
|
|
|
+
|
|
|
|
|
|
},
|
|
|
//送车到站————检测完成
|
|
|
@@ -655,7 +717,7 @@
|
|
|
})
|
|
|
},
|
|
|
//救援出发
|
|
|
- depart(item){
|
|
|
+ depart(item) {
|
|
|
console.log(item)
|
|
|
let data = {
|
|
|
taskId: item.taskId,
|
|
|
@@ -666,27 +728,27 @@
|
|
|
this.$http.post("/ts/merchant/update/Serve", data).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
// this.isReceive = true
|
|
|
- this.serviceList = []
|
|
|
- let page = {
|
|
|
- num: 1,
|
|
|
- size: 10
|
|
|
- }
|
|
|
- this.getserviceList(page)
|
|
|
+ this.serviceList = []
|
|
|
+ let page = {
|
|
|
+ num: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ this.getserviceList(page)
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//救援到达现场
|
|
|
- arrive(item){
|
|
|
+ arrive(item) {
|
|
|
this.taskId = item.taskId
|
|
|
this.checkType = item.checkType
|
|
|
- this.uptype = 4//道路救援
|
|
|
+ this.uptype = 4 //道路救援
|
|
|
this.paramState = '06'
|
|
|
this.serveType = '02'
|
|
|
this.isUpload = true
|
|
|
},
|
|
|
//救援完成拍照
|
|
|
- help(item){
|
|
|
+ help(item) {
|
|
|
console.log(item)
|
|
|
this.taskId = item.taskId
|
|
|
this.checkType = item.checkType
|
|
|
@@ -703,10 +765,21 @@
|
|
|
},
|
|
|
//添加收费服务
|
|
|
addService(item) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/order/serviceOrder/project?checkType=' + item.checkType + '&taskId=' + item.taskId +
|
|
|
- '&orderNo=' + item.orderNo + '&productName=' + item.productName + '&type=' + 1
|
|
|
+ this.$http.get("/ts/merchant/addPaidServiceCheck?taskId=" + item.taskId).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ if (res.data.result) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/order/serviceOrder/project?checkType=' + item.checkType + '&taskId=' + item.taskId +
|
|
|
+ '&orderNo=' + item.orderNo + '&productName=' + item.productName + '&type=' + 1
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: '存在未支付服务项'
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
//去送车修改状态
|
|
|
goAlso(item) {
|