@ -5,40 +5,79 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
function ( angular , $ ) {
'use strict' ;
le t mailTemplate = {
cons t mailTemplate = {
"1" : "代购、综合商城类" ,
"2" : "飞机票、旅行社类" ,
"3" : "教育类、中介类" ,
"4" : "Chargeback"
} ;
let orderTypesMap = {
"1" : "微信调单" ,
"2" : "支付宝调单" ,
"3" : "RoyalPay调单" ,
"4" : "警告" ,
"5" : "通用号调单" ,
"6" : "卡支付ChargeBack"
const orderTypesProfiles = {
"1" : {
label : "微信调单" ,
platform _trans _textarea : true ,
company _name _required : true ,
sub _mch _id _required : true ,
partner _code _required : true ,
date _label : 'Receive Date' ,
can _send _to _mch : true
} ,
"2" : {
label : "支付宝调单" ,
platform _trans _textarea : true ,
partner _code _required : true ,
date _label : 'Receive Date' ,
require _material : true ,
can _send _to _mch : true
} ,
"3" : {
label : "RoyalPay调单" ,
platform _trans _textarea : true ,
send _clean _days : true ,
rp _order _type : true ,
partner _code _required : true ,
date _label : 'Create Date' ,
can _send _to _mch : true
} ,
"4" : {
label : "警告" ,
warning _type _required : true ,
partner _code _required : true ,
date _label : 'Create Date' ,
can _send _to _mch : true
} ,
"5" : {
label : "通用号调单" ,
platform _trans _textarea : true ,
sub _mch _id _required : true ,
date _label : 'Create Date'
} ,
"6" : {
label : "卡支付ChargeBack" ,
single _channel _order : true ,
date _label : 'Receive Date' ,
can _send _to _mch : true ,
require _result : true
}
} ;
let orderTypesMapForBD = {
cons t orderTypesMapForBD = {
"1" : "微信调单" ,
"2" : "支付宝调单" ,
"3" : "RoyalPay调单"
} ;
let royalpayOrderTypesMap = {
cons t royalpayOrderTypesMap = {
"0" : "正常调单" ,
"1" : "单纯大金额频繁刷单"
} ;
let warningOrderTypesMap = {
cons t warningOrderTypesMap = {
"0" : "单人多次大金额交易" ,
"1" : "退款频繁"
} ;
let resultTypesMap = {
cons t resultTypesMap = {
"0" : "未处理" ,
"1" : "已发送邮件" ,
"2" : "已提交材料,等待审核" ,
@ -47,7 +86,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
"5" : "已处理"
} ;
le t resultTypeSearchMap = {
cons t resultTypeSearchMap = {
"0" : "未处理" ,
"1" : "资料完善中" ,
"2" : "等待风控" ,
@ -56,7 +95,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
"5" : "已处理"
} ;
le t resultTypeSearchMapForBD = {
cons t resultTypeSearchMapForBD = {
"1" : "材料待上传" ,
"2" : "材料已提交" ,
"3" : "风控初审完成,渠道方审核中" ,
@ -64,14 +103,14 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
"5" : "已处理"
} ;
le t emailStatusMap = {
cons t emailStatusMap = {
"0" : "未发送" ,
"1" : "已发送" ,
"2" : "打回并已发送" ,
"3" : "已发送催促邮件"
} ;
le t amountSectionMap = {
cons t amountSectionMap = {
"0-500" : "0-500" ,
"500-1000" : "500-1000" ,
"1000-1500" : "1000-1500" ,
@ -83,7 +122,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
"4000-4500" : "4000-4500"
} ;
le t channelResultArray = [
cons t channelResultArray = [
"关闭支付" ,
"恢复支付" ,
"单日10" ,
@ -141,7 +180,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
app . controller ( 'riskBusinessCtrl' , [ '$scope' , '$state' , '$http' , '$uibModal' , '$filter' , 'commonDialog' , 'industryMap' , 'chartParser' ,
function ( $scope , $state , $http , $uibModal , $filter , commonDialog , industryMap , chartParser ) {
$scope . orderTypes = orderTypes Map ;
$scope . orderTypes = orderTypes Profiles ;
$scope . orderTypesForBD = orderTypesMapForBD ;
$scope . resultTypes = resultTypesMap ;
$scope . resultSearchTypes = resultTypeSearchMap ;
@ -284,7 +323,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
$scope . ctrl = {
editRemark : false
} ;
$scope . orderTypes = orderTypes Map ;
$scope . orderTypes = orderTypes Profiles ;
$scope . mailTemplate = mailTemplate ;
$scope . resultTypes = resultTypesMap ;
$scope . channelResults = channelResultArray ;
@ -376,7 +415,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
$scope . commitChargebackStatus = function ( std ) {
commonDialog . confirm ( { title : '确认操作' , content : '当前操作不可逆,并会将风控项标记为办结状态,确认操作?' } ) . then ( function ( ) {
$http . put ( '/risk/business/chargebacks/' + $scope . riskEvent . risk _id + '/ status', { status : std } ) . then ( function ( ) {
$http . put ( '/risk/business/chargebacks/' + $scope . riskEvent . risk _id + '/ mark_ status', { status : std } ) . then ( function ( ) {
$state . reload ( ) ;
commonDialog . alert ( { title : 'Success' , content : '修改成功' , type : success } )
} , function ( res ) {
@ -742,7 +781,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
function ( $scope , $state , $http , $uibModal , $filter , commonDialog ) {
$scope . receive _email _date = new Date ( ) ;
$scope . today = new Date ( ) ;
$scope . orderTypes = orderTypes Map ;
$scope . orderTypes = orderTypes Profiles ;
$scope . mailTemplate = mailTemplate ;
$scope . royapayOrderTypes = royalpayOrderTypesMap ;
$scope . warningOrderTypes = warningOrderTypesMap ;
@ -908,7 +947,8 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
// 调单类型过滤器
app . filter ( 'orderType' , function ( ) {
return function ( type ) {
return orderTypesMap [ type ] ;
let profile = orderTypesProfiles [ type ] ;
return profile == null ? null : profile . label ;
}
} ) ;