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

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

parent dc3c4065
......@@ -231,7 +231,7 @@
contactAddressLatitud:0,
num:0,
showTimeOut:true,
clicking: false,
clicking: false
}
},
onLoad(option) {
......@@ -669,14 +669,28 @@
})
},
filish(){
// 去完工
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
})
let self = this
var data = {
'orderId': self.orderId
};
self.$u.api.orderDetail(data, self.orderId).then((res) => {
if (res.code == 200) {
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() { // 拒单
// 检查是否可以拒单
......
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