Commit 1e728dfd by Sweet Zhang

导入时不识别

parent 07019ae9
...@@ -170,7 +170,6 @@ ...@@ -170,7 +170,6 @@
console.log('用户点击确定'); console.log('用户点击确定');
if(this.irrAndSimpleInfos.length>0){ if(this.irrAndSimpleInfos.length>0){
const minLength = Math.min(pasteDataLists.length,this.irrAndSimpleInfos.length) ; const minLength = Math.min(pasteDataLists.length,this.irrAndSimpleInfos.length) ;
console.log(minLength)
for(let i=0;i<minLength;i++){ for(let i=0;i<minLength;i++){
this.irrAndSimpleInfos[i]['cashValue'] = pasteDataLists[i]; this.irrAndSimpleInfos[i]['cashValue'] = pasteDataLists[i];
} }
...@@ -180,6 +179,13 @@ ...@@ -180,6 +179,13 @@
} }
} }
}); });
}else{
if(this.irrAndSimpleInfos.length>0){
const minLength = Math.min(pasteDataLists.length,this.irrAndSimpleInfos.length) ;
for(let i=0;i<minLength;i++){
this.irrAndSimpleInfos[i]['cashValue'] = pasteDataLists[i];
}
}
} }
}, },
// 全部清空 // 全部清空
...@@ -224,9 +230,9 @@ ...@@ -224,9 +230,9 @@
}) })
}else{ }else{
uni.showToast({ uni.showToast({
title: res['message'], title: res['message'],
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}) })
} }
}) })
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</view> </view>
</view> </view>
<!-- 现金价值单利复利结果展示 --> <!-- 现金价值单利复利结果展示 -->
<view class="resultContent"> <view class="resultContent" id="resultContent">
<!-- 单次计算显示结果 --> <!-- 单次计算显示结果 -->
<view id="simpleDataResult" class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'"> <view id="simpleDataResult" class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'">
<view class="inputItem"> <view class="inputItem">
...@@ -206,6 +206,7 @@ ...@@ -206,6 +206,7 @@
export default { export default {
data() { data() {
return { return {
scrollTop:0,
isNeedOfficialAccountQrcode:true, isNeedOfficialAccountQrcode:true,
calcuteType:'1', //计算类型(1:增额; 2:年金) calcuteType:'1', //计算类型(1:增额; 2:年金)
withdrawalType:'1', //提领方式(1:正常提领; 2:减保取现) withdrawalType:'1', //提领方式(1:正常提领; 2:减保取现)
...@@ -451,7 +452,7 @@ ...@@ -451,7 +452,7 @@
} }
} }
//提领信息判断 //提领信息判断
if(this.yearWithdrawalInfos.length>0){ if(this.yearWithdrawalInfos && this.yearWithdrawalInfos.length>0){
for (let i = 0; i < this.yearWithdrawalInfos.length; i++) { for (let i = 0; i < this.yearWithdrawalInfos.length; i++) {
//增额提领信息校验 //增额提领信息校验
if(this.calcuteType == 1){ if(this.calcuteType == 1){
...@@ -551,11 +552,7 @@ ...@@ -551,11 +552,7 @@
withdrawalType:this.withdrawalType?'1':'2', withdrawalType:this.withdrawalType?'1':'2',
decimal: 5 decimal: 5
}; };
// document.getElementById(simpleDataResult).scrollIntoView({
// behavior: "smooth",
// block: "end",
// inline: "end"
// });
api.irrAndSimpleCalcute(params).then(res=>{ api.irrAndSimpleCalcute(params).then(res=>{
console.log(res) console.log(res)
if(res.success === true){ if(res.success === true){
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<title>sfp</title> <title>sfp</title>
<!--preload-links--> <!--preload-links-->
<!--app-context--> <!--app-context-->
<script type="module" crossorigin src="/sfp/assets/index.33444e48.js"></script> <script type="module" crossorigin src="/sfp/assets/index.ac2778ca.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.13d2da89.css"> <link rel="stylesheet" href="/sfp/assets/index.13d2da89.css">
</head> </head>
<body> <body>
......
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