Commit 3176930d authored by Eddie.Wu's avatar Eddie.Wu

Merge branch 'dev_wzk' into 'dev_mysql'

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

See merge request root/atms!346
parents 87ff881f abda5873
...@@ -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();
......
...@@ -93,17 +93,20 @@ public class RevenueConfService extends BaseService { ...@@ -93,17 +93,20 @@ public class RevenueConfService extends BaseService {
//在新增之前先验证机构和名称组合是否唯一 by zhikai.wei start //在新增之前先验证机构和名称组合是否唯一 by zhikai.wei start
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
ApiResultDto apiResultDto = new ApiResultDto(); ApiResultDto apiResultDto = new ApiResultDto();
//循环前台选择的每一家机构
for (String orgId : addDto.getOrgList()) { for (String orgId : addDto.getOrgList()) {
RevenueConfigExample revenueConfigExample = new RevenueConfigExample(); RevenueConfigExample revenueConfigExample = new RevenueConfigExample();
revenueConfigExample.createCriteria().andNameEqualTo(addDto.getName()).andOrgIdEqualTo(orgId); revenueConfigExample.createCriteria().andNameEqualTo(addDto.getName()).andOrgIdEqualTo(orgId);
List<RevenueConfig> list = revenueConfigMapper.selectByExample(revenueConfigExample); List<RevenueConfig> list = revenueConfigMapper.selectByExample(revenueConfigExample);
//判断根据机构和名称是否能查询出数据
if (list.size() > 0) { if (list.size() > 0) {
sb.append(organizationMapper.selectByPrimaryKey(orgId).getName()).append("\n"); sb.append(organizationMapper.selectByPrimaryKey(orgId).getName()).append("\n");
apiResultDto.setMessage("DuplicateName");
} }
} }
if(StringUtils.isNotBlank(apiResultDto.getMessage())){ //若有机构重复,哪怕只有一家机构重复,就返回错误信息,且不会做插入
if(sb.length()>0){
apiResultDto.setData(sb.toString()); apiResultDto.setData(sb.toString());
apiResultDto.setMessage("DuplicateName");
return apiResultDto; return apiResultDto;
} }
//在新增之前先验证机构和名称组合是否唯一 by zhikai.wei end //在新增之前先验证机构和名称组合是否唯一 by zhikai.wei end
......
citModule.controller('CitImportAssetListController', ['$scope', '$log', '$translate', '$timeout', '$compile', '$uibModal', 'apiInterceptor', 'Upload', citModule.controller('CitImportAssetListController', ['$scope', '$log', '$translate', '$timeout', '$compile', '$uibModal', 'apiInterceptor', 'Upload',
'assetListService', 'SweetAlert', '$q', 'uiGridConstants', '$interval', 'vatSessionService', 'citSessionService', 'vatImportService', 'loginContext', 'assetListService', 'SweetAlert', '$q', 'uiGridConstants', '$interval', 'vatSessionService', 'citSessionService', 'vatImportService', 'loginContext',
'browserService', 'enums', 'vatOperationLogService', 'projectService', 'vatCommonService', 'ackMessageBox', 'browserService', 'enums', 'vatOperationLogService', 'projectService', 'vatCommonService', 'ackMessageBox',
function ($scope, $log, $translate, $timeout, $compile, $uibModal, apiInterceptor, Upload, assetListService, SweetAlert, $q, uiGridConstants, function ($scope, $log, $translate, $timeout, $compile, $uibModal, apiInterceptor, Upload, assetListService, SweetAlert, $q, uiGridConstants,
...@@ -1266,18 +1266,6 @@ ...@@ -1266,18 +1266,6 @@
}; };
var showSearch = function () {
$("[data-toggle='popover']").popover();
};
var showSearch1 = function () {
var aaaa = $("#assetListSearch").hasClass("popover");
var bbbb = $("#assetListSearch").hasClass("show");
if($("#assetListSearch").hasClass("popover")){
}
};
//开始 //开始
(function initialize() { (function initialize() {
...@@ -1288,8 +1276,6 @@ ...@@ -1288,8 +1276,6 @@
$scope.selectedColumnMap = []; $scope.selectedColumnMap = [];
$scope.incomeInvoiceTotalColumns = []; $scope.incomeInvoiceTotalColumns = [];
$scope.initIncomeInvoiceTotalColumnsIndex = []; $scope.initIncomeInvoiceTotalColumnsIndex = [];
$scope.showSearch = showSearch;
$scope.showSearch1 = showSearch1;
$scope.changeSheet = changeSheet; $scope.changeSheet = changeSheet;
$scope.doDataFilter = doDataFilter; $scope.doDataFilter = doDataFilter;
$scope.doDataFilterReset = doDataFilterReset; $scope.doDataFilterReset = doDataFilterReset;
...@@ -1301,7 +1287,7 @@ ...@@ -1301,7 +1287,7 @@
initAssetResultDxGrid(); initAssetResultDxGrid();
// getAssetResultList(1); // getAssetResultList(1);
$scope.refreshAssetResultListGrid(); $scope.refreshAssetResultListGrid();
showSearch();
getGroupList(); getGroupList();
getGroupDetailList(); getGroupDetailList();
getUserPermission(); getUserPermission();
......
<div class="cit-import-asset-list"> <div class="cit-import-asset-list">
<div class="nav-wrapper"> <div class="nav-wrapper">
<div class="nav-header">{{'AssetList' | translate}}</div> <div class="nav-header">{{'AssetList' | translate}}</div>
<div class="nav-tab"> <div class="nav-tab">
......
...@@ -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