Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfp-program
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
sfp-program
Commits
9f94847a
Commit
9f94847a
authored
Sep 08, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数字类型判断
parent
7c2c85bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
pages/dataImport/data-import.vue
+2
-3
pages/index/index.vue
+2
-2
No files found.
pages/dataImport/data-import.vue
View file @
9f94847a
...
@@ -114,7 +114,6 @@
...
@@ -114,7 +114,6 @@
selectCustomPolicyYear
(){
selectCustomPolicyYear
(){
this
.
policyYearModalFlag
=
true
;
this
.
policyYearModalFlag
=
true
;
this
.
irrAndSimpleInfos
=
this
.
policyYearLists
=
[];
this
.
irrAndSimpleInfos
=
this
.
policyYearLists
=
[];
console
.
log
(
this
.
irrAndSimpleInfos
)
},
},
// 选择保单年度区间
// 选择保单年度区间
selectPolicyYearRange
(
e
){
selectPolicyYearRange
(
e
){
...
@@ -213,10 +212,10 @@
...
@@ -213,10 +212,10 @@
}
}
console
.
log
(
this
.
policyYearLists
)
console
.
log
(
this
.
policyYearLists
)
for
(
let
i
=
0
;
i
<
this
.
policyYearLists
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
policyYearLists
.
length
;
i
++
){
if
(
this
.
policyYearLists
[
i
].
cashValue
<
0
||
isNaN
(
this
.
policyYearLists
[
i
].
cashValue
)){
if
(
this
.
policyYearLists
[
i
].
cashValue
<
0
||
isNaN
(
this
.
policyYearLists
[
i
].
cashValue
||
this
.
policyYearLists
[
i
].
cashValue
>
999999999999999
)){
uni
.
showModal
({
uni
.
showModal
({
title
:
'数据格式输入错误'
,
title
:
'数据格式输入错误'
,
content
:
`保单年度为
${
this
.
policyYearLists
[
i
].
nyear
}
时,现金价值格式错误,须为大于或等于0的数字类型`
,
content
:
`保单年度为
${
this
.
policyYearLists
[
i
].
nyear
}
时,现金价值格式错误,须为大于或等于0
且必须小于999,999,999,999,999
的数字类型`
,
showCancel
:
false
,
showCancel
:
false
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
...
...
pages/index/index.vue
View file @
9f94847a
...
@@ -510,8 +510,8 @@
...
@@ -510,8 +510,8 @@
return
false
;
return
false
;
}
}
}
}
if
(
!
this
.
irrAndSimple
.
nyear
){
if
(
!
this
.
irrAndSimple
.
cashValue
){
this
.
errorDialog
(
1
,
`
生存总利益
未输入!`
);
this
.
errorDialog
(
1
,
`
${
irrAndSimpleCalcuteParam
.
allFirstPayment
>
0
}
? '总生存利益(万能账户现价+现金价值)' :'现金价值'
未输入!`
);
return
false
;
return
false
;
}
}
}
}
...
...
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