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
e13c5c4a
Commit
e13c5c4a
authored
Mar 15, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIT查看报表修改bug
parent
4d5edd4c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
154 additions
and
20 deletions
+154
-20
CitReportServiceImpl.java
...a/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
+7
-7
module-part2.js
atms-web/src/main/webapp/Scripts/module-part2.js
+2
-6
cit-calculate-data.ctrl.js
...t/reduction/cit-calculate-data/cit-calculate-data.ctrl.js
+6
-5
cit-report-layout.ctrl.js
...pp/cit/report/cit-report-layout/cit-report-layout.ctrl.js
+1
-1
cit-report-sheet.js
...ebapp/app/cit/report/cit-report-sheet/cit-report-sheet.js
+0
-0
cit-report-view.ctrl.js
...pp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
+0
-0
cit-report-view.html
...ebapp/app/cit/report/cit-report-view/cit-report-view.html
+0
-0
cit-report-view.js
.../webapp/app/cit/report/cit-report-view/cit-report-view.js
+38
-0
cit-report-view.less
...ebapp/app/cit/report/cit-report-view/cit-report-view.less
+99
-0
data-import-layout.js
...p/app/dataImport/data-import-layout/data-import-layout.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
View file @
e13c5c4a
...
@@ -171,11 +171,9 @@ public class CitReportServiceImpl extends BaseService {
...
@@ -171,11 +171,9 @@ public class CitReportServiceImpl extends BaseService {
try
{
try
{
//根据projectId获取相关报表
//根据projectId获取相关报表
List
<
Template
>
templates
=
getTemplatesByProjectId
(
projectId
);
List
<
Template
>
templates
=
getTemplatesByProjectId
(
projectId
);
//因WrapPeriodJobDto.createReportGenJob方法需要传入数组,但CIT并不需要所以传入一个空数组
List
<
String
>
dataValidateArray
=
new
ArrayList
<
String
>();
List
<
String
>
dataValidateArray
=
new
ArrayList
<
String
>();
/*dataValidateArray.add("DA001");
dataValidateArray.add("DA002");
dataValidateArray.add("DA003");*/
dataValidateArray
.
add
(
"DA004"
);
PeriodJob
genJob
=
WrapPeriodJobDto
.
createReportGenJob
(
projectId
,
periodParam
,
templates
,
dataValidateArray
);
PeriodJob
genJob
=
WrapPeriodJobDto
.
createReportGenJob
(
projectId
,
periodParam
,
templates
,
dataValidateArray
);
periodJobMapper
.
insert
(
genJob
);
periodJobMapper
.
insert
(
genJob
);
...
@@ -186,7 +184,7 @@ public class CitReportServiceImpl extends BaseService {
...
@@ -186,7 +184,7 @@ public class CitReportServiceImpl extends BaseService {
updateConfig
(
projectId
,
periodParam
,
isMergeManualData
,
templates
,
genJob
);
updateConfig
(
projectId
,
periodParam
,
isMergeManualData
,
templates
,
genJob
);
// TODO 进行数据校验
// TODO 进行数据校验
DataValidation
(
periodParam
,
projectId
,
genJob
);
//
DataValidation(periodParam, projectId, genJob);
PeriodResources
resources
=
reportGenerator
.
getPeriodResources
(
projectId
,
periodParam
,
PeriodResources
resources
=
reportGenerator
.
getPeriodResources
(
projectId
,
periodParam
,
templates
.
stream
().
map
(
Template:
:
getId
).
collect
(
Collectors
.
toList
()));
templates
.
stream
().
map
(
Template:
:
getId
).
collect
(
Collectors
.
toList
()));
...
@@ -199,6 +197,9 @@ public class CitReportServiceImpl extends BaseService {
...
@@ -199,6 +197,9 @@ public class CitReportServiceImpl extends BaseService {
FormulaEvaluator
evaluator
=
workbook
.
getCreationHelper
().
createFormulaEvaluator
();
FormulaEvaluator
evaluator
=
workbook
.
getCreationHelper
().
createFormulaEvaluator
();
evaluator
.
evaluateAll
();
evaluator
.
evaluateAll
();
setStatus
(
genJob
,
STATUS_END
);
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
reportGenerator
.
updateWorkbookCaclsValueToDb
(
projectId
,
periodParam
,
workbook
,
resources
,
isMergeManualData
,
genJob
);
reportGenerator
.
updateWorkbookCaclsValueToDb
(
projectId
,
periodParam
,
workbook
,
resources
,
isMergeManualData
,
genJob
);
setStatus
(
genJob
,
STATUS_END
);
setStatus
(
genJob
,
STATUS_END
);
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
...
@@ -362,8 +363,7 @@ public class CitReportServiceImpl extends BaseService {
...
@@ -362,8 +363,7 @@ public class CitReportServiceImpl extends BaseService {
clearPeriodData
(
projectId
,
period
,
exceptTemplateIds
,
isMergeManualData
);
clearPeriodData
(
projectId
,
period
,
exceptTemplateIds
,
isMergeManualData
);
//复制配置
//复制配置
copyTemplateAndConfigFromAdmin
(
projectId
,
templates
,
period
);
copyTemplateAndConfigFromAdmin
(
projectId
,
templates
,
period
);
setStatus
(
job
,
STATUS_END
);
periodJobMapper
.
updateByPrimaryKey
(
job
);
}
}
/**
/**
...
...
atms-web/src/main/webapp/Scripts/module-part2.js
View file @
e13c5c4a
...
@@ -1047,7 +1047,7 @@ init-row="initRow" init-col="initCol" service-type="\'6\'" is-document-list="tru
...
@@ -1047,7 +1047,7 @@ init-row="initRow" init-col="initCol" service-type="\'6\'" is-document-list="tru
$stateProvider
.
state
({
$stateProvider
.
state
({
name
:
'cit.generateReport.reportView'
,
name
:
'cit.generateReport.reportView'
,
url
:
'/reportView?{id:string}&{templateid:string}&{name:string}&{templatecode:string}
&{initrow:any}&{initcol:any}&{parentviewid:string}
'
,
url
:
'/reportView?{id:string}&{templateid:string}&{name:string}&{templatecode:string}'
,
views
:
{
views
:
{
'@cit.generateReport'
:
{
'@cit.generateReport'
:
{
controller
:
[
'$scope'
,
'$stateParams'
,
'appTranslation'
,
controller
:
[
'$scope'
,
'$stateParams'
,
'appTranslation'
,
...
@@ -1056,13 +1056,9 @@ init-row="initRow" init-col="initCol" service-type="\'6\'" is-document-list="tru
...
@@ -1056,13 +1056,9 @@ init-row="initRow" init-col="initCol" service-type="\'6\'" is-document-list="tru
$scope
.
templateId
=
$stateParams
.
templateid
;
$scope
.
templateId
=
$stateParams
.
templateid
;
$scope
.
templateName
=
$stateParams
.
name
;
$scope
.
templateName
=
$stateParams
.
name
;
$scope
.
templateCode
=
$stateParams
.
templatecode
;
$scope
.
templateCode
=
$stateParams
.
templatecode
;
$scope
.
initRow
=
$stateParams
.
initrow
;
$scope
.
initCol
=
$stateParams
.
initcol
;
$scope
.
parentViewId
=
$stateParams
.
parentviewid
;
appTranslation
.
load
([
appTranslation
.
cit
]);
appTranslation
.
load
([
appTranslation
.
cit
]);
}],
}],
template
:
'<vat-report-view report-id="reportId" template-id="templateId" template-name="templateName" template-code="templateCode"
\
template
:
'<cit-report-view report-id="reportId" template-id="templateId" template-name="templateName" template-code="templateCode" service-type="
\'
6
\'
"></cit-report-view>'
,
init-row="initRow" init-col="initCol" service-type="
\'
6
\'
" show-col="false" is-read-only="true" parent-view-id="parentViewId"></vat-report-view>'
,
}
}
},
},
resolve
:
scriptDependencyProvider
.
createDependenciesMap
(
scriptDependencyProvider
.
cit
),
resolve
:
scriptDependencyProvider
.
createDependenciesMap
(
scriptDependencyProvider
.
cit
),
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-calculate-data/cit-calculate-data.ctrl.js
View file @
e13c5c4a
...
@@ -212,9 +212,9 @@ debugger;
...
@@ -212,9 +212,9 @@ debugger;
result
[
result
.
length
-
1
].
items
.
forEach
(
function
(
t
)
{
t
.
seqNo
=
result
.
length
-
1
});
result
[
result
.
length
-
1
].
items
.
forEach
(
function
(
t
)
{
t
.
seqNo
=
result
.
length
-
1
});
//数据校验
//数据校验
var
reItem
=
[];
//
var reItem = [];
reItem
.
push
(
new
task
(
Math
.
ceil
(
Math
.
random
()
*
1000000
).
toString
(),
"unstarted"
,
"上期导入调整表是否等于本期调整日记账发生额(摘要中包含“调表不调账”关键字)"
,
"DA004"
));
//
reItem.push( new task(Math.ceil(Math.random()*1000000).toString(), "unstarted","上期导入调整表是否等于本期调整日记账发生额(摘要中包含“调表不调账”关键字)", "DA004"));
result
.
push
({
name
:
$translate
.
instant
(
'dataValidate'
),
isReportTask
:
true
,
items
:
reItem
});
//
result.push({ name: $translate.instant('dataValidate'),isReportTask: true, items : reItem});
fixedRef
=
[];
fixedRef
=
[];
if
(
report
&&
report
.
data
&&
report
.
data
.
data
)
{
if
(
report
&&
report
.
data
&&
report
.
data
.
data
)
{
...
@@ -578,6 +578,7 @@ debugger;
...
@@ -578,6 +578,7 @@ debugger;
var
tasks
=
JSON
.
parse
(
job
.
status
);
var
tasks
=
JSON
.
parse
(
job
.
status
);
debugger
;
debugger
;
if
(
job
.
jobStatus
==
'End'
){
if
(
job
.
jobStatus
==
'End'
){
debugger
;
items
.
forEach
(
function
(
item
,
index
){
items
.
forEach
(
function
(
item
,
index
){
debugger
;
debugger
;
item
.
status
=
'completed'
;
item
.
status
=
'completed'
;
...
@@ -586,8 +587,8 @@ debugger;
...
@@ -586,8 +587,8 @@ debugger;
$scope
.
tasks
[
0
].
items
[
0
].
status
=
'completed'
;
$scope
.
tasks
[
0
].
items
[
0
].
status
=
'completed'
;
$scope
.
tasks
[
0
].
items
[
0
].
text
=
$translate
.
instant
(
'completed'
);
$scope
.
tasks
[
0
].
items
[
0
].
text
=
$translate
.
instant
(
'completed'
);
$scope
.
tasks
[
tasks
.
length
-
1
].
items
[
items
.
length
-
1
].
status
=
'completed'
;
//
$scope.tasks[tasks.length-1].items[items.length-1].status = 'completed';
$scope
.
tasks
[
tasks
.
length
-
1
].
items
[
items
.
length
-
1
].
status
.
text
=
$translate
.
instant
(
_task
.
status
);
//
$scope.tasks[tasks.length-1].items[items.length-1].status.text = $translate.instant(_task.status);
if
(
$scope
.
timer
){
if
(
$scope
.
timer
){
$interval
.
cancel
(
$scope
.
timer
);
$interval
.
cancel
(
$scope
.
timer
);
vatCommonService
.
setProjectStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
month
,
constant
.
ProjectStatusEnum
.
Generated
vatCommonService
.
setProjectStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
month
,
constant
.
ProjectStatusEnum
.
Generated
...
...
atms-web/src/main/webapp/app/cit/report/cit-report-layout/cit-report-layout.ctrl.js
View file @
e13c5c4a
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
var
firstSubNode
=
_
.
first
(
firstNode
.
children
);
var
firstSubNode
=
_
.
first
(
firstNode
.
children
);
if
(
firstSubNode
.
id
!==
undefined
)
{
if
(
firstSubNode
.
id
!==
undefined
)
{
$scope
.
selectedTemplateId
=
firstSubNode
.
id
;
$scope
.
selectedTemplateId
=
firstSubNode
.
id
;
$state
.
go
(
'
va
t.generateReport.reportView'
,
{
$state
.
go
(
'
ci
t.generateReport.reportView'
,
{
id
:
firstSubNode
.
reportId
,
id
:
firstSubNode
.
reportId
,
templateid
:
firstSubNode
.
id
,
templateid
:
firstSubNode
.
id
,
name
:
firstSubNode
.
name
,
name
:
firstSubNode
.
name
,
...
...
atms-web/src/main/webapp/app/cit/report/cit-report-sheet/cit-report-sheet.js
0 → 100644
View file @
e13c5c4a
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
0 → 100644
View file @
e13c5c4a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.html
0 → 100644
View file @
e13c5c4a
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.js
0 → 100644
View file @
e13c5c4a
commonModule
.
directive
(
'citReportView'
,
[
'$log'
,
'enums'
,
function
(
$log
,
enums
)
{
'use strict'
;
$log
.
debug
(
'citReportView.ctor()...'
);
return
{
restrict
:
'E'
,
templateUrl
:
'app/cit/report/cit-report-view/cit-report-view.html'
+
'?_='
+
Math
.
random
(),
scope
:
{
templateId
:
'='
,
reportId
:
'='
,
templateName
:
'='
,
templateCode
:
'='
,
isDocumentList
:
'='
,
serviceType
:
'='
,
initRow
:
'=?'
,
initCol
:
'=?'
,
instanceId
:
'='
},
controller
:
'citReportViewController'
,
link
:
function
(
$scope
,
$ele
,
$attr
)
{
$ele
.
find
(
"#tax-cell-detail"
).
draggable
({
scroll
:
true
,
cancel
:
'#dataSourceGrid,.hand-input-container,.add-voucher-range-propover,.add-invoice,.tab-type,.dx-texteditor-input,input,.btn'
});
var
saveFunc
=
$scope
.
$on
(
'saveReportSheet'
,
function
(
event
,
args
)
{
$scope
.
saveReportCache
();
});
$scope
.
$on
(
'$destroy'
,
function
()
{
saveFunc
();
});
}
};
}
]);
\ No newline at end of file
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.less
0 → 100644
View file @
e13c5c4a
@import "~/app-resources/less/theme.less";
@color-red:#e20;
@color-gray:#939598-#222;
.cit-report-view {
height: calc(~"100% - 20px");
min-height: 500px;
margin: 10px 10px 10px 20px;
.report-container {
border: @thin-border solid @color-border;
height: calc(~"100% - 36px");
margin: 0;
width: 100%;
white-space: normal;
display: inline-block;
}
.row {
margin-left: 0px;
margin-bottom:10px;
&>span {
float: right;
margin-right: 15px;
cursor: pointer;
}
}
#addCertificatePop {
.modal-dialog {
width: 700px;
.add-certificate-pop-body {
height: 240px;
#add-certificate-grid {
height: 210px;
}
}
.modal-footer {
.template-1-button {
background-color: @color-red;
color: white;
margin-right:30px;
}
.template-2-button {
background-color: @color-gray;
color: white;
margin-right: 30px;
}
}
}
}
}
.model-report-approve-popup {
width: 400px;
height:500px;
position:fixed;
top:25%;
left:40%;
.modal-dialog {
width: 100%;
height: 90%;
margin: 20px auto;
.modal-content {
width: 100%;
.modal-body {
height: 90%;
}
}
}
}
.model-report-remarks-popup {
width: 400px;
height:500px;
position:fixed;
top:25%;
left:40%;
.modal-dialog {
width: 100%;
height: 90%;
margin: 20px auto;
.modal-content {
width: 100%;
.modal-body {
height: 90%;
}
}
}
}
atms-web/src/main/webapp/app/dataImport/data-import-layout/data-import-layout.js
View file @
e13c5c4a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
console
.
log
(
'dataImpLayoutctor'
);
console
.
log
(
'dataImpLayoutctor'
);
return
{
return
{
restrict
:
'E'
,
restrict
:
'E'
,
templateUrl
:
'/app/dataImport/data-import-layout/data-import-layout.
.
html'
+
'?_='
+
Math
.
random
(),
templateUrl
:
'/app/dataImport/data-import-layout/data-import-layout.html'
+
'?_='
+
Math
.
random
(),
replace
:
true
,
replace
:
true
,
scope
:
{
scope
:
{
},
},
...
...
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