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 {
try{
apiResultDto.setCode(1);
apiResultDto.setMessage("生成成功");
apiResultDto.setData(citReportService.generateTotalBranchOrgDisTable(citDistributionDto.getProjectId()));
apiResultDto.setData(citReportService.geneTotalBranchOrgDT(citDistributionDto.getProjectId()));
return apiResultDto;
}catch(Exception e){
e.printStackTrace();
......
......@@ -93,17 +93,20 @@ public class RevenueConfService extends BaseService {
//在新增之前先验证机构和名称组合是否唯一 by zhikai.wei start
StringBuilder sb = new StringBuilder();
ApiResultDto apiResultDto = new ApiResultDto();
//循环前台选择的每一家机构
for (String orgId : addDto.getOrgList()) {
RevenueConfigExample revenueConfigExample = new RevenueConfigExample();
revenueConfigExample.createCriteria().andNameEqualTo(addDto.getName()).andOrgIdEqualTo(orgId);
List<RevenueConfig> list = revenueConfigMapper.selectByExample(revenueConfigExample);
//判断根据机构和名称是否能查询出数据
if (list.size() > 0) {
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.setMessage("DuplicateName");
return apiResultDto;
}
//在新增之前先验证机构和名称组合是否唯一 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',
'browserService', 'enums', 'vatOperationLogService', 'projectService', 'vatCommonService', 'ackMessageBox',
function ($scope, $log, $translate, $timeout, $compile, $uibModal, apiInterceptor, Upload, assetListService, SweetAlert, $q, uiGridConstants,
......@@ -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() {
......@@ -1288,8 +1276,6 @@
$scope.selectedColumnMap = [];
$scope.incomeInvoiceTotalColumns = [];
$scope.initIncomeInvoiceTotalColumnsIndex = [];
$scope.showSearch = showSearch;
$scope.showSearch1 = showSearch1;
$scope.changeSheet = changeSheet;
$scope.doDataFilter = doDataFilter;
$scope.doDataFilterReset = doDataFilterReset;
......@@ -1301,7 +1287,7 @@
initAssetResultDxGrid();
// getAssetResultList(1);
$scope.refreshAssetResultListGrid();
showSearch();
getGroupList();
getGroupDetailList();
getUserPermission();
......
<div class="cit-import-asset-list">
<div class="cit-import-asset-list">
<div class="nav-wrapper">
<div class="nav-header">{{'AssetList' | translate}}</div>
<div class="nav-tab">
......
......@@ -180,11 +180,15 @@
$scope.startCalculateData = function () {
citReportService.generateDistributionTable($scope.queryParams).success(function (data) {
if (data.code != 0) {
$scope.totalBusinessIncome = data.data.totalBusinessIncome;
$scope.totalEmployeeRemuneration = data.data.totalEmployeeRemuneration;
$scope.totalTotalAssets = data.data.totalTotalAssets;
loadJournalEntryDataFromDB();
SweetAlert.success($translate.instant('ImportSuccess'))
} else {
SweetAlert.error($translate.instant('PleaseContactAdministrator'));
}
// if(status===204){
// SweetAlert.warning("没有数据可以下载");
// return;
......@@ -264,7 +268,7 @@
{
caption: $translate.instant('DistributionRatio'),
dataField: "distributionRatio",
format: {type: 'fixedPoint', precision: 2},
format: {type: 'percent', precision: 2},
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