Commit 86c9305d authored by gary's avatar gary

1、fixbug

parent 7fa60cff
...@@ -41,6 +41,16 @@ ...@@ -41,6 +41,16 @@
<property name="rootInterface" value="pwc.taxtech.atms.MyAnalysisMapper" /> <property name="rootInterface" value="pwc.taxtech.atms.MyAnalysisMapper" />
</javaClientGenerator> </javaClientGenerator>
<table tableName="analysis_tax_return_end" domainObjectName="AnalysisTaxReturnEnd">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<!--
<table tableName="analysis_actual_tax_return" domainObjectName="AnalysisInternationalTaxData">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="analysis_driver_num" domainObjectName="AnalysisDriverNum"> <table tableName="analysis_driver_num" domainObjectName="AnalysisDriverNum">
<property name="useActualColumnNames" value="false"/> <property name="useActualColumnNames" value="false"/>
...@@ -95,7 +105,7 @@ ...@@ -95,7 +105,7 @@
<table tableName="analysis_tax" domainObjectName="AnalysisTax"> <table tableName="analysis_tax" domainObjectName="AnalysisTax">
<property name="useActualColumnNames" value="false"/> <property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>-->
</context> </context>
</generatorConfiguration> </generatorConfiguration>
\ No newline at end of file
...@@ -53,10 +53,10 @@ ...@@ -53,10 +53,10 @@
translate="TemplateBtn" translate="TemplateBtn"
ng-click="downloadTemplate()"></button> ng-click="downloadTemplate()"></button>
<button type="button" <!--<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn" translate="AddImportBtn"
ng-click="doUploadID(importEnum.AddImport)"></button> ng-click="doUploadID(importEnum.AddImport)"></button>-->
<button type="button" <button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
......
...@@ -1032,6 +1032,8 @@ constant.AccountMappingProcessKey = {UnSelected: 'UnSelected', Submit: 'Submit', ...@@ -1032,6 +1032,8 @@ constant.AccountMappingProcessKey = {UnSelected: 'UnSelected', Submit: 'Submit',
constant.pagesize = 50; constant.pagesize = 50;
constant.vatPagesize = 50;
constant.ErpCheckType = { constant.ErpCheckType = {
CustomInvoice_DuplicatePayNum: 20 CustomInvoice_DuplicatePayNum: 20
} }
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -144,15 +145,15 @@ ...@@ -144,15 +145,15 @@
if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) { if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) { if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage; $scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -116,15 +117,15 @@ ...@@ -116,15 +117,15 @@
var computeCertifiedInvoicesListPage = function () { var computeCertifiedInvoicesListPage = function () {
if ($scope.queryCertifiedInvoicesListResult.pageInfo && $scope.queryCertifiedInvoicesListResult.pageInfo.total > 0) { if ($scope.queryCertifiedInvoicesListResult.pageInfo && $scope.queryCertifiedInvoicesListResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryCertifiedInvoicesListResult.pageInfo.total / $scope.queryCertifiedInvoicesListResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryCertifiedInvoicesListResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryCertifiedInvoicesListResult.pageInfo.totalCount % $scope.queryCertifiedInvoicesListResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryCertifiedInvoicesListResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryCertifiedInvoicesListResult.pageInfo.pageNum === totalPage) { if ($scope.queryCertifiedInvoicesListResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryCertifiedInvoicesListResult.pageInfo.total % $scope.queryCertifiedInvoicesListResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryCertifiedInvoicesListResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryCertifiedInvoicesListResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryCertifiedInvoicesListResult.pageInfo.totalPage = totalPage; $scope.queryCertifiedInvoicesListResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -120,15 +121,15 @@ ...@@ -120,15 +121,15 @@
if ($scope.queryCoupaPurchasingReportResult.pageInfo && $scope.queryCoupaPurchasingReportResult.pageInfo.total > 0) { if ($scope.queryCoupaPurchasingReportResult.pageInfo && $scope.queryCoupaPurchasingReportResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryCoupaPurchasingReportResult.pageInfo.total / $scope.queryCoupaPurchasingReportResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryCoupaPurchasingReportResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryCoupaPurchasingReportResult.pageInfo.totalCount % $scope.queryCoupaPurchasingReportResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryCoupaPurchasingReportResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryCoupaPurchasingReportResult.pageInfo.pageNum === totalPage) { if ($scope.queryCoupaPurchasingReportResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryCoupaPurchasingReportResult.pageInfo.total % $scope.queryCoupaPurchasingReportResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryCoupaPurchasingReportResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryCoupaPurchasingReportResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryCoupaPurchasingReportResult.pageInfo.totalPage = totalPage; $scope.queryCoupaPurchasingReportResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize=constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -144,15 +145,15 @@ ...@@ -144,15 +145,15 @@
if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) { if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) { if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage; $scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -121,15 +122,15 @@ ...@@ -121,15 +122,15 @@
if ($scope.queryInvoiceDataResult.pageInfo && $scope.queryInvoiceDataResult.pageInfo.total > 0) { if ($scope.queryInvoiceDataResult.pageInfo && $scope.queryInvoiceDataResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryInvoiceDataResult.pageInfo.total / $scope.queryInvoiceDataResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryInvoiceDataResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryInvoiceDataResult.pageInfo.totalCount % $scope.queryInvoiceDataResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryInvoiceDataResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryInvoiceDataResult.pageInfo.pageNum === totalPage) { if ($scope.queryInvoiceDataResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryInvoiceDataResult.pageInfo.total % $scope.queryInvoiceDataResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryInvoiceDataResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryInvoiceDataResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryInvoiceDataResult.pageInfo.totalPage = totalPage; $scope.queryInvoiceDataResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -121,15 +122,15 @@ ...@@ -121,15 +122,15 @@
if ($scope.queryInvoiceRecordResult.pageInfo && $scope.queryInvoiceRecordResult.pageInfo.total > 0) { if ($scope.queryInvoiceRecordResult.pageInfo && $scope.queryInvoiceRecordResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryInvoiceRecordResult.pageInfo.total / $scope.queryInvoiceRecordResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryInvoiceRecordResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryInvoiceRecordResult.pageInfo.totalCount % $scope.queryInvoiceRecordResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryInvoiceRecordResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryInvoiceRecordResult.pageInfo.pageNum === totalPage) { if ($scope.queryInvoiceRecordResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryInvoiceRecordResult.pageInfo.total % $scope.queryInvoiceRecordResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryInvoiceRecordResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryInvoiceRecordResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryInvoiceRecordResult.pageInfo.totalPage = totalPage; $scope.queryInvoiceRecordResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -96,15 +97,15 @@ ...@@ -96,15 +97,15 @@
if ($scope.queryJournalEntryResult.pageInfo && $scope.queryJournalEntryResult.pageInfo.total > 0) { if ($scope.queryJournalEntryResult.pageInfo && $scope.queryJournalEntryResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryJournalEntryResult.pageInfo.total / $scope.queryJournalEntryResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryJournalEntryResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryJournalEntryResult.pageInfo.totalCount % $scope.queryJournalEntryResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryJournalEntryResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryJournalEntryResult.pageInfo.pageNum === totalPage) { if ($scope.queryJournalEntryResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryJournalEntryResult.pageInfo.total % $scope.queryJournalEntryResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryJournalEntryResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryJournalEntryResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryJournalEntryResult.pageInfo.totalPage = totalPage; $scope.queryJournalEntryResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -120,15 +121,15 @@ ...@@ -120,15 +121,15 @@
if ($scope.queryBalanceSheetResult.pageInfo && $scope.queryBalanceSheetResult.pageInfo.total > 0) { if ($scope.queryBalanceSheetResult.pageInfo && $scope.queryBalanceSheetResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryBalanceSheetResult.pageInfo.total / $scope.queryBalanceSheetResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryBalanceSheetResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryBalanceSheetResult.pageInfo.totalCount % $scope.queryBalanceSheetResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryBalanceSheetResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryBalanceSheetResult.pageInfo.pageNum === totalPage) { if ($scope.queryBalanceSheetResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryBalanceSheetResult.pageInfo.total % $scope.queryBalanceSheetResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryBalanceSheetResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryBalanceSheetResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryBalanceSheetResult.pageInfo.totalPage = totalPage; $scope.queryBalanceSheetResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -117,15 +118,15 @@ ...@@ -117,15 +118,15 @@
if ($scope.queryProfitLossResult.pageInfo && $scope.queryProfitLossResult.pageInfo.total > 0) { if ($scope.queryProfitLossResult.pageInfo && $scope.queryProfitLossResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryProfitLossResult.pageInfo.total / $scope.queryProfitLossResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryProfitLossResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryProfitLossResult.pageInfo.totalCount % $scope.queryProfitLossResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryProfitLossResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryProfitLossResult.pageInfo.pageNum === totalPage) { if ($scope.queryProfitLossResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryProfitLossResult.pageInfo.total % $scope.queryProfitLossResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryProfitLossResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryProfitLossResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryProfitLossResult.pageInfo.totalPage = totalPage; $scope.queryProfitLossResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize =constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -144,15 +145,15 @@ ...@@ -144,15 +145,15 @@
if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) { if ($scope.queryIncomeInvoiceItemResult.pageInfo && $scope.queryIncomeInvoiceItemResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryIncomeInvoiceItemResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryIncomeInvoiceItemResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) { if ($scope.queryIncomeInvoiceItemResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryIncomeInvoiceItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage; $scope.queryIncomeInvoiceItemResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -120,15 +121,15 @@ ...@@ -120,15 +121,15 @@
if ($scope.queryRedLetterInfoTabItemResult.pageInfo && $scope.queryRedLetterInfoTabItemResult.pageInfo.total > 0) { if ($scope.queryRedLetterInfoTabItemResult.pageInfo && $scope.queryRedLetterInfoTabItemResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryRedLetterInfoTabItemResult.pageInfo.total / $scope.queryRedLetterInfoTabItemResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryRedLetterInfoTabItemResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryRedLetterInfoTabItemResult.pageInfo.totalCount % $scope.queryRedLetterInfoTabItemResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryRedLetterInfoTabItemResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryRedLetterInfoTabItemResult.pageInfo.pageNum === totalPage) { if ($scope.queryRedLetterInfoTabItemResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryRedLetterInfoTabItemResult.pageInfo.total % $scope.queryRedLetterInfoTabItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryRedLetterInfoTabItemResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryRedLetterInfoTabItemResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryRedLetterInfoTabItemResult.pageInfo.totalPage = totalPage; $scope.queryRedLetterInfoTabItemResult.pageInfo.totalPage = totalPage;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
$scope.endMonth = vatSessionService.month; $scope.endMonth = vatSessionService.month;
$scope.totalMoneyAmount = 0; $scope.totalMoneyAmount = 0;
$scope.totalTaxAmount = 0; $scope.totalTaxAmount = 0;
$scope.pageSize = constant.vatPagesize;
var minDate = [1, vatSessionService.project.year]; var minDate = [1, vatSessionService.project.year];
// var minDate = moment().startOf('month').subtract(0, 'months'); // var minDate = moment().startOf('month').subtract(0, 'months');
...@@ -99,15 +100,15 @@ ...@@ -99,15 +100,15 @@
if ($scope.queryTrialBalanceResult.pageInfo && $scope.queryTrialBalanceResult.pageInfo.total > 0) { if ($scope.queryTrialBalanceResult.pageInfo && $scope.queryTrialBalanceResult.pageInfo.total > 0) {
var totalPage = parseInt($scope.queryTrialBalanceResult.pageInfo.total / $scope.queryTrialBalanceResult.pageInfo.pageSize); var totalPage = parseInt($scope.queryTrialBalanceResult.pageInfo.total / $scope.pageSize);
totalPage = $scope.queryTrialBalanceResult.pageInfo.totalCount % $scope.queryTrialBalanceResult.pageInfo.pageSize == 0 ? totalPage : totalPage + 1; totalPage = $scope.queryTrialBalanceResult.pageInfo.totalCount % $scope.pageSize == 0 ? totalPage : totalPage + 1;
//计算本页记录数 //计算本页记录数
if ($scope.queryTrialBalanceResult.pageInfo.pageNum === totalPage) { if ($scope.queryTrialBalanceResult.pageInfo.pageNum === totalPage) {
$scope.curPageItemCount = $scope.queryTrialBalanceResult.pageInfo.total % $scope.queryTrialBalanceResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.queryTrialBalanceResult.pageInfo.total % $scope.pageSize;
} }
else { else {
$scope.curPageItemCount = $scope.queryTrialBalanceResult.pageInfo.pageSize; $scope.curPageItemCount = $scope.pageSize;
} }
$scope.queryTrialBalanceResult.pageInfo.totalPage = totalPage; $scope.queryTrialBalanceResult.pageInfo.totalPage = totalPage;
......
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