Commit a6abc899 authored by zhkwei's avatar zhkwei

1、VAT资产负债及发票记录模板下载的模板;2、固资筛选框还原...;3、添加收入类型配置代码优化

parent ffd3b7d5
...@@ -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">
......
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