|
|
@@ -191,6 +191,7 @@ define([ 'app/app' ], function(app) {
|
|
|
toaster.pop('error', '确认付款失败', response.data);
|
|
|
})
|
|
|
};
|
|
|
+
|
|
|
/**
|
|
|
* 当用户点击审核不通过时,弹出模态框
|
|
|
* @param order
|
|
|
@@ -198,5 +199,27 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.showAuditFailureModal = function (order) {
|
|
|
order.dislayModal = true;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 订单审核不通过
|
|
|
+ */
|
|
|
+ $scope.auditFailure = function (order) {
|
|
|
+ if(!order.auditFailureReason) {
|
|
|
+ toaster.pop('info', '请输入审核不通过的原因');
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ Order.auditFailure({orderId :order.orderid},{reason : order.auditFailureReason}, function (data) {
|
|
|
+ if(data.code != 1) {
|
|
|
+ toaster.pop('info', '保存失败:' + data.message);
|
|
|
+ }else {
|
|
|
+ toaster.pop('info', '保存成功');
|
|
|
+ order.dislayModal = false;
|
|
|
+ window.location.reload();
|
|
|
+ }
|
|
|
+ }, function (res) {
|
|
|
+ console.log(res);
|
|
|
+ toaster.pop('error', '系统出现错误,');
|
|
|
+ });
|
|
|
+ }
|
|
|
}]);
|
|
|
});
|