Commit 128e337d authored by zhkwei's avatar zhkwei

1、总分机构分配比例;2、发票记录导出模板;

parent a6abc899
...@@ -85,7 +85,7 @@ public class CitReportController { ...@@ -85,7 +85,7 @@ public class CitReportController {
try{ try{
apiResultDto.setCode(1); apiResultDto.setCode(1);
apiResultDto.setMessage("生成成功"); apiResultDto.setMessage("生成成功");
apiResultDto.setData(citReportService.generateTotalBranchOrgDisTable(citDistributionDto.getProjectId())); apiResultDto.setData(citReportService.geneTotalBranchOrgDT(citDistributionDto.getProjectId()));
return apiResultDto; return apiResultDto;
}catch(Exception e){ }catch(Exception e){
e.printStackTrace(); e.printStackTrace();
......
...@@ -180,11 +180,15 @@ ...@@ -180,11 +180,15 @@
$scope.startCalculateData = function () { $scope.startCalculateData = function () {
citReportService.generateDistributionTable($scope.queryParams).success(function (data) { citReportService.generateDistributionTable($scope.queryParams).success(function (data) {
if (data.code != 0) {
$scope.totalBusinessIncome = data.data.totalBusinessIncome; $scope.totalBusinessIncome = data.data.totalBusinessIncome;
$scope.totalEmployeeRemuneration = data.data.totalEmployeeRemuneration; $scope.totalEmployeeRemuneration = data.data.totalEmployeeRemuneration;
$scope.totalTotalAssets = data.data.totalTotalAssets; $scope.totalTotalAssets = data.data.totalTotalAssets;
loadJournalEntryDataFromDB(); loadJournalEntryDataFromDB();
SweetAlert.success($translate.instant('ImportSuccess'))
} else {
SweetAlert.error($translate.instant('PleaseContactAdministrator'));
}
// if(status===204){ // if(status===204){
// SweetAlert.warning("没有数据可以下载"); // SweetAlert.warning("没有数据可以下载");
// return; // return;
...@@ -264,7 +268,7 @@ ...@@ -264,7 +268,7 @@
{ {
caption: $translate.instant('DistributionRatio'), caption: $translate.instant('DistributionRatio'),
dataField: "distributionRatio", dataField: "distributionRatio",
format: {type: 'fixedPoint', precision: 2}, format: {type: 'percent', precision: 2},
width: 200 width: 200
} }
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment