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