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
e708960a
Commit
e708960a
authored
Nov 13, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] fixed allert for approval msg
parent
c146257f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
21 deletions
+12
-21
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+1
-9
vat-report-view.html
.../app/common/controls/vat-report-view/vat-report-view.html
+2
-0
vatReportService.js
...rc/main/webapp/app/common/vatservices/vatReportService.js
+8
-4
vat-caculate-data.ctrl.js
...vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
+1
-8
No files found.
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
e708960a
...
...
@@ -1721,7 +1721,6 @@
}
});
}
else
{
SweetAlert
.
warning
(
$translate
.
instant
(
'CompleteDeclarationStatusCheck'
));
}
}
...
...
@@ -2541,14 +2540,7 @@
$scope
.
commitApprove
=
function
(){
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
month
).
success
(
function
(
result
){
if
(
result
&&
result
==
'committed'
){
SweetAlert
.
swal
({
title
:
"warning!"
,
text
:
$translate
.
instant
(
'报表提审中'
),
type
:
"warning"
,
showCancelButton
:
true
,
cancelButtonText
:
$translate
.
instant
(
'No'
),
closeOnCancel
:
true
});
SweetAlert
.
error
(
$translate
.
instant
(
'报表提审中或审核通过'
));
}
else
{
SweetAlert
.
swal
({
title
:
"warning!"
,
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.html
View file @
e708960a
...
...
@@ -6,6 +6,8 @@
class=
"fa fa-floppy-o"
></i>
{{'报表提审'}}
</span>
<span
ng-if=
"!isBSPL"
ng-click=
"doApprove();"
><i
class=
"fa fa-floppy-o"
></i>
{{'报表审批'}}
</span>
<span
ng-if=
"!isBSPL"
ng-click=
"saveReportCache();"
><i
class=
"fa fa-floppy-o"
></i>
{{'Save' | translate}}
</span>
</div>
<div
class=
'report-container'
id=
"reportContainer"
>
...
...
atms-web/src/main/webapp/app/common/vatservices/vatReportService.js
View file @
e708960a
...
...
@@ -88,10 +88,14 @@
vatOperationLogService
.
addOperationLog
(
logInfo
);
data
.
dataSourceType
=
enums
.
cellDataSourceType
.
KeyIn
;
return
$q
.
when
(
data
);
},
function
()
{
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
return
vatOperationLogService
.
addOperationLog
(
logInfo
);
},
function
(
data
)
{
if
(
data
.
status
==
412
){
SweetAlert
.
error
(
$translate
.
instant
(
'报表提审中或审核通过'
));
}
else
{
logInfo
.
UpdateState
=
$translate
.
instant
(
'ManualInputFail'
);
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
return
vatOperationLogService
.
addOperationLog
(
logInfo
);
}
});
},
deleteCellVoucher
:
function
(
voucherId
,
datasourceId
)
{
...
...
atms-web/src/main/webapp/app/vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
View file @
e708960a
...
...
@@ -295,14 +295,7 @@
}
}).
error
(
function
(
data
,
status
,
config
,
statusText
)
{
if
(
status
==
412
){
swal
({
title
:
"warning!"
,
text
:
"报表提审中或审核通过"
,
type
:
"warning"
,
showCancelButton
:
true
,
cancelButtonText
:
$translate
.
instant
(
'No'
),
closeOnCancel
:
true
});
SweetAlert
.
error
(
'报表提审中或审核通过'
);
}
});
...
...
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