Commit 2c8306d9 authored by zhkwei's avatar zhkwei

CIT固定资产bug修改

parent 93bb3af0
...@@ -100,6 +100,15 @@ public class AssetListServiceImpl extends BaseService { ...@@ -100,6 +100,15 @@ public class AssetListServiceImpl extends BaseService {
if(citAssetsListDto.getTaxAccountCompare() != 2){ if(citAssetsListDto.getTaxAccountCompare() != 2){
criteria.andTaxAccountCompareEqualTo(citAssetsListDto.getTaxAccountCompare()); criteria.andTaxAccountCompareEqualTo(citAssetsListDto.getTaxAccountCompare());
} }
if(citAssetsListDto.getAssetGroupName() != null){
criteria.andAssetGroupNameLike(citAssetsListDto.getAssetGroupName()+"%");
}
if(citAssetsListDto.getDepreciationPeriod() != null){
criteria.andDepreciationPeriodEqualTo(citAssetsListDto.getDepreciationPeriod());
}
if(citAssetsListDto.getTaxGroupName() != null){
criteria.andTaxGroupNameLike(citAssetsListDto.getTaxGroupName()+"%");
}
Page page = PageHelper.startPage(citAssetsListDto.getPageInfo().getPageIndex(),citAssetsListDto.getPageInfo().getPageSize()); Page page = PageHelper.startPage(citAssetsListDto.getPageInfo().getPageIndex(),citAssetsListDto.getPageInfo().getPageSize());
List<CitAssetsList> citAssetsLists = assetListMapper.selectByExample(assetListExample); List<CitAssetsList> citAssetsLists = assetListMapper.selectByExample(assetListExample);
CitAssetSumDataDto sumData = assetListMapper.getSumData(citAssetsListDto.getProjectId()); CitAssetSumDataDto sumData = assetListMapper.getSumData(citAssetsListDto.getProjectId());
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div> <div>
<table class=" table table-responsive"> <table class=" table table-responsive">
<tr> <tr>
<td><span translate="TaxAccountDifference"></span></td> <td style="vertical-align: middle"><span translate="TaxAccountDifference"></span></td>
<td> <td>
<!--税会差异的选择--> <!--税会差异的选择-->
<div class="input-group"> <div class="input-group" style="width: 100%">
<div class="option"> <div class="option">
<div id="taxAccountDifferenceButton" dx-select-box="taxAccountDifferenceOptions"></div> <div id="taxAccountDifferenceButton" dx-select-box="taxAccountDifferenceOptions" style="width: 100%"></div>
</div> </div>
</div> </div>
</td> </td>
...@@ -16,22 +16,20 @@ ...@@ -16,22 +16,20 @@
<tr> <tr>
<td><span translate="AssetGroupName"></span></td> <td><span translate="AssetGroupName"></span></td>
<td><input class="form-control " type="text" id="assetGroupName" placeholder="" <td><input class="form-control " type="text" id="assetGroupName" placeholder=""
ng-model="filterData.assetGroupName"></td> ng-model="citAssetsListDto.assetGroupName"></td>
</tr> </tr>
<tr> <tr>
<td><span translate="DepreciationPeriod"></span></td> <td><span translate="DepreciationPeriod"></span></td>
<td> <td>
<div class="input-group">
<input class="form-control " type="text" id="depreciationPeriod" placeholder="" <input class="form-control " type="text" id="depreciationPeriod" placeholder=""
ng-model="filterData.depreciationPeriod"> ng-model="citAssetsListDto.depreciationPeriod">
</div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><span translate="TaxGroupType"></span></td> <td><span translate="TaxGroupType"></span></td>
<td><input class="form-control " type="text" id="taxGroupType" placeholder="" <td><input class="form-control " type="text" id="taxGroupType" placeholder=""
ng-model="filterData.taxGroupType"></td> ng-model="citAssetsListDto.taxGroupType"></td>
</tr> </tr>
</table> </table>
......
...@@ -57,7 +57,10 @@ ...@@ -57,7 +57,10 @@
}, },
assetType : 1, assetType : 1,
projectId : projectId, projectId : projectId,
taxAccountCompare : 2 taxAccountCompare : 2,
assetGroupName:'',
depreciationPeriod:'',
taxGroupType:''
}; };
$scope.refreshAssetResultListGrid = function () { $scope.refreshAssetResultListGrid = function () {
debugger; debugger;
...@@ -976,6 +979,31 @@ ...@@ -976,6 +979,31 @@
}); });
}; };
var initParamFilter = function(){
$scope.citAssetsListDto.taxAccountCompare =2;
$scope.citAssetsListDto.assetGroupName =2;
$scope.citAssetsListDto.depreciationPeriod =2;
$scope.citAssetsListDto.taxGroupType =2;
};
var doDataFilter = function () {
debugger;
// initParamFilter();
getAssetResultList($scope.citAssetsListDto.assetType);
}
var doDataFilterReset = function () {
debugger;
// initParamFilter();
$scope.citAssetsListDto.taxAccountCompare =2;
$scope.citAssetsListDto.assetGroupName = null;
$scope.citAssetsListDto.depreciationPeriod = null;
$scope.citAssetsListDto.taxGroupType = null;
getAssetResultList($scope.citAssetsListDto.assetType);
};
//开始 //开始
(function initialize() { (function initialize() {
//分页的设置 //分页的设置
...@@ -994,6 +1022,8 @@ ...@@ -994,6 +1022,8 @@
$scope.incomeInvoiceTotalColumns = []; $scope.incomeInvoiceTotalColumns = [];
$scope.initIncomeInvoiceTotalColumnsIndex = []; $scope.initIncomeInvoiceTotalColumnsIndex = [];
$scope.changeSheet = changeSheet; $scope.changeSheet = changeSheet;
$scope.doDataFilter = doDataFilter;
$scope.doDataFilterReset = doDataFilterReset;
debugger; debugger;
function init(){ function init(){
......
...@@ -415,7 +415,7 @@ ...@@ -415,7 +415,7 @@
min-width: 370px; min-width: 370px;
.arrow { .arrow {
left: 0px; left: 0px !important;
} }
} }
......
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