master
luoyang 6 years ago
parent 48247667ef
commit 086873f98a

@ -564,8 +564,8 @@ public class PartnerManageController {
}
@ManagerMapping(value = "/{clientMoniker}/registRpaySubMerchantId", method = RequestMethod.POST, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
public String subRpayMerchantApplication(@PathVariable String clientMoniker, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
return clientManager.subRpayMerchantApplication(clientMoniker, manager);
public void subRpayMerchantApplication(@PathVariable String clientMoniker, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
clientManager.subRpayMerchantApplication(clientMoniker, manager);
}

@ -3199,7 +3199,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$scope.saveRpayAppliy = function (form) {
$scope.merchantInfo = angular.copy(form);
var merchantInfo = {};
$scope.errmsg = null;
if (form.$invalid) {
angular.forEach(form, function (item, key) {
@ -3212,28 +3212,30 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
angular.forEach(form, function (item, key) {
if(item !=null) {
console.log("++++" + key + item.$name)
if(item.$name !=null) {
var name = item.$name;
merchantInfo.name = item.$modelValue;
console.log("++++" + item.$name + "++++" + item.$modelValue);
}
}
});
// var str = angular.toJson(form, true);
// console.log("----------" + str);
// var str = angular.toJson(form, true);
// console.log("----------" + str);
// $http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/registRpaySubMerchantId', $scope.merchantInfo).then(function (resp) {
// $scope.apply_sub_merchant_id = resp.data;
// $scope.$close();
// if (subMerchantInfo.sub_merchant_id != null) {
// commonDialog.alert({
// title: 'Success',
// content: 'Modify Rpay+ Sub Merchant ID successfully',
// type: 'success'
// });
// $state.reload();
// }
// }, function (resp) {
// $scope.errmsg = resp.data.message;
// })
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/registRpaySubMerchantId', merchantInfo).then(function (resp) {
$scope.apply_sub_merchant_id = resp.data;
$scope.$close();
if (subMerchantInfo.sub_merchant_id != null) {
commonDialog.alert({
title: 'Success',
content: 'Modify Rpay+ Sub Merchant ID successfully',
type: 'success'
});
$state.reload();
}
}, function (resp) {
$scope.errmsg = resp.data.message;
})
}
}]);

@ -214,7 +214,7 @@
<div class="col-sm-8">
<select class="form-control" name="timezone" ng-model="subMerchantInfo.timezone"
id="timezone-input"
ng-options="structure.value as structure.label for structure in timezone">
ng-options="tz.key as tz.detail for tz in timezone">
<option value="">Please Choose</option>
</select>
</div>

Loading…
Cancel
Save