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
d3bfed97
Commit
d3bfed97
authored
Mar 07, 2019
by
gary
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql
parents
c76c8c5f
b804def4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
31 deletions
+3
-31
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+3
-3
vat-report-layout.ctrl.js
...pp/vat/report/vat-report-layout/vat-report-layout.ctrl.js
+0
-28
No files found.
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
d3bfed97
...
...
@@ -56,9 +56,9 @@ constant.payTaxTypeList = [
{
value
:
2
,
name
:
'小规模纳税人'
}];
constant
.
citReportTypeList
=
[
{
value
:
1
,
name
:
'TaxReturnType'
,
orderIndex
:
2
},
{
value
:
2
,
name
:
'QuarterlyFilingReturnType'
,
orderIndex
:
3
},
{
value
:
3
,
name
:
'WorkingPaperType'
,
orderIndex
:
1
},
{
value
:
1
,
name
:
'TaxReturnType'
,
orderIndex
:
1
},
{
value
:
2
,
name
:
'QuarterlyFilingReturnType'
,
orderIndex
:
2
},
{
value
:
3
,
name
:
'WorkingPaperType'
,
orderIndex
:
3
},
{
value
:
4
,
name
:
'DocumentListType'
,
orderIndex
:
4
},
{
value
:
5
,
name
:
'OtherTaxes'
,
orderIndex
:
5
}];
...
...
atms-web/src/main/webapp/app/vat/report/vat-report-layout/vat-report-layout.ctrl.js
View file @
d3bfed97
...
...
@@ -44,7 +44,6 @@
var
grpByType
=
_
.
groupBy
(
result
[
1
].
data
.
data
,
'reportType'
);
_
.
each
(
grpByType
,
function
(
val
,
key
)
{
var
typeName
=
'TaxReturnType'
;
var
parentId
=
'2'
;
if
(
key
!=
null
||
key
==
"null"
)
{
//兼容以前的的 vat报表 类型 为 null 的情况
var
idx
=
1
;
...
...
@@ -55,47 +54,20 @@
}
}
if
(
parseInt
(
key
)
==
enums
.
reportType
.
taxReturn
)
{
parentId
=
'2'
;
}
else
if
(
parseInt
(
key
)
==
enums
.
reportType
.
workingPaper
)
{
parentId
=
'4'
;
}
// 获取 申报表 Report Template
var
taxRtnGrp
=
{
name
:
typeName
,
children
:
_
.
map
(
val
,
function
(
x
)
{
if
(
parentId
===
'4'
)
{
return
{
reportId
:
x
.
id
,
id
:
x
.
templateId
,
name
:
x
.
templateName
,
code
:
x
.
templateCode
}
}
else
{
return
{
reportId
:
x
.
id
,
id
:
x
.
templateId
,
name
:
x
.
templateName
,
code
:
x
.
templateCode
}
}
}),
orderIndex
:
idx
};
if
(
parentId
===
'2'
&&
$scope
.
hasTaxReturnPermission
&&
$scope
.
hasQueryTaxReturnPermission
)
{
grps
.
push
(
taxRtnGrp
);
}
else
if
(
parentId
===
'4'
&&
$scope
.
hasWorkingPaperTypePermission
&&
$scope
.
hasQueryWorkingPaperTypePermission
)
{
grps
.
push
(
taxRtnGrp
);
}
else
{
//没权限就不加入列表
}
});
}
// var diffArr = ['会计数据统计','出口数据比对','进项税额差异分析表','收入差异分析表'];
...
...
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