Commit bfde79d8 by zhangxw

权益订单新增退单拦截校验

1 parent 7d85d76c
...@@ -80,7 +80,21 @@ ...@@ -80,7 +80,21 @@
} }
} }
$scope.cancelOvertime = function(obj) { $scope.cancelOvertime = async function (obj) {
// 添加理赔过订单退单拦截
let result = await rightInterestService.checkBackOrder({vin: obj.standNo, source: 1}).$promise
if (result.returnCode == '0' && !result.data.allowChargeBack) {
swal({
title: '提示',
type: 'warning',
html: true,
text: '由于您的车辆有理赔案件处理当中,请先联系权益服务官18938907441进行处理',
showCancelButton: true,
showConfirmButton: false,
cancelButtonText: '确定'
})
return
}
swal({ swal({
title: "服务订单已超过七日,确定退单吗?", title: "服务订单已超过七日,确定退单吗?",
type: "warning", type: "warning",
...@@ -471,7 +485,20 @@ ...@@ -471,7 +485,20 @@
// 退单 // 退单
$scope.cancel = function (obj) { $scope.cancel = async function (obj) {
let result = await rightInterestService.checkBackOrder({vin: obj.standNo, source: 1}).$promise
if (result.returnCode == '0' && !result.data.allowChargeBack) {
swal({
title: '提示',
type: 'warning',
html: true,
text: '由于您的车辆有理赔案件处理当中,请先联系权益服务官18938907441进行处理',
showCancelButton: true,
showConfirmButton: false,
cancelButtonText: '确定'
})
return
}
if (obj.equityType == '9' || obj.eqIsGlAcceptance == '1' || obj.eqIsG){ if (obj.equityType == '9' || obj.eqIsGlAcceptance == '1' || obj.eqIsG){
swal({ swal({
title: "确定退保吗?", title: "确定退保吗?",
......
...@@ -465,6 +465,12 @@ angular ...@@ -465,6 +465,12 @@ angular
url: "equityManage/getLossFreeValueValid", url: "equityManage/getLossFreeValueValid",
method: "GET", method: "GET",
}, },
// 校验是否允许退单
checkBackOrder: {
url: "/equityManage/checkChargeBackAllowed",
method: "POST",
headers: { "Content-type": "application/json" }
}
}); });
}, },
]) ])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!