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
65726b13
Commit
65726b13
authored
Sep 08, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
1ff70da6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
26 deletions
+54
-26
pages/dataImport/data-import.vue
+24
-24
pages/index/index.vue
+30
-2
No files found.
pages/dataImport/data-import.vue
View file @
65726b13
...
...
@@ -235,30 +235,30 @@
decimal
:
5
,
irrAndSimpleInfos
:
this
.
policyYearLists
});
provide
(
"dataImportIrrAndSimpleCalcuteParams"
,
params
);
uni
.
navigateTo
({
url
:
'/pages/index/index'
});
//
api.irrAndSimpleCalcute(params).then(res=>{
//
if(res.success === true){
//
this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos;
//
// this.resultShowFlag = true;
//
//
计算成功返回上一页
//
uni.setStorageSync('resIrrAndSimpleResInfos',this.irrAndSimpleResInfos);
//
//
uni.navigateBack({
//
//
delta:1,//返回层数,2则上上页
//
//
})
//
uni.navigateTo({
//
url: '/pages/index/index?isBack=1'
//
});
//
}else{
//
uni.showToast({
//
title: res['message'],
//
duration: 2000,
//
icon: 'none'
//
})
//
}
//
})
//
provide("dataImportIrrAndSimpleCalcuteParams", params);
//
uni.navigateTo({
//
url: '/pages/index/index'
//
});
api
.
irrAndSimpleCalcute
(
params
).
then
(
res
=>
{
if
(
res
.
success
===
true
){
this
.
irrAndSimpleResInfos
=
res
.
data
.
irrAndSimpleResInfos
;
// this.resultShowFlag = true;
//计算成功返回上一页
uni
.
setStorageSync
(
'resIrrAndSimpleResInfos'
,
this
.
irrAndSimpleResInfos
);
// uni.navigateBack({
// delta:1,//返回层数,2则上上页
// })
uni
.
navigateTo
({
url
:
'/pages/index/index?isBack=1'
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
}
})
}
}
...
...
pages/index/index.vue
View file @
65726b13
...
...
@@ -322,11 +322,13 @@
yearWithdrawalAmount
:
null
}]);
}
else
if
(
e
==
'1'
){
this
.
irrAndSimpleCalcuteParam
.
allFirstPayment
=
null
;
this
.
yearWithdrawalInfos
=
[];
if
(
this
.
withdrawalType
==
'1'
){
this
.
yearWithdrawalInfos
=
[];
}
}
this
.
resultShowFlag
=
false
;
}
},
// calcuteMethod判断单次还是批量;businessType判断保存还是计算
calcute
(
businessType
){
...
...
@@ -375,6 +377,19 @@
this
.
errorDialog
(
1
,
`请输入提领信息保单年度,且年度值必须大于0`
);
return
false
;
}
if
(
!
this
.
yearWithdrawalInfos
[
i
][
'yearWithdrawalAmount'
]){
this
.
errorDialog
(
1
,
'请输入提领金额'
);
return
false
;
}
else
{
if
(
this
.
yearWithdrawalInfos
[
i
][
'yearWithdrawalAmount'
]
<
0
){
this
.
errorDialog
(
1
,
'提领金额必须大于等于0'
);
return
false
;
}
if
(
this
.
yearWithdrawalInfos
[
i
][
'yearWithdrawalAmount'
]
>
999999999999999
){
this
.
errorDialog
(
1
,
'提领金额必须小于999,999,999,999,999'
);
return
false
;
}
}
}
}
}
...
...
@@ -506,6 +521,19 @@
this
.
errorDialog
(
2
,
`请输入提领信息保单年度,且年度值必须大于0!`
);
return
false
;
}
if
(
!
this
.
yearWithdrawalInfos
[
i
][
'yearWithdrawalAmount'
]){
this
.
errorDialog
(
1
,
'请输入提领金额'
);
return
false
;
}
else
{
if
(
this
.
yearWithdrawalInfos
[
i
][
'yearWithdrawalAmount'
]
<
0
){
this
.
errorDialog
(
1
,
'提领金额必须大于等于0'
);
return
false
;
}
if
(
this
.
yearWithdrawalInfos
[
i
][
'yearWithdrawalAmount'
]
>
999999999999999
){
this
.
errorDialog
(
1
,
'提领金额必须小于999,999,999,999,999'
);
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