master
wangning 7 years ago
commit 69708125bf

@ -1191,8 +1191,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
if (!$scope.paymentInfo) {
return;
}
if (!$scope.init.refund) {
$scope.init.refund = true;
if (!$scope.init.enable_refund) {
$scope.init.enable_refund = true;
return;
}
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/refund_permission', {allow: $scope.paymentInfo.enable_refund}).then(function () {
@ -1209,8 +1209,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
if (!$scope.paymentInfo) {
return;
}
if (!$scope.init.refund) {
$scope.init.refund = true;
if (!$scope.init.enable_pre_refund) {
$scope.init.enable_pre_refund = true;
return;
}
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/pre_refund_permission', {allow: $scope.paymentInfo.enable_pre_refund}).then(function () {
@ -1255,12 +1255,16 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
type: 'error'
})
})
}
};
$scope.toggleRequireCustInfo = function () {
if (!$scope.paymentInfo) {
return;
}
if (!$scope.init.require_custinfo) {
$scope.init.require_custinfo = true;
return;
}
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/requireCustinfo', {allow: $scope.paymentInfo.require_custinfo}).then(function () {
$scope.loadPartnerPaymentInfo();
}, function (resp) {
@ -1276,6 +1280,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
if (!$scope.paymentInfo) {
return;
}
if (!$scope.init.require_remark) {
$scope.init.require_remark = true;
return;
}
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/requireRemark', {allow: $scope.paymentInfo.require_remark}).then(function () {
$scope.loadPartnerPaymentInfo();
}, function (resp) {

Loading…
Cancel
Save