|
|
|
@ -1588,26 +1588,16 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/query/alipay_gms_json').then(function (resp) {
|
|
|
|
|
$scope.alipay_gms_json = resp.data;
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
|
title: 'Warning',
|
|
|
|
|
content: '是否使用该商户的现有信息进件?',
|
|
|
|
|
json:$scope.alipay_gms_json
|
|
|
|
|
title: 'Warning',
|
|
|
|
|
content: '是否使用该商户的现有信息进件?',
|
|
|
|
|
json: $scope.alipay_gms_json
|
|
|
|
|
}).then(function () {
|
|
|
|
|
if ($scope.partner.business_structure === "Company") {
|
|
|
|
|
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/register/alipay_gms', {representative_id: ""}).then(function () {
|
|
|
|
|
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/register/alipay_gms').then(function () {
|
|
|
|
|
commonDialog.alert({title: 'Success', content: 'Alipay进件成功', type: 'success'});
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: "进件失败:" + resp.data.message, type: 'error'});
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
commonDialog.inputText({title: '请输入商户身份证或护照号码'}).then(function (text) {
|
|
|
|
|
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/register/alipay_gms', {representative_id: text}).then(function () {
|
|
|
|
|
commonDialog.alert({title: 'Success', content: '提示:Alipay进件成功', type: 'success'});
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: "进件失败:" + resp.data.message, type: 'error'});
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.queryAlipayGms = function () {
|
|
|
|
@ -1625,14 +1615,11 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
content: '是否使用该商户的现有信息进件?',
|
|
|
|
|
json:$scope.alipayOnline_gms_json
|
|
|
|
|
}).then(function () {
|
|
|
|
|
commonDialog.inputText({title: '请输入商户身份证或护照号码'}).then(function (text) {
|
|
|
|
|
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/register/alipayOnline_gms', {representative_id: text}).then(function () {
|
|
|
|
|
commonDialog.alert({title: 'Success', content: '提示:AlipayOnline进件成功', type: 'success'});
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: "进件失败:" + resp.data.message, type: 'error'});
|
|
|
|
|
})
|
|
|
|
|
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/register/alipayOnline_gms').then(function () {
|
|
|
|
|
commonDialog.alert({title: 'Success', content: '提示:AlipayOnline进件成功', type: 'success'});
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: "进件失败:" + resp.data.message, type: 'error'});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|