Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftISOEditor
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
swift
swiftISOEditor
Commits
102f059d
Commit
102f059d
authored
Jul 22, 2024
by
pengbao666
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改AmountCips类型校验bug
parent
6aeeb14f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
MsgValidator.js
editor_vue/src/iso/script/MsgValidator.js
+6
-0
No files found.
editor_vue/src/iso/script/MsgValidator.js
View file @
102f059d
...
...
@@ -57,6 +57,9 @@ export function amountCIPSValidator(isM, desc, sca) {
callback
(
new
Error
(
desc
+
" Cannot be null"
));
}
else
if
(
!
flag
){
callback
(
new
Error
(
"Amount Cannot be null"
));
}
else
{
console
.
log
(
"Amount success"
)
callback
();
}
}
else
if
(
sca
.
length
===
2
)
{
const
totalDig
=
sca
[
0
];
...
...
@@ -64,6 +67,7 @@ export function amountCIPSValidator(isM, desc, sca) {
if
(
amtValue
.
indexOf
(
"."
)
==
-
1
)
{
//不包含小数点
if
(
amtValue
.
length
<=
totalDig
)
{
console
.
log
(
"Amount success"
)
callback
();
}
else
{
callback
(
new
Error
(
"The total number of digits cannot exceed"
+
totalDig
));
...
...
@@ -78,10 +82,12 @@ export function amountCIPSValidator(isM, desc, sca) {
}
else
if
(
integerNumber
+
decimalNumber
>
totalDig
)
{
callback
(
new
Error
(
"The total number of digits cannot exceed"
+
totalDig
));
}
else
{
console
.
log
(
"Amount success"
)
callback
();
}
}
}
else
{
console
.
log
(
"Amount success"
)
callback
();
}
};
...
...
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