Commit 11c870af authored by Administrator's avatar Administrator

Merge branch 'dev_wzk' into 'dev_mysql'

1、固资损失把隐藏列显示出来;2、固资导入界面优化;3、财务数据抽取及数据导入记录页面只有admin查看全部及页面Grid高度变化;4、收入类型配置机构和名称组成唯一并更改Grid高度变化

See merge request root/atms!342
parents bfca9714 ffd3b7d5
...@@ -104,6 +104,8 @@ public class DataImportService extends BaseService { ...@@ -104,6 +104,8 @@ public class DataImportService extends BaseService {
private OrganizationServiceImpl organizationService; private OrganizationServiceImpl organizationService;
@Autowired @Autowired
private OrganizationAccountingRateMapper organizationAccountingRateMapper; private OrganizationAccountingRateMapper organizationAccountingRateMapper;
@Resource
private UserMapper userMapper;
private static String ebsCallUrl; private static String ebsCallUrl;
...@@ -2155,6 +2157,12 @@ public class DataImportService extends BaseService { ...@@ -2155,6 +2157,12 @@ public class DataImportService extends BaseService {
criteria.andTypeEqualTo(param.getType()).andDisplayEqualTo(true); criteria.andTypeEqualTo(param.getType()).andDisplayEqualTo(true);
criteria.andOrganizationIdIn(orgIds); criteria.andOrganizationIdIn(orgIds);
} }
//财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的
String uid = authUserHelper.getCurrentUserId();
User user = userMapper.selectByPrimaryKey(uid);
if (!user.getIsSuperAdmin()) {
criteria.andOperatorEqualTo(authUserHelper.getCurrentAuditor().get());
}
example.setOrderByClause("update_time desc"); example.setOrderByClause("update_time desc");
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize()); Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream() PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream()
...@@ -2193,7 +2201,14 @@ public class DataImportService extends BaseService { ...@@ -2193,7 +2201,14 @@ public class DataImportService extends BaseService {
DataImportLogExample.Criteria criteria = example.createCriteria(); DataImportLogExample.Criteria criteria = example.createCriteria();
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize()); Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
List<String> orgIds = organizationService.getMyOrgList().stream().map(OrgSelectDto::getId).collect(Collectors.toList()); List<String> orgIds = organizationService.getMyOrgList().stream().map(OrgSelectDto::getId).collect(Collectors.toList());
criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate); //财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的
String uid = authUserHelper.getCurrentUserId();
User user = userMapper.selectByPrimaryKey(uid);
if (user.getIsSuperAdmin()) {
criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate);
} else {
criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate).andOperatorEqualTo(authUserHelper.getCurrentAuditor().get());
}
example.setOrderByClause("update_time desc"); example.setOrderByClause("update_time desc");
PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream() PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream()
.map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList())); .map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList()));
......
...@@ -15,11 +15,13 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -15,11 +15,13 @@ import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.CommonUtils; import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.POIUtil; import pwc.taxtech.atms.common.POIUtil;
import pwc.taxtech.atms.constant.enums.RevenueConfEnum; import pwc.taxtech.atms.constant.enums.RevenueConfEnum;
import pwc.taxtech.atms.dao.OrganizationMapper;
import pwc.taxtech.atms.dpo.OrgSelectDto; import pwc.taxtech.atms.dpo.OrgSelectDto;
import pwc.taxtech.atms.dto.ApiResultDto; import pwc.taxtech.atms.dto.ApiResultDto;
import pwc.taxtech.atms.dto.revenuconf.RevConfAddDto; import pwc.taxtech.atms.dto.revenuconf.RevConfAddDto;
import pwc.taxtech.atms.dto.revenuconf.RevenueConfParam; import pwc.taxtech.atms.dto.revenuconf.RevenueConfParam;
import pwc.taxtech.atms.dto.revenuconf.RevenueConfResult; import pwc.taxtech.atms.dto.revenuconf.RevenueConfResult;
import pwc.taxtech.atms.entity.Organization;
import pwc.taxtech.atms.exception.Exceptions; import pwc.taxtech.atms.exception.Exceptions;
import pwc.taxtech.atms.vat.dao.RevenueConfigMapper; import pwc.taxtech.atms.vat.dao.RevenueConfigMapper;
import pwc.taxtech.atms.vat.entity.RevenueConfig; import pwc.taxtech.atms.vat.entity.RevenueConfig;
...@@ -38,6 +40,8 @@ public class RevenueConfService extends BaseService { ...@@ -38,6 +40,8 @@ public class RevenueConfService extends BaseService {
private RevenueConfigMapper revenueConfigMapper; private RevenueConfigMapper revenueConfigMapper;
@Resource @Resource
private OrganizationServiceImpl organizationService; private OrganizationServiceImpl organizationService;
@Resource
private OrganizationMapper organizationMapper;
/** /**
* 分页查询可查看的配置信息 * 分页查询可查看的配置信息
...@@ -85,17 +89,25 @@ public class RevenueConfService extends BaseService { ...@@ -85,17 +89,25 @@ public class RevenueConfService extends BaseService {
*/ */
public ApiResultDto addConfig(RevConfAddDto addDto) { public ApiResultDto addConfig(RevConfAddDto addDto) {
RevenueConfigExample revenueConfigExample = new RevenueConfigExample();
revenueConfigExample.createCriteria().andNameEqualTo(addDto.getName());
List<RevenueConfig> list = revenueConfigMapper.selectByExample(revenueConfigExample);
if (list.size() > 0) {
ApiResultDto apiResultDto = ApiResultDto.success();
apiResultDto.setMessage("DuplicateName");
return apiResultDto;
}
if (!CollectionUtils.isEmpty(addDto.getOrgList())) { if (!CollectionUtils.isEmpty(addDto.getOrgList())) {
//在新增之前先验证机构和名称组合是否唯一 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())){
apiResultDto.setData(sb.toString());
return apiResultDto;
}
//在新增之前先验证机构和名称组合是否唯一 by zhikai.wei end
addDto.getOrgList().forEach(id -> { addDto.getOrgList().forEach(id -> {
addDto.setId(idService.nextId()); addDto.setId(idService.nextId());
addDto.setOrgId(id); addDto.setOrgId(id);
......
...@@ -1266,6 +1266,18 @@ ...@@ -1266,6 +1266,18 @@
}; };
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() {
...@@ -1276,6 +1288,8 @@ ...@@ -1276,6 +1288,8 @@
$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;
...@@ -1287,7 +1301,7 @@ ...@@ -1287,7 +1301,7 @@
initAssetResultDxGrid(); initAssetResultDxGrid();
// getAssetResultList(1); // getAssetResultList(1);
$scope.refreshAssetResultListGrid(); $scope.refreshAssetResultListGrid();
showSearch();
getGroupList(); getGroupList();
getGroupDetailList(); getGroupDetailList();
getUserPermission(); getUserPermission();
......
...@@ -138,8 +138,8 @@ ...@@ -138,8 +138,8 @@
<!--<asset-list-edit-modal asset-type="displayType-1" type="0"></asset-list-edit-modal>--> <!--<asset-list-edit-modal asset-type="displayType-1" type="0"></asset-list-edit-modal>-->
<div id="assetsResultGrid" dx-data-grid="assetsResultGridOptions"> <div id="assetsResultGrid" dx-data-grid="assetsResultGridOptions">
<div style="display: inline-block" data-options="dxTemplate:{ name:'totalGroupCount' }"> <div style="display: inline-block" data-options="dxTemplate:{ name:'totalGroupCount' }">
<button class="filter-button" <button class="filter-button" data-toggle="popover"
atms-popover ng-mouseenter="prepareSummary()" atms-popover ng-mouseenter="prepareSummary()" ng-click="showSearch1()" id = "assetListSearch"
popover-container="body" popover-auto-hide="true" data-overwrite="true" popover-container="body" popover-auto-hide="true" data-overwrite="true"
use-optimized-placement-algorithm="true" use-optimized-placement-algorithm="true"
data-placement="bottom" data-placement="bottom"
......
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
min-width: 370px; min-width: 370px;
left: 60%; left: 58%;
.arrow { .arrow {
left: 60% !important; left: 60% !important;
......
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
format: {type: 'fixedPoint', precision: 2}, format: {type: 'fixedPoint', precision: 2},
width: 100 width: 100
}, },
{caption: $translate.instant('TaxGroupName '), dataField: "taxGroupName"}, {caption: $translate.instant('TaxGroupName '), dataField: "taxGroupName",width: 160},
{ {
caption: $translate.instant('DepreciationPeriod'), caption: $translate.instant('DepreciationPeriod'),
dataField: "depreciationPeriod", dataField: "depreciationPeriod",
......
...@@ -192,6 +192,8 @@ ...@@ -192,6 +192,8 @@
__RequestVerificationToken: token, __RequestVerificationToken: token,
withCredentials: true withCredentials: true
}).then(function(data) { }).then(function(data) {
$scope.importExcelFile = null;
$scope.fileName = null;
var resp = data.data; var resp = data.data;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
dataField: "companyCode", dataField: "companyCode",
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: $translate.instant('CompanyCode'), caption: $translate.instant('CompanyCode'),
width: '15%' width: '13%'
}, { }, {
dataField: "companyName", dataField: "companyName",
allowHeaderFiltering: false, allowHeaderFiltering: false,
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
}, { }, {
dataField: "periodYear", dataField: "periodYear",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '14%', width: '8%',
caption: $translate.instant('YearPeriod') caption: $translate.instant('YearPeriod')
}, },
/*{ /*{
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
}, { }, {
dataField: "operateTime", dataField: "operateTime",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '18%',
caption: $translate.instant('LogOperationTime'), caption: $translate.instant('LogOperationTime'),
calculateCellValue: function(data) { calculateCellValue: function(data) {
return new Date(data.operateTime).formatDateTime('yyyy-MM-dd HH:mm:ss'); return new Date(data.operateTime).formatDateTime('yyyy-MM-dd HH:mm:ss');
...@@ -213,6 +213,12 @@ ...@@ -213,6 +213,12 @@
selection: { selection: {
mode: "single" mode: "single"
}, },
paging: {
pageSize: 100,
},
scrolling: {
mode: "virtual"
},
grouping: { grouping: {
autoExpandAll: false autoExpandAll: false
}, },
......
...@@ -43,10 +43,8 @@ ...@@ -43,10 +43,8 @@
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div id="extractFinancialGridContainer" dx-data-grid="extractFinancialGridOptions"
<div id="extractFinancialGridContainer" dx-data-grid="extractFinancialGridOptions" style="margin-top: 30px;">
style="margin-top: 30px;">
</div>
</div> </div>
<div class="page-footer"> <div class="page-footer">
<ack-pagination page-options="pagingOptions" <ack-pagination page-options="pagingOptions"
......
...@@ -239,6 +239,10 @@ ...@@ -239,6 +239,10 @@
height: calc(100% - 200px); height: calc(100% - 200px);
position: relative; position: relative;
#extractFinancialGridContainer{
height: 460px;
}
.dropdown { .dropdown {
.dropdown-common(); .dropdown-common();
...@@ -247,16 +251,6 @@ ...@@ -247,16 +251,6 @@
} }
} }
.extractFinancialGridContainer {
height: calc(~'100% - 30px');
overflow: hidden;
position: absolute;
top: 0;
bottom: 136px; /* 130 + 6 */
left: 0;
right: 0;
background-color: #FFF;
}
} }
.error-info-wrapper { .error-info-wrapper {
......
...@@ -133,6 +133,12 @@ ...@@ -133,6 +133,12 @@
selection: { selection: {
mode: "single" mode: "single"
}, },
paging: {
pageSize: 100,
},
scrolling: {
mode: "virtual"
},
grouping: { grouping: {
autoExpandAll: false autoExpandAll: false
}, },
...@@ -148,6 +154,7 @@ ...@@ -148,6 +154,7 @@
width: 518, width: 518,
visible: true visible: true
}, },
height: '99%',
headerFilter: { headerFilter: {
visible: false, visible: false,
texts: { texts: {
......
...@@ -17,10 +17,8 @@ ...@@ -17,10 +17,8 @@
</div> </div>
</div> </div>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div id="importLogGridContainer" dx-data-grid="importLogGridOptions"
<div id="importLogGridContainer" dx-data-grid="importLogGridOptions" style="margin-top: 30px;">
style="margin-top: 30px;">
</div>
</div> </div>
<!--<div class="page-footer"> <!--<div class="page-footer">
<ack-pagination page-options="pagingOptions" <ack-pagination page-options="pagingOptions"
......
...@@ -187,16 +187,10 @@ ...@@ -187,16 +187,10 @@
} }
} }
.importLogGridContainer { #importLogGridContainer{
height: calc(~'100% - 30px'); height: 460px;
overflow: hidden;
position: absolute;
top: 0;
bottom: 136px; /* 130 + 6 */
left: 0;
right: 0;
background-color: #FFF;
} }
} }
.error-info-wrapper { .error-info-wrapper {
......
...@@ -222,11 +222,15 @@ ...@@ -222,11 +222,15 @@
bindingOptions: { bindingOptions: {
dataSource: 'pageConfDataSource', dataSource: 'pageConfDataSource',
}, },
scrolling: {
mode: "virtual"
},
selection: { selection: {
mode: 'multiple', mode: 'multiple',
showCheckBoxesMode: 'always', showCheckBoxesMode: 'always',
allowSelectAll: true allowSelectAll: true
}, },
onSelectionChanged: function (data) { onSelectionChanged: function (data) {
$scope.selectedItems = data.selectedRowsData; $scope.selectedItems = data.selectedRowsData;
$scope.selectedRecourdCount = data.selectedRowsData.length; $scope.selectedRecourdCount = data.selectedRowsData.length;
...@@ -314,7 +318,7 @@ ...@@ -314,7 +318,7 @@
.success(function (res) { .success(function (res) {
if (res && 0 === res.code) { if (res && 0 === res.code) {
if(res.message === "DuplicateName"){ if(res.message === "DuplicateName"){
SweetAlert.warning($translate.instant('NameShouldUniqueWarn')); SweetAlert.warning(res.data+" "+$translate.instant('NameShouldUniqueWarn'));
return; return;
} }
SweetAlert.success($translate.instant('RevenueAddSuccess')); SweetAlert.success($translate.instant('RevenueAddSuccess'));
......
...@@ -188,16 +188,10 @@ ...@@ -188,16 +188,10 @@
} }
} }
.importPLStatusGridContainer { #revenueGridContainer{
height: calc(~'100% - 30px'); height: 460px;
overflow: hidden;
position: absolute;
top: 0;
bottom: 136px; /* 130 + 6 */
left: 0;
right: 0;
background-color: #FFF;
} }
} }
.error-info-wrapper { .error-info-wrapper {
......
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