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
f6a8c8e3
Commit
f6a8c8e3
authored
Apr 19, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cit报表展示
parent
3e9df0b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
cit-report-view.ctrl.js
...pp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
+2
-20
No files found.
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
View file @
f6a8c8e3
citModule
.
controller
(
'citReportViewController'
,
[
'$scope'
,
'$rootScope'
,
'$log'
,
'$translate'
,
'$timeout'
,
'$q'
,
'$compile'
,
'$state'
,
'$stateParams'
,
citModule
.
controller
(
'citReportViewController'
,
[
'$scope'
,
'$rootScope'
,
'$log'
,
'$translate'
,
'$timeout'
,
'$q'
,
'$compile'
,
'$state'
,
'$stateParams'
,
'apiInterceptor'
,
'vatExportService'
,
'SweetAlert'
,
'BSPLService'
,
'vatReportService'
,
'vatReportCacheService'
,
'vatSessionService'
,
'loginContext'
,
'enums'
,
'vatCommonService'
,
'vatWorkflowService'
,
'projectService'
,
'$uibModal'
,
'$cookies'
,
'Upload'
,
'vatImportService'
,
'vatApproveService'
,
'citReportService'
,
function
(
$scope
,
$rootScope
,
$log
,
$translate
,
$timeout
,
$q
,
$compile
,
$state
,
$stateParams
,
apiInterceptor
,
vatExportService
,
SweetAlert
,
BSPLService
,
...
...
@@ -48,7 +48,7 @@
$scope
.
period
=
getActualPeriod
();
$scope
.
moduleid
=
enums
.
vatModuleEnum
.
Report_TaxDeclaration
;
$scope
.
userId
=
vatSessionService
.
logUser
.
id
;
//$scope.isShowUpdateCell = false;
//$scope.isShowUpdateCell = false;
var
comment
=
vatSessionService
.
project
.
name
+
" "
+
vatSessionService
.
project
.
year
+
"年"
+
(
$scope
.
serviceType
===
enums
.
serviceType
.
VAT
?
(
getActualPeriod
()
+
"月"
)
:
""
);
...
...
@@ -1013,24 +1013,6 @@ debugger;
}
}
});
if
(
'export'
==
$scope
.
evenType
)
{
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
var
arraybuffer
=
xhr
.
response
;
exportToExcel
(
arraybuffer
,
vatSessionService
.
project
.
name
+
'-'
+
vatSessionService
.
month
+
'-纳税申报.xlsx'
);
$
(
'#busy-indicator-container'
).
hide
();
};
xhr
.
open
(
"POST"
,
apiInterceptor
.
webApiHostUrl
+
'/Report/exportReportData/'
+
vatSessionService
.
project
.
id
+
'/'
+
vatSessionService
.
month
,
true
);
xhr
.
setRequestHeader
(
"Authorization"
,
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
());
xhr
.
setRequestHeader
(
"Content-Type"
,
'application/json;charset=UTF-8'
);
xhr
.
responseType
=
"arraybuffer"
;
xhr
.
send
(
JSON
.
stringify
({
reportIds
:
reportIds
}));
return
;
}
if
(
'upload'
==
$scope
.
evenType
)
{
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onload
=
function
(
e
)
{
...
...
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