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
104bdb39
Commit
104bdb39
authored
Mar 28, 2019
by
kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
99ae35cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
POIUtil.java
atms-api/src/main/java/pwc/taxtech/atms/common/POIUtil.java
+6
-2
tb-ebit-form.ctrl.js
...b/src/main/webapp/app/analysis/table/tb-ebit-form.ctrl.js
+3
-6
tb-ebit-form.html
...-web/src/main/webapp/app/analysis/table/tb-ebit-form.html
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/POIUtil.java
View file @
104bdb39
...
...
@@ -73,8 +73,12 @@ public class POIUtil {
if
(
null
!=
cell
.
getCellComment
())
{
targetCell
.
setCellComment
(
cell
.
getCellComment
());
}
if
(
null
!=
cell
.
getCellStyle
())
{
targetCell
.
getCellStyle
().
cloneStyleFrom
(
cell
.
getCellStyle
());
if
(
null
!=
cell
.
getCellStyle
()
&&
targetCell
.
getCellStyle
()
!=
null
)
{
try
{
targetCell
.
getCellStyle
().
cloneStyleFrom
(
cell
.
getCellStyle
());
}
catch
(
Exception
e
){
//e.printStackTrace();
}
}
if
(
null
!=
cell
.
getHyperlink
())
{
targetCell
.
setHyperlink
(
cell
.
getHyperlink
());
...
...
atms-web/src/main/webapp/app/analysis/table/tb-ebit-form.ctrl.js
View file @
104bdb39
...
...
@@ -2933,15 +2933,16 @@
});
//上传模板
$scope
.
upload
=
function
(
file
)
{
var
_file
=
$scope
.
importExcelFile
;
if
(
file
==
null
)
return
frontImport
(
file
);
frontImport
(
_
file
);
var
token
=
$
(
'input[name="__RequestVerificationToken"]'
).
val
();
var
url
=
apiInterceptor
.
vatWebApiHostUrl
+
'/templateGroup/ebitTemplateImport'
;
Upload
.
upload
(
{
url
:
url
,
data
:
{
orgId
:
$scope
.
relation
.
orgId
,
period
:
$scope
.
relation
.
period
},
file
:
file
,
data
:
{
orgId
:
$scope
.
relation
.
orgId
,
period
:
$scope
.
relation
.
period
},
file
:
_
file
,
headers
:
{
'Access-Control-Allow-Origin'
:
'*'
,
Authorization
:
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
()
...
...
@@ -2968,10 +2969,6 @@
//前端导入
var
frontImport
=
function
(
file
){
alert
(
typeof
file
);
if
(
typeof
file
!=
Blob
){
file
=
new
Blob
(
file
);
}
if
(
$scope
.
spread
!=
undefined
&&
$scope
.
spread
){
var
excelIo
=
new
GC
.
Spread
.
Excel
.
IO
();
excelIo
.
open
(
file
,
function
(
json
)
{
...
...
atms-web/src/main/webapp/app/analysis/table/tb-ebit-form.html
View file @
104bdb39
...
...
@@ -22,7 +22,7 @@
</div>
</div>
<div
class=
"col-sm-5"
class=
"bar-export"
style=
" margin-top: 20px;width: 39%; float: right;"
>
<span
ngf-select=
""
type=
"file"
ng-model=
"importExcelFile"
ngf-drag-over-class=
"'dragover'"
accept=
".xls,.xlsx"
ngf-multiple=
"false"
<span
ngf-select=
""
type=
"file"
ng-model=
"importExcelFile"
ngf-
change=
"upload($files)"
ngf-
drag-over-class=
"'dragover'"
accept=
".xls,.xlsx"
ngf-multiple=
"false"
ngf-allow-dir=
"false"
class=
"btn btn-vat-third"
><i
class=
"fa fa-file"
>
{{'uploadProfileTable' | translate}}
</i></span>
<span
ng-click=
"saveAndRefresh()"
><i
class=
"fa fa-refresh"
></i>
{{'saveAndRefresh' | translate}}
</span>
<span
ng-click=
"singleExport()"
><i
...
...
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