Commit 54113ea7 authored by 郭晓清's avatar 郭晓清

1、改派后的工单,改派前的师傅还可以去完工

parent dc3c4065
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
contactAddressLatitud:0, contactAddressLatitud:0,
num:0, num:0,
showTimeOut:true, showTimeOut:true,
clicking: false, clicking: false
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -669,14 +669,28 @@ ...@@ -669,14 +669,28 @@
}) })
}, },
filish(){ filish(){
// 去完工 let self = this
uni.navigateTo({ var data = {
url: 'pages/order/complete?orderId='+this.order.orderId 'orderId': self.orderId
+ "&categoryId=" + this.order.categoryId };
+ "&orderServiceType=" + this.order.orderServiceType self.$u.api.orderDetail(data, self.orderId).then((res) => {
+ "&inGuaranteePeriod=" + this.order.inGuaranteePeriod if (res.code == 200) {
+ "&partnerCompanyId=" + this.order.partnerCompanyId if(res.data.orderStatus > 31 && res.data.orderStatus < 80){
}) // 去完工
uni.navigateTo({
url: 'pages/order/complete?orderId='+this.order.orderId
+ "&categoryId=" + this.order.categoryId
+ "&orderServiceType=" + this.order.orderServiceType
+ "&inGuaranteePeriod=" + this.order.inGuaranteePeriod
+ "&partnerCompanyId=" + this.order.partnerCompanyId
})
}else{
this.commonToast('当前工单已被改派!','warning')
}
} else {
console.log(res.message, "获取订单详情失败!");
}
});
}, },
rejectOrder() { // 拒单 rejectOrder() { // 拒单
// 检查是否可以拒单 // 检查是否可以拒单
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment