Commit 98f4679c by Chao Sun

bug调试

parent b8929c0f
{ {
"hash": "ad4518f9", "hash": "a8071bec",
"browserHash": "8a04698b", "browserHash": "4aa27071",
"optimized": { "optimized": {
"nanoid": { "nanoid": {
"src": "../../node_modules/nanoid/index.browser.js", "src": "../../node_modules/nanoid/index.browser.js",
"file": "nanoid.js", "file": "nanoid.js",
"fileHash": "e6fe08a1", "fileHash": "8fa96e9e",
"needsInterop": false "needsInterop": false
} }
}, },
......
...@@ -9,6 +9,10 @@ export default { ...@@ -9,6 +9,10 @@ export default {
// 获取unionId // 获取unionId
getWxUserInfo(params){ getWxUserInfo(params){
return request(`${baseURL}/api/getWxUserInfo`, "POST", params) return request(`${baseURL}/api/getWxUserInfo`, "POST", params)
},
//增额寿和年金(单利复利)计算结果查询接口
queryIrrAndSimple(params){
return request(`${baseURL}/api/sfp/calcuteUtil/queryIrrAndSimple`, "POST", params)
} }
} }
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
"devServer" : { "devServer" : {
"proxy" : { "proxy" : {
"/api" : { "/api" : {
"port" : 3001, // 端口号 "port" : 3000, // 端口号
"target" : "https://mdev.zuihuibi.cn", //请求的目标域名 "target" : "https://mdev.zuihuibi.cn", //请求的目标域名
"changeOrigin" : true, //是否跨域 "changeOrigin" : true, //是否跨域
"secure" : false, //设置支持https协议的代理 "secure" : false, //设置支持https协议的代理
......
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
</template> </template>
<script> <script>
import api from "../../api/api";
export default { export default {
data() { data() {
return { return {
...@@ -85,10 +86,13 @@ ...@@ -85,10 +86,13 @@
maxPolicyYear:105, maxPolicyYear:105,
policyYearLists:[{nyear:1,isActived:true,cashValue:''}], policyYearLists:[{nyear:1,isActived:true,cashValue:''}],
policyYearModalFlag:false, policyYearModalFlag:false,
calcuteData:null
} }
}, },
name:'dataImport',
onLoad() { onLoad() {
this.bindPickerChange({detail:{value:this.index}}) this.bindPickerChange({detail:{value:this.index}})
this.calcuteData = uni.getStorageSync('calcuteData')
}, },
methods:{ methods:{
// 选择间隔 // 选择间隔
...@@ -182,6 +186,32 @@ ...@@ -182,6 +186,32 @@
clearData(){ clearData(){
this.pasteData = ''; this.pasteData = '';
this.irrAndSimpleInfos.forEach(item=>item.cashValue=''); this.irrAndSimpleInfos.forEach(item=>item.cashValue='');
},
calcuteIrr(){
this.policyYearLists = this.irrAndSimpleInfos
const params = {
...this.calcuteData,
calcuteMethod:2,
decimal:5,
irrAndSimpleInfos:this.policyYearLists
};
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则上上页
})
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
}
})
} }
} }
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
} }
.optionContent{ .optionContent{
position: fixed; position: fixed;
bottom: 0; bottom: 30rpx;
left: 0; left: 0;
width: 100%; width: 100%;
display: flex; display: flex;
......
<template> <template>
<view class="qrcodeContainer" v-if="isNeedOfficialAccountQrcode"> <!-- <view v-show="irrFlag == false" > -->
<view class="qrcodeContainer" v-show="isNeedOfficialAccountQrcode">
<view class="qrcodeContent"> <view class="qrcodeContent">
<img src="../../static/images/qrcodeBg.png" alt="" srcset=""> <img src="../../static/images/qrcodeBg.png" alt="" srcset="">
</view> </view>
</view> </view>
<view class="content" v-if="!isNeedOfficialAccountQrcode"> <view class="content" v-show="!isNeedOfficialAccountQrcode">
<view class="banner"> <view class="banner">
<img src="/static/images/policyIrrBanner.png" alt="" srcset=""> <img src="/static/images/policyIrrBanner.png" alt="" srcset="">
</view> </view>
...@@ -19,9 +20,9 @@ ...@@ -19,9 +20,9 @@
<view class="policyInfoContent"> <view class="policyInfoContent">
<view class="title"> <view class="title">
<view>保单信息</view> <view>保单信息</view>
<button class="btn" style="font-size: 12px;margin: 0;padding: 0 30px;" <!-- <button class="btn" style="font-size: 12px;margin: 0;padding: 0 30px;"
@click="calcute(2)" @click="calcute(2)"
>保存</button> >保存</button> -->
</view> </view>
<view class="inputItem"> <view class="inputItem">
<text>交费年限:</text> <text>交费年限:</text>
...@@ -125,7 +126,7 @@ ...@@ -125,7 +126,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="batchCalculateContent" v-show="calcuteMethod==='2'"> <view class="batchCalculateContent" v-show="!resultShowFlag && calcuteMethod==='2'">
<img src="/static/images/batchFileImport.png" alt="" style="width: 50%;"> <img src="/static/images/batchFileImport.png" alt="" style="width: 50%;">
<text>暂无数据</text> <text>暂无数据</text>
<text style="font-size: 14px;margin-top: 10rpx;">点击下方按钮输入批量数据</text> <text style="font-size: 14px;margin-top: 10rpx;">点击下方按钮输入批量数据</text>
...@@ -137,11 +138,11 @@ ...@@ -137,11 +138,11 @@
<view class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'"> <view class="simpleDataResult" v-if="resultShowFlag && calcuteMethod == '1'">
<view class="inputItem"> <view class="inputItem">
<text class="resultTitle">IRR复利</text> <text class="resultTitle">IRR复利</text>
<text class="calcNumber">{{(irrAndSimpleResInfos[0]['irrValue']).toFixed(5) * 100}}%</text> <text class="calcNumber">{{irrAndSimpleResInfos.length>0?(irrAndSimpleResInfos[0]['irrValue'] * 100).toFixed(5):null}}%</text>
</view> </view>
<view class="inputItem"> <view class="inputItem">
<text class="resultTitle">单利</text> <text class="resultTitle">单利</text>
<text class="calcNumber">{{(irrAndSimpleResInfos[0]['simpleValue']).toFixed(5) * 100}}%</text> <text class="calcNumber">{{irrAndSimpleResInfos.length>0?(irrAndSimpleResInfos[0]['simpleValue'] * 100).toFixed(5):null}}%</text>
</view> </view>
</view> </view>
<!-- 批量计算显示结果 --> <!-- 批量计算显示结果 -->
...@@ -154,17 +155,11 @@ ...@@ -154,17 +155,11 @@
<text>IRR复利</text> <text>IRR复利</text>
<text>单利</text> <text>单利</text>
</view> </view>
<view class="resultTd"> <view class="resultTd" v-for="item in resIrrAndSimpleResInfos">
<text>10</text> <text>{{item.nyear}}</text>
<text>567,789</text> <text>{{item.cashValue}}</text>
<text class="resultNumber">37.125%</text> <text class="resultNumber">{{(item.simpleValue*100).toFixed(5)}}%</text>
<text class="resultNumber">10.123%</text> <text class="resultNumber">{{(item.irrValue * 100).toFixed(5)}}%</text>
</view>
<view class="resultTd">
<text>10</text>
<text>567,789</text>
<text class="resultNumber">37.125%</text>
<text class="resultNumber">10.123%</text>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
...@@ -174,7 +169,7 @@ ...@@ -174,7 +169,7 @@
<view class="optionContent"> <view class="optionContent">
<button type="default" plain="true" form-type="reset">清空</button> <button type="default" plain="true" form-type="reset">清空</button>
<button type="default" plain="true" <button type="default" plain="true"
class="btn" @click="calcute(1)" class="btn" @click="calcute(2)"
v-show="calcuteMethod==2">输入批量数据</button> v-show="calcuteMethod==2">输入批量数据</button>
<button type="default" plain="true" class="btn" <button type="default" plain="true" class="btn"
@click="calcute(1)" v-show="calcuteMethod==1" @click="calcute(1)" v-show="calcuteMethod==1"
...@@ -185,12 +180,17 @@ ...@@ -185,12 +180,17 @@
</scroll-view> </scroll-view>
</view> </view>
<!-- </view> -->
<!-- <view v-show="irrFlag == true">
<dataImport></dataImport>
</view> -->
</template> </template>
<script> <script>
import api from "../../api/api"; import api from "../../api/api";
import {nanoid} from 'nanoid'; import {nanoid} from 'nanoid';
import dataHandling from "../../util/dataHandling"; import dataHandling from "../../util/dataHandling";
import dataImport from "../dataImport/data-import.vue"
export default { export default {
data() { data() {
...@@ -215,16 +215,32 @@ ...@@ -215,16 +215,32 @@
}, },
yearWithdrawalInfos:[], yearWithdrawalInfos:[],
irrAndSimpleInfos:[], irrAndSimpleInfos:[],
irrAndSimpleResInfos:[] // 计算结果 irrAndSimpleResInfos:[] ,// 计算结果
resIrrAndSimpleResInfos:[],
irrFlag:Boolean = false
} }
}, },
components:{
dataImport
},
onLoad() { onLoad() {
//初始化删除上次批量计算结果
uni.removeStorageSync('resIrrAndSimpleResInfos');
if(!uni.getStorageSync('businessNo')){ if(!uni.getStorageSync('businessNo')){
uni.setStorageSync('businessNo', nanoid().replace(/\_/g,"")); uni.setStorageSync('businessNo', nanoid().replace(/\_/g,""));
}else{
this.businessNo = uni.getStorageSync('businessNo');
}
if(dataHandling.getQueryString('subscribe')==0){
this.isNeedOfficialAccountQrcode = true;
}else{
this.isNeedOfficialAccountQrcode = false;
} }
if(dataHandling.getQueryString('openId')) { if(dataHandling.getQueryString('openId')) {
uni.setStorageSync('openId',dataHandling.getQueryString('openId')) uni.setStorageSync('openId',dataHandling.getQueryString('openId'))
}else if(!uni.getStorageSync('openId')){ }else if(!uni.getStorageSync('openId')){
api.getWxUserInfo({userApplyType:'1',businessNo:uni.getStorageSync('businessNo')}).then(res=>{ api.getWxUserInfo({userApplyType:'1',businessNo:uni.getStorageSync('businessNo')}).then(res=>{
console.log(res); console.log(res);
if(res['success']){ if(res['success']){
...@@ -253,14 +269,16 @@ ...@@ -253,14 +269,16 @@
}, },
// calcuteMethod判断单次还是批量;businessType判断保存还是计算 // calcuteMethod判断单次还是批量;businessType判断保存还是计算
calcute(businessType){ calcute(businessType){
this.businessType = businessType; console.log(this.businessType)
if(this.calcuteMethod==='1'){ if(this.calcuteMethod==='1'){
// 计算 // 计算
this.irrAndSimpleCalte(); this.irrAndSimpleCalte();
}else if(this.calcuteMethod === '2'){ }else if(this.calcuteMethod === '2'){
if(!this.irrAndSimpleCalcuteParam.paymentPeriod){ //批量
if(!this.irrAndSimpleCalcuteParam.paymentPeriod || this.irrAndSimpleCalcuteParam.paymentPeriod<1){
uni.showToast({ uni.showToast({
title: '请填写交费年限', title: '请填写交费年限且交费年限必须大于0',
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}) })
...@@ -271,6 +289,7 @@ ...@@ -271,6 +289,7 @@
title: '请填写年交保费', title: '请填写年交保费',
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}) })
return; return;
} }
...@@ -279,22 +298,31 @@ ...@@ -279,22 +298,31 @@
paymentPeriod:this.irrAndSimpleCalcuteParam.paymentPeriod, paymentPeriod:this.irrAndSimpleCalcuteParam.paymentPeriod,
annualPremium:this.irrAndSimpleCalcuteParam.annualPremium, annualPremium:this.irrAndSimpleCalcuteParam.annualPremium,
allFirstPayment:this.irrAndSimpleCalcuteParam.allFirstPayment, allFirstPayment:this.irrAndSimpleCalcuteParam.allFirstPayment,
yearWithdrawalInfos:this.yearWithdrawalInfos yearWithdrawalInfos:this.yearWithdrawalInfos,
calcuteType:this.calcuteType,
businessNo:this.businessNo,
businessType:this.businessType
} }
uni.setStorageSync('calcuteData',calcuteData) uni.setStorageSync('calcuteData',calcuteData)
uni.navigateTo({ uni.navigateTo({
url: '/pages/dataImport/data-import' url: '/pages/dataImport/data-import'
}); });
// this.irrFlag = true;
} }
}, },
//点击单次时初始化数据 //点击单次时初始化数据
initCashValue(calcuteMethod){ initCashValue(calcuteMethod){
if(this.calcuteMethod != calcuteMethod){
this.calcuteMethod = calcuteMethod; this.calcuteMethod = calcuteMethod;
if(calcuteMethod === '1'){ if(calcuteMethod === '1'){
this.irrAndSimple = {nyear:null,cashValue:null}; this.irrAndSimple = {nyear:null,cashValue:null};
this.irrAndSimpleInfos = [].concat([{nyear:null,cashValue:null}]); this.irrAndSimpleInfos = [].concat([{nyear:null,cashValue:null}]);
console.log(this.irrAndSimple) console.log(this.irrAndSimple)
} }
//切换单次还是批量时,清空结果
this.resultShowFlag = false;
}
}, },
changeWithdrawalType(){ changeWithdrawalType(){
this.withdrawalType = !this.withdrawalType; this.withdrawalType = !this.withdrawalType;
...@@ -353,6 +381,24 @@ ...@@ -353,6 +381,24 @@
return; return;
} }
} }
if(this.calcuteMethod == 1){
if(!this.irrAndSimple.nyear){
uni.showToast({
title: '现金价值年度未输入!',
duration: 2000,
icon: 'none'
})
return;
}
if(!this.irrAndSimple.nyear){
uni.showToast({
title: '生存总利益未输入!',
duration: 2000,
icon: 'none'
})
return;
}
}
const params = { const params = {
...this.irrAndSimpleCalcuteParam, ...this.irrAndSimpleCalcuteParam,
calcuteType:this.calcuteType, calcuteType:this.calcuteType,
...@@ -370,16 +416,30 @@ ...@@ -370,16 +416,30 @@
api.irrAndSimpleCalcute(params).then(res=>{ api.irrAndSimpleCalcute(params).then(res=>{
console.log(res) console.log(res)
if(res.success === true){ if(res.success === true){
if(res.data.irrAndSimpleResInfos){
this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos; this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos;
console.log(this.irrAndSimpleResInfos)
this.resultShowFlag = true; this.resultShowFlag = true;
}else{ }else{
// uni.showToast({ this.irrAndSimpleResInfos = [];
}
// }) }else{
this.irrAndSimpleResInfos = [];
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
} }
}) })
} }
},
onShow() {
if(uni.getStorageSync('resIrrAndSimpleResInfos')){
this.resIrrAndSimpleResInfos = uni.getStorageSync('resIrrAndSimpleResInfos');
this.calcuteMethod = '2';
this.resultShowFlag = true;
}
} }
} }
</script> </script>
......
.policySelectContainer[data-v-c0c1827c]{position:fixed;z-index:2;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.35)}.policySelectContainer .policyYearContainer[data-v-c0c1827c]{position:absolute;bottom:0;left:0;width:100%;height:57%;background-color:#fff;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem;padding:.625rem .9375rem 0;box-sizing:border-box}.policyYearContainer .modalTitle[data-v-c0c1827c]{display:flex;justify-content:space-between;align-items:center;font-weight:700}.policyYearContainer .modalTitle uni-text[data-v-c0c1827c]:last-child{color:red}.policyYearItemContainer[data-v-c0c1827c]{display:flex;flex-wrap:wrap;justify-content:space-around}.policyYearItemContainer uni-view[data-v-c0c1827c]{width:9%;height:0;padding-bottom:9%;margin:.625rem .1875rem .625rem 0;color:#fff;border-radius:50%;position:relative;color:#333;font-weight:700}.policyYearItemContainer uni-view.actived[data-v-c0c1827c]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyYearItemContainer uni-view uni-text[data-v-c0c1827c]{position:absolute;left:50%;top:50%;transform:translate(-50%,-55%)}.policyStepContainer[data-v-c0c1827c]{display:flex;justify-content:space-around;margin-top:1.25rem}.policyStepContainer uni-button[data-v-c0c1827c]{flex:0 0 30%;font-size:1rem;color:#000;font-weight:700;border:1px solid #CEB07D}.policyStepContainer uni-button[data-v-c0c1827c]:after{border:1px solid #CEB07D}.policyStepContainer uni-button.actived[data-v-c0c1827c]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyStepContainer uni-button.actived[data-v-c0c1827c],.policyStepContainer uni-button.actived[data-v-c0c1827c]:after{border:none}.confirm uni-button[data-v-c0c1827c]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000;font-weight:700;font-size:1.125rem;margin-top:1.75rem;width:9.375rem}.confirm uni-button[data-v-c0c1827c],.confirm uni-button[data-v-c0c1827c]:after{border:none}.uni-textarea[data-v-c0c1827c]{position:relative}.pasteDiscernment[data-v-c0c1827c]{position:absolute;right:0;bottom:0;height:1.5625rem;background:#9B8055;border-radius:100px;color:#fff;font-size:.75rem}.batchDataImportContainer[data-v-c0c1827c]{background-color:#fbfbfb;height:90vh}.batchDataLists[data-v-c0c1827c]{margin-top:.625rem;background:#fff}.batchDataLists uni-view[data-v-c0c1827c]{display:flex;text-align:center;border-bottom:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-c0c1827c]:first-child{width:0;flex:0 0 35%;border-right:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-c0c1827c]:last-child{width:0;flex:0 0 65%}.batchDataLists uni-view.batchDataTh[data-v-c0c1827c]{height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);line-height:1.875rem;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.batchDataLists uni-view.batchDataTd[data-v-c0c1827c]{height:2.5rem;line-height:2.5rem}.dataOptionContainer[data-v-c0c1827c]{margin:.625rem .625rem 1.0625rem}.dataOptionContainer .uni-textarea[data-v-c0c1827c]{background-color:#fff;margin-bottom:.625rem}.tips[data-v-c0c1827c]{font-size:.75rem;color:#666;padding:0 .625rem .625rem;background-color:#fff}.tips uni-text uni-text[data-v-c0c1827c]{font-size:.875rem;color:#9b8055;font-weight:700}.selectStepContent[data-v-c0c1827c],.selectStepContainer[data-v-c0c1827c]{display:flex;align-items:center}.selectStepContainer[data-v-c0c1827c]{justify-content:space-between;padding:.625rem .625rem 0;background-color:#fff}.stepContent[data-v-c0c1827c]{display:flex;align-items:center;border-bottom:1px solid #e4e4e4;padding:0 5px}.selectStepContainer uni-button[data-v-c0c1827c]{background-color:transparent}.selectStepContainer uni-button[data-v-c0c1827c]:after{border:1px solid #CEB07D}.optionContent[data-v-c0c1827c]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-c0c1827c]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-c0c1827c]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}.batchDataTd uni-input[data-v-c0c1827c]{height:100%}
.policySelectContainer[data-v-bc9909ba]{position:fixed;z-index:2;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.35)}.policySelectContainer .policyYearContainer[data-v-bc9909ba]{position:absolute;bottom:0;left:0;width:100%;height:57%;background-color:#fff;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem;padding:.625rem .9375rem 0;box-sizing:border-box}.policyYearContainer .modalTitle[data-v-bc9909ba]{display:flex;justify-content:space-between;align-items:center;font-weight:700}.policyYearContainer .modalTitle uni-text[data-v-bc9909ba]:last-child{color:red}.policyYearItemContainer[data-v-bc9909ba]{display:flex;flex-wrap:wrap;justify-content:space-around}.policyYearItemContainer uni-view[data-v-bc9909ba]{width:9%;height:0;padding-bottom:9%;margin:.625rem .1875rem .625rem 0;color:#fff;border-radius:50%;position:relative;color:#333;font-weight:700}.policyYearItemContainer uni-view.actived[data-v-bc9909ba]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyYearItemContainer uni-view uni-text[data-v-bc9909ba]{position:absolute;left:50%;top:50%;transform:translate(-50%,-55%)}.policyStepContainer[data-v-bc9909ba]{display:flex;justify-content:space-around;margin-top:1.25rem}.policyStepContainer uni-button[data-v-bc9909ba]{flex:0 0 30%;font-size:1rem;color:#000;font-weight:700;border:1px solid #CEB07D}.policyStepContainer uni-button[data-v-bc9909ba]:after{border:1px solid #CEB07D}.policyStepContainer uni-button.actived[data-v-bc9909ba]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyStepContainer uni-button.actived[data-v-bc9909ba],.policyStepContainer uni-button.actived[data-v-bc9909ba]:after{border:none}.confirm uni-button[data-v-bc9909ba]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000;font-weight:700;font-size:1.125rem;margin-top:1.75rem;width:9.375rem}.confirm uni-button[data-v-bc9909ba],.confirm uni-button[data-v-bc9909ba]:after{border:none}.uni-textarea[data-v-bc9909ba]{position:relative}.pasteDiscernment[data-v-bc9909ba]{position:absolute;right:0;bottom:0;height:1.5625rem;background:#9B8055;border-radius:100px;color:#fff;font-size:.75rem}.batchDataImportContainer[data-v-bc9909ba]{background-color:#fbfbfb;height:90vh}.batchDataLists[data-v-bc9909ba]{margin-top:.625rem;background:#fff}.batchDataLists uni-view[data-v-bc9909ba]{display:flex;text-align:center;border-bottom:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-bc9909ba]:first-child{width:0;flex:0 0 35%;border-right:1px solid #e4e4e4}.batchDataLists uni-view uni-text[data-v-bc9909ba]:last-child{width:0;flex:0 0 65%}.batchDataLists uni-view.batchDataTh[data-v-bc9909ba]{height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);line-height:1.875rem;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.batchDataLists uni-view.batchDataTd[data-v-bc9909ba]{height:2.5rem;line-height:2.5rem}.dataOptionContainer[data-v-bc9909ba]{margin:.625rem .625rem 1.0625rem}.dataOptionContainer .uni-textarea[data-v-bc9909ba]{background-color:#fff;margin-bottom:.625rem}.tips[data-v-bc9909ba]{font-size:.75rem;color:#666;padding:0 .625rem .625rem;background-color:#fff}.tips uni-text uni-text[data-v-bc9909ba]{font-size:.875rem;color:#9b8055;font-weight:700}.selectStepContent[data-v-bc9909ba],.selectStepContainer[data-v-bc9909ba]{display:flex;align-items:center}.selectStepContainer[data-v-bc9909ba]{justify-content:space-between;padding:.625rem .625rem 0;background-color:#fff}.stepContent[data-v-bc9909ba]{display:flex;align-items:center;border-bottom:1px solid #e4e4e4;padding:0 5px}.selectStepContainer uni-button[data-v-bc9909ba]{background-color:transparent}.selectStepContainer uni-button[data-v-bc9909ba]:after{border:1px solid #CEB07D}.optionContent[data-v-bc9909ba]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-bc9909ba]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-bc9909ba]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}.batchDataTd uni-input[data-v-bc9909ba]{height:100%}
.batchCalculateContent[data-v-f1bced56]{display:flex;flex-direction:column;align-items:center}.radioButton[data-v-f1bced56]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-f1bced56]:after{content:"";position:absolute;left:0;top:0;width:.625rem;height:.625rem;transform:translate(.3125rem,.3125rem);border-radius:50%;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%)}.logo[data-v-f1bced56]{width:100%}.banner[data-v-f1bced56]{height:12.5rem}.banner img[data-v-f1bced56]{max-width:100%}.tabTitle[data-v-f1bced56]{display:flex;justify-content:space-around;font-size:16px;font-family:Source Han Sans CN-Regular,Source Han Sans CN;font-weight:400;color:#333}.tabTitle uni-text[data-v-f1bced56]{position:relative}.tabTitle uni-text.actived[data-v-f1bced56]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-f1bced56]{background:#fff;margin-top:-1rem;position:relative;z-index:2;border-top-right-radius:.9375rem;border-top-left-radius:.9375rem;padding:.9375rem;box-sizing:border-box;font-size:.9375rem;color:#333}.title[data-v-f1bced56]{display:flex;justify-content:space-between;align-items:center;color:#ceb07d;font-weight:700;font-size:1rem;position:relative;padding-left:.875rem;margin:.625rem 0;height:1.5625rem}.title[data-v-f1bced56]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-f1bced56]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-f1bced56]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-f1bced56]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-f1bced56]{flex:0 0 49%}.simpleDataResult[data-v-f1bced56]{background:#FFFFFF;box-shadow:0 0 .34375rem rgba(0,0,0,.1);border-radius:.15625rem;opacity:1;margin:.9375rem .46875rem 1.75rem;padding:.46875rem .53125rem}.simpleDataResult .resultTitle[data-v-f1bced56]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-f1bced56]{text-align:right;font-size:20px}.simpleDataResult .inputItem[data-v-f1bced56]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-f1bced56]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-f1bced56],.reduceInsuranceContent .tableTd[data-v-f1bced56]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-f1bced56]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-f1bced56],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-f1bced56]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-f1bced56],.reduceInsuranceContent .tableTh uni-text[data-v-f1bced56]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-f1bced56]{border:none;white-space:nowrap;color:#333}.reduceInsuranceContent .tableTd[data-v-f1bced56]:last-child{margin-bottom:.625rem}.resultContent[data-v-f1bced56]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-f1bced56]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-f1bced56]{flex:0 0 46%;border:.0625rem solid #e7c793;font-size:1.125rem}.btn[data-v-f1bced56]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none;color:#6b4000}.batchDataResult[data-v-f1bced56]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-f1bced56]{height:1.875rem;line-height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border-top-left-radius:.375rem;border-top-right-radius:.375rem;color:#6b4000;font-weight:700;display:flex}.batchDataResult .resultTd[data-v-f1bced56]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-f1bced56]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-f1bced56],.batchDataResult .resultTd uni-text[data-v-f1bced56]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-f1bced56]{color:#ceb07d}.cashValueContent .title uni-button[data-v-f1bced56]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-f1bced56]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-f1bced56]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-f1bced56]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.reduceInsuranceContent uni-text[data-v-f1bced56]{display:inline-block;width:1.25rem!important;height:1.25rem!important;line-height:1.25rem!important;text-align:center;border:.09375rem #CEB07D solid;color:#ceb07d;border-radius:50%;font-size:.75rem}.qrcodeContainer[data-v-f1bced56]{width:100%;height:100vh;overflow:hidden}.qrcodeContainer img[data-v-f1bced56]{max-width:100%}
.batchCalculateContent[data-v-4b2fc7e0]{display:flex;flex-direction:column;align-items:center}.radioButton[data-v-4b2fc7e0]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-4b2fc7e0]:after{content:"";position:absolute;left:0;top:0;width:.625rem;height:.625rem;transform:translate(.3125rem,.3125rem);border-radius:50%;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%)}.logo[data-v-4b2fc7e0]{width:100%}.banner[data-v-4b2fc7e0]{height:12.5rem}.banner img[data-v-4b2fc7e0]{max-width:100%}.tabTitle[data-v-4b2fc7e0]{display:flex;justify-content:space-around;font-size:16px;font-family:Source Han Sans CN-Regular,Source Han Sans CN;font-weight:400;color:#333}.tabTitle uni-text[data-v-4b2fc7e0]{position:relative}.tabTitle uni-text.actived[data-v-4b2fc7e0]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-4b2fc7e0]{background:#fff;margin-top:-1rem;position:relative;z-index:2;border-top-right-radius:.9375rem;border-top-left-radius:.9375rem;padding:.9375rem;box-sizing:border-box;font-size:.9375rem;color:#333}.title[data-v-4b2fc7e0]{display:flex;justify-content:space-between;align-items:center;color:#ceb07d;font-weight:700;font-size:1rem;position:relative;padding-left:.875rem;margin:.625rem 0;height:1.5625rem}.title[data-v-4b2fc7e0]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-4b2fc7e0]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-4b2fc7e0]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-4b2fc7e0]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-4b2fc7e0]{flex:0 0 49%}.simpleDataResult[data-v-4b2fc7e0]{background:#FFFFFF;box-shadow:0 0 .34375rem rgba(0,0,0,.1);border-radius:.15625rem;opacity:1;margin:.9375rem .46875rem 1.75rem;padding:.46875rem .53125rem}.simpleDataResult .resultTitle[data-v-4b2fc7e0]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-4b2fc7e0]{text-align:right;font-size:20px}.simpleDataResult .inputItem[data-v-4b2fc7e0]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-4b2fc7e0]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-4b2fc7e0],.reduceInsuranceContent .tableTd[data-v-4b2fc7e0]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-4b2fc7e0]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-4b2fc7e0],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-4b2fc7e0]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-4b2fc7e0],.reduceInsuranceContent .tableTh uni-text[data-v-4b2fc7e0]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-4b2fc7e0]{border:none;white-space:nowrap;color:#333}.reduceInsuranceContent .tableTd[data-v-4b2fc7e0]:last-child{margin-bottom:.625rem}.resultContent[data-v-4b2fc7e0]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-4b2fc7e0]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-4b2fc7e0]{flex:0 0 46%;border:.0625rem solid #e7c793;font-size:1.125rem}.btn[data-v-4b2fc7e0]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none;color:#6b4000}.batchDataResult[data-v-4b2fc7e0]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-4b2fc7e0]{height:1.875rem;line-height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border-top-left-radius:.375rem;border-top-right-radius:.375rem;color:#6b4000;font-weight:700;display:flex}.batchDataResult .resultTd[data-v-4b2fc7e0]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-4b2fc7e0]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-4b2fc7e0],.batchDataResult .resultTd uni-text[data-v-4b2fc7e0]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-4b2fc7e0]{color:#ceb07d}.cashValueContent .title uni-button[data-v-4b2fc7e0]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-4b2fc7e0]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-4b2fc7e0]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-4b2fc7e0]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.reduceInsuranceContent uni-text[data-v-4b2fc7e0]{display:inline-block;width:1.25rem!important;height:1.25rem!important;line-height:1.25rem!important;text-align:center;border:.09375rem #CEB07D solid;color:#ceb07d;border-radius:50%;font-size:.75rem}.qrcodeContainer[data-v-4b2fc7e0]{width:100%;height:100vh;overflow:hidden}.qrcodeContainer img[data-v-4b2fc7e0]{max-width:100%}
var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,c=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l;import{g as n,C as o,s as r,D as u,a as d,o as p,c as f,w as h,d as y,h as m,t as g,i as Y,e as _,j as C,F as P,f as v,k as S,p as b,m as A,E as L,u as I,G as R,S as D,H as x,I as k}from"./index.5e14dbb8.js";import{_ as V,a as O}from"./plugin-vue_export-helper.4a7acdcb.js";var w=V({data:()=>({index:0,stepLists:[1,5,10,15,20],pasteData:"",irrAndSimpleInfos:[{nyear:1,cashValue:""}],customPolicyYearRange:0,customPolicyYearRangeCount:40,maxPolicyYear:105,policyYearLists:[{nyear:1,isActived:!0,cashValue:""}],policyYearModalFlag:!1,calcuteData:null}),onLoad(){this.bindPickerChange({detail:{value:this.index}}),this.calcuteData=n("calcuteData")},methods:{bindPickerChange(e){this.index=e.detail.value;const a=1===this.stepLists[this.index]?2:1;this.policyYearLists=[{nyear:1,isActived:!0,cashValue:""}];for(let t=a;t<=this.maxPolicyYear;t++){let e=this.stepLists[this.index]*t;if(!(e<=this.maxPolicyYear))break;this.policyYearLists=this.policyYearLists.concat([{nyear:e,cashValue:""}])}this.irrAndSimpleInfos=this.policyYearLists.concat([])},selectCustomPolicyYear(){this.policyYearModalFlag=!0,this.irrAndSimpleInfos=this.policyYearLists=[],console.log(this.irrAndSimpleInfos)},selectPolicyYearRange(e){this.customPolicyYearRange=e},selectCustomPolicyYears(e){this.policyYearLists.filter((a=>a.nyear==e)).pop()?this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived=!this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived:this.policyYearLists.push({nyear:e,isActived:!0,cashValue:""})},getActiveStatus(e){let a=!1;return this.policyYearLists.filter((a=>a.nyear==e)).pop()&&(a=this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived),a},confirmPolicyYears(){this.policyYearModalFlag=!1,this.policyYearLists.length>0&&this.policyYearLists.sort(((e,a)=>e.nyear-a.nyear)),this.irrAndSimpleInfos=JSON.parse(JSON.stringify(this.policyYearLists))},pasteDataDistinguish(){const e=this.pasteData.trim().split("\n");console.log(e),e.length<=0||e.every((e=>""==e))?o({title:"数据识别结果",content:"检测到您并没有导入数据,请重新操作",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}):e.length!==this.irrAndSimpleInfos.length&&o({title:"数据识别结果",content:"检测到您导入的数据条数和选择的保单年度数量不一致,系统将从上到下依次填入,请确认是否继续",success:a=>{if(a.confirm){if(console.log("用户点击确定"),this.irrAndSimpleInfos.length>0){const a=Math.min(e.length,this.irrAndSimpleInfos.length);console.log(a);for(let t=0;t<a;t++)this.irrAndSimpleInfos[t].cashValue=e[t]}}else a.cancel&&console.log("用户点击取消")}})},clearData(){this.pasteData="",this.irrAndSimpleInfos.forEach((e=>e.cashValue=""))},calcute(){this.policyYearLists=this.irrAndSimpleInfos;const e=(n=((e,a)=>{for(var t in a||(a={}))s.call(a,t)&&c(e,t,a[t]);if(l)for(var t of l(a))i.call(a,t)&&c(e,t,a[t]);return e})({},this.calcuteData),o={calcuteMethod:2,decimal:5,irrAndSimpleInfos:this.policyYearLists},a(n,t(o)));var n,o;O.irrAndSimpleCalcute(e).then((e=>{!0===e.success?(this.irrAndSimpleResInfos=e.data.irrAndSimpleResInfos,r("resIrrAndSimpleResInfos",this.irrAndSimpleResInfos),u({delta:1})):d({title:e.message,duration:2e3,icon:"none"})}))}}},[["render",function(e,a,t,l,s,i){const c=b,n=A,o=L,r=I,u=R,d=k,V=D,O=x;return p(),f(n,{class:"batchDataImportContainer"},{default:h((()=>[y(n,{class:"selectStepContainer"},{default:h((()=>[y(n,{class:"selectStepContent"},{default:h((()=>[y(c,null,{default:h((()=>[m("我想测算每隔")])),_:1}),y(n,{class:"stepContent"},{default:h((()=>[y(o,{onChange:i.bindPickerChange,value:s.index,range:s.stepLists},{default:h((()=>[y(n,{class:"uni-input"},{default:h((()=>[m(g(s.stepLists[s.index]),1)])),_:1})])),_:1},8,["onChange","value","range"]),(p(),Y("svg",{t:"1661847421137",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1364",width:"16",height:"16"},[_("path",{d:"M917.4 302.8c-14.2-14.2-37.2-14.2-51.4 0L518.6 650.3c-2.9 2.8-7.5 2.8-10.3 0L160.8 302.8c-14.2-14.2-37.2-14.2-51.4 0-14.2 14.2-14.2 37.2 0 51.4l347.4 347.4c15.6 15.6 36 23.4 56.5 23.4s41-7.8 56.5-23.4l347.4-347.4c14.3-14.2 14.3-37.2 0.2-51.4z","p-id":"1365",fill:"#666666"})]))])),_:1}),y(c,null,{default:h((()=>[m("年的单利复利")])),_:1})])),_:1}),y(n,null,{default:h((()=>[y(r,{class:"mini-btn",type:"default",size:"mini",onClick:i.selectCustomPolicyYear},{default:h((()=>[m("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),y(n,{class:"tips"},{default:h((()=>[y(c,null,{default:h((()=>[m("(如需指定任意保单年度,可通过点击右上角"),y(c,null,{default:h((()=>[m("“自定义”")])),_:1}),m("按钮完成)")])),_:1})])),_:1}),y(n,{class:"dataOptionContainer"},{default:h((()=>[y(n,{class:"uni-textarea"},{default:h((()=>[y(u,{modelValue:s.pasteData,"onUpdate:modelValue":a[0]||(a[0]=e=>s.pasteData=e),"placeholder-style":"color:#999999;font-size:14px;padding-left:9px;padding-top:3px",placeholder:"请根据左侧保单年度进行现金价值数据粘贴"},null,8,["modelValue"]),y(r,{class:"mini-btn pasteDiscernment",type:"default",size:"mini",onClick:i.pasteDataDistinguish},{default:h((()=>[m("粘贴并识别")])),_:1},8,["onClick"])])),_:1}),y(n,{class:"batchDataLists"},{default:h((()=>[y(n,{class:"batchDataTh"},{default:h((()=>[y(c,null,{default:h((()=>[m("保单年度")])),_:1}),y(c,null,{default:h((()=>[m("现金价值")])),_:1})])),_:1}),y(V,{"scroll-y":"true",style:{height:"560rpx"}},{default:h((()=>[(p(!0),Y(P,null,C(s.irrAndSimpleInfos,(e=>(p(),f(n,{class:"batchDataTd"},{default:h((()=>[y(c,null,{default:h((()=>[m(g(e.nyear),1)])),_:2},1024),y(d,{class:"uni-input",style:{height:"100%"},type:"digit",modelValue:e.cashValue,"onUpdate:modelValue":a=>e.cashValue=a,placeholder:"请输入纯数字"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)))),256))])),_:1})])),_:1})])),_:1}),y(n,{class:"optionContent"},{default:h((()=>[y(r,{type:"default",plain:"true","form-type":"reset",onClick:i.clearData},{default:h((()=>[m("全部清空")])),_:1},8,["onClick"]),y(r,{type:"default",plain:"true",onClick:a[1]||(a[1]=e=>i.calcute())},{default:h((()=>[m(g("2"==e.calcuteMethod?"输入批量数据":"开始计算"),1)])),_:1})])),_:1}),s.policyYearModalFlag?(p(),f(n,{key:0,class:"policySelectContainer"},{default:h((()=>[y(n,{class:"policyYearContainer"},{default:h((()=>[y(n,{class:"modalTitle"},{default:h((()=>[y(c),y(c,null,{default:h((()=>[m("选择保单年度"),y(c,null,{default:h((()=>[m("(可多选)")])),_:1})])),_:1}),y(O,{type:"clear",size:"26",onClick:a[2]||(a[2]=e=>s.policyYearModalFlag=!1)})])),_:1}),y(n,{class:"policyStepContainer"},{default:h((()=>[y(r,{type:"default",plain:"true",class:v({actived:0===s.customPolicyYearRange}),onClick:a[3]||(a[3]=e=>i.selectPolicyYearRange(0))},{default:h((()=>[m("1~40")])),_:1},8,["class"]),y(r,{type:"default",plain:"true",class:v({actived:1===s.customPolicyYearRange}),onClick:a[4]||(a[4]=e=>i.selectPolicyYearRange(1))},{default:h((()=>[m("41~80")])),_:1},8,["class"]),y(r,{type:"default",plain:"true",class:v({actived:2===s.customPolicyYearRange}),onClick:a[5]||(a[5]=e=>i.selectPolicyYearRange(2))},{default:h((()=>[m("81~105")])),_:1},8,["class"])])),_:1}),y(n,{class:"policyYearItemContainer"},{default:h((()=>[(p(!0),Y(P,null,C(s.customPolicyYearRangeCount,(e=>(p(),f(n,{onClick:a=>i.selectCustomPolicyYears(e+s.customPolicyYearRange*s.customPolicyYearRangeCount),class:v({actived:i.getActiveStatus(e+s.customPolicyYearRange*s.customPolicyYearRangeCount)})},{default:h((()=>[y(c,null,{default:h((()=>[m(g(e+s.customPolicyYearRange*s.customPolicyYearRangeCount>this.maxPolicyYear?"":e+s.customPolicyYearRange*s.customPolicyYearRangeCount),1)])),_:2},1024)])),_:2},1032,["onClick","class"])))),256))])),_:1}),y(n,{class:"confirm"},{default:h((()=>[y(r,{type:"default",plain:"true",onClick:a[6]||(a[6]=e=>i.confirmPolicyYears())},{default:h((()=>[m("确定")])),_:1})])),_:1})])),_:1})])),_:1})):S("",!0)])),_:1})}],["__scopeId","data-v-bc9909ba"]]);export{w as default};
import{B as e,o as a,e as t,w as l,f as s,l as i,t as c,d as o,i as n,p as r,F as u,k as d,j as p,x as f,u as y,C as h,y as m,D as g,S as Y,E as _,I as C}from"./index.6a7cd8f6.js";import{_ as P}from"./plugin-vue_export-helper.21dcd24c.js";var v=P({data:()=>({index:0,stepLists:[1,5,10,15,20],pasteData:"",irrAndSimpleInfos:[{nyear:1,cashValue:""}],customPolicyYearRange:0,customPolicyYearRangeCount:40,maxPolicyYear:105,policyYearLists:[{nyear:1,isActived:!0,cashValue:""}],policyYearModalFlag:!1}),onLoad(){this.bindPickerChange({detail:{value:this.index}})},methods:{bindPickerChange(e){this.index=e.detail.value;const a=1===this.stepLists[this.index]?2:1;this.policyYearLists=[{nyear:1,isActived:!0,cashValue:""}];for(let t=a;t<=this.maxPolicyYear;t++){let e=this.stepLists[this.index]*t;if(!(e<=this.maxPolicyYear))break;this.policyYearLists=this.policyYearLists.concat([{nyear:e,cashValue:""}])}this.irrAndSimpleInfos=this.policyYearLists.concat([])},selectCustomPolicyYear(){this.policyYearModalFlag=!0,this.irrAndSimpleInfos=this.policyYearLists=[],console.log(this.irrAndSimpleInfos)},selectPolicyYearRange(e){this.customPolicyYearRange=e},selectCustomPolicyYears(e){this.policyYearLists.filter((a=>a.nyear==e)).pop()?this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived=!this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived:this.policyYearLists.push({nyear:e,isActived:!0,cashValue:""})},getActiveStatus(e){let a=!1;return this.policyYearLists.filter((a=>a.nyear==e)).pop()&&(a=this.policyYearLists.filter((a=>a.nyear==e)).pop().isActived),a},confirmPolicyYears(){this.policyYearModalFlag=!1,this.policyYearLists.length>0&&this.policyYearLists.sort(((e,a)=>e.nyear-a.nyear)),this.irrAndSimpleInfos=JSON.parse(JSON.stringify(this.policyYearLists))},pasteDataDistinguish(){const a=this.pasteData.trim().split("\n");console.log(a),a.length<=0||a.every((e=>""==e))?e({title:"数据识别结果",content:"检测到您并没有导入数据,请重新操作",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}):a.length!==this.irrAndSimpleInfos.length&&e({title:"数据识别结果",content:"检测到您导入的数据条数和选择的保单年度数量不一致,系统将从上到下依次填入,请确认是否继续",success:e=>{if(e.confirm){if(console.log("用户点击确定"),this.irrAndSimpleInfos.length>0){const e=Math.min(a.length,this.irrAndSimpleInfos.length);console.log(e);for(let t=0;t<e;t++)this.irrAndSimpleInfos[t].cashValue=a[t]}}else e.cancel&&console.log("用户点击取消")}})},clearData(){this.pasteData="",this.irrAndSimpleInfos.forEach((e=>e.cashValue=""))}}},[["render",function(e,P,v,L,x,k){const S=f,A=y,R=h,D=m,V=g,I=C,b=Y,M=_;return a(),t(A,{class:"batchDataImportContainer"},{default:l((()=>[s(A,{class:"selectStepContainer"},{default:l((()=>[s(A,{class:"selectStepContent"},{default:l((()=>[s(S,null,{default:l((()=>[i("我想测算每隔")])),_:1}),s(A,{class:"stepContent"},{default:l((()=>[s(R,{onChange:k.bindPickerChange,value:x.index,range:x.stepLists},{default:l((()=>[s(A,{class:"uni-input"},{default:l((()=>[i(c(x.stepLists[x.index]),1)])),_:1})])),_:1},8,["onChange","value","range"]),(a(),o("svg",{t:"1661847421137",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1364",width:"16",height:"16"},[n("path",{d:"M917.4 302.8c-14.2-14.2-37.2-14.2-51.4 0L518.6 650.3c-2.9 2.8-7.5 2.8-10.3 0L160.8 302.8c-14.2-14.2-37.2-14.2-51.4 0-14.2 14.2-14.2 37.2 0 51.4l347.4 347.4c15.6 15.6 36 23.4 56.5 23.4s41-7.8 56.5-23.4l347.4-347.4c14.3-14.2 14.3-37.2 0.2-51.4z","p-id":"1365",fill:"#666666"})]))])),_:1}),s(S,null,{default:l((()=>[i("年的单利复利")])),_:1})])),_:1}),s(A,null,{default:l((()=>[s(D,{class:"mini-btn",type:"default",size:"mini",onClick:k.selectCustomPolicyYear},{default:l((()=>[i("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),s(A,{class:"tips"},{default:l((()=>[s(S,null,{default:l((()=>[i("(如需指定任意保单年度,可通过点击右上角"),s(S,null,{default:l((()=>[i("“自定义”")])),_:1}),i("按钮完成)")])),_:1})])),_:1}),s(A,{class:"dataOptionContainer"},{default:l((()=>[s(A,{class:"uni-textarea"},{default:l((()=>[s(V,{modelValue:x.pasteData,"onUpdate:modelValue":P[0]||(P[0]=e=>x.pasteData=e),"placeholder-style":"color:#999999;font-size:14px;padding-left:9px;padding-top:3px",placeholder:"请根据左侧保单年度进行现金价值数据粘贴"},null,8,["modelValue"]),s(D,{class:"mini-btn pasteDiscernment",type:"default",size:"mini",onClick:k.pasteDataDistinguish},{default:l((()=>[i("粘贴并识别")])),_:1},8,["onClick"])])),_:1}),s(A,{class:"batchDataLists"},{default:l((()=>[s(A,{class:"batchDataTh"},{default:l((()=>[s(S,null,{default:l((()=>[i("保单年度")])),_:1}),s(S,null,{default:l((()=>[i("现金价值")])),_:1})])),_:1}),s(b,{"scroll-y":"true",style:{height:"560rpx"}},{default:l((()=>[(a(!0),o(u,null,r(x.irrAndSimpleInfos,(e=>(a(),t(A,{class:"batchDataTd"},{default:l((()=>[s(S,null,{default:l((()=>[i(c(e.nyear),1)])),_:2},1024),s(I,{class:"uni-input",style:{height:"100%"},type:"digit",modelValue:e.cashValue,"onUpdate:modelValue":a=>e.cashValue=a,placeholder:"请输入纯数字"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)))),256))])),_:1})])),_:1})])),_:1}),s(A,{class:"optionContent"},{default:l((()=>[s(D,{type:"default",plain:"true","form-type":"reset",onClick:k.clearData},{default:l((()=>[i("全部清空")])),_:1},8,["onClick"]),s(D,{type:"default",plain:"true",onClick:P[1]||(P[1]=a=>e.calcute())},{default:l((()=>[i(c("2"==e.calcuteMethod?"输入批量数据":"开始计算"),1)])),_:1})])),_:1}),x.policyYearModalFlag?(a(),t(A,{key:0,class:"policySelectContainer"},{default:l((()=>[s(A,{class:"policyYearContainer"},{default:l((()=>[s(A,{class:"modalTitle"},{default:l((()=>[s(S),s(S,null,{default:l((()=>[i("选择保单年度"),s(S,null,{default:l((()=>[i("(可多选)")])),_:1})])),_:1}),s(M,{type:"clear",size:"26",onClick:P[2]||(P[2]=e=>x.policyYearModalFlag=!1)})])),_:1}),s(A,{class:"policyStepContainer"},{default:l((()=>[s(D,{type:"default",plain:"true",class:d({actived:0===x.customPolicyYearRange}),onClick:P[3]||(P[3]=e=>k.selectPolicyYearRange(0))},{default:l((()=>[i("1~40")])),_:1},8,["class"]),s(D,{type:"default",plain:"true",class:d({actived:1===x.customPolicyYearRange}),onClick:P[4]||(P[4]=e=>k.selectPolicyYearRange(1))},{default:l((()=>[i("41~80")])),_:1},8,["class"]),s(D,{type:"default",plain:"true",class:d({actived:2===x.customPolicyYearRange}),onClick:P[5]||(P[5]=e=>k.selectPolicyYearRange(2))},{default:l((()=>[i("81~105")])),_:1},8,["class"])])),_:1}),s(A,{class:"policyYearItemContainer"},{default:l((()=>[(a(!0),o(u,null,r(x.customPolicyYearRangeCount,(e=>(a(),t(A,{onClick:a=>k.selectCustomPolicyYears(e+x.customPolicyYearRange*x.customPolicyYearRangeCount),class:d({actived:k.getActiveStatus(e+x.customPolicyYearRange*x.customPolicyYearRangeCount)})},{default:l((()=>[s(S,null,{default:l((()=>[i(c(e+x.customPolicyYearRange*x.customPolicyYearRangeCount>this.maxPolicyYear?"":e+x.customPolicyYearRange*x.customPolicyYearRangeCount),1)])),_:2},1024)])),_:2},1032,["onClick","class"])))),256))])),_:1}),s(A,{class:"confirm"},{default:l((()=>[s(D,{type:"default",plain:"true",onClick:P[6]||(P[6]=e=>k.confirmPolicyYears())},{default:l((()=>[i("确定")])),_:1})])),_:1})])),_:1})])),_:1})):p("",!0)])),_:1})}],["__scopeId","data-v-c0c1827c"]]);export{v as default};
var o=(o,r)=>{const t=o.__vccOpts||o;for(const[c,s]of r)t[c]=s;return t};export{o as _};
var e=Object.defineProperty,t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,r=(t,i,a)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a,o=(e,o)=>{for(var s in o||(o={}))i.call(o,s)&&r(e,s,o[s]);if(t)for(var s of t(o))a.call(o,s)&&r(e,s,o[s]);return e};import{y as s,z as n,g as p,A as u,s as l,B as c}from"./index.5e14dbb8.js";const d=["/api/authorize/obtainToken"];var h=(e,t,i)=>(s("request",{invoke(e){if(n({title:"加载中..."}),!p("uni-token")&&!d.includes(e.url))return new Promise(((e,t)=>(u({url:"/api/authorize/obtainToken",method:"POST",data:{ticket:"uni-app"},success:e=>{200===e.statusCode&&(l("uni-token",e.data.data.token),window.location.href=window.location.href+"?t_reload="+(new Date).getTime())},fail(e){t(e)}}),c(),!1)));e.header={"content-type":"POST"===e.method?"application/json":"application/x-www-form-urlencoded","X-Authorization":p("uni-token")}},success(e){c(),console.log(e)},fail(e){console.log("interceptor-fail",e),console.log("请求失败"),c()},complete(e){c()}}),new Promise(((a,r)=>{u({url:e,method:t,data:o({},i),success(e){a(e.data)},fail(e){r(e)},complete(){c()}})})));let f={dev:{base_url:"https://mdev.zuihuibi.cn",api_url:"https://mdev.zuihuibi.cn/api",sfp_url:"https://mdev.zuihuibi.cn/api/sfp"},stage:{base_url:"https://mstage.zuihuibi.cn",api_url:"https://mstage.zuihuibi.cn/api",sfp_url:"https://mstage.zuihuibi.cn/api/sfp"},prod:{base_url:"https://m.zuihuibi.cn",api_url:"https://m.zuihuibi.cn/api",sfp_url:"https://m.zuihuibi.cn/api/sfp"}}.dev.base_url;var m={irrAndSimpleCalcute:e=>h(`${f}/api/sfp/calcuteUtil/irrAndSimpleCalcute`,"POST",e),getWxUserInfo:e=>h(`${f}/api/getWxUserInfo`,"POST",e),queryIrrAndSimple:e=>h(`${f}/api/sfp/calcuteUtil/queryIrrAndSimple`,"POST",e)},b=(e,t)=>{const i=e.__vccOpts||e;for(const[a,r]of t)i[a]=r;return i};export{b as _,m as a};
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<link rel="stylesheet" href="/sfp/assets/uni.10dc7031.css"> <link rel="stylesheet" href="/sfp/assets/uni.fae7f8c0.css">
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<script> <script>
...@@ -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.6a7cd8f6.js"></script> <script type="module" crossorigin src="/sfp/assets/index.5e14dbb8.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.13d2da89.css"> <link rel="stylesheet" href="/sfp/assets/index.13d2da89.css">
</head> </head>
<body> <body>
......
.policySelectContainer[data-v-742e7780]{position:fixed;z-index:2;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.35)}.policySelectContainer .policyYearContainer[data-v-742e7780]{position:absolute;bottom:0;left:0;width:100%;height:57%;background-color:#fff;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem;padding:.625rem .9375rem 0;box-sizing:border-box}.policyYearContainer .modalTitle[data-v-742e7780]{display:flex;justify-content:space-between;align-items:center;font-weight:700}.policyYearContainer .modalTitle uni-text[data-v-742e7780]:last-child{color:red}.policyYearItemContainer[data-v-742e7780]{display:flex;flex-wrap:wrap;justify-content:space-around}.policyYearItemContainer uni-view[data-v-742e7780]{width:9%;height:0;padding-bottom:9%;margin:.625rem .1875rem .625rem 0;color:#fff;border-radius:50%;position:relative;color:#333;font-weight:700}.policyYearItemContainer uni-view.actived[data-v-742e7780]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyYearItemContainer uni-view uni-text[data-v-742e7780]{position:absolute;left:50%;top:50%;transform:translate(-50%,-55%)}.policyStepContainer[data-v-742e7780]{display:flex;justify-content:space-around;margin-top:1.25rem}.policyStepContainer uni-button[data-v-742e7780]{flex:0 0 30%;font-size:1rem;color:#000;font-weight:700;border:1px solid #CEB07D}.policyStepContainer uni-button[data-v-742e7780]:after{border:1px solid #CEB07D}.policyStepContainer uni-button.actived[data-v-742e7780]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.policyStepContainer uni-button.actived[data-v-742e7780],.policyStepContainer uni-button.actived[data-v-742e7780]:after{border:none}.confirm uni-button[data-v-742e7780]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000;font-weight:700;font-size:1.125rem;margin-top:1.75rem;width:9.375rem}.confirm uni-button[data-v-742e7780],.confirm uni-button[data-v-742e7780]:after{border:none}.uni-textarea[data-v-742e7780]{position:relative}.pasteDiscernment[data-v-742e7780]{position:absolute;right:0;bottom:0;height:1.5625rem;background:#9B8055;border-radius:100px;color:#fff;font-size:.75rem}.batchDataImportContainer[data-v-742e7780]{background-color:#fbfbfb;height:90vh}.batchDataLists[data-v-742e7780]{margin-top:.625rem;background:#fff}.batchDataLists>uni-view[data-v-742e7780]{display:flex;text-align:center;border-bottom:1px solid #e4e4e4}.batchDataLists>uni-view[data-v-742e7780]:last-child{border:none}.batchDataLists>uni-view uni-text[data-v-742e7780]:first-child{width:0;flex:0 0 35%;border-right:1px solid #e4e4e4}.batchDataLists>uni-view uni-text[data-v-742e7780]:last-child{width:0;flex:0 0 65%}.batchDataLists>uni-view.batchDataTh[data-v-742e7780]{height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);line-height:1.875rem;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.batchDataLists>uni-view.batchDataTd[data-v-742e7780]{height:2.5rem;line-height:2.5rem}.dataOptionContainer[data-v-742e7780]{margin:.625rem .625rem 1.0625rem}.dataOptionContainer .uni-textarea[data-v-742e7780]{background-color:#fff;margin-bottom:.625rem}.tips[data-v-742e7780]{font-size:.75rem;color:#666;padding:0 .625rem .625rem;background-color:#fff}.tips uni-text uni-text[data-v-742e7780]{font-size:.875rem;color:#9b8055;font-weight:700}.selectStepContent[data-v-742e7780],.selectStepContainer[data-v-742e7780]{display:flex;align-items:center}.selectStepContainer[data-v-742e7780]{justify-content:space-between;padding:.625rem .625rem 0;background-color:#fff}.stepContent[data-v-742e7780]{display:flex;align-items:center;border-bottom:1px solid #e4e4e4;padding:0 5px}.selectStepContainer uni-button[data-v-742e7780]{background-color:transparent}.selectStepContainer uni-button[data-v-742e7780]:after{border:1px solid #CEB07D}.optionContent[data-v-742e7780]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-742e7780]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-742e7780]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}
*{margin:0;-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%;height:100%}body{overflow-x:hidden;font-size:16px}uni-app,uni-page,uni-page-wrapper,uni-page-body{display:block;box-sizing:border-box;width:100%}uni-page-wrapper{position:relative}#app,uni-app,uni-page,uni-page-wrapper{height:100%}.uni-mask{position:fixed;z-index:999;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.5)}.uni-fade-enter-active,.uni-fade-leave-active{transition-duration:.25s;transition-property:opacity;transition-timing-function:ease}.uni-fade-enter-from,.uni-fade-leave-active{opacity:0}.uni-loading,uni-button[loading]:before{background-color:transparent;background-image:url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=);background-repeat:no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}body:after{position:fixed;content:"";left:-1000px;top:-1000px;animation:shadow-preload .1s;animation-delay:3s}@keyframes shadow-preload{0%{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}to{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}}.uni-async-error{position:absolute;left:0;right:0;top:0;bottom:0;color:#999;padding:100px 10px;text-align:center}.uni-async-loading{box-sizing:border-box;width:100%;padding:50px;text-align:center}.uni-async-loading .uni-loading{width:30px;height:30px}uni-page-head{display:block;box-sizing:border-box}.uni-page-head{position:fixed;left:var(--window-left);right:var(--window-right);height:44px;height:calc(44px + constant(safe-area-inset-top));height:calc(44px + env(safe-area-inset-top));padding:7px 3px;padding-top:calc(7px + constant(safe-area-inset-top));padding-top:calc(7px + env(safe-area-inset-top));display:flex;overflow:hidden;justify-content:space-between;box-sizing:border-box;z-index:998;color:#fff;background-color:#000;transition-property:all}.uni-page-head *{box-sizing:border-box}.uni-page-head .uni-btn-icon{overflow:hidden;min-width:1em;font-style:normal}.uni-page-head-titlePenetrate,.uni-page-head-titlePenetrate .uni-page-head-bd,.uni-page-head-titlePenetrate .uni-page-head-bd *{pointer-events:none}.uni-page-head-titlePenetrate *{pointer-events:auto}.uni-page-head.uni-page-head-transparent .uni-page-head-ft>div{justify-content:center}.uni-page-head~.uni-placeholder{width:100%;height:44px;height:calc(44px + constant(safe-area-inset-top));height:calc(44px + env(safe-area-inset-top))}.uni-placeholder-titlePenetrate{pointer-events:none}.uni-page-head-hd{display:flex;align-items:center;font-size:16px}.uni-page-head-bd{position:absolute;left:70px;right:70px;min-width:0;-webkit-user-select:auto;user-select:auto}.uni-page-head-btn{position:relative;width:auto;margin:0 2px;word-break:keep-all;white-space:pre;cursor:pointer}.uni-page-head-btn svg{margin-top:-2px}.uni-page-head-transparent .uni-page-head-btn{display:flex;align-items:center;width:32px;height:32px;border-radius:50%;background-color:rgba(0,0,0,.5)}.uni-page-head-btn-red-dot:after{content:attr(badge-text);position:absolute;right:0;top:0;background-color:red;color:#fff;width:18px;height:18px;line-height:18px;border-radius:18px;overflow:hidden;transform:scale(.5) translate(40%,-40%);transform-origin:100% 0}.uni-page-head-btn-red-dot[badge-text]:after{font-size:12px;width:auto;min-width:18px;max-width:42px;text-align:center;padding:0 3px;transform:scale(.7) translate(40%,-40%)}.uni-page-head-btn-select>.uni-btn-icon:after{display:inline-block;font-family:unibtn;content:"\e601";margin-left:2px;transform:rotate(-90deg) scale(.8)}.uni-page-head-search{position:relative;display:flex;flex:1;margin:0 2px;line-height:30px;font-size:15px}.uni-page-head-search-input{width:100%;height:100%;padding-left:34px;text-align:left}.uni-page-head-search-placeholder{position:absolute;max-width:100%;height:100%;padding-left:34px;overflow:hidden;word-break:keep-all;white-space:pre}.uni-page-head-search-placeholder-right{right:0}.uni-page-head-search-placeholder-center{left:50%;transform:translate(-50%)}.uni-page-head-search-icon{position:absolute;top:0;left:2px;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.uni-page-head-ft{display:flex;align-items:center;flex-direction:row-reverse;font-size:13px}.uni-page-head__title{font-weight:700;font-size:16px;line-height:30px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-page-head__title .uni-loading{width:16px;height:16px;margin-top:-3px}.uni-page-head__title .uni-page-head__title_image{width:auto;height:26px;vertical-align:middle}.uni-page-head-shadow{overflow:visible}.uni-page-head-shadow:after{content:"";position:absolute;left:0;right:0;top:100%;height:5px;background-size:100% 100%}.uni-page-head-shadow-grey:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}.uni-page-head-shadow-blue:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-blue.png)}.uni-page-head-shadow-green:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-green.png)}.uni-page-head-shadow-orange:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-orange.png)}.uni-page-head-shadow-red:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-red.png)}.uni-page-head-shadow-yellow:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-yellow.png)}uni-page-head[uni-page-head-type=default]~uni-page-wrapper{height:calc(100% - 44px);height:calc(100% - 44px - constant(safe-area-inset-top));height:calc(100% - 44px - env(safe-area-inset-top))}
.batchCalculateContent[data-v-61175813]{display:flex;flex-direction:column;align-items:center}.claimInfomationContent[data-v-61175813]{margin-bottom:1.25rem}.radioButton[data-v-61175813]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-61175813]:after{content:"";position:absolute;left:0;top:0;width:.625rem;height:.625rem;transform:translate(.3125rem,.3125rem);border-radius:50%;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%)}.logo[data-v-61175813]{width:100%}.banner[data-v-61175813]{height:12.5rem}.banner img[data-v-61175813]{max-width:100%}.tabTitle[data-v-61175813]{display:flex;justify-content:space-around;font-size:16px;font-family:Source Han Sans CN-Regular,Source Han Sans CN;font-weight:400;color:#333}.tabTitle uni-text[data-v-61175813]{position:relative}.tabTitle uni-text.actived[data-v-61175813]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-61175813]{background:#fff;margin-top:-1rem;position:relative;z-index:2;border-top-right-radius:.9375rem;border-top-left-radius:.9375rem;padding:.9375rem;box-sizing:border-box;font-size:.9375rem;color:#333}.title[data-v-61175813]{display:flex;justify-content:space-between;align-items:center;color:#ceb07d;font-weight:700;font-size:1rem;position:relative;padding-left:.875rem;margin:.625rem 0;height:1.5625rem}.title[data-v-61175813]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-61175813]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-61175813]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-61175813]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-61175813]{flex:0 0 49%}.simpleDataResult[data-v-61175813]{background:#FFFFFF;box-shadow:0 0 .34375rem rgba(0,0,0,.1);border-radius:.15625rem;opacity:1;margin:.9375rem .46875rem 1.75rem;padding:.46875rem .53125rem}.simpleDataResult .resultTitle[data-v-61175813]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-61175813]{text-align:right}.simpleDataResult .inputItem[data-v-61175813]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-61175813]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-61175813],.reduceInsuranceContent .tableTd[data-v-61175813]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-61175813]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-61175813],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-61175813]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-61175813],.reduceInsuranceContent .tableTh uni-text[data-v-61175813]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-61175813]{border:none;white-space:nowrap}.resultContent[data-v-61175813]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-61175813]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-61175813]{flex:0 0 46%;border:.0625rem solid #e7c793;color:#6b4000;font-size:1.125rem}.optionContent uni-button[data-v-61175813]:last-child{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none}.batchDataResult[data-v-61175813]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-61175813]{height:1.875rem;line-height:1.875rem;background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border-top-left-radius:.375rem;border-top-right-radius:.375rem;color:#6b4000;font-weight:700;display:flex}.batchDataResult .resultTd[data-v-61175813]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-61175813]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-61175813],.batchDataResult .resultTd uni-text[data-v-61175813]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-61175813]{color:#ceb07d}.cashValueContent .title uni-button[data-v-61175813]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-61175813]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-61175813]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-61175813]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}
This source diff could not be displayed because it is too large. You can view the blob instead.
import{o as e,d as a,w as l,e as t,i as s,t as n,u,f as d,v as i,F as c,l as f,k as p,x as o,p as r,y as _,z as m}from"./index.de1e69c3.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var y=h({data:()=>({index:0,stepLists:[1,5,10,15,20],pasteData:"",irrAndSimpleInfos:[{nyear:1,cashValue:""}]}),methods:{bindPickerChange(e){this.index=e.detail.value},selectCustomPolicyYear(){}}},[["render",function(h,y,C,x,g,v){const b=f,D=p,w=o,k=r,z=_,L=m;return e(),a(D,{class:"batchDataImportContainer"},{default:l((()=>[t(D,{class:"selectStepContainer"},{default:l((()=>[t(D,{class:"selectStepContent"},{default:l((()=>[t(b,null,{default:l((()=>[s("我想测算每隔")])),_:1}),t(D,{class:"stepContent"},{default:l((()=>[t(w,{onChange:v.bindPickerChange,value:g.index,range:g.stepLists},{default:l((()=>[t(D,{class:"uni-input"},{default:l((()=>[s(n(g.stepLists[g.index]),1)])),_:1})])),_:1},8,["onChange","value","range"]),(e(),u("svg",{t:"1661847421137",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1364",width:"16",height:"16"},[d("path",{d:"M917.4 302.8c-14.2-14.2-37.2-14.2-51.4 0L518.6 650.3c-2.9 2.8-7.5 2.8-10.3 0L160.8 302.8c-14.2-14.2-37.2-14.2-51.4 0-14.2 14.2-14.2 37.2 0 51.4l347.4 347.4c15.6 15.6 36 23.4 56.5 23.4s41-7.8 56.5-23.4l347.4-347.4c14.3-14.2 14.3-37.2 0.2-51.4z","p-id":"1365",fill:"#666666"})]))])),_:1}),t(b,null,{default:l((()=>[s("年的单利复利")])),_:1})])),_:1}),t(D,null,{default:l((()=>[t(k,{class:"mini-btn",type:"default",size:"mini",onClick:v.selectCustomPolicyYear},{default:l((()=>[s("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),t(D,{class:"tips"},{default:l((()=>[t(b,null,{default:l((()=>[s("(如需指定任意保单年度,可通过点击右上角"),t(b,null,{default:l((()=>[s("“自定义”")])),_:1}),s("按钮完成)")])),_:1})])),_:1}),t(D,{class:"dataOptionContainer"},{default:l((()=>[t(D,{class:"uni-textarea"},{default:l((()=>[t(z,{modelValue:g.pasteData,"onUpdate:modelValue":y[0]||(y[0]=e=>g.pasteData=e),"placeholder-style":"color:#999999;font-size:14px;padding-left:9px;padding-top:3px",placeholder:"请根据左侧保单年度进行现金价值数据粘贴"},null,8,["modelValue"]),t(k,{class:"mini-btn pasteDiscernment",type:"default",size:"mini"},{default:l((()=>[s("粘贴并识别")])),_:1})])),_:1}),t(D,{class:"batchDataLists"},{default:l((()=>[t(D,{class:"batchDataTh"},{default:l((()=>[t(b,null,{default:l((()=>[s("保单年度")])),_:1}),t(b,null,{default:l((()=>[s("现金价值")])),_:1})])),_:1}),(e(!0),u(c,null,i(g.irrAndSimpleInfos,(u=>(e(),a(D,{class:"batchDataTd"},{default:l((()=>[t(b,null,{default:l((()=>[s(n(u.nyear),1)])),_:2},1024),t(b,null,{default:l((()=>[s(n(u.cashValue),1)])),_:2},1024)])),_:2},1024)))),256))])),_:1})])),_:1}),t(D,{class:"optionContent"},{default:l((()=>[t(k,{type:"default",plain:"true","form-type":"reset"},{default:l((()=>[s("全部清空")])),_:1}),t(k,{type:"default",plain:"true",onClick:y[1]||(y[1]=e=>h.calcute())},{default:l((()=>[s(n("2"==h.calcuteMethod?"输入批量数据":"开始计算"),1)])),_:1})])),_:1}),t(D,{class:"policySelectContainer"},{default:l((()=>[t(D,{class:"policyYearContainer"},{default:l((()=>[t(D,{class:"modalTitle"},{default:l((()=>[t(b),t(b,null,{default:l((()=>[s("选择保单年度"),t(b,null,{default:l((()=>[s("(可多选)")])),_:1})])),_:1}),t(L,{type:"clear",size:"26"})])),_:1}),t(D,{class:"policyStepContainer"},{default:l((()=>[t(k,{type:"default",plain:"true",class:"actived"},{default:l((()=>[s("1~40")])),_:1}),t(k,{type:"default",plain:"true"},{default:l((()=>[s("41~80")])),_:1}),t(k,{type:"default",plain:"true"},{default:l((()=>[s("81~105")])),_:1})])),_:1}),t(D,{class:"policyYearItemContainer"},{default:l((()=>[(e(),u(c,null,i(40,(e=>t(D,null,{default:l((()=>[t(b,null,{default:l((()=>[s(n(e),1)])),_:2},1024)])),_:2},1024))),64))])),_:1}),t(D,{class:"confirm"},{default:l((()=>[t(k,{type:"default",plain:"true"},{default:l((()=>[s("确定")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-742e7780"]]);export{y as default};
var o=(o,r)=>{const t=o.__vccOpts||o;for(const[c,s]of r)t[c]=s;return t};export{o as _};
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/sfp/assets/uni.9043ccf6.css">
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>sfp</title>
<!--preload-links-->
<!--app-context-->
<script type="module" crossorigin src="/sfp/assets/index.de1e69c3.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.829215c1.css">
</head>
<body>
<div id="app"><!--app-html--></div>
</body>
</html>
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