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 {
private OrganizationServiceImpl organizationService;
@Autowired
private OrganizationAccountingRateMapper organizationAccountingRateMapper;
@Resource
private UserMapper userMapper;
private static String ebsCallUrl;
......@@ -2155,6 +2157,12 @@ public class DataImportService extends BaseService {
criteria.andTypeEqualTo(param.getType()).andDisplayEqualTo(true);
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");
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream()
......@@ -2193,7 +2201,14 @@ public class DataImportService extends BaseService {
DataImportLogExample.Criteria criteria = example.createCriteria();
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
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");
PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream()
.map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList()));
......
......@@ -15,11 +15,13 @@ import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.POIUtil;
import pwc.taxtech.atms.constant.enums.RevenueConfEnum;
import pwc.taxtech.atms.dao.OrganizationMapper;
import pwc.taxtech.atms.dpo.OrgSelectDto;
import pwc.taxtech.atms.dto.ApiResultDto;
import pwc.taxtech.atms.dto.revenuconf.RevConfAddDto;
import pwc.taxtech.atms.dto.revenuconf.RevenueConfParam;
import pwc.taxtech.atms.dto.revenuconf.RevenueConfResult;
import pwc.taxtech.atms.entity.Organization;
import pwc.taxtech.atms.exception.Exceptions;
import pwc.taxtech.atms.vat.dao.RevenueConfigMapper;
import pwc.taxtech.atms.vat.entity.RevenueConfig;
......@@ -38,6 +40,8 @@ public class RevenueConfService extends BaseService {
private RevenueConfigMapper revenueConfigMapper;
@Resource
private OrganizationServiceImpl organizationService;
@Resource
private OrganizationMapper organizationMapper;
/**
* 分页查询可查看的配置信息
......@@ -85,17 +89,25 @@ public class RevenueConfService extends BaseService {
*/
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())) {
//在新增之前先验证机构和名称组合是否唯一 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.setId(idService.nextId());
addDto.setOrgId(id);
......
......@@ -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() {
......@@ -1276,6 +1288,8 @@
$scope.selectedColumnMap = [];
$scope.incomeInvoiceTotalColumns = [];
$scope.initIncomeInvoiceTotalColumnsIndex = [];
$scope.showSearch = showSearch;
$scope.showSearch1 = showSearch1;
$scope.changeSheet = changeSheet;
$scope.doDataFilter = doDataFilter;
$scope.doDataFilterReset = doDataFilterReset;
......@@ -1287,7 +1301,7 @@
initAssetResultDxGrid();
// getAssetResultList(1);
$scope.refreshAssetResultListGrid();
showSearch();
getGroupList();
getGroupDetailList();
getUserPermission();
......
......@@ -138,8 +138,8 @@
<!--<asset-list-edit-modal asset-type="displayType-1" type="0"></asset-list-edit-modal>-->
<div id="assetsResultGrid" dx-data-grid="assetsResultGridOptions">
<div style="display: inline-block" data-options="dxTemplate:{ name:'totalGroupCount' }">
<button class="filter-button"
atms-popover ng-mouseenter="prepareSummary()"
<button class="filter-button" data-toggle="popover"
atms-popover ng-mouseenter="prepareSummary()" ng-click="showSearch1()" id = "assetListSearch"
popover-container="body" popover-auto-hide="true" data-overwrite="true"
use-optimized-placement-algorithm="true"
data-placement="bottom"
......
......@@ -446,7 +446,7 @@
-webkit-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;
left: 60%;
left: 58%;
.arrow {
left: 60% !important;
......
......@@ -282,7 +282,7 @@
format: {type: 'fixedPoint', precision: 2},
width: 100
},
{caption: $translate.instant('TaxGroupName '), dataField: "taxGroupName"},
{caption: $translate.instant('TaxGroupName '), dataField: "taxGroupName",width: 160},
{
caption: $translate.instant('DepreciationPeriod'),
dataField: "depreciationPeriod",
......
......@@ -192,6 +192,8 @@
__RequestVerificationToken: token,
withCredentials: true
}).then(function(data) {
$scope.importExcelFile = null;
$scope.fileName = null;
var resp = data.data;
$('#busy-indicator-container').hide();
deferred.resolve();
......
......@@ -147,7 +147,7 @@
dataField: "companyCode",
allowHeaderFiltering: false,
caption: $translate.instant('CompanyCode'),
width: '15%'
width: '13%'
}, {
dataField: "companyName",
allowHeaderFiltering: false,
......@@ -161,7 +161,7 @@
}, {
dataField: "periodYear",
allowHeaderFiltering: false,
width: '14%',
width: '8%',
caption: $translate.instant('YearPeriod')
},
/*{
......@@ -193,7 +193,7 @@
}, {
dataField: "operateTime",
allowHeaderFiltering: false,
width: '10%',
width: '18%',
caption: $translate.instant('LogOperationTime'),
calculateCellValue: function(data) {
return new Date(data.operateTime).formatDateTime('yyyy-MM-dd HH:mm:ss');
......@@ -213,6 +213,12 @@
selection: {
mode: "single"
},
paging: {
pageSize: 100,
},
scrolling: {
mode: "virtual"
},
grouping: {
autoExpandAll: false
},
......
......@@ -43,10 +43,8 @@
</form>
<div class="dt-init-wrapper">
<div class="dx-viewport grid-container">
<div id="extractFinancialGridContainer" dx-data-grid="extractFinancialGridOptions"
style="margin-top: 30px;">
</div>
<div id="extractFinancialGridContainer" dx-data-grid="extractFinancialGridOptions"
style="margin-top: 30px;">
</div>
<div class="page-footer">
<ack-pagination page-options="pagingOptions"
......
......@@ -239,6 +239,10 @@
height: calc(100% - 200px);
position: relative;
#extractFinancialGridContainer{
height: 460px;
}
.dropdown {
.dropdown-common();
......@@ -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 {
......
......@@ -133,6 +133,12 @@
selection: {
mode: "single"
},
paging: {
pageSize: 100,
},
scrolling: {
mode: "virtual"
},
grouping: {
autoExpandAll: false
},
......@@ -148,6 +154,7 @@
width: 518,
visible: true
},
height: '99%',
headerFilter: {
visible: false,
texts: {
......
......@@ -17,10 +17,8 @@
</div>
</div>
<div class="dt-init-wrapper">
<div class="dx-viewport grid-container">
<div id="importLogGridContainer" dx-data-grid="importLogGridOptions"
style="margin-top: 30px;">
</div>
<div id="importLogGridContainer" dx-data-grid="importLogGridOptions"
style="margin-top: 30px;">
</div>
<!--<div class="page-footer">
<ack-pagination page-options="pagingOptions"
......
......@@ -187,16 +187,10 @@
}
}
.importLogGridContainer {
height: calc(~'100% - 30px');
overflow: hidden;
position: absolute;
top: 0;
bottom: 136px; /* 130 + 6 */
left: 0;
right: 0;
background-color: #FFF;
#importLogGridContainer{
height: 460px;
}
}
.error-info-wrapper {
......
......@@ -222,11 +222,15 @@
bindingOptions: {
dataSource: 'pageConfDataSource',
},
scrolling: {
mode: "virtual"
},
selection: {
mode: 'multiple',
showCheckBoxesMode: 'always',
allowSelectAll: true
},
onSelectionChanged: function (data) {
$scope.selectedItems = data.selectedRowsData;
$scope.selectedRecourdCount = data.selectedRowsData.length;
......@@ -314,7 +318,7 @@
.success(function (res) {
if (res && 0 === res.code) {
if(res.message === "DuplicateName"){
SweetAlert.warning($translate.instant('NameShouldUniqueWarn'));
SweetAlert.warning(res.data+" "+$translate.instant('NameShouldUniqueWarn'));
return;
}
SweetAlert.success($translate.instant('RevenueAddSuccess'));
......
......@@ -188,16 +188,10 @@
}
}
.importPLStatusGridContainer {
height: calc(~'100% - 30px');
overflow: hidden;
position: absolute;
top: 0;
bottom: 136px; /* 130 + 6 */
left: 0;
right: 0;
background-color: #FFF;
#revenueGridContainer{
height: 460px;
}
}
.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