Commit 65726b13 by Chao Sun

bug修复

parent 1ff70da6
...@@ -235,30 +235,30 @@ ...@@ -235,30 +235,30 @@
decimal:5, decimal:5,
irrAndSimpleInfos:this.policyYearLists irrAndSimpleInfos:this.policyYearLists
}); });
provide("dataImportIrrAndSimpleCalcuteParams", params); // 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({ // uni.navigateTo({
// url: '/pages/index/index?isBack=1' // url: '/pages/index/index'
// }); // });
// }else{ api.irrAndSimpleCalcute(params).then(res=>{
// uni.showToast({ if(res.success === true){
// title: res['message'], this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos;
// duration: 2000, // this.resultShowFlag = true;
// icon: 'none' //计算成功返回上一页
// }) 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'
})
}
})
} }
} }
......
...@@ -322,8 +322,10 @@ ...@@ -322,8 +322,10 @@
yearWithdrawalAmount:null}]); yearWithdrawalAmount:null}]);
}else if(e=='1'){ }else if(e=='1'){
this.irrAndSimpleCalcuteParam.allFirstPayment = null; this.irrAndSimpleCalcuteParam.allFirstPayment = null;
if(this.withdrawalType == '1'){
this.yearWithdrawalInfos = []; this.yearWithdrawalInfos = [];
} }
}
this.resultShowFlag = false; this.resultShowFlag = false;
} }
...@@ -375,6 +377,19 @@ ...@@ -375,6 +377,19 @@
this.errorDialog(1,`请输入提领信息保单年度,且年度值必须大于0`); this.errorDialog(1,`请输入提领信息保单年度,且年度值必须大于0`);
return false; 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 @@ ...@@ -506,6 +521,19 @@
this.errorDialog(2,`请输入提领信息保单年度,且年度值必须大于0!`); this.errorDialog(2,`请输入提领信息保单年度,且年度值必须大于0!`);
return false; 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;
}
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment