Commit b8929c0f by Sweet Zhang

nanoid去除下划线

parent ae070e14
...@@ -16,5 +16,8 @@ ...@@ -16,5 +16,8 @@
<body> <body>
<div id="app"><!--app-html--></div> <div id="app"><!--app-html--></div>
<script type="module" src="/main.js"></script> <script type="module" src="/main.js"></script>
<!-- 移动端调试 -->
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
</body> </body>
</html> </html>
...@@ -220,12 +220,7 @@ ...@@ -220,12 +220,7 @@
}, },
onLoad() { onLoad() {
if(!uni.getStorageSync('businessNo')){ if(!uni.getStorageSync('businessNo')){
uni.setStorageSync('businessNo', nanoid()); uni.setStorageSync('businessNo', nanoid().replace(/\_/g,""));
}
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'))
...@@ -237,6 +232,11 @@ ...@@ -237,6 +232,11 @@
} }
}) })
} }
if(dataHandling.getQueryString('subscribe')==0 || !uni.getStorageSync('openId')){
this.isNeedOfficialAccountQrcode = true;
}else{
this.isNeedOfficialAccountQrcode = false;
}
if(this.yearWithdrawal.length>0){ if(this.yearWithdrawal.length>0){
this.yearWithdrawalInfos.push({...this.yearWithdrawal,withdrawalType:this.withdrawalType?'1':'2'}) this.yearWithdrawalInfos.push({...this.yearWithdrawal,withdrawalType:this.withdrawalType?'1':'2'})
} }
...@@ -373,6 +373,10 @@ ...@@ -373,6 +373,10 @@
this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos; this.irrAndSimpleResInfos = res.data.irrAndSimpleResInfos;
console.log(this.irrAndSimpleResInfos) console.log(this.irrAndSimpleResInfos)
this.resultShowFlag = true; this.resultShowFlag = true;
}else{
// uni.showToast({
// })
} }
}) })
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{"version":3,"file":"pages-dataImport-data-import.7cca9f8f.js","sources":["../../../../../pages/dataImport/data-import.vue"],"sourcesContent":null,"names":["data","index","stepLists","pasteData","irrAndSimpleInfos","nyear","cashValue","customPolicyYearRange","customPolicyYearRangeCount","maxPolicyYear","policyYearLists","isActived","policyYearModalFlag","onLoad","bindPickerChange","detail","value","this","methods","e","m","n","calcNumber","concat","selectCustomPolicyYear","log","selectPolicyYearRange","selectCustomPolicyYears","filter","item","pop","push","getActiveStatus","status","confirmPolicyYears","length","sort","a","b","JSON","parse","stringify","pasteDataDistinguish","pasteDataLists","trim","split","every","title","content","success","res","confirm","cancel","minLength","Math","min","i","clearData","forEach","_createBlock","_component_v_uni_view","class","_createVNode","_component_v_uni_text","_component_v_uni_picker","onChange","$options","$data","range","_createElementBlock","t","viewBox","version","xmlns","width","height","_createElementVNode","d","fill","_component_v_uni_button","type","size","onClick","_component_v_uni_textarea","placeholder","_component_v_uni_scroll_view","style","_Fragment","_component_v_uni_input","plain","_ctx","_component_v_uni_icon"],"mappings":"wPA4EGA,UACM,CACNC,MAAM,EACNC,UAAU,CAAC,EAAE,EAAE,GAAG,GAAG,IACrBC,UAAU,GACVC,kBAAkB,CAAC,CAACC,MAAM,EAAEC,UAAU,KACtCC,sBAAsB,EACtBC,2BAA2B,GAC3BC,cAAc,IACdC,gBAAgB,CAAC,CAACL,MAAM,EAAEM,WAAU,EAAKL,UAAU,KACnDM,qBAAoB,IAGpBC,cACMC,iBAAiB,CAACC,OAAO,CAACC,MAAMC,KAAKhB,UAE3CiB,QAAQ,CAEPJ,iBAAiBK,QACblB,MAAQkB,EAAEJ,OAAOC,YACdI,EAAiC,IAA7BH,KAAKf,UAAUe,KAAKhB,OAAa,EAAI,OAC1CS,gBAAkB,CAAC,CAACL,MAAM,EAAEM,WAAU,EAAKL,UAAU,aACnDe,EAAED,EAAEC,GAAGJ,KAAKR,cAAcY,IAAI,KACjCC,EAAaL,KAAKf,UAAUe,KAAKhB,OAASo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b8B,EAEOC,GAF2CsB,WAAOhB,0BAAwBrC,EAAOsC,wBAAwBA,8BAA+BN,iBAAkBK,kBAAgBrC,EAAOsC,wBAAwBA,6CAC/M,KAAAL,EAAgKC,mBAA1J,SAAElC,EAAOsC,wBAAwBA,kCAAkC1D,iBAAqBoB,EAAOsC,wBAAwBA,mGAG/HL,EAEOF,GAFDC,MAAM,uBACX,KAAAC,EAA6EiB,GAArEC,KAAK,UAAUS,MAAM,OAAQP,uBAAOhB,qCAAsB,OAAA"}
\ No newline at end of file
{"version":3,"file":"pages-index-index.7ffac07f.js","sources":["../../../../../util/interceptor.ts","../../../../../util/request.ts","../../../../../environments/environment.ts","../../../../../api/api.ts","../../../../../util/dataHandling.ts","../../../../../pages/index/index.vue","../../../../../node_modules/nanoid/index.browser.js","../../../../../static/images/qrcodeBg.png","../../../../../static/images/policyIrrBanner.png","../../../../../static/images/batchFileImport.png"],"sourcesContent":null,"names":["whiteApiList","url","method","params","invoke","args","title","uni.getStorageSync","includes","Promise","resolve","reject","data","ticket","success","res","statusCode","location","href","window","Date","getTime","fail","err","header","log","complete","__spreadValues","baseURL","dev","base_url","api_url","sfp_url","stage","prod","irrAndSimpleCalcute","request","getWxUserInfo","getQueryString","name","reg","RegExp","r","decodeURIComponent","search","substr","match","isNeedOfficialAccountQrcode","calcuteType","withdrawalType","resultShowFlag","calcuteMethod","businessType","mobile","irrAndSimpleCalcuteParam","yearWithdrawal","withdrawalStart","withdrawalEnd","yearWithdrawalAmount","irrAndSimple","nyear","cashValue","yearWithdrawalInfos","irrAndSimpleInfos","irrAndSimpleResInfos","onLoad","size","crypto","getRandomValues","Uint8Array","reduce","id","byte","toString","toUpperCase","nanoid","replace","dataHandling","userApplyType","businessNo","then","paymentForm","action","this","length","push","__spreadProps","methods","switchTab","e","concat","calcute","irrAndSimpleCalte","paymentPeriod","duration","icon","annualPremium","calcuteData","allFirstPayment","initCashValue","changeWithdrawalType","add","idx","splice","loginNo","wechat_openid","decimal","$data","_createBlock","_component_v_uni_view","class","_createVNode","_createElementVNode","src","alt","srcset","_component_v_uni_scroll_view","_component_v_uni_text","onClick","$options","_component_v_uni_form","onSubmit","_ctx","onReset","_component_v_uni_button","style","_component_v_uni_input","type","placeholder","_component_v_uni_label","for","_createElementBlock","_Fragment","item","min","toFixed","plain"],"mappings":"2sBAGA,MAAMA,EAAe,CAAC,8BCAtB,MAAe,CAACC,EAAKC,EAAQC,ODKR,UAAW,CAG5BC,OAAOC,QAGW,CACdC,MAAO,YAGJC,EAAmB,eAAiBP,EAAaQ,SAASH,EAAKJ,YAC/D,IAAIQ,SAAQ,CAACC,EAASC,OAChB,CACXV,IAAK,6BACLC,OAAO,OACPU,KAAK,CAACC,OAAQ,WACdC,QAAUC,IACW,MAAjBA,EAAIC,eACa,YAAYD,EAAIH,wBAC5BK,SAASC,KAAOC,OAAOF,SAASC,KAAO,cAAoB,IAAIE,MAAOC,YAG7EC,KAAKC,KACCA,WAIF,OAMDC,OAAS,CACZ,eAAgC,SAAhBnB,EAAKH,OAAoB,mBAAqB,oCAC9D,kBAAmBK,EAAmB,eAM1CO,QAAQT,eAEEoB,IAAIpB,IAEdiB,KAAKC,WACKE,IAAI,mBAAoBF,WACxBE,IAAI,aAGdC,SAASX,UCrDL,IAAIN,SAAQ,CAACC,EAASC,OAChB,CACXV,IAAAA,EACAC,OAAAA,EACAU,KAAMe,KACFxB,GAEJW,QAAQC,KACCA,EAAIH,OAEbU,KAAKC,KACGA,IAERG,sBCKH,IAAIE,EANW,CACdC,IAjBW,CACXC,SAAS,2BACTC,QAAQ,+BACRC,QAAQ,oCAeRC,MAba,CACbH,SAAS,6BACTC,QAAQ,iCACRC,QAAQ,sCAWRE,KATY,CACZJ,SAAS,wBACTC,QAAQ,4BACRC,QAAQ,sCASiBF,SCpB1B,MAAe,CAEdK,oBAAoBhC,GACZiC,EAAQ,GAAGR,4CAAmD,OAAQzB,GAG9EkC,cAAclC,GACNiC,EAAQ,GAAGR,sBAA6B,OAAQzB,ICV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AHDC,MAAM,yBACX,KAAAC,EAAmCM,GAA7BP,MAAM,2BAAc,OAAA,eAC1BC,EAA8FM,GAAxFP,MAAM,0BAAa,aAAGH,sCAAwC4B,YAAkB,4CAIpD5B,uBAAkBA,qBAAtDC,EAuBOC,SAvBDC,MAAM,+BACX,KAAAC,EAqBcK,GArBD,WAAS,OAAON,MAAM,wBAClC,KAAAC,EAmBOF,GAnBDC,MAAM,gCACX,KAAAC,EAKOF,GALDC,MAAM,wBACX,KAAAC,EAAiBM,mBAAX,OAAA,iBACNN,EAAiBM,mBAAX,OAAA,iBACNN,EAAkBM,mBAAZ,OAAA,kBACNN,EAAeM,mBAAT,OAAA,wBAEPN,EAKOF,GALDC,MAAM,wBACX,KAAAC,EAAeM,mBAAT,OAAA,eACNN,EAAoBM,mBAAd,OAAA,oBACNN,EAAyCM,GAAnCP,MAAM,4BAAe,OAAA,oBAC3BC,EAAyCM,GAAnCP,MAAM,4BAAe,OAAA,6BAE5BC,EAKOF,GALDC,MAAM,wBACX,KAAAC,EAAeM,mBAAT,OAAA,eACNN,EAAoBM,mBAAd,OAAA,oBACNN,EAAyCM,GAAnCP,MAAM,4BAAe,OAAA,oBAC3BC,EAAyCM,GAAnCP,MAAM,4BAAe,OAAA,2EAOhCC,EAQOF,GARDC,MAAM,6BACX,KAAAC,EAAiEa,GAAzDG,KAAK,UAAUS,MAAM,OAAO,YAAU,qBAAQ,OAAA,iBACtDzB,EAEyCa,GAFjCG,KAAK,UAAUS,MAAM,OAC7B1B,MAAM,MAAOQ,yBAAOC,2BACM,OAAA,8BAAlBZ,qBACRI,EAEca,GAFNG,KAAK,UAAUS,MAAM,OAAO1B,MAAM,MACzCQ,yBAAOC,2BACP,OAAA,4BAD2BZ"}
\ No newline at end of file
{"version":3,"file":"plugin-vue_export-helper.21dcd24c.js","sources":["../../../../../../../../../../Download/software/HBuilderX/plugins/uniapp-cli-vite/plugin-vue:export-helper"],"sourcesContent":null,"names":["sfc","props","target","__vccOpts","key","val"],"mappings":"AACA,MAAe,CAACA,EAAKC,WACbC,EAASF,EAAIG,WAAaH,YACpBI,EAAKC,KAAQJ,IAChBG,GAAOC,SAETH"}
\ No newline at end of file
.batchCalculateContent[data-v-636a9170]{display:flex;flex-direction:column;align-items:center}.claimInfomationContent[data-v-636a9170]{margin-bottom:1.25rem}.radioButton[data-v-636a9170]{position:relative;width:1.25rem;height:1.25rem;border-radius:50%;border:1px solid #CEB07D}.radioButton.selected[data-v-636a9170]: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-636a9170]{width:100%}.banner[data-v-636a9170]{height:12.5rem}.banner img[data-v-636a9170]{max-width:100%}.tabTitle[data-v-636a9170]{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-636a9170]{position:relative}.tabTitle uni-text.actived[data-v-636a9170]:after{position:absolute;bottom:-.125rem;left:0;content:"";width:100%;height:.125rem;background:linear-gradient(125deg,#CEB07D,#FED597)}.formInfoContainer[data-v-636a9170]{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-636a9170]{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-636a9170]:before{content:"";position:absolute;left:0;top:.46875rem;width:.1875rem;height:.625rem;background-color:#ceb07d;border-radius:.25rem}.inputItem[data-v-636a9170]{display:flex;justify-content:space-between;align-items:center;height:2.75rem;border-bottom:1px solid #E4E4E4}.inputItem .inputContent[data-v-636a9170]{display:flex;align-items:center;justify-content:flex-end;flex:0 0 51%}.inputContent .uni-input[data-v-636a9170]{margin-right:.625rem;text-align:right}.inputItem uni-text[data-v-636a9170]{flex:0 0 49%}.simpleDataResult[data-v-636a9170]{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-636a9170]{font-size:1rem;font-weight:700;color:#ceb07d}.simpleDataResult .calcNumber[data-v-636a9170]{text-align:right;font-size:20px}.simpleDataResult .inputItem[data-v-636a9170]:last-child{border:none}.simpleDataResult .inputItem .title[data-v-636a9170]{color:#ceb07d;font-weight:700}.reduceInsuranceContent .tableTh[data-v-636a9170],.reduceInsuranceContent .tableTd[data-v-636a9170]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.reduceInsuranceContent .tableTh uni-text[data-v-636a9170]{flex:1}.reduceInsuranceContent .tableTh uni-text.withdrawNumber[data-v-636a9170],.reduceInsuranceContent .tableTd uni-text.withdrawNumber[data-v-636a9170]{flex:2}.reduceInsuranceContent .tableTd .uni-input[data-v-636a9170],.reduceInsuranceContent .tableTh uni-text[data-v-636a9170]{text-align:center;border-bottom:1px solid #E4E4E4;padding:.1875rem .75rem;margin-right:.625rem}.reduceInsuranceContent .tableTh uni-text[data-v-636a9170]{border:none;white-space:nowrap;color:#333}.reduceInsuranceContent .tableTd[data-v-636a9170]:last-child{margin-bottom:.625rem}.resultContent[data-v-636a9170]{margin-bottom:1.875rem;padding-bottom:1.875rem}.optionContent[data-v-636a9170]{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff}.optionContent uni-button[data-v-636a9170]{flex:0 0 46%;border:.0625rem solid #e7c793;font-size:1.125rem}.btn[data-v-636a9170]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);border:none;color:#6b4000}.batchDataResult[data-v-636a9170]{box-shadow:0 0 11px rgba(0,0,0,.1);margin-top:1rem}.batchDataResult .resultTh[data-v-636a9170]{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-636a9170]{display:flex;height:1.875rem;align-items:center;border-bottom:1px solid #E4E4E4}.batchDataResult .resultTd[data-v-636a9170]:last-child{border-bottom:none}.batchDataResult .resultTh uni-text[data-v-636a9170],.batchDataResult .resultTd uni-text[data-v-636a9170]{flex:1;text-align:center;font-weight:700;color:#333}.batchDataResult .resultTd uni-text.resultNumber[data-v-636a9170]{color:#ceb07d}.cashValueContent[data-v-636a9170]{margin-top:2.5rem}.cashValueContent .title uni-button[data-v-636a9170]{background-color:transparent;font-size:.9375rem;color:#333;box-sizing:border-box;line-height:initial}.cashValueContent .title uni-button[data-v-636a9170]:after{border:1px solid #CEB07D;border-radius:.375rem}.cashValueContent .title uni-button[data-v-636a9170]:first-child{margin-right:1.25rem}.cashValueContent .title uni-button.actived[data-v-636a9170]{background:linear-gradient(135deg,#CEB07D 0%,#FFDDA9 56%,#FED495 100%,#FED495 100%);color:#6b4000}.reduceInsuranceContent uni-text[data-v-636a9170]{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}
.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%}
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};
import{A as e,o as a,d as t,w as l,e as s,j as i,t as c,l as o,f as n,m as r,F as u,i as d,p,u as f,q as h,B as y,x as m,C as g,S as Y,D as _,I as C}from"./index.bad063df.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,A){const S=f,k=h,R=y,D=m,V=g,I=C,b=Y,M=_;return a(),t(k,{class:"batchDataImportContainer"},{default:l((()=>[s(k,{class:"selectStepContainer"},{default:l((()=>[s(k,{class:"selectStepContent"},{default:l((()=>[s(S,null,{default:l((()=>[i("我想测算每隔")])),_:1}),s(k,{class:"stepContent"},{default:l((()=>[s(R,{onChange:A.bindPickerChange,value:x.index,range:x.stepLists},{default:l((()=>[s(k,{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(k,null,{default:l((()=>[s(D,{class:"mini-btn",type:"default",size:"mini",onClick:A.selectCustomPolicyYear},{default:l((()=>[i("自定义")])),_:1},8,["onClick"])])),_:1})])),_:1}),s(k,{class:"tips"},{default:l((()=>[s(S,null,{default:l((()=>[i("(如需指定任意保单年度,可通过点击右上角"),s(S,null,{default:l((()=>[i("“自定义”")])),_:1}),i("按钮完成)")])),_:1})])),_:1}),s(k,{class:"dataOptionContainer"},{default:l((()=>[s(k,{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:A.pasteDataDistinguish},{default:l((()=>[i("粘贴并识别")])),_:1},8,["onClick"])])),_:1}),s(k,{class:"batchDataLists"},{default:l((()=>[s(k,{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(k,{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(k,{class:"optionContent"},{default:l((()=>[s(D,{type:"default",plain:"true","form-type":"reset",onClick:A.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(k,{key:0,class:"policySelectContainer"},{default:l((()=>[s(k,{class:"policyYearContainer"},{default:l((()=>[s(k,{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(k,{class:"policyStepContainer"},{default:l((()=>[s(D,{type:"default",plain:"true",class:d({actived:0===x.customPolicyYearRange}),onClick:P[3]||(P[3]=e=>A.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=>A.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=>A.selectPolicyYearRange(2))},{default:l((()=>[i("81~105")])),_:1},8,["class"])])),_:1}),s(k,{class:"policyYearItemContainer"},{default:l((()=>[(a(!0),o(u,null,r(x.customPolicyYearRangeCount,(e=>(a(),t(k,{onClick:a=>A.selectCustomPolicyYears(e+x.customPolicyYearRange*x.customPolicyYearRangeCount),class:d({actived:A.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(k,{class:"confirm"},{default:l((()=>[s(D,{type:"default",plain:"true",onClick:P[6]||(P[6]=e=>A.confirmPolicyYears())},{default:l((()=>[i("确定")])),_:1})])),_:1})])),_:1})])),_:1})):p("",!0)])),_:1})}],["__scopeId","data-v-c0c1827c"]]);export{v as default};
var e=Object.defineProperty,l=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,u=(l,a,t)=>a in l?e(l,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[a]=t,n=(e,l)=>{for(var a in l||(l={}))s.call(l,a)&&u(e,a,l[a]);if(t)for(var a of t(l))i.call(l,a)&&u(e,a,l[a]);return e};import{a as r,s as d,g as o,r as c,b as p,h as f,n as m,c as h,o as _,d as y,w,e as b,f as S,i as g,j as C,k as I,v as T,l as A,m as v,F as V,p as P,t as k,q as z,u as W,x as R,I as U,y as x,S as N,z as M}from"./index.bad063df.js";import{_ as O}from"./plugin-vue_export-helper.21dcd24c.js";const j=["/api/authorize/obtainToken"];var F=(e,l,a)=>(r("request",{invoke(e){if(d({title:"加载中..."}),!o("uni-token")&&!j.includes(e.url))return new Promise(((e,l)=>(c({url:"/api/authorize/obtainToken",method:"POST",data:{ticket:"uni-app"},success:e=>{200===e.statusCode&&(p("uni-token",e.data.data.token),window.location.href=window.location.href+"?t_reload="+(new Date).getTime())},fail(e){l(e)}}),f(),!1)));e.header={"content-type":"POST"===e.method?"application/json":"application/x-www-form-urlencoded","X-Authorization":o("uni-token")}},success(e){f(),console.log(e)},fail(e){console.log("interceptor-fail",e),console.log("请求失败"),f()},complete(e){f()}}),new Promise(((t,s)=>{c({url:e,method:l,data:n({},a),success(e){t(e.data)},fail(e){s(e)},complete(){f()}})})));let E={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 D={irrAndSimpleCalcute:e=>F(`${E}/api/sfp/calcuteUtil/irrAndSimpleCalcute`,"POST",e),getWxUserInfo:e=>F(`${E}/api/getWxUserInfo`,"POST",e)};var Q={getQueryString(e){const l=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),a=decodeURIComponent(window.location.search).substr(1).match(l);return null!=a?a[2]:null}};var $=O({data:()=>({calcuteType:"1",withdrawalType:"1",resultShowFlag:!1,calcuteMethod:"1",businessType:1,mobile:void 0,irrAndSimpleCalcuteParam:{},yearWithdrawal:{withdrawalType:void 0,withdrawalStart:void 0,withdrawalEnd:void 0,yearWithdrawalAmount:void 0},irrAndSimple:{nyear:void 0,cashValue:void 0},yearWithdrawalInfos:[],irrAndSimpleInfos:[],irrAndSimpleResInfos:[]}),onLoad(){o("businessNo")||p("businessNo",((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,l)=>e+((l&=63)<36?l.toString(36):l<62?(l-26).toString(36).toUpperCase():l>62?"-":"_")),""))()),this.yearWithdrawalInfos.push(this.yearWithdrawal),console.log(Q.getQueryString("openId")),Q.getQueryString("openId")?p("openId"):o("openId")||D.getWxUserInfo({userApplyType:"1",businessNo:o("businessNo")}).then((e=>{console.log(e),e.success&&(window.location.href=e.data.paymentForm.action)}))},methods:{switchTab(e){this.calcuteType=e},calcute(e){this.businessType=e,console.log(this.businessType),"1"===this.calcuteMethod?this.irrAndSimpleCalte():"2"===this.calcuteMethod&&m({url:"/pages/dataImport/data-import"})},initCashValue(e){this.calcuteMethod=e,1==e&&(this.irrAndSimpleInfos=[].push({nyear:void 0,cashValue:void 0}))},changeWithdrawalType(){this.withdrawalType=!this.withdrawalType},add(){this.yearWithdrawalInfos.push({withdrawalType:void 0,withdrawalStart:void 0,withdrawalEnd:void 0,yearWithdrawalAmount:void 0})},reduce(e){this.yearWithdrawalInfos.length>1&&this.yearWithdrawalInfos.splice(e,1)},irrAndSimpleCalte(){if(!this.irrAndSimpleCalcuteParam.paymentPeriod)return void h({title:"请填写交费年限",duration:2e3,icon:"none"});if(!this.irrAndSimpleCalcuteParam.annualPremium)return void h({title:"请填写年交保费",duration:2e3,icon:"none"});if(2==this.businessType&&!this.mobile)return void h({title:"保存时手机号必填",duration:2e3,icon:"none"});console.log(this.irrAndSimple),console.log([].push(this.irrAndSimple));const e=(t=n({},this.irrAndSimpleCalcuteParam),s={calcuteType:this.calcuteType,businessType:this.businessType,calcuteMethod:this.calcuteMethod,businessNo:o("businessNo"),mobile:null,loginNo:null,wechat_openid:o("openId")||"",yearWithdrawalInfos:null,irrAndSimpleInfos:this.irrAndSimpleInfos.concat([this.irrAndSimple]),withdrawalType:this.withdrawalType?"1":"2",decimal:5},l(t,a(s)));var t,s;D.irrAndSimpleCalcute(e).then((e=>{console.log(e),!0===e.success&&(this.irrAndSimpleResInfos=e.data.irrAndSimpleResInfos,console.log(this.irrAndSimpleResInfos),this.resultShowFlag=!0)}))}}},[["render",function(e,l,a,t,s,i){const u=z,n=W,r=R,d=U,o=x,c=N,p=M;return _(),y(u,{class:"content"},{default:w((()=>[b(u,{class:"banner"},{default:w((()=>[S("img",{src:"/sfp/assets/policyIrrBanner.05908eaf.png",alt:"",srcset:""})])),_:1}),b(c,{"scroll-y":"true",class:"formInfoContainer"},{default:w((()=>[b(u,{class:"tabTitle"},{default:w((()=>[b(n,{onClick:l[0]||(l[0]=e=>i.switchTab("1")),class:g({actived:"1"===s.calcuteType})},{default:w((()=>[C("增额")])),_:1},8,["class"]),b(n,{onClick:l[1]||(l[1]=e=>i.switchTab("2")),class:g({actived:"2"===s.calcuteType})},{default:w((()=>[C("年金")])),_:1},8,["class"])])),_:1}),b(p,{onSubmit:e.formSubmit,onReset:e.formReset},{default:w((()=>[b(u,{class:"policyInfoContent"},{default:w((()=>[b(u,{class:"title"},{default:w((()=>[b(u,null,{default:w((()=>[C("保单信息")])),_:1}),b(r,{class:"btn",style:{"font-size":"12px",margin:"0",padding:"0 30px"},onClick:l[2]||(l[2]=e=>i.calcute(2))},{default:w((()=>[C("保存")])),_:1})])),_:1}),b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("交费年限:")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:s.irrAndSimpleCalcuteParam.paymentPeriod,"onUpdate:modelValue":l[3]||(l[3]=e=>s.irrAndSimpleCalcuteParam.paymentPeriod=e)},null,8,["modelValue"]),b(o,{for:""},{default:w((()=>[C("年")])),_:1})])),_:1})])),_:1}),b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("年交保费:")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"digit",placeholder:"请输入",modelValue:s.irrAndSimpleCalcuteParam.annualPremium,"onUpdate:modelValue":l[4]||(l[4]=e=>s.irrAndSimpleCalcuteParam.annualPremium=e)},null,8,["modelValue"]),b(o,{for:""},{default:w((()=>[C("元")])),_:1})])),_:1})])),_:1}),I(b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("万能账户首年交费"),b(n,{style:{"font-size":"24rpx"}},{default:w((()=>[C("(如有)")])),_:1}),C(":")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:s.irrAndSimpleCalcuteParam.allFirstPayment,"onUpdate:modelValue":l[5]||(l[5]=e=>s.irrAndSimpleCalcuteParam.allFirstPayment=e)},null,8,["modelValue"]),b(o,{for:""},{default:w((()=>[C("元")])),_:1})])),_:1})])),_:1},512),[[T,"2"===s.calcuteType]])])),_:1}),"2"===s.calcuteType&&s.irrAndSimpleCalcuteParam.allFirstPayment?P("",!0):(_(),y(u,{key:0,class:"claimInfomationContent"},{default:w((()=>[b(u,{class:"title"},{default:w((()=>[b(n,null,{default:w((()=>[C("提领信息")])),_:1}),I(b(u,{style:{display:"flex"},onClick:i.changeWithdrawalType},{default:w((()=>[b(u,{class:g(["radioButton",{selected:!s.withdrawalType}])},null,8,["class"]),b(n,{style:{"margin-left":"10rpx"}},{default:w((()=>[C("减保取现")])),_:1})])),_:1},8,["onClick"]),[[T,"1"===s.calcuteType]])])),_:1}),I(b(u,{class:"annuityContent"},{default:w((()=>[b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("从第几个保单年度开始提取:")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入"}),b(o,{for:""},{default:w((()=>[C("年")])),_:1})])),_:1})])),_:1}),b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("每年提取金额:")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入"}),b(o,{for:""},{default:w((()=>[C("元")])),_:1})])),_:1})])),_:1})])),_:1},512),[[T,"2"===s.calcuteType]]),I(b(u,{class:"reduceInsuranceContent"},{default:w((()=>[b(u,{class:"tableTh"},{default:w((()=>[b(n,null,{default:w((()=>[C("起领年度(年初)")])),_:1}),b(n,null,{default:w((()=>[C("止领年度(年末)")])),_:1}),b(n,{class:"withdrawNumber"},{default:w((()=>[C("年提取金额(元)")])),_:1}),b(n)])),_:1}),(_(!0),A(V,null,v(s.yearWithdrawalInfos,((e,l)=>(_(),y(u,{class:"tableTd"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalStart,"onUpdate:modelValue":l=>e.withdrawalStart=l},null,8,["modelValue","onUpdate:modelValue"]),b(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalEnd,"onUpdate:modelValue":l=>e.withdrawalEnd=l},null,8,["modelValue","onUpdate:modelValue"]),b(d,{class:"uni-input withdrawNumber",type:"number",placeholder:"请输入",modelValue:e.yearWithdrawalAmount,"onUpdate:modelValue":l=>e.yearWithdrawalAmount=l},null,8,["modelValue","onUpdate:modelValue"]),I(b(u,null,{default:w((()=>[b(n,{onClick:e=>i.reduce(l)},{default:w((()=>[C("-")])),_:2},1032,["onClick"])])),_:2},1536),[[T,s.yearWithdrawalInfos.length>1]])])),_:2},1024)))),256)),b(n,{onClick:l[6]||(l[6]=e=>i.add()),style:{position:"absolute",right:"0"}},{default:w((()=>[C("+")])),_:1})])),_:1},512),[[T,!s.withdrawalType&&"1"===s.calcuteType]])])),_:1})),b(u,{class:"cashValueContent"},{default:w((()=>[b(u,{class:"title"},{default:w((()=>[b(n,null,{default:w((()=>[C("现金价值")])),_:1}),b(u,{class:"calcTypeOption"},{default:w((()=>[b(r,{class:g(["mini-btn",{actived:"1"==s.calcuteMethod}]),type:"default",size:"mini",onClick:l[7]||(l[7]=e=>i.initCashValue("1"))},{default:w((()=>[C("单次")])),_:1},8,["class"]),b(r,{class:g(["mini-btn",{actived:"2"==s.calcuteMethod}]),type:"default",size:"mini",onClick:l[8]||(l[8]=e=>i.initCashValue("2"))},{default:w((()=>[C("批量")])),_:1},8,["class"])])),_:1})])),_:1}),I(b(u,{class:"simpleCalculateContent"},{default:w((()=>[b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("第:")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入",min:"1",modelValue:s.irrAndSimple.nyear,"onUpdate:modelValue":l[9]||(l[9]=e=>s.irrAndSimple.nyear=e)},null,8,["modelValue"]),b(o,{for:""},{default:w((()=>[C("年")])),_:1})])),_:1})])),_:1}),b(u,{class:"inputItem"},{default:w((()=>[b(n,null,{default:w((()=>[C("总生存利益"),b(n,{style:{"font-size":"14px"}},{default:w((()=>[C("(总领取金额+现金价值)")])),_:1}),C(":")])),_:1}),b(u,{class:"inputContent"},{default:w((()=>[b(d,{class:"uni-input",type:"number",placeholder:"请输入",min:"1",modelValue:s.irrAndSimple.cashValue,"onUpdate:modelValue":l[10]||(l[10]=e=>s.irrAndSimple.cashValue=e)},null,8,["modelValue"]),b(o,{for:""},{default:w((()=>[C("元")])),_:1})])),_:1})])),_:1})])),_:1},512),[[T,"1"===s.calcuteMethod]]),I(b(u,{class:"batchCalculateContent"},{default:w((()=>[S("img",{src:"/sfp/assets/batchFileImport.f45bf5a6.png",alt:"",style:{width:"50%"}}),b(n,null,{default:w((()=>[C("暂无数据")])),_:1}),b(n,{style:{"font-size":"14px","margin-top":"10rpx"}},{default:w((()=>[C("点击下方按钮输入批量数据")])),_:1})])),_:1},512),[[T,"2"===s.calcuteMethod]])])),_:1}),b(u,{class:"resultContent"},{default:w((()=>[s.resultShowFlag&&"1"==s.calcuteMethod?(_(),y(u,{key:0,class:"simpleDataResult"},{default:w((()=>[b(u,{class:"inputItem"},{default:w((()=>[b(n,{class:"resultTitle"},{default:w((()=>[C("IRR复利")])),_:1}),b(n,{class:"calcNumber"},{default:w((()=>[C(k(100*s.irrAndSimpleResInfos[0].irrValue)+"%",1)])),_:1})])),_:1}),b(u,{class:"inputItem"},{default:w((()=>[b(n,{class:"resultTitle"},{default:w((()=>[C("单利")])),_:1}),b(n,{class:"calcNumber"},{default:w((()=>[C(k(100*s.irrAndSimpleResInfos[0].simpleValue)+"%",1)])),_:1})])),_:1})])),_:1})):P("",!0),s.resultShowFlag&&"2"==s.calcuteMethod?(_(),y(u,{key:1,class:"batchDataResult"},{default:w((()=>[b(c,{"scroll-y":"true",class:"scroll-Y"},{default:w((()=>[b(u,{class:"scroll-view-item"},{default:w((()=>[b(u,{class:"resultTh"},{default:w((()=>[b(n,null,{default:w((()=>[C("保单年度")])),_:1}),b(n,null,{default:w((()=>[C("现金价值")])),_:1}),b(n,null,{default:w((()=>[C("IRR复利")])),_:1}),b(n,null,{default:w((()=>[C("单利")])),_:1})])),_:1}),b(u,{class:"resultTd"},{default:w((()=>[b(n,null,{default:w((()=>[C("10")])),_:1}),b(n,null,{default:w((()=>[C("567,789")])),_:1}),b(n,{class:"resultNumber"},{default:w((()=>[C("37.125%")])),_:1}),b(n,{class:"resultNumber"},{default:w((()=>[C("10.123%")])),_:1})])),_:1}),b(u,{class:"resultTd"},{default:w((()=>[b(n,null,{default:w((()=>[C("10")])),_:1}),b(n,null,{default:w((()=>[C("567,789")])),_:1}),b(n,{class:"resultNumber"},{default:w((()=>[C("37.125%")])),_:1}),b(n,{class:"resultNumber"},{default:w((()=>[C("10.123%")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):P("",!0)])),_:1}),b(u,{class:"optionContent"},{default:w((()=>[b(r,{type:"default",plain:"true","form-type":"reset"},{default:w((()=>[C("清空")])),_:1}),I(b(r,{type:"default",plain:"true",class:"btn",onClick:l[11]||(l[11]=e=>i.calcute(1))},{default:w((()=>[C("输入批量数据")])),_:1},512),[[T,2==s.calcuteMethod]]),I(b(r,{type:"default",plain:"true",class:"btn",onClick:l[12]||(l[12]=e=>i.calcute(1))},{default:w((()=>[C("开始计算")])),_:1},512),[[T,1==s.calcuteMethod]])])),_:1})])),_:1},8,["onSubmit","onReset"])])),_:1})])),_:1})}],["__scopeId","data-v-636a9170"]]);export{$ as default};
var e=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,n=(a,l,t)=>l in a?e(a,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[l]=t,u=(e,a)=>{for(var l in a||(a={}))i.call(a,l)&&n(e,l,a[l]);if(t)for(var l of t(a))s.call(a,l)&&n(e,l,a[l]);return e},r=(e,t)=>a(e,l(t));import{a as d,s as o,g as c,r as p,b as m,h as f,c as h,n as y,o as w,d as _,e as b,w as S,f as g,i as C,j as T,k as I,l as A,m as V,v as P,F as v,p as W,q as k,t as U,u as x,x as N,y as z,I as O,z as R,S as F,A as M}from"./index.6a7cd8f6.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";const Q=["/api/authorize/obtainToken"];var E=(e,a,l)=>(d("request",{invoke(e){if(o({title:"加载中..."}),!c("uni-token")&&!Q.includes(e.url))return new Promise(((e,a)=>(p({url:"/api/authorize/obtainToken",method:"POST",data:{ticket:"uni-app"},success:e=>{200===e.statusCode&&(m("uni-token",e.data.data.token),window.location.href=window.location.href+"?t_reload="+(new Date).getTime())},fail(e){a(e)}}),f(),!1)));e.header={"content-type":"POST"===e.method?"application/json":"application/x-www-form-urlencoded","X-Authorization":c("uni-token")}},success(e){f(),console.log(e)},fail(e){console.log("interceptor-fail",e),console.log("请求失败"),f()},complete(e){f()}}),new Promise(((t,i)=>{p({url:e,method:a,data:u({},l),success(e){t(e.data)},fail(e){i(e)},complete(){f()}})})));let q={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 D={irrAndSimpleCalcute:e=>E(`${q}/api/sfp/calcuteUtil/irrAndSimpleCalcute`,"POST",e),getWxUserInfo:e=>E(`${q}/api/getWxUserInfo`,"POST",e)};var B={getQueryString(e){const a=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),l=decodeURIComponent(window.location.search).substr(1).match(a);return null!=l?l[2]:null}};var $=j({data:()=>({isNeedOfficialAccountQrcode:!0,calcuteType:"1",withdrawalType:"1",resultShowFlag:!1,calcuteMethod:"1",businessType:1,mobile:void 0,irrAndSimpleCalcuteParam:{},yearWithdrawal:{withdrawalType:void 0,withdrawalStart:void 0,withdrawalEnd:void 0,yearWithdrawalAmount:void 0},irrAndSimple:{nyear:void 0,cashValue:void 0},yearWithdrawalInfos:[],irrAndSimpleInfos:[],irrAndSimpleResInfos:[]}),onLoad(){c("businessNo")||m("businessNo",((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,a)=>e+((a&=63)<36?a.toString(36):a<62?(a-26).toString(36).toUpperCase():a>62?"-":"_")),""))().replace(/\_/g,"")),B.getQueryString("openId")?m("openId",B.getQueryString("openId")):c("openId")||D.getWxUserInfo({userApplyType:"1",businessNo:c("businessNo")}).then((e=>{console.log(e),e.success&&(window.location.href=e.data.paymentForm.action)})),0!=B.getQueryString("subscribe")&&c("openId")?this.isNeedOfficialAccountQrcode=!1:this.isNeedOfficialAccountQrcode=!0,this.yearWithdrawal.length>0&&this.yearWithdrawalInfos.push(r(u({},this.yearWithdrawal),{withdrawalType:this.withdrawalType?"1":"2"}))},methods:{switchTab(e){this.calcuteType=e,"2"==e&&(this.yearWithdrawalInfos=[].concat([{withdrawalType:"1",withdrawalStart:null,yearWithdrawalAmount:null}]))},calcute(e){if(this.businessType=e,"1"===this.calcuteMethod)this.irrAndSimpleCalte();else if("2"===this.calcuteMethod){if(!this.irrAndSimpleCalcuteParam.paymentPeriod)return void h({title:"请填写交费年限",duration:2e3,icon:"none"});if(!this.irrAndSimpleCalcuteParam.annualPremium)return void h({title:"请填写年交保费",duration:2e3,icon:"none"});const e={paymentPeriod:this.irrAndSimpleCalcuteParam.paymentPeriod,annualPremium:this.irrAndSimpleCalcuteParam.annualPremium,allFirstPayment:this.irrAndSimpleCalcuteParam.allFirstPayment,yearWithdrawalInfos:this.yearWithdrawalInfos};m("calcuteData",e),y({url:"/pages/dataImport/data-import"})}},initCashValue(e){this.calcuteMethod=e,"1"===e&&(this.irrAndSimple={nyear:null,cashValue:null},this.irrAndSimpleInfos=[].concat([{nyear:null,cashValue:null}]),console.log(this.irrAndSimple))},changeWithdrawalType(){this.withdrawalType=!this.withdrawalType,console.log(this.withdrawalType),this.withdrawalType?this.yearWithdrawalInfos=[]:(this.yearWithdrawalInfos=[].concat([{withdrawalType:"2",withdrawalStart:null,withdrawalEnd:null,yearWithdrawalAmount:null}]),console.log(this.yearWithdrawalInfos))},add(){this.yearWithdrawalInfos.push({withdrawalType:void 0,withdrawalStart:void 0,withdrawalEnd:void 0,yearWithdrawalAmount:void 0,withdrawalType:this.withdrawalType?"1":"2"})},reduce(e){this.yearWithdrawalInfos.length>1&&this.yearWithdrawalInfos.splice(e,1)},irrAndSimpleCalte(){if(!this.irrAndSimpleCalcuteParam.paymentPeriod)return void h({title:"请填写交费年限",duration:2e3,icon:"none"});if(!this.irrAndSimpleCalcuteParam.annualPremium)return void h({title:"请填写年交保费",duration:2e3,icon:"none"});if(2==this.businessType&&!this.mobile)return void h({title:"保存时手机号必填",duration:2e3,icon:"none"});const e=r(u({},this.irrAndSimpleCalcuteParam),{calcuteType:this.calcuteType,businessType:this.businessType,calcuteMethod:this.calcuteMethod,businessNo:c("businessNo"),mobile:null,loginNo:null,wechat_openid:c("openId")||"",yearWithdrawalInfos:this.yearWithdrawalInfos,irrAndSimpleInfos:[].concat([this.irrAndSimple]),withdrawalType:this.withdrawalType?"1":"2",decimal:5});D.irrAndSimpleCalcute(e).then((e=>{console.log(e),!0===e.success&&(this.irrAndSimpleResInfos=e.data.irrAndSimpleResInfos,console.log(this.irrAndSimpleResInfos),this.resultShowFlag=!0)}))}}},[["render",function(e,a,l,t,i,s){const n=x,u=N,r=z,d=O,o=R,c=F,p=M;return w(),_(v,null,[i.isNeedOfficialAccountQrcode?(w(),b(n,{key:0,class:"qrcodeContainer"},{default:S((()=>[g(n,{class:"qrcodeContent"},{default:S((()=>[C("img",{src:"/sfp/assets/qrcodeBg.672cc012.png",alt:"",srcset:""})])),_:1})])),_:1})):T("",!0),i.isNeedOfficialAccountQrcode?T("",!0):(w(),b(n,{key:1,class:"content"},{default:S((()=>[g(n,{class:"banner"},{default:S((()=>[C("img",{src:"/sfp/assets/policyIrrBanner.05908eaf.png",alt:"",srcset:""})])),_:1}),g(c,{"scroll-y":"true",class:"formInfoContainer"},{default:S((()=>[g(n,{class:"tabTitle"},{default:S((()=>[g(u,{onClick:a[0]||(a[0]=e=>s.switchTab("1")),class:I({actived:"1"===i.calcuteType})},{default:S((()=>[A("增额")])),_:1},8,["class"]),g(u,{onClick:a[1]||(a[1]=e=>s.switchTab("2")),class:I({actived:"2"===i.calcuteType})},{default:S((()=>[A("年金")])),_:1},8,["class"])])),_:1}),g(p,{onSubmit:e.formSubmit,onReset:e.formReset},{default:S((()=>[g(n,{class:"policyInfoContent"},{default:S((()=>[g(n,{class:"title"},{default:S((()=>[g(n,null,{default:S((()=>[A("保单信息")])),_:1}),g(r,{class:"btn",style:{"font-size":"12px",margin:"0",padding:"0 30px"},onClick:a[2]||(a[2]=e=>s.calcute(2))},{default:S((()=>[A("保存")])),_:1})])),_:1}),g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("交费年限:")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:i.irrAndSimpleCalcuteParam.paymentPeriod,"onUpdate:modelValue":a[3]||(a[3]=e=>i.irrAndSimpleCalcuteParam.paymentPeriod=e)},null,8,["modelValue"]),g(o,{for:""},{default:S((()=>[A("年")])),_:1})])),_:1})])),_:1}),g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("年交保费:")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"digit",placeholder:"请输入",modelValue:i.irrAndSimpleCalcuteParam.annualPremium,"onUpdate:modelValue":a[4]||(a[4]=e=>i.irrAndSimpleCalcuteParam.annualPremium=e)},null,8,["modelValue"]),g(o,{for:""},{default:S((()=>[A("元")])),_:1})])),_:1})])),_:1}),V(g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("万能账户首年交费"),g(u,{style:{"font-size":"24rpx"}},{default:S((()=>[A("(如有)")])),_:1}),A(":")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:i.irrAndSimpleCalcuteParam.allFirstPayment,"onUpdate:modelValue":a[5]||(a[5]=e=>i.irrAndSimpleCalcuteParam.allFirstPayment=e)},null,8,["modelValue"]),g(o,{for:""},{default:S((()=>[A("元")])),_:1})])),_:1})])),_:1},512),[[P,"2"===i.calcuteType]])])),_:1}),"2"===i.calcuteType&&i.irrAndSimpleCalcuteParam.allFirstPayment?T("",!0):(w(),b(n,{key:0,class:"claimInfomationContent"},{default:S((()=>[g(n,{class:"title"},{default:S((()=>[g(u,null,{default:S((()=>[A("提领信息")])),_:1}),V(g(n,{style:{display:"flex"},onClick:a[6]||(a[6]=e=>s.changeWithdrawalType())},{default:S((()=>[g(n,{class:I(["radioButton",{selected:!i.withdrawalType}])},null,8,["class"]),g(u,{style:{"margin-left":"10rpx"}},{default:S((()=>[A("减保取现")])),_:1})])),_:1},512),[[P,"1"===i.calcuteType]])])),_:1}),V(g(n,{class:"annuityContent"},{default:S((()=>[(w(!0),_(v,null,W(i.yearWithdrawalInfos,(e=>(w(),b(n,null,{default:S((()=>[g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("从第几个保单年度开始提取:")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalStart,"onUpdate:modelValue":a=>e.withdrawalStart=a},null,8,["modelValue","onUpdate:modelValue"]),g(o,{for:""},{default:S((()=>[A("年")])),_:1})])),_:2},1024)])),_:2},1024),g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("每年提取金额:")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.yearWithdrawalAmount,"onUpdate:modelValue":a=>e.yearWithdrawalAmount=a},null,8,["modelValue","onUpdate:modelValue"]),g(o,{for:""},{default:S((()=>[A("元")])),_:1})])),_:2},1024)])),_:2},1024)])),_:2},1024)))),256))])),_:1},512),[[P,"2"===i.calcuteType]]),V(g(n,{class:"reduceInsuranceContent"},{default:S((()=>[g(n,{class:"tableTh"},{default:S((()=>[g(u,null,{default:S((()=>[A("起领年度(年初)")])),_:1}),g(u,null,{default:S((()=>[A("止领年度(年末)")])),_:1}),g(u,{class:"withdrawNumber"},{default:S((()=>[A("年提取金额(元)")])),_:1})])),_:1}),(w(!0),_(v,null,W(i.yearWithdrawalInfos,((e,a)=>(w(),b(n,{class:"tableTd"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalStart,"onUpdate:modelValue":a=>e.withdrawalStart=a},null,8,["modelValue","onUpdate:modelValue"]),g(d,{class:"uni-input",type:"number",placeholder:"请输入",modelValue:e.withdrawalEnd,"onUpdate:modelValue":a=>e.withdrawalEnd=a},null,8,["modelValue","onUpdate:modelValue"]),g(d,{class:"uni-input withdrawNumber",type:"number",placeholder:"请输入",modelValue:e.yearWithdrawalAmount,"onUpdate:modelValue":a=>e.yearWithdrawalAmount=a},null,8,["modelValue","onUpdate:modelValue"]),V(g(n,null,{default:S((()=>[g(u,{onClick:e=>s.reduce(a)},{default:S((()=>[A("-")])),_:2},1032,["onClick"])])),_:2},1536),[[P,i.yearWithdrawalInfos.length>1]])])),_:2},1024)))),256)),g(u,{onClick:a[7]||(a[7]=e=>s.add()),style:{position:"absolute",right:"0"}},{default:S((()=>[A("+")])),_:1})])),_:1},512),[[P,!i.withdrawalType&&"1"===i.calcuteType]])])),_:1})),g(n,{class:"cashValueContent",style:k({marginTop:"1"==i.calcuteType?"80rpx":"40rpx"})},{default:S((()=>[g(n,{class:"title"},{default:S((()=>[g(u,null,{default:S((()=>[A("现金价值")])),_:1}),g(n,{class:"calcTypeOption"},{default:S((()=>[g(r,{class:I(["mini-btn",{actived:"1"==i.calcuteMethod}]),type:"default",size:"mini",onClick:a[8]||(a[8]=e=>s.initCashValue("1"))},{default:S((()=>[A("单次")])),_:1},8,["class"]),g(r,{class:I(["mini-btn",{actived:"2"==i.calcuteMethod}]),type:"default",size:"mini",onClick:a[9]||(a[9]=e=>s.initCashValue("2"))},{default:S((()=>[A("批量")])),_:1},8,["class"])])),_:1})])),_:1}),V(g(n,{class:"simpleCalculateContent"},{default:S((()=>[g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("第:")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",min:"1",modelValue:i.irrAndSimple.nyear,"onUpdate:modelValue":a[10]||(a[10]=e=>i.irrAndSimple.nyear=e)},null,8,["modelValue"]),g(o,{for:""},{default:S((()=>[A("年")])),_:1})])),_:1})])),_:1}),g(n,{class:"inputItem"},{default:S((()=>[g(u,null,{default:S((()=>[A("总生存利益"),g(u,{style:{"font-size":"14px"}},{default:S((()=>[A("(总领取金额+现金价值)")])),_:1}),A(":")])),_:1}),g(n,{class:"inputContent"},{default:S((()=>[g(d,{class:"uni-input",type:"number",placeholder:"请输入",min:"1",modelValue:i.irrAndSimple.cashValue,"onUpdate:modelValue":a[11]||(a[11]=e=>i.irrAndSimple.cashValue=e)},null,8,["modelValue"]),g(o,{for:""},{default:S((()=>[A("元")])),_:1})])),_:1})])),_:1})])),_:1},512),[[P,"1"===i.calcuteMethod]]),V(g(n,{class:"batchCalculateContent"},{default:S((()=>[C("img",{src:"/sfp/assets/batchFileImport.f45bf5a6.png",alt:"",style:{width:"50%"}}),g(u,null,{default:S((()=>[A("暂无数据")])),_:1}),g(u,{style:{"font-size":"14px","margin-top":"10rpx"}},{default:S((()=>[A("点击下方按钮输入批量数据")])),_:1})])),_:1},512),[[P,"2"===i.calcuteMethod]])])),_:1},8,["style"]),g(n,{class:"resultContent"},{default:S((()=>[i.resultShowFlag&&"1"==i.calcuteMethod?(w(),b(n,{key:0,class:"simpleDataResult"},{default:S((()=>[g(n,{class:"inputItem"},{default:S((()=>[g(u,{class:"resultTitle"},{default:S((()=>[A("IRR复利")])),_:1}),g(u,{class:"calcNumber"},{default:S((()=>[A(U(100*i.irrAndSimpleResInfos[0].irrValue.toFixed(5))+"%",1)])),_:1})])),_:1}),g(n,{class:"inputItem"},{default:S((()=>[g(u,{class:"resultTitle"},{default:S((()=>[A("单利")])),_:1}),g(u,{class:"calcNumber"},{default:S((()=>[A(U(100*i.irrAndSimpleResInfos[0].simpleValue.toFixed(5))+"%",1)])),_:1})])),_:1})])),_:1})):T("",!0),i.resultShowFlag&&"2"==i.calcuteMethod?(w(),b(n,{key:1,class:"batchDataResult"},{default:S((()=>[g(c,{"scroll-y":"true",class:"scroll-Y"},{default:S((()=>[g(n,{class:"scroll-view-item"},{default:S((()=>[g(n,{class:"resultTh"},{default:S((()=>[g(u,null,{default:S((()=>[A("保单年度")])),_:1}),g(u,null,{default:S((()=>[A("现金价值")])),_:1}),g(u,null,{default:S((()=>[A("IRR复利")])),_:1}),g(u,null,{default:S((()=>[A("单利")])),_:1})])),_:1}),g(n,{class:"resultTd"},{default:S((()=>[g(u,null,{default:S((()=>[A("10")])),_:1}),g(u,null,{default:S((()=>[A("567,789")])),_:1}),g(u,{class:"resultNumber"},{default:S((()=>[A("37.125%")])),_:1}),g(u,{class:"resultNumber"},{default:S((()=>[A("10.123%")])),_:1})])),_:1}),g(n,{class:"resultTd"},{default:S((()=>[g(u,null,{default:S((()=>[A("10")])),_:1}),g(u,null,{default:S((()=>[A("567,789")])),_:1}),g(u,{class:"resultNumber"},{default:S((()=>[A("37.125%")])),_:1}),g(u,{class:"resultNumber"},{default:S((()=>[A("10.123%")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):T("",!0)])),_:1}),g(n,{class:"optionContent"},{default:S((()=>[g(r,{type:"default",plain:"true","form-type":"reset"},{default:S((()=>[A("清空")])),_:1}),V(g(r,{type:"default",plain:"true",class:"btn",onClick:a[12]||(a[12]=e=>s.calcute(1))},{default:S((()=>[A("输入批量数据")])),_:1},512),[[P,2==i.calcuteMethod]]),V(g(r,{type:"default",plain:"true",class:"btn",onClick:a[13]||(a[13]=e=>s.calcute(1))},{default:S((()=>[A("开始计算")])),_:1},512),[[P,1==i.calcuteMethod]])])),_:1})])),_:1},8,["onSubmit","onReset"])])),_:1})])),_:1}))],64)}],["__scopeId","data-v-4b2fc7e0"]]);export{$ as default};
...@@ -14,11 +14,14 @@ ...@@ -14,11 +14,14 @@
<title>sfp</title> <title>sfp</title>
<!--preload-links--> <!--preload-links-->
<!--app-context--> <!--app-context-->
<script type="module" crossorigin src="/sfp/assets/index.bad063df.js"></script> <script type="module" crossorigin src="/sfp/assets/index.6a7cd8f6.js"></script>
<link rel="stylesheet" href="/sfp/assets/index.13d2da89.css"> <link rel="stylesheet" href="/sfp/assets/index.13d2da89.css">
</head> </head>
<body> <body>
<div id="app"><!--app-html--></div> <div id="app"><!--app-html--></div>
<!-- 移动端调试 -->
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
</body> </body>
</html> </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