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
800db84b
Commit
800db84b
authored
Nov 27, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual formula not number valid
parent
5358de9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
tax-report-cell-detail-modal.ctrl.js
...rt-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
+35
-4
No files found.
atms-web/src/main/webapp/app/common/controls/tax-report-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
View file @
800db84b
...
...
@@ -239,11 +239,42 @@
closeOnCancel
:
true
},
function
(
isConfirm
)
{
if
(
isConfirm
)
{
doConfirmEventHandler
();
if
(
isConfirm
){
var
message
;
var
r
=
/^00
\d
*|^
\.\d
+|
\.
$/
;
if
(
$scope
.
detail
.
inputValue
&&
(
isNaN
(
$scope
.
detail
.
inputValue
)
||
r
.
test
(
$scope
.
detail
.
inputValue
)))
{
message
=
$translate
.
instant
(
'CheckInputValueFormat'
);
}
else
if
(
$scope
.
detail
.
inputValue
&&
parseFloat
(
$scope
.
detail
.
inputValue
).
toFixed
(
2
)
>
9999999999999
)
{
message
=
$translate
.
instant
(
'CheckInputValueLength'
);
}
else
if
(
$scope
.
detail
.
dataType
===
5
)
{
r
=
/^
(
-
[
1-9
]\d
*|
[
1-9
]\d
*|
[
0
]{1,1})
$/
;
if
(
!
r
.
test
(
$scope
.
detail
.
inputValue
))
{
message
=
$translate
.
instant
(
'CheckIntInputValue'
);
}
}
if
(
$scope
.
detail
.
inputMemo
&&
$scope
.
detail
.
inputMemo
.
length
>
500
)
{
message
=
$translate
.
instant
(
'CheckInputMemoLength'
);
}
if
(
message
)
{
setTimeout
(
function
()
{
swal
({
title
:
"warning!"
,
text
:
message
,
type
:
"warning"
,
showCancelButton
:
false
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
'确认'
,
closeOnConfirm
:
true
},
function
(
isConfirm
)
{
if
(
isConfirm
)
{
return
;
}
})},
500
);
}
else
{
doConfirmEventHandler
();
}
}
else
{
swal
.
close
();
}
});
...
...
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