parent
7c760fe803
commit
f48ccb5325
@ -0,0 +1,26 @@
|
|||||||
|
package au.com.royalpay.payment.manage.system.web;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
|
||||||
|
import au.com.royalpay.payment.manage.system.core.ClientContractService;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(value = "/manage/contract")
|
||||||
|
public class contractController {
|
||||||
|
@Resource
|
||||||
|
private ClientContractService clientContractService;
|
||||||
|
|
||||||
|
@ManagerMapping(value = "/list",method = RequestMethod.GET)
|
||||||
|
public List<JSONObject> list(){
|
||||||
|
return clientContractService.list();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
/**
|
||||||
|
* Created by yishuqian on 01/06/2017.
|
||||||
|
*/
|
||||||
|
define(['angular'], function (angular) {
|
||||||
|
'use strict';
|
||||||
|
var app = angular.module('contractApp', ['ui.router']);
|
||||||
|
app.config(['$stateProvider', function ($stateProvider) {
|
||||||
|
$stateProvider.state('contract', {
|
||||||
|
url: '/contract',
|
||||||
|
templateUrl: '/static/sys/templates/contract_sign.html',
|
||||||
|
controller: 'contractAnalysisCtrl'
|
||||||
|
})
|
||||||
|
}]);
|
||||||
|
app.controller('contractAnalysisCtrl', ['$scope', '$http', '$state', '$filter', 'commonDialog', function ($scope, $http, $state, $filter, commonDialog) {
|
||||||
|
$scope.getContractAnalysis = function () {
|
||||||
|
$http.get('/manage/contract/list').then(function (resp) {
|
||||||
|
$scope.contract_analysis = resp.data;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
$scope.getContractAnalysis();
|
||||||
|
}]);
|
||||||
|
return app;
|
||||||
|
});
|
@ -0,0 +1,70 @@
|
|||||||
|
<div class="modal-header">Contract</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="box box-danger">
|
||||||
|
<div class="box-header">费率已过期商户({{warning.no_rate.length}}家)</div>
|
||||||
|
<div class="box-body table-responsive">
|
||||||
|
<table class="table table-bordered table-striped table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Client Moniker</th>
|
||||||
|
<th>Short Name</th>
|
||||||
|
<th>Channel</th>
|
||||||
|
<th>BD</th>
|
||||||
|
<th>Latest Rate</th>
|
||||||
|
<th>Expire Date</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr ng-repeat="contract in contract_analysis">
|
||||||
|
<td>
|
||||||
|
<a ui-sref="partners.detail.rates({clientMoniker:client.client_moniker})" ng-bind="client.client_moniker"></a>
|
||||||
|
</td>
|
||||||
|
<td ng-bind="contract.client_id"></td>
|
||||||
|
<td ng-bind="contract.create_time|date:'dd/MMM/yyyy'"></td>
|
||||||
|
<td ng-bind="contract.has_sign"></td>
|
||||||
|
<td ng-bind="contract.sign_channel"></td>
|
||||||
|
<td ng-bind="contract.signatory"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box box-warning">
|
||||||
|
<div class="box-header">费率即将过期商户({{warning.rate_warning.length}}家)</div>
|
||||||
|
<div class="box-body table-responsive">
|
||||||
|
<table class="table table-bordered table-striped table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Client Moniker</th>
|
||||||
|
<th>Short Name</th>
|
||||||
|
<th>Channel</th>
|
||||||
|
<th>BD</th>
|
||||||
|
<th>Rate</th>
|
||||||
|
<th>Expire Date</th>
|
||||||
|
<th>Operation</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr ng-repeat="client in warning.rate_warning">
|
||||||
|
<td>
|
||||||
|
<a ui-sref="partners.detail.rates({clientMoniker:client.client_moniker})" ng-bind="client.client_moniker"></a>
|
||||||
|
</td>
|
||||||
|
<td ng-bind="client.short_name"></td>
|
||||||
|
<td ng-bind="client.rate_name"></td>
|
||||||
|
<td ng-bind="client.bd_user_name"></td>
|
||||||
|
<td ng-bind="client.rate_value"></td>
|
||||||
|
<td ng-bind="client.expiry_time|date:'dd/MMM/yyyy'"></td>
|
||||||
|
<td>
|
||||||
|
<button class="btn btn-primary" ng-if="client.generatable" type="button" ng-click="generateRate(client)">
|
||||||
|
<i class="fa fa-cogs"></i> 根据浮动费率生成
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button class="btn btn-danger" ng-click="$dismiss()">Close</button>
|
||||||
|
</div>
|
Loading…
Reference in new issue