|
|
|
@ -12,12 +12,13 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
}).state('partnerIncrementalServiceInfo', {
|
|
|
|
|
url: '/partner_incremental_service_info',
|
|
|
|
|
url: '/partner_incremental_service_info?:channel',
|
|
|
|
|
templateUrl: '/static/incrementalService/templates/partner_incremental_service_info.html',
|
|
|
|
|
controller: 'partnerIncrementalServiceInfoCtrl',
|
|
|
|
|
params:{
|
|
|
|
|
service:null,
|
|
|
|
|
partner:null
|
|
|
|
|
resolve:{
|
|
|
|
|
partner:['$http',function($http){
|
|
|
|
|
return $http.get('/client/partner_info');
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}]);
|
|
|
|
@ -26,7 +27,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$scope.serviceAll = [];
|
|
|
|
|
$scope.channelOptions = [];
|
|
|
|
|
$scope.windowHeight = document.body.clientWidth;
|
|
|
|
|
$scope.clientInfo = angular.copy(partner.data);
|
|
|
|
|
$scope.clientInfo = partner.data
|
|
|
|
|
$scope.initDate = function(){
|
|
|
|
|
$http.get("/client/partner_info/"+$scope.clientInfo.client_moniker+"/incremental_service").then(function (res) {
|
|
|
|
|
$scope.serviceAll = res.data.all_service;
|
|
|
|
@ -35,18 +36,18 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
})
|
|
|
|
|
$scope.channelOptions = res.data.incremental_channel;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
$scope.initDate();
|
|
|
|
|
$scope.queryServiceInfo = function(service){
|
|
|
|
|
$state.go('partnerIncrementalServiceInfo', {service: service,partner:$scope.clientInfo});
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('partnerIncrementalServiceInfoCtrl',['$scope', '$http', '$state','$stateParams','$filter', '$timeout', 'partnerRefunder', 'orderService', 'commonDialog',
|
|
|
|
|
function($scope,$http,$state,$stateParams,$filter, $timeout, partnerRefunder, orderService, commonDialog){
|
|
|
|
|
app.controller('partnerIncrementalServiceInfoCtrl',['$scope', '$http', '$state','$stateParams','$filter', '$timeout', 'partnerRefunder', 'orderService', 'commonDialog','partner',
|
|
|
|
|
function($scope,$http,$state,$stateParams,$filter, $timeout, partnerRefunder, orderService, commonDialog,partner){
|
|
|
|
|
$scope.serviceInfo = {}
|
|
|
|
|
$scope.initDate = function () {
|
|
|
|
|
$scope.serviceInfo = angular.copy($stateParams.service)
|
|
|
|
|
$http.get("/client/partner_info/"+partner.data.client_moniker+"/incremental_service/"+$stateParams.channel+"/info").then(function(res){
|
|
|
|
|
$scope.serviceInfo =res.data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
$scope.initDate();
|
|
|
|
|
$scope.params = {source: $scope.serviceInfo.channel,status: 'PAID', channel :'ALL' ,textType: 'all', datefrom: new Date(), dateto: new Date()};
|
|
|
|
|