Commit de9017ae authored by weizhikai's avatar weizhikai

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

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