Commit de9017ae authored by weizhikai's avatar weizhikai

1、导入分发导入文件后取消文件名;2、数据日志记录分页

parent 14c21be7
...@@ -1766,11 +1766,8 @@ public class DataImportService extends BaseService { ...@@ -1766,11 +1766,8 @@ public class DataImportService extends BaseService {
if (!"".equals(value)) { if (!"".equals(value)) {
rlit.setRedLetterInvoiceInfoTableNum(new BigDecimal(value.toString()).toPlainString()); rlit.setRedLetterInvoiceInfoTableNum(new BigDecimal(value.toString()).toPlainString());
} }
rlit.setPeriod(periodDate); rlit.setPeriod(DateUtils.dateToPeriod(row.getCell(3).getDateCellValue()));
try{ rlit.setFillInDate(row.getCell(3).getDateCellValue());
rlit.setFillInDate(row.getCell(1).getDateCellValue());
}catch (Exception e){
}
rlit.setSalesTaxNumber(getCellStringValue(row.getCell(4))); rlit.setSalesTaxNumber(getCellStringValue(row.getCell(4)));
rlit.setSalespersonName(getCellStringValue(row.getCell(5))); rlit.setSalespersonName(getCellStringValue(row.getCell(5)));
rlit.setTotalAmount(getCellBigDecimalValue(row.getCell(6),evaluator)); rlit.setTotalAmount(getCellBigDecimalValue(row.getCell(6),evaluator));
...@@ -2199,7 +2196,6 @@ public class DataImportService extends BaseService { ...@@ -2199,7 +2196,6 @@ public class DataImportService extends BaseService {
DataImportLogExample example = new DataImportLogExample(); DataImportLogExample example = new DataImportLogExample();
DataImportLogExample.Criteria criteria = example.createCriteria(); 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()); List<String> orgIds = organizationService.getMyOrgList().stream().map(OrgSelectDto::getId).collect(Collectors.toList());
//财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的 //财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的
String uid = authUserHelper.getCurrentUserId(); String uid = authUserHelper.getCurrentUserId();
...@@ -2210,6 +2206,7 @@ public class DataImportService extends BaseService { ...@@ -2210,6 +2206,7 @@ public class DataImportService extends BaseService {
criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate).andOperatorEqualTo(authUserHelper.getCurrentAuditor().get()); criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate).andOperatorEqualTo(authUserHelper.getCurrentAuditor().get());
} }
example.setOrderByClause("update_time desc"); example.setOrderByClause("update_time desc");
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()
.map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList())); .map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList()));
pageInfo.setTotal(page.getTotal()); pageInfo.setTotal(page.getTotal());
......
...@@ -767,6 +767,8 @@ ...@@ -767,6 +767,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -741,6 +741,8 @@ ...@@ -741,6 +741,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -744,6 +744,8 @@ ...@@ -744,6 +744,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName=''; $scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -169,6 +169,8 @@ ...@@ -169,6 +169,8 @@
withCredentials: true withCredentials: true
}).then(function (data) { }).then(function (data) {
var resp = data.data; var resp = data.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.data || resp.result) { if (resp.data || resp.result) {
......
...@@ -161,6 +161,8 @@ ...@@ -161,6 +161,8 @@
withCredentials: true withCredentials: true
}).then(function(data) { }).then(function(data) {
var resp = data.data; var resp = data.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.data || resp.result) { if (resp.data || resp.result) {
......
...@@ -160,6 +160,8 @@ ...@@ -160,6 +160,8 @@
withCredentials: true withCredentials: true
}).then(function(data) { }).then(function(data) {
var resp = data.data; var resp = data.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.data || resp.result) { if (resp.data || resp.result) {
......
...@@ -173,7 +173,8 @@ ...@@ -173,7 +173,8 @@
withCredentials: true withCredentials: true
}).then(function(data) { }).then(function(data) {
var resp = data.data; var resp = data.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.result) { if (resp.result) {
......
...@@ -169,6 +169,8 @@ ...@@ -169,6 +169,8 @@
withCredentials: true withCredentials: true
}).then(function(data) { }).then(function(data) {
var resp = data.data; var resp = data.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.data || resp.result) { if (resp.data || resp.result) {
......
...@@ -192,9 +192,9 @@ ...@@ -192,9 +192,9 @@
__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;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (resp.result) { if (resp.result) {
......
...@@ -172,6 +172,8 @@ ...@@ -172,6 +172,8 @@
withCredentials: true withCredentials: true
}).then(function(data) { }).then(function(data) {
$scope.fileNameShow=false; $scope.fileNameShow=false;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
var resp = data.data; var resp = data.data;
deferred.resolve(); deferred.resolve();
......
...@@ -209,6 +209,8 @@ ...@@ -209,6 +209,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -192,7 +192,8 @@ ...@@ -192,7 +192,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -195,6 +195,8 @@ ...@@ -195,6 +195,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -194,6 +194,8 @@ ...@@ -194,6 +194,8 @@
withCredentials: true withCredentials: true
}).then(function(resp) { }).then(function(resp) {
var ret = resp.data; var ret = resp.data;
$scope.fileName='';
$scope.importExcelFile = null;
$('#busy-indicator-container').hide(); $('#busy-indicator-container').hide();
deferred.resolve(); deferred.resolve();
if (ret.result) { if (ret.result) {
......
...@@ -154,7 +154,6 @@ ...@@ -154,7 +154,6 @@
width: 518, width: 518,
visible: true visible: true
}, },
height: '99%',
headerFilter: { headerFilter: {
visible: false, visible: false,
texts: { texts: {
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<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 class="page-footer"> <div class="page-footer">
<ack-pagination page-options="pagingOptions" <ack-pagination page-options="pagingOptions"
refresh-table="refreshConfigGrid()"></ack-pagination> refresh-table="refreshConfigGrid()"></ack-pagination>
</div>--> </div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -175,6 +175,7 @@ ...@@ -175,6 +175,7 @@
} }
.dt-init-wrapper { .dt-init-wrapper {
margin: 60px 0;
max-width: 99%; max-width: 99%;
height: calc(100% - 200px); height: calc(100% - 200px);
position: relative; position: relative;
......
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