mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 05:46:44 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】被保险人去掉算总保费的逻辑
This commit is contained in:
@@ -146,48 +146,13 @@
|
||||
clearable maxlength='30' />
|
||||
<!-- </template> -->
|
||||
</van-cell-group>
|
||||
<p style='background: white; border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>产品信息</p>
|
||||
<van-field
|
||||
:value='proScheme'
|
||||
readonly
|
||||
required
|
||||
label='保障方案'
|
||||
name='保障方案'
|
||||
v-validate="'required'"
|
||||
right-icon='arrow'
|
||||
placeholder='请选择'
|
||||
@click="toSelect('10')"
|
||||
/>
|
||||
<FieldDatePicter
|
||||
label='指定生效日期'
|
||||
name='指定生效日期'
|
||||
required
|
||||
v-validate="'required'"
|
||||
:minDate='now'
|
||||
:value.sync='cvaliDate'
|
||||
type='date'
|
||||
:flag='true'
|
||||
@confirm="onDateConfirm($event, '6')"
|
||||
ref='effectiveDate'
|
||||
input-align:right
|
||||
:maxDate='filterMaxDate'
|
||||
>
|
||||
</FieldDatePicter>
|
||||
<div v-if='cvaliDate.length > 0' class='van-cell van-field' style='border-bottom: 1px solid rgb(235, 237, 240)'>
|
||||
<div class='van-cell__title van-field__label'><span>保险期间</span></div>
|
||||
<div class='van-cell__value'>
|
||||
<div class='van-field__body'>
|
||||
<span class='van-field__control'>{{ productDate }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<van-goods-action style='z-index: 99'>
|
||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'
|
||||
<!-- <van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'
|
||||
>总保费:<span style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{ allPrice }}</span
|
||||
>元
|
||||
</van-button
|
||||
>
|
||||
<van-goods-action-button type='danger' text='立即投保' @click='nextStep' v-no-more-click='1000'
|
||||
> -->
|
||||
<van-goods-action-button type='danger' text='下一步' @click='nextStep' v-no-more-click='1000'
|
||||
style='border-radius: 0em; width: 50%; height: 40px' />
|
||||
</van-goods-action>
|
||||
<!-- <van-dialog v-model="showDialog" title="温馨提示" message="被保险人年龄与所投保的方案不一致,请核实。" show-cancel-button @confirm="nextStep" confirmButtonText="继续投保" cancelButtonText="核对信息"> -->
|
||||
@@ -245,7 +210,6 @@ import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
import { idToData } from './js/verification'
|
||||
import OccupationForLoop from '@/components/ebiz/occipation/OccupationForLoop'
|
||||
import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import dateUtils from '@/assets/js/utils/date-utils'
|
||||
import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
|
||||
@@ -326,8 +290,8 @@ export default {
|
||||
name: '', //投保人姓名
|
||||
// insuredname: '',
|
||||
sex: '0', //投保人性别
|
||||
bnfType: '0', // 受益人类型
|
||||
bnfSelec: '请选择',
|
||||
// bnfType: '0', // 受益人类型
|
||||
// bnfSelec: '请选择',
|
||||
birthday: '', //投保人出生日期
|
||||
idType: '1', //证件类型
|
||||
idNo: '', //证件号码
|
||||
@@ -614,8 +578,6 @@ export default {
|
||||
this.columns = DataDictionary.workCondition
|
||||
} else if (pickerType == '8') {
|
||||
this.columns = DataDictionary.salarySource
|
||||
} else if (pickerType == '10') {
|
||||
this.columns = []
|
||||
}
|
||||
},
|
||||
//确认选择字段
|
||||
@@ -736,32 +698,6 @@ export default {
|
||||
// }
|
||||
}
|
||||
break
|
||||
case '6': {
|
||||
//指定生效日期
|
||||
//如果录入日期晚于当前日期
|
||||
if (Date.parse(val) < Date.parse(new Date())) {
|
||||
return this.$toast('当前日期早于当日')
|
||||
}
|
||||
let currentDataArr = val.split('-')
|
||||
let currentData = currentDataArr[0] + '年' + currentDataArr[1] + '月' + currentDataArr[2] + '日'
|
||||
let insuYear = JSON.parse(localStorage.insuYear)
|
||||
let insuYearM, productDate, productDateTime
|
||||
let insuYearD, hoDate
|
||||
switch (insuYear.insuYearFlag) {
|
||||
case 'D':
|
||||
hoDate = Date.parse(val) / 1000 + (insuYear['insuYear'] - 1) * 24 * 3600
|
||||
break
|
||||
case 'Y':
|
||||
hoDate = Date.parse(val) / 1000 + insuYear['insuYear'] * 24 * 3600 * (afterDate.isLeapYear(new Date(val).getFullYear()) - 1)
|
||||
break
|
||||
}
|
||||
productDate = new Date(parseInt(hoDate) * 1000)
|
||||
insuYearM = productDate.getMonth() + 1 < 10 ? '0' + (productDate.getMonth() + 1) : productDate.getMonth() + 1
|
||||
insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate()
|
||||
productDateTime = productDate.getFullYear() + '年' + insuYearM + '月' + insuYearD + '日'
|
||||
this.productDate = currentData + '0时至' + productDateTime + '24时止'
|
||||
}
|
||||
break
|
||||
}
|
||||
},
|
||||
//选择客户
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user