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({ // uni.navigateTo({
url: '/pages/index/index' // url: '/pages/index/index'
}); // });
// api.irrAndSimpleCalcute(params).then(res=>{ api.irrAndSimpleCalcute(params).then(res=>{
// if(res.success === true){ if(res.success === true){
// this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos; this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos;
// // this.resultShowFlag = true; // this.resultShowFlag = true;
// //计算成功返回上一页 //计算成功返回上一页
// uni.setStorageSync('resIrrAndSimpleResInfos',this.irrAndSimpleResInfos); uni.setStorageSync('resIrrAndSimpleResInfos',this.irrAndSimpleResInfos);
// // uni.navigateBack({ // uni.navigateBack({
// // delta:1,//返回层数,2则上上页 // delta:1,//返回层数,2则上上页
// // }) // })
// uni.navigateTo({ uni.navigateTo({
// url: '/pages/index/index?isBack=1' url: '/pages/index/index?isBack=1'
// }); });
// }else{ }else{
// uni.showToast({ uni.showToast({
// title: res['message'], title: res['message'],
// duration: 2000, duration: 2000,
// icon: 'none' icon: 'none'
// }) })
// } }
// }) })
} }
} }
......
...@@ -322,11 +322,13 @@ ...@@ -322,11 +322,13 @@
yearWithdrawalAmount:null}]); yearWithdrawalAmount:null}]);
}else if(e=='1'){ }else if(e=='1'){
this.irrAndSimpleCalcuteParam.allFirstPayment = null; this.irrAndSimpleCalcuteParam.allFirstPayment = null;
this.yearWithdrawalInfos = []; if(this.withdrawalType == '1'){
this.yearWithdrawalInfos = [];
}
} }
this.resultShowFlag = false; this.resultShowFlag = false;
} }
}, },
// calcuteMethod判断单次还是批量;businessType判断保存还是计算 // calcuteMethod判断单次还是批量;businessType判断保存还是计算
calcute(businessType){ calcute(businessType){
...@@ -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