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
14f7e296
Commit
14f7e296
authored
Nov 28, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle_sherlock' into 'dev_oracle'
manual formula not number valid See merge request root/atms!213
parents
47b2d550
800db84b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
tax-report-cell-detail-modal.ctrl.js
...rt-cell-detail-modal/tax-report-cell-detail-modal.ctrl.js
+34
-3
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 @
14f7e296
...
...
@@ -239,11 +239,42 @@
closeOnCancel
:
true
},
function
(
isConfirm
)
{
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
)
{
doConfirmEventHandler
(
);
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