|
|
|
@ -219,17 +219,37 @@ define(['angular', 'uiRouter'], function () {
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
// 处理
|
|
|
|
|
$scope.handle = function (logId) {
|
|
|
|
|
$scope.handle = function (merchant) {
|
|
|
|
|
sessionStorage.setItem('channel', JSON.stringify($scope.channelList))
|
|
|
|
|
$uibModal
|
|
|
|
|
.open({
|
|
|
|
|
templateUrl: '/static/payment/validation/templates/handle_desc.html',
|
|
|
|
|
controller: 'handleCtrl',
|
|
|
|
|
controller: [
|
|
|
|
|
'$scope',
|
|
|
|
|
'$http',
|
|
|
|
|
'commonDialog',
|
|
|
|
|
'merchantInfo',
|
|
|
|
|
function ($scope, $http, commonDialog, merchantInfo) {
|
|
|
|
|
if (merchantInfo.resolve_msg) {
|
|
|
|
|
$scope.message = merchantInfo.resolve_msg
|
|
|
|
|
}
|
|
|
|
|
$scope.confirm = function () {
|
|
|
|
|
$http.post('/sys/financial/mark/resolve/message', { log_id: merchantInfo.log_id, message: $scope.message }).then(
|
|
|
|
|
function () {
|
|
|
|
|
$scope.$close()
|
|
|
|
|
},
|
|
|
|
|
function (resp) {
|
|
|
|
|
commonDialog.alert({ title: 'failed', content: resp.data.message, type: 'error' })
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
resolve: {
|
|
|
|
|
logId: [
|
|
|
|
|
merchantInfo: [
|
|
|
|
|
'$stateParams',
|
|
|
|
|
function () {
|
|
|
|
|
return logId
|
|
|
|
|
return merchant
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|