Commit 34e82a7f authored by sherlock's avatar sherlock

bug:19213\纳税申报表排序\preview 优化

parent 52408455
{ {
"WelcomeATMS":"欢迎使用ATMS系统管理" "WelcomeATMS-Longi":"欢迎使用Longi申报系统管理"
} }
\ No newline at end of file
...@@ -48,6 +48,7 @@ adminHomePageModule ...@@ -48,6 +48,7 @@ adminHomePageModule
return sub.isVisible; return sub.isVisible;
}); });
} }
row.isActive = false;
} }
} }
}); });
...@@ -120,17 +121,17 @@ adminHomePageModule ...@@ -120,17 +121,17 @@ adminHomePageModule
$scope.menuMouseOver = function (x) { $scope.menuMouseOver = function (x) {
if (x.isOpen) { // if (x.isActive) {
return; // return;
} // }
if ($scope.menuData && $scope.menuData.length > 0) { if ($scope.menuData && $scope.menuData.length > 0) {
for (var i = 0; i < $scope.menuData.length; i++) { for (var i = 0; i < $scope.menuData.length; i++) {
var row = $scope.menuData[i]; var row = $scope.menuData[i];
if (x.id === row.id) { if (x.ID === row.ID) {
row.isOpen = true; row.isActive = true;
} else { } else {
row.isOpen = false; row.isActive = false;
} }
} }
} }
...@@ -229,7 +230,8 @@ adminHomePageModule ...@@ -229,7 +230,8 @@ adminHomePageModule
(function initialize() { (function initialize() {
$scope.open = false; $scope.open = false;
getMenusByServiceTypeId('1'); getMenusByServiceTypeId('1');
$scope.active = false;
$scope.isActive = false;
//var glyph_opts = { //var glyph_opts = {
// map: { // map: {
// doc: "glyphicon glyphicon-file", // doc: "glyphicon glyphicon-file",
......
<div class="admin-home-page"> <div class="admin-home-page">
<div class="center-title" ng-mouseover="open=true" ng-mouseleave="open = false"> <div class="center-title" ng-mouseover="open=true" ng-mouseleave="open = false">
<span><h1 translate="WelcomeATMS"></h1></span> <span><h1 translate="WelcomeATMS-Longi"></h1></span>
<div ng-if="hasAdminPermission" class="import-title" ng-show="open"><a ng-click="showUploadModal()" href="#adminHomePage">{{'ImportBasicDataOneTime' |translate}}</a></div> <div ng-if="hasAdminPermission" class="import-title" ng-show="open"><a ng-click="showUploadModal()" href="#adminHomePage">{{'ImportBasicDataOneTime' |translate}}</a></div>
</div> </div>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<a href="{{x.navigationUrl}}"><b>{{x.name}}</b></a> <a href="{{x.navigationUrl}}"><b>{{x.name}}</b></a>
</div> </div>
<!-- popover-trigger="mouseenter click" --> <!-- popover-trigger="mouseenter click" -->
<div ng-if="x.subMenus && x.subMenus.length > 0" class="{{x.firstMenuClass}}" uib-popover-template="x.templateUrl" popover-is-open="x.isOpen" popover-placement="{{x.popoverPlacement}}" ng-mouseover="menuMouseOver(x)"> <div ng-if="x.subMenus && x.subMenus.length > 0" class="{{x.firstMenuClass}}" uib-popover-template="x.templateUrl" popover-is-open="x.isActive" popover-placement="{{x.popoverPlacement}}" ng-mouseover="menuMouseOver(x)">
<img class="img" ng-src="{{x.imageUrl}}" alt="{{x.name}}" /> <img class="img" ng-src="{{x.imageUrl}}" alt="{{x.name}}" />
<br /> <br />
<b>{{x.name}}</b> <b>{{x.name}}</b>
......
...@@ -569,17 +569,17 @@ ...@@ -569,17 +569,17 @@
enableSorting: false, enableSorting: false,
enableColumnMenus: false, enableColumnMenus: false,
columnDefs: [ columnDefs: [
{ name: $translate.instant('ImportErrorPopUpNoCol'), width: '7%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.index}}<span></div>' }, { name: $translate.instant('ImportErrorPopUpNoCol'), width: '5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.index}}<span></div>' },
{ name: $translate.instant('InvoiceQJ'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' }, { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{ name: $translate.instant('InvoiceKPRQ'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.kprq | date:"yyyy-MM-dd"}}<span></div>' }, { name: $translate.instant('InvoiceKPRQ'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.kprq | date:"yyyy-MM-dd"}}<span></div>' },
{ name: $translate.instant('InvoiceFPDM'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fpdm}}">{{row.entity.fpdm}}</span></div>' }, { name: $translate.instant('InvoiceFPDM'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fpdm}}">{{row.entity.fpdm}}</span></div>' },
{ name: $translate.instant('InvoiceFPHM'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fphm}}</span></div>' }, { name: $translate.instant('InvoiceFPHM'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fphm}}</span></div>' },
{ name: $translate.instant('InvoiceGHFSH'), width: '12%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.xfsh}}</span></div>' }, { name: $translate.instant('InvoiceGHFSH'), width: '12%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.xfsh}}</span></div>' },
{ name: $translate.instant('InvoiceFPLX'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">{{grid.appScope.typeToString(row.entity.fplx)}}</span></div>' }, { name: $translate.instant('InvoiceFPLX'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">增值税专票</span></div>' },
{ name: $translate.instant('InvoiceJE'), headerCellClass: 'right', width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.hjje}}</span></div>' }, { name: $translate.instant('InvoiceJE'), headerCellClass: 'right', width: '8%', cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.hjje}}</span></div>' },
{ name: $translate.instant('InvoiceSE'), headerCellClass: 'right', width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.hjse}}</span></div>' }, { name: $translate.instant('InvoiceSE'), headerCellClass: 'right', width: '8%', cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.hjse}}</span></div>' },
{ name: $translate.instant('InvoiceRZRQ'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.rzsj | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('InvoiceRZRQ'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.rzsj | date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('InvoiceRZJG'), width: '10.5%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.certificationResult}}</span></div>' } { name: $translate.instant('InvoiceRZJG'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.certificationResult}}</span></div>' }
], ],
onRegisterApi: function (gridApi) { onRegisterApi: function (gridApi) {
$scope.gridApi = gridApi; $scope.gridApi = gridApi;
...@@ -595,10 +595,10 @@ ...@@ -595,10 +595,10 @@
enableColumnMenus: false, enableColumnMenus: false,
columnDefs: [ columnDefs: [
// { name: $translate.instant('ImportErrorPopUpNoCol'), width: '10%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.index}}<span></div>' }, // { name: $translate.instant('ImportErrorPopUpNoCol'), width: '10%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.index}}<span></div>' },
{ name: $translate.instant('InvoiceHWMC'), width: '23%', cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.spmc}}">{{row.entity.spmc}}<span></div>' }, { name: $translate.instant('InvoiceHWMC'), headerCellClass:'right', width: '20%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right" title="{{row.entity.spmc}}">{{row.entity.spmc}}<span></div>' },
{ name: $translate.instant('InvoiceJE'), headerCellClass:'right', width: '23%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.je}}<span></div>' }, { name: $translate.instant('InvoiceJE'), headerCellClass:'right', width: '13%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.je}}<span></div>' },
{ name: $translate.instant('InvoiceSL'), width: '23%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.slv}}%<span></div>' }, { name: $translate.instant('InvoiceSL'), headerCellClass:'right', width: '13%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.slv}}%<span></div>' },
{ name: $translate.instant('InvoiceSE'), headerCellClass:'right', width: '23%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.se}}<span></div>' } { name: $translate.instant('InvoiceSE'), headerCellClass:'right', width: '13%', cellTemplate: '<div class="ui-grid-cell-contents"><span style="float:right">{{row.entity.se}}<span></div>' }
] ]
}; };
......
<div class="vat-preview-input-invoice" id="mainPreviewDiv"> <div class="vat-preview-input-invoice" id="mainPreviewDiv">
<div class="top-area-wrapper"> <div class="top-area-wrapper">
<button class="filter-button" <!--<button class="filter-button"
atms-popover ng-mouseenter="prepareSummary()" ng-click="showPopover()" atms-popover ng-mouseenter="prepareSummary()" ng-click="showPopover()"
popover-container="body" popover-auto-hide="true" data-overwrite="true" popover-container="body" popover-auto-hide="true" data-overwrite="true"
use-optimized-placement-algorithm="true" use-optimized-placement-algorithm="true"
data-placement="bottom" data-placement="bottom"
data-templateurl="/app/vat/preview/vat-preview-input-invoice/vat-preview-input-invoice-search.html"> data-templateurl="/app/vat/preview/vat-preview-input-invoice/vat-preview-input-invoice-search.html">
<i class="fa fa-filter" aria-hidden="true"></i> <i class="fa fa-filter" aria-hidden="true"></i>
</button> </button>-->
<span translate="IncomeInvoiceTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;<span class="text-bold" translate="InvoiceQJ"></span> <span translate="IncomeInvoiceTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;<span class="text-bold" translate="InvoiceQJ"></span>
......
<div class="vat-preview-output-invoice" id="mainPreviewDiv"> <div class="vat-preview-output-invoice" id="mainPreviewDiv">
<div class="top-area-wrapper"> <div class="top-area-wrapper">
<button class="filter-button" <!--<button class="filter-button"
atms-popover ng-mouseenter="prepareSummary()" ng-click="showPopover()" atms-popover ng-mouseenter="prepareSummary()" ng-click="showPopover()"
popover-container="body" popover-auto-hide="true" data-overwrite="true" popover-container="body" popover-auto-hide="true" data-overwrite="true"
use-optimized-placement-algorithm="true" use-optimized-placement-algorithm="true"
data-placement="bottom" data-placement="bottom"
data-templateurl="/app/vat/preview/vat-preview-output-invoice/vat-preview-output-invoice-search.html"> data-templateurl="/app/vat/preview/vat-preview-output-invoice/vat-preview-output-invoice-search.html">
<i class="fa fa-filter" aria-hidden="true"></i> <i class="fa fa-filter" aria-hidden="true"></i>
</button> </button>-->
<span translate="OutputInvoiceTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;<span class="text-bold" translate="InvoiceQJ"></span> <span translate="OutputInvoiceTitle" class="text-bold"></span> &nbsp;&nbsp;|&nbsp;&nbsp;<span class="text-bold" translate="InvoiceQJ"></span>
<input type="text" class="form-control input-width-middle" id="output-invoice-period-picker" /> <input type="text" class="form-control input-width-middle" id="output-invoice-period-picker" />
......
...@@ -47,20 +47,20 @@ ...@@ -47,20 +47,20 @@
name: 'TaxReturn', name: 'TaxReturn',
children: _.chain(result[1].data.data) children: _.chain(result[1].data.data)
.sortBy(function(x){ .sortBy(function(x){
return x.templateName; return x.templateCode;
}) })
.map(function(x){ /*.map(function(x){
var nameIndex; var nameIndex;
var tempName = x.templateName.substr(x.templateName.length - 4); var tempName = x.templateName.substr(x.templateName.length - 4);
if(tempName.search("一") != -1){ if(tempName.search("附表一") != -1){
nameIndex = 0; nameIndex = 0;
} else if(tempName.search("二") != -1){ } else if(tempName.search("附表二") != -1){
nameIndex = 1; nameIndex = 1;
} else if(tempName.search("三") != -1){ } else if(tempName.search("附表三") != -1){
nameIndex = 2; nameIndex = 2;
} else if(tempName.search("四") != -1){ } else if(tempName.search("附表四") != -1){
nameIndex = 3; nameIndex = 3;
} else if(tempName.search("五") != -1){ } else if(tempName.search("附表五") != -1){
nameIndex = 4; nameIndex = 4;
} else { } else {
nameIndex = 10; nameIndex = 10;
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
}) })
.sortBy(function(x){ .sortBy(function(x){
return x.nameIndex; return x.nameIndex;
}) })*/
.map(function (x) { .map(function (x) {
return { return {
reportId: x.id, reportId: x.id,
......
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