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
4e36583b
Commit
4e36583b
authored
Dec 06, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] when approval agree and can add manual data
parent
f017d515
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
40 deletions
+38
-40
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+0
-4
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+35
-29
vatReportService.js
...rc/main/webapp/app/common/vatservices/vatReportService.js
+3
-7
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
4e36583b
...
...
@@ -873,10 +873,6 @@ public class ReportServiceImpl {
public
OperationResultDto
addCellManualDataSource
(
ManualDataSourceDto
data
,
String
projectId
)
{
OperationResultDto
operationResultDto
=
new
OperationResultDto
();
String
status
=
periodApprovalMapper
.
getStatusByProjectIdAndPeriod
(
projectId
,
data
.
getPeriod
());
MyAsserts
.
assertTrue
(
status
==
null
||
status
.
equals
(
Constant
.
APPROVAL_DISAGREED
),
Exceptions
.
REPORT_IN_PROCESS_OR_AGREED_EXCEPTION
);
try
{
if
(
data
.
getCellId
()
==
null
)
{
//todo: insert celldata for manual datasource
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
4e36583b
...
...
@@ -1493,35 +1493,41 @@
//单元格详细信息点击确定时执行
$scope
.
confirm
=
function
()
{
$scope
.
handInputModel
.
name
=
$scope
.
taxCellDetail
.
inputMemo
;
$scope
.
handInputModel
.
amount
=
$scope
.
taxCellDetail
.
inputValue
;
$scope
.
handInputModel
.
description
=
$scope
.
taxCellDetail
.
inputMemo
;
$scope
.
handInputModel
.
projectID
=
vatSessionService
.
project
.
id
;
$scope
.
handInputModel
.
serviceTypeID
=
vatSessionService
.
project
.
serviceTypeID
;
$scope
.
handInputModel
.
period
=
vatSessionService
.
month
;
if
(
$scope
.
handInputModel
.
amount
||
$scope
.
handInputModel
.
name
)
{
//日志对象
logDto
.
ID
=
PWC
.
newGuid
();
logDto
.
CreateTime
=
new
Date
();
logDto
.
UpdateTime
=
new
Date
();
logDto
.
OperationContent
=
"Amount: "
+
$scope
.
handInputModel
.
amount
+
"; Description: "
+
$scope
.
handInputModel
.
description
;
logDto
.
OperationName
=
$translate
.
instant
(
'ManualInputDataSource'
);
logDto
.
Comment
=
comment
+
"(Cell ID:"
+
$scope
.
handInputModel
.
cellID
+
", Cell Template ID:"
+
$scope
.
handInputModel
.
cellTemplateID
+
")"
;
logDto
.
OperationType
=
enums
.
vatLogOperationTypeEnum
.
RV_ManualInput
;
// 前端保存数据
return
vatReportService
.
addCellManualData
(
$scope
.
handInputModel
,
logDto
).
then
(
function
(
manualData
)
{
var
obj
=
manualData
.
data
.
data
;
obj
.
dataSourceType
=
manualData
.
dataSourceType
;
$scope
.
updateCellByManualChange
(
obj
);
return
$q
.
when
();
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
project
.
period
).
success
(
function
(
result
){
if
(
result
&&
result
==
'committed'
){
SweetAlert
.
error
(
'报表提审中!'
);
}
else
{
$scope
.
handInputModel
.
name
=
$scope
.
taxCellDetail
.
inputMemo
;
$scope
.
handInputModel
.
amount
=
$scope
.
taxCellDetail
.
inputValue
;
$scope
.
handInputModel
.
description
=
$scope
.
taxCellDetail
.
inputMemo
;
$scope
.
handInputModel
.
projectID
=
vatSessionService
.
project
.
id
;
$scope
.
handInputModel
.
serviceTypeID
=
vatSessionService
.
project
.
serviceTypeID
;
$scope
.
handInputModel
.
period
=
vatSessionService
.
month
;
if
(
$scope
.
handInputModel
.
amount
||
$scope
.
handInputModel
.
name
)
{
//日志对象
logDto
.
ID
=
PWC
.
newGuid
();
logDto
.
CreateTime
=
new
Date
();
logDto
.
UpdateTime
=
new
Date
();
logDto
.
OperationContent
=
"Amount: "
+
$scope
.
handInputModel
.
amount
+
"; Description: "
+
$scope
.
handInputModel
.
description
;
logDto
.
OperationName
=
$translate
.
instant
(
'ManualInputDataSource'
);
logDto
.
Comment
=
comment
+
"(Cell ID:"
+
$scope
.
handInputModel
.
cellID
+
", Cell Template ID:"
+
$scope
.
handInputModel
.
cellTemplateID
+
")"
;
logDto
.
OperationType
=
enums
.
vatLogOperationTypeEnum
.
RV_ManualInput
;
// 前端保存数据
return
vatReportService
.
addCellManualData
(
$scope
.
handInputModel
,
logDto
).
then
(
function
(
manualData
)
{
var
obj
=
manualData
.
data
.
data
;
obj
.
dataSourceType
=
manualData
.
dataSourceType
;
$scope
.
updateCellByManualChange
(
obj
);
return
$q
.
when
();
});
}
return
$q
.
reject
();
});
}
return
$q
.
reject
();
};
...
...
@@ -2554,7 +2560,7 @@
vatSessionService
.
project
.
period
=
vatSessionService
.
month
;
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
project
.
period
).
success
(
function
(
result
){
if
(
result
&&
result
==
'committed'
){
SweetAlert
.
error
(
'报表提审中
或审核已通过
!'
);
SweetAlert
.
error
(
'报表提审中!'
);
}
else
{
SweetAlert
.
swal
({
title
:
"warning!"
,
...
...
@@ -2685,7 +2691,7 @@
vatSessionService
.
project
.
period
=
vatSessionService
.
month
;
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
project
.
period
).
success
(
function
(
result
){
if
(
result
&&
result
==
'committed'
){
SweetAlert
.
error
(
'报表提审中
或审核已通过
!'
);
SweetAlert
.
error
(
'报表提审中!'
);
}
else
{
var
text
=
$
(
".li"
).
find
(
".active"
).
text
();
$log
.
debug
(
text
);
...
...
atms-web/src/main/webapp/app/common/vatservices/vatReportService.js
View file @
4e36583b
...
...
@@ -96,13 +96,9 @@
data
.
dataSourceType
=
enums
.
cellDataSourceType
.
KeyIn
;
return
$q
.
when
(
data
);
},
function
(
data
)
{
if
(
data
.
status
==
412
){
SweetAlert
.
error
(
'报表提审中或审核已通过!'
);
}
else
{
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
return
vatOperationLogService
.
addOperationLog
(
logInfo
);
}
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
return
vatOperationLogService
.
addOperationLog
(
logInfo
);
});
},
deleteCellVoucher
:
function
(
voucherId
,
datasourceId
)
{
...
...
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