Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
39d3f2b6
Commit
39d3f2b6
authored
Nov 27, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表排序拆分
parent
cba35824
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
11 deletions
+41
-11
tax-report-cell-detail-modal.ctrl.js
...rt-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
+1
-1
vat-report-layout.ctrl.js
...pp/vat/report/vat-report-layout/vat-report-layout.ctrl.js
+40
-10
No files found.
atms-web/src/main/webapp/app/common/controls/tax-report-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
View file @
39d3f2b6
...
...
@@ -723,7 +723,7 @@
},
{
calculateCellValue
:
function
(){
var
formula
=
$scope
.
detail
.
config
.
formula
r
;
var
formula
=
$scope
.
detail
.
config
.
formula
;
if
(
formula
.
indexOf
(
'DFFS'
)
>
-
1
){
return
'贷方发生'
;
}
else
if
(
formula
.
indexOf
(
'JFFS'
)
>
-
1
){
...
...
atms-web/src/main/webapp/app/vat/report/vat-report-layout/vat-report-layout.ctrl.js
View file @
39d3f2b6
...
...
@@ -41,29 +41,46 @@
}
if
(
$scope
.
hasTaxReturnPermission
&&
$scope
.
hasQueryTaxReturnPermission
)
{
var
diffArr
=
[
'会计数据统计'
,
'出口数据比对'
,
'进项税额差异分析表'
,
'收入差异分析表'
];
// var templates = _.chain
// 获取 申报表 Report Template
var
diffRtnGrp
=
{
name
:
'差异分析表'
,
children
:[],
orderIndex
:
1
};
var
taxRtnGrp
=
{
name
:
'TaxReturn'
,
children
:
_
.
chain
(
result
[
1
].
data
.
data
)
.
sortBy
(
function
(
x
){
return
x
.
templateCode
;
})
/*
.map(function(x){
.
map
(
function
(
x
){
var
nameIndex
;
var tempName = x.templateName.substr(x.templateName.length - 4);
if(
tempName.search("附表一") != -1
){
//
var tempName = x.templateName.substr(x.templateName.length - 4);
if
(
x
.
templateName
==
(
'增值税纳税申报表'
)
){
nameIndex
=
0
;
} else if(
tempName.search("附表二
") != -1){
}
else
if
(
x
.
templateName
.
search
(
"一
"
)
!=
-
1
){
nameIndex
=
1
;
} else if(
tempName.search("附表三
") != -1){
}
else
if
(
x
.
templateName
.
search
(
"二
"
)
!=
-
1
){
nameIndex
=
2
;
} else if(
tempName.search("附表四
") != -1){
}
else
if
(
x
.
templateName
.
search
(
"三
"
)
!=
-
1
){
nameIndex
=
3
;
} else if(
tempName.search("附表五
") != -1){
}
else
if
(
x
.
templateName
.
search
(
"四
"
)
!=
-
1
){
nameIndex
=
4
;
} else {
}
else
if
(
x
.
templateName
.
search
(
"五"
)
!=
-
1
){
nameIndex
=
5
;
}
else
if
(
x
.
templateName
.
search
(
'代扣代缴'
)
!=
-
1
){
nameIndex
=
6
;
}
else
if
(
x
.
templateName
.
search
(
'海关专用'
)
!=
-
1
){
nameIndex
=
7
;
}
else
if
(
x
.
templateName
.
search
(
'增值税减免税申报明细表'
)
!=
-
1
){
nameIndex
=
8
;
}
else
if
(
x
.
templateName
.
search
(
'营改增'
)
!=
-
1
){
nameIndex
=
9
;
}
else
if
(
x
.
templateName
.
search
(
'附加税报表'
)
!=
-
1
){
nameIndex
=
10
;
}
else
{
nameIndex
=
20
;
if
(
$
.
inArray
(
x
.
templateName
,
diffArr
)
!=
-
1
){
diffRtnGrp
.
children
.
push
(
x
);
}
}
return
{
id
:
x
.
id
,
...
...
@@ -73,9 +90,12 @@
nameIndex
:
nameIndex
}
})
.
filter
(
function
(
x
){
return
$
.
inArray
(
x
.
templateName
,
diffArr
)
==
-
1
;
})
.
sortBy
(
function
(
x
){
return
x
.
nameIndex
;
})
*/
})
.
map
(
function
(
x
)
{
return
{
reportId
:
x
.
id
,
...
...
@@ -86,11 +106,21 @@
}).
value
(),
orderIndex
:
grps
.
length
};
diffRtnGrp
.
children
=
_
.
chain
(
diffRtnGrp
.
children
)
.
map
(
function
(
x
){
return
{
reportId
:
x
.
id
,
id
:
x
.
templateId
,
name
:
x
.
templateName
,
code
:
x
.
templateCode
};
}).
value
();
grps
.
push
(
taxRtnGrp
);
grps
.
push
(
diffRtnGrp
);
}
$scope
.
groups
=
_
.
chain
(
grps
).
sortBy
(
function
(
x
)
{
return
x
.
orderIndex
;
// return x.children.name;
}).
map
(
function
(
x
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment