mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 05:26:43 +08:00
Compare commits
23 Commits
hotfix/【20
...
release/【2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a5b8c2a9e | ||
|
|
31b1485e23 | ||
|
|
0842b27a62 | ||
|
|
65e41ed410 | ||
|
|
7739e8b90b | ||
|
|
33e6b150b4 | ||
|
|
d037b8e36a | ||
|
|
5a9512b5b7 | ||
|
|
570cc88b30 | ||
|
|
7ef7799545 | ||
|
|
e21e16ddbe | ||
|
|
02c408f5ef | ||
|
|
247ad5e13e | ||
|
|
44bd097ae2 | ||
|
|
c20dda510e | ||
|
|
cf0661b6ba | ||
|
|
a9809d32bd | ||
|
|
2be815d1bd | ||
|
|
21a8f13c7e | ||
|
|
c5dd4bcb51 | ||
|
|
a6f572b816 | ||
|
|
85cfccd60e | ||
|
|
6bd95572b7 |
@@ -59,6 +59,7 @@
|
||||
"node-sass": "^4.14.1",
|
||||
"postcss-px-to-viewport": "^1.1.1",
|
||||
"sass-loader": "^7.3.1",
|
||||
"terser-webpack-plugin": "^4.2.3",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -390,3 +390,10 @@ export function saveOrderType(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function changeOrderStatus(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/changeOrderStatus', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -16,12 +16,12 @@ export default {
|
||||
if(date2_29 == '02-29'){
|
||||
let thisyear = Number(endDate.slice(0, 4)) - 5
|
||||
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
|
||||
return startDate = thisyear + '-02-29'
|
||||
startDate = thisyear + '-02-29'
|
||||
} else {
|
||||
return startDate = thisyear + '-02-28'
|
||||
startDate = thisyear + '-02-28'
|
||||
}
|
||||
}else{
|
||||
return startDate = String(Number(endDate.slice(0, 4)) - 5) + endDate.slice(4, 11)
|
||||
startDate = String(Number(endDate.slice(0, 4)) - 5) + endDate.slice(4, 11)
|
||||
}
|
||||
}
|
||||
/**
|
||||
@@ -37,12 +37,12 @@ export default {
|
||||
if(date2_29 == '02-29') {
|
||||
let thisyear = Number(endDate.slice(0, 4)) - 10
|
||||
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
|
||||
return startDate = thisyear + '-02-29'
|
||||
startDate = thisyear + '-02-29'
|
||||
} else {
|
||||
return startDate = thisyear + '-02-28'
|
||||
startDate = thisyear + '-02-28'
|
||||
}
|
||||
} else {
|
||||
return startDate
|
||||
startDate
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,12 +59,12 @@ export default {
|
||||
if(date2_29 == '02-29') {
|
||||
let thisyear = Number(endDate.slice(0, 4)) - 20
|
||||
if (thisyear % 4 == 0 && thisyear % 100 != 0 || thisyear % 400 == 0){
|
||||
return startDate = thisyear + '-02-29'
|
||||
startDate = thisyear + '-02-29'
|
||||
} else {
|
||||
return startDate = thisyear + '-02-28'
|
||||
startDate = thisyear + '-02-28'
|
||||
}
|
||||
} else {
|
||||
return startDate
|
||||
startDate
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,8 +74,12 @@ export default {
|
||||
* @Date: 2023/7/4
|
||||
**/
|
||||
else if (endage - 20 >= 46) {
|
||||
return startDate
|
||||
startDate
|
||||
}
|
||||
if(new Date(birthday).getTime() >= new Date(startDate).getTime() || new Date().getTime() < new Date(startDate).getTime()){
|
||||
startDate = ''
|
||||
}
|
||||
return startDate
|
||||
},
|
||||
|
||||
//计算身份证截止日期
|
||||
|
||||
@@ -3891,6 +3891,38 @@ export default {
|
||||
{
|
||||
code: "GFRS_M0087__cashValue",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "deathDisabilityInsurance",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "middleDiseaseMildillnessExemptionPremium",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "malignantTumorAdditionalInsurance",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "specCardiovascularCerebrovascularDiseasesInsurance",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "firstCriticalIllnessCareFund",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "firstModerateIllnessCareFund",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "firstLightIllnessCareFund",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "GFRS_M0086__cashValue",
|
||||
label: "元"
|
||||
}
|
||||
],
|
||||
// 卡单与短期险重新投保选择职业类别时,两个模块职业类型数据的排序不同,创建这个数据字典,用于在选择职业类别时,作为一个参数传入组件,
|
||||
|
||||
@@ -23,7 +23,7 @@ export default [
|
||||
name: 'Prefecture',
|
||||
component: PerformanceReport,
|
||||
meta: {
|
||||
title: '一月业绩查询'
|
||||
title: '旺季业绩查询'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -31,7 +31,7 @@ export default [
|
||||
name: 'Prefecture',
|
||||
component: Prefecture,
|
||||
meta: {
|
||||
title: '一月专区'
|
||||
title: '旺季专区'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -53,7 +53,7 @@ export default [
|
||||
name: 'GoodStartScheme',
|
||||
component: GoodStartScheme,
|
||||
meta: {
|
||||
title: '一月方案'
|
||||
title: '旺季方案'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -61,7 +61,7 @@ export default [
|
||||
name: 'businessMap',
|
||||
component: businessMap,
|
||||
meta: {
|
||||
title: '一月业务地图'
|
||||
title: '旺季业务地图'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -77,7 +77,7 @@ export default [
|
||||
name: 'newsPaper',
|
||||
component: newsPaper,
|
||||
meta: {
|
||||
title: '一月实时贺报'
|
||||
title: '旺季实时贺报'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -149,7 +149,8 @@
|
||||
keyWord: '乙方锟斤拷:'
|
||||
}
|
||||
window.sessionStorage.setItem('signInfo',JSON.stringify(signInfo))
|
||||
window.location.href = 'http://'+window.location.host + '/signH5/1.html'
|
||||
// window.location.href = 'http://'+window.location.host + '/signH5/1.html'
|
||||
window.location.href = this.$mainUrl + '/signH5/1.html'
|
||||
},
|
||||
goNext(){
|
||||
let params = {
|
||||
|
||||
@@ -131,6 +131,29 @@
|
||||
placeholder='请选择'
|
||||
@click="toSelect('6')"
|
||||
/>
|
||||
<div class="p15 pl8 fs14" style="border-bottom: 1px solid #eee;display: flex;justify-content: space-between;align-items: center;" v-if="manageComCode == '45'">
|
||||
<van-radio-group v-model="userInfo.isNewPeopleFlag" class="flex">
|
||||
<label>
|
||||
<i class="red">*</i>
|
||||
新市民身份
|
||||
</label>
|
||||
<van-radio name="1" class="ml30">是</van-radio>
|
||||
<van-radio name="0" class="ml20">否</van-radio>
|
||||
</van-radio-group>
|
||||
<van-icon name="question-o" size="20" @click="isNewPeopleFlagTip = true"/>
|
||||
</div>
|
||||
<van-field
|
||||
v-if="userInfo.isNewPeopleFlag == 1"
|
||||
:value="userInfo.npType | idToText('npType')"
|
||||
readonly
|
||||
label="新市民类型"
|
||||
name="新市民类型"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@click="toSelect('11')"
|
||||
/>
|
||||
<van-field
|
||||
v-model='userInfo.homeName'
|
||||
readonly
|
||||
@@ -188,6 +211,17 @@
|
||||
<van-popup v-model='isScan2' position='bottom'>
|
||||
<IdentityCardScan @getScanInfo='getIdentityInfo'></IdentityCardScan>
|
||||
</van-popup>
|
||||
<van-dialog v-model="isNewPeopleFlagTipshow" :showConfirmButton="false">
|
||||
<div slot="title">
|
||||
<p style="color: #E9332E;">新市民身份说明</p>
|
||||
</div>
|
||||
<div style="padding: 20px 30px 30px;font-size: 14px;">
|
||||
<div style="line-height: 25px;">新市民是指因本人创业就业、子女上学、投靠子女等原因来到城镇常住,未获得当地户籍或获得当地户籍不满三年的各类群体,包括但不限于进城务工人员、新就业大中专毕业生等。</div>
|
||||
</div>
|
||||
<div style="text-align: center;margin-bottom: 30px;">
|
||||
<van-button round type="danger" size="small" style="padding:0px 35px;font-size: 14px;" @click="isNewPeopleFlagTipshow = false">我知道了</van-button>
|
||||
</div>
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -211,6 +245,7 @@ import OccupationForLoop from '@/components/ebiz/occipation/OccupationForLoop'
|
||||
import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
import riskRules from '@/views/ebiz/common/risk-rules'
|
||||
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
@@ -312,7 +347,9 @@ export default {
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
schoolName: '',
|
||||
className: ''
|
||||
className: '',
|
||||
isNewPeopleFlag: '', //新市民身份
|
||||
npType: '', //新市民类型
|
||||
// effectiveDate: '' //指定生效日期
|
||||
},
|
||||
selectUser: '',
|
||||
@@ -337,34 +374,15 @@ export default {
|
||||
load: false, //防止重复请求
|
||||
value: false
|
||||
},
|
||||
occupationalType: DataDictionary.queryOccupationalByType[0].id
|
||||
occupationalType: DataDictionary.queryOccupationalByType[0].id,
|
||||
manageComCode: '',
|
||||
isNewPeopleFlagTipshow: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// document.body.style.backgroundColor = '#F5F5F5'
|
||||
//如果是编辑进来
|
||||
// if (this.$route.query.edit) {
|
||||
// getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
|
||||
// if (res.result == 0) {
|
||||
// //投保人信息返显
|
||||
// this.userInfo = res.orderDTO.appntDTO
|
||||
// //是否长期
|
||||
// this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType == 'false' ? false : true
|
||||
// //有无社保
|
||||
// this.userInfo.medical = '1'
|
||||
// //设为联系地址
|
||||
// this.userInfo.addressStatus = '0'
|
||||
// //证件类型
|
||||
// this.userInfo.idType = '1'
|
||||
// //国家/地区
|
||||
// this.userInfo.nativeplace = '1'
|
||||
// this.$utils.intLocalStorage(res)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
this.userInfo.homeName = getAreaName([{ code: 450000 }, { code: 450100 }, { code: 450101 }]) //家庭地址
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
let that = this
|
||||
setTimeout(() => {
|
||||
// eslint-disable-next-line no-undef
|
||||
@@ -375,6 +393,8 @@ export default {
|
||||
}, 100)
|
||||
// 筛选按钮的点击事件
|
||||
window.appCallBack = this.appCallBack
|
||||
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
||||
this.manageComCode = dataReturn.manageComCode
|
||||
if (this.$route.query.cardOrderNo) {
|
||||
this.cardOrderNo = this.$route.query.cardOrderNo
|
||||
//根据后台数据来展示
|
||||
@@ -548,6 +568,8 @@ export default {
|
||||
this.columns = DataDictionary.workCondition
|
||||
} else if (pickerType == '8') {
|
||||
this.columns = DataDictionary.salarySource
|
||||
} else if (pickerType == '11') {
|
||||
this.columns = DataDictionary.npType
|
||||
}
|
||||
},
|
||||
//确认选择字段
|
||||
@@ -585,6 +607,8 @@ export default {
|
||||
this.proScheme = value.text
|
||||
this.proSchemeCode = value.id
|
||||
this.chooseKind = value.label
|
||||
} else if (this.pickerType === '11') {
|
||||
this.userInfo.npType = value.id
|
||||
}
|
||||
},
|
||||
//证件起始截止日期
|
||||
@@ -730,6 +754,8 @@ export default {
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
// 长期按钮是否禁用
|
||||
this.effectiveDateTypeAble = age <= 45
|
||||
this.userInfo.isNewPeopleFlag = data.isNewPeopleFlag //新市民身份
|
||||
this.userInfo.npType = data.npType //新市民类型
|
||||
this.getRelatedData(this.userInfo.idNo, '1')
|
||||
}
|
||||
// console.log(data, val)
|
||||
@@ -826,6 +852,12 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.manageComCode == '45' && (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined)) {
|
||||
return this.$toast('投保人新市民身份不能为空')
|
||||
}
|
||||
if(this.manageComCode == '45' && this.userInfo.isNewPeopleFlag != '0' && !this.userInfo.npType) {
|
||||
return this.$toast('投保人新市民类型不能为空')
|
||||
}
|
||||
this.infoUpdate()
|
||||
// console.log('success')
|
||||
} else {
|
||||
|
||||
@@ -147,6 +147,29 @@
|
||||
placeholder='请选择'
|
||||
@click="toSelect('66')"
|
||||
/>
|
||||
<div class="p15 pl8 fs14" style="border-bottom: 1px solid #eee;display: flex;justify-content: space-between;align-items: center;" v-if="manageComCode == '45'">
|
||||
<van-radio-group v-model="insuredInfo.isNewPeopleFlag" class="flex">
|
||||
<label>
|
||||
<i class="red">*</i>
|
||||
新市民身份
|
||||
</label>
|
||||
<van-radio name="1" class="ml30">是</van-radio>
|
||||
<van-radio name="0" class="ml20">否</van-radio>
|
||||
</van-radio-group>
|
||||
<van-icon name="question-o" size="20" @click="isNewPeopleFlagTip = true"/>
|
||||
</div>
|
||||
<van-field
|
||||
v-if="insuredInfo.isNewPeopleFlag == 1"
|
||||
:value="userInfo.npType | idToText('npType')"
|
||||
readonly
|
||||
label="新市民类型"
|
||||
name="新市民类型"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@click="toSelect('npType')"
|
||||
/>
|
||||
<van-field
|
||||
v-model='insuredInfo.homeName'
|
||||
readonly
|
||||
@@ -254,6 +277,17 @@
|
||||
<van-popup v-model='isScan2' position='bottom'>
|
||||
<IdentityCardScan @getScanInfo='getIdentityInfo'></IdentityCardScan>
|
||||
</van-popup>
|
||||
<van-dialog v-model="isNewPeopleFlagTipshow" :showConfirmButton="false">
|
||||
<div slot="title">
|
||||
<p style="color: #E9332E;">新市民身份说明</p>
|
||||
</div>
|
||||
<div style="padding: 20px 30px 30px;font-size: 14px;">
|
||||
<div style="line-height: 25px;">新市民是指因本人创业就业、子女上学、投靠子女等原因来到城镇常住,未获得当地户籍或获得当地户籍不满三年的各类群体,包括但不限于进城务工人员、新就业大中专毕业生等。</div>
|
||||
</div>
|
||||
<div style="text-align: center;margin-bottom: 30px;">
|
||||
<van-button round type="danger" size="small" style="padding:0px 35px;font-size: 14px;" @click="isNewPeopleFlagTipshow = false">我知道了</van-button>
|
||||
</div>
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -278,6 +312,7 @@ import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import dateUtils from '@/assets/js/utils/date-utils'
|
||||
import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
import riskRules from '@/views/ebiz/common/risk-rules'
|
||||
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
@@ -388,7 +423,9 @@ export default {
|
||||
email: '', //电子邮箱
|
||||
medical:'0',//有无社保
|
||||
schoolName: '',
|
||||
className: ''
|
||||
className: '',
|
||||
isNewPeopleFlag: '', //新市民身份
|
||||
npType: '', //新市民类型
|
||||
// effectiveDate: '' //指定生效日期
|
||||
},
|
||||
//被保人信息
|
||||
@@ -446,7 +483,9 @@ export default {
|
||||
},
|
||||
occupationalType: DataDictionary.queryOccupationalByType[0].id,
|
||||
isInsuredCertiexpiredate:true, //被保人有效止期是否显示
|
||||
isAppnt: false // 是否投被同人
|
||||
isAppnt: false, // 是否投被同人
|
||||
manageComCode: '',
|
||||
isNewPeopleFlagTipshow: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -482,7 +521,7 @@ export default {
|
||||
this.expireDate = afterDate.getAfterDateTime(val,2)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
let that = this
|
||||
window.appCallBack = this.appCallBack
|
||||
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
||||
@@ -496,6 +535,8 @@ export default {
|
||||
if (this.$route.query.cardOrderNo) {
|
||||
this.cardOrderNo = this.$route.query.cardOrderNo
|
||||
}
|
||||
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
||||
this.manageComCode = dataReturn.manageComCode
|
||||
//根据后台数据来展示
|
||||
let cardInfoDTO = {
|
||||
orderNo: this.cardOrderNo
|
||||
@@ -738,6 +779,8 @@ export default {
|
||||
// })
|
||||
} else if (pickerType == '22') {
|
||||
this.columns = DataDictionary.cardListInsuredIdType
|
||||
} else if(pickerType == 'npType') {
|
||||
this.columns = DataDictionary.npType
|
||||
}
|
||||
},
|
||||
//确认选择字段
|
||||
@@ -823,6 +866,8 @@ export default {
|
||||
// this.isInsuredCertiexpiredate = true
|
||||
}
|
||||
this.insuredInfo.idType = value.id
|
||||
} else if(this.pickerType == 'npType') {
|
||||
this.userInfo.npType = value.id
|
||||
}
|
||||
},
|
||||
//试算逻辑
|
||||
@@ -1086,6 +1131,8 @@ export default {
|
||||
// 长期按钮是否禁用
|
||||
this.effectiveDateTypeAbleInsured = age <= 45
|
||||
console.log(this.insuredInfo,'this.insuredInfo')
|
||||
this.userInfo.isNewPeopleFlag = data.isNewPeopleFlag //新市民身份
|
||||
this.userInfo.npType = data.npType //新市民类型
|
||||
this.getRelatedData(this.insuredInfo.idNo, '2')
|
||||
}
|
||||
// console.log(data, val)
|
||||
@@ -1313,6 +1360,12 @@ export default {
|
||||
if (this.insuredInfo.effectiveDateType) {
|
||||
this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
}
|
||||
if (this.manageComCode == '45' && (this.insuredInfo.isNewPeopleFlag == '' || this.insuredInfo.isNewPeopleFlag == null || this.insuredInfo.isNewPeopleFlag == undefined)) {
|
||||
return this.$toast('投保人新市民身份不能为空')
|
||||
}
|
||||
if(this.manageComCode == '45' && this.insuredInfo.isNewPeopleFlag != '0' && !this.insuredInfo.npType) {
|
||||
return this.$toast('投保人新市民类型不能为空')
|
||||
}
|
||||
this.infoUpdate()
|
||||
// console.log('success')
|
||||
} else {
|
||||
|
||||
@@ -142,6 +142,29 @@
|
||||
placeholder='请选择'
|
||||
@click="toSelect('6')"
|
||||
/>
|
||||
<div class="p15 pl8 fs14" style="border-bottom: 1px solid #eee;display: flex;justify-content: space-between;align-items: center;" v-if="manageComCode == '45'">
|
||||
<van-radio-group v-model="userInfo.isNewPeopleFlag" class="flex">
|
||||
<label>
|
||||
<i class="red">*</i>
|
||||
新市民身份
|
||||
</label>
|
||||
<van-radio name="1" class="ml30">是</van-radio>
|
||||
<van-radio name="0" class="ml20">否</van-radio>
|
||||
</van-radio-group>
|
||||
<van-icon name="question-o" size="20" @click="isNewPeopleFlagTipshow = true"/>
|
||||
</div>
|
||||
<van-field
|
||||
v-if="userInfo.isNewPeopleFlag == 1"
|
||||
:value="userInfo.npType | idToText('npType')"
|
||||
readonly
|
||||
label="新市民类型"
|
||||
name="新市民类型"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@click="toSelect('appntNpType')"
|
||||
/>
|
||||
<van-field
|
||||
v-model='userInfo.homeName'
|
||||
readonly
|
||||
@@ -299,6 +322,29 @@
|
||||
placeholder='请选择'
|
||||
@click="toSelect('66')"
|
||||
/>
|
||||
<div class="p15 pl8 fs14" style="border-bottom: 1px solid #eee;display: flex;justify-content: space-between;align-items: center;" v-if="manageComCode == '45'">
|
||||
<van-radio-group v-model="insuredInfo.isNewPeopleFlag" class="flex">
|
||||
<label>
|
||||
<i class="red">*</i>
|
||||
新市民身份
|
||||
</label>
|
||||
<van-radio name="1" class="ml30">是</van-radio>
|
||||
<van-radio name="0" class="ml20">否</van-radio>
|
||||
</van-radio-group>
|
||||
<van-icon name="question-o" size="20" @click="isNewPeopleFlagTipshow = true"/>
|
||||
</div>
|
||||
<van-field
|
||||
v-if="insuredInfo.isNewPeopleFlag == 1"
|
||||
:value="insuredInfo.npType | idToText('npType')"
|
||||
readonly
|
||||
label="新市民类型"
|
||||
name="新市民类型"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@click="toSelect('insuredNpType')"
|
||||
/>
|
||||
<van-field
|
||||
v-model='insuredInfo.homeName'
|
||||
readonly
|
||||
@@ -432,6 +478,29 @@
|
||||
right-icon='arrow'
|
||||
placeholder='请选择'
|
||||
/>
|
||||
<div class="p15 pl8 fs14" style="border-bottom: 1px solid #eee;display: flex;justify-content: space-between;align-items: center;" v-if="manageComCode == '45'">
|
||||
<van-radio-group v-model="userInfo.isNewPeopleFlag" class="flex">
|
||||
<label>
|
||||
<i class="red">*</i>
|
||||
新市民身份
|
||||
</label>
|
||||
<van-radio name="1" class="ml30">是</van-radio>
|
||||
<van-radio name="0" class="ml20">否</van-radio>
|
||||
</van-radio-group>
|
||||
<van-icon name="question-o" size="20" @click="isNewPeopleFlagTipshow = true"/>
|
||||
</div>
|
||||
<van-field
|
||||
v-if="userInfo.isNewPeopleFlag == 1"
|
||||
:value="userInfo.npType | idToText('npType')"
|
||||
readonly
|
||||
label="新市民类型"
|
||||
name="新市民类型"
|
||||
required
|
||||
right-icon="arrow"
|
||||
placeholder="请选择"
|
||||
v-validate="'required'"
|
||||
@click="toSelect('appntNpType')"
|
||||
/>
|
||||
<van-field
|
||||
v-model='userInfo.homeName'
|
||||
readonly
|
||||
@@ -568,6 +637,17 @@
|
||||
<van-popup v-model='isScan2' position='bottom'>
|
||||
<IdentityCardScan @getScanInfo='getIdentityInfo'></IdentityCardScan>
|
||||
</van-popup>
|
||||
<van-dialog v-model="isNewPeopleFlagTipshow" :showConfirmButton="false">
|
||||
<div slot="title">
|
||||
<p style="color: #E9332E;">新市民身份说明</p>
|
||||
</div>
|
||||
<div style="padding: 20px 30px 30px;font-size: 14px;">
|
||||
<div style="line-height: 25px;">新市民是指因本人创业就业、子女上学、投靠子女等原因来到城镇常住,未获得当地户籍或获得当地户籍不满三年的各类群体,包括但不限于进城务工人员、新就业大中专毕业生等。</div>
|
||||
</div>
|
||||
<div style="text-align: center;margin-bottom: 30px;">
|
||||
<van-button round type="danger" size="small" style="padding:0px 35px;font-size: 14px;" @click="isNewPeopleFlagTipshow = false">我知道了</van-button>
|
||||
</div>
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -706,7 +786,9 @@ export default {
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
schoolName: '',
|
||||
className: ''
|
||||
className: '',
|
||||
isNewPeopleFlag: '', //新市民身份
|
||||
npType: '', //新市民类型
|
||||
// effectiveDate: '' //指定生效日期
|
||||
},
|
||||
//被保人信息
|
||||
@@ -735,7 +817,9 @@ export default {
|
||||
mobile: '', //移动电话
|
||||
email: '',//电子邮箱
|
||||
schoolName: '',
|
||||
className: ''
|
||||
className: '',
|
||||
isNewPeopleFlag: '', //新市民身份
|
||||
npType: '', //新市民类型
|
||||
},
|
||||
selectUser: '',
|
||||
areaList: areaList,
|
||||
@@ -767,7 +851,9 @@ export default {
|
||||
},
|
||||
occupationalType: DataDictionary.queryOccupationalByType[0].id,
|
||||
isInsuredCertiexpiredate:true, //被保人有效止期是否显示
|
||||
trialDTOS:[] //产品详情信息
|
||||
trialDTOS:[], //产品详情信息
|
||||
manageComCode: '',
|
||||
isNewPeopleFlagTipshow: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -905,7 +991,9 @@ export default {
|
||||
}
|
||||
this.userInfo.homeName = getAreaName([{ code: 450000 }, { code: 450100 }, { code: 450101 }]) //家庭地址
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
||||
this.manageComCode = dataReturn.manageComCode
|
||||
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
|
||||
if (this.itemProductDTOS.productCode != 'GFRS_M0032') {
|
||||
this.userInfo.averageAnnualIncome = '0'
|
||||
@@ -1327,7 +1415,12 @@ export default {
|
||||
} else {
|
||||
this.columns = DataDictionary.idType
|
||||
}
|
||||
} else if(pickerType == 'appntNpType') {
|
||||
this.columns = DataDictionary.npType
|
||||
} else if(pickerType == 'insuredNpType') {
|
||||
this.columns = DataDictionary.npType
|
||||
}
|
||||
|
||||
},
|
||||
//确认选择字段
|
||||
onConfirm(value) {
|
||||
@@ -1425,6 +1518,10 @@ export default {
|
||||
this.isInsuredCertiexpiredate = true
|
||||
}
|
||||
this.insuredInfo.idType = value.id
|
||||
} else if (this.pickerType === 'appntNpType') {
|
||||
this.userInfo.npType = value.id
|
||||
} else if (this.pickerType === 'insuredNpType') {
|
||||
this.insuredInfo.npType = value.id
|
||||
}
|
||||
},
|
||||
//证件起始截止日期
|
||||
@@ -1664,9 +1761,13 @@ export default {
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
// 长期按钮是否禁用
|
||||
this.effectiveDateTypeAble = age <= 45
|
||||
this.userInfo.isNewPeopleFlag = data.isNewPeopleFlag //新市民身份
|
||||
this.userInfo.npType = data.npType //新市民类型
|
||||
this.getRelatedData(this.userInfo.idNo, '1')
|
||||
} else if (this.selectUser == '1') {
|
||||
let { customerName, customerSex } = data
|
||||
let { customerName, customerSex, isNewPeopleFlag, npType } = data
|
||||
this.insuredInfo.isNewPeopleFlag = isNewPeopleFlag //新市民身份
|
||||
this.insuredInfo.npType = npType //新市民类型
|
||||
this.insuredInfo.name = customerName //用户名
|
||||
this.insuredInfo.sex = customerSex ? customerSex.toString() : '0' //性别
|
||||
this.insuredInfo.birthday = data.birthday //出生日期
|
||||
@@ -1689,7 +1790,8 @@ export default {
|
||||
this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
this.isInsuredCertiexpiredate = false
|
||||
}else{
|
||||
}
|
||||
else{
|
||||
this.isInsuredCertiexpiredate = true
|
||||
// 因为学平险产品 和 少儿卡单 被保人证件类型只有身份证和户口本 所以回显被保人信息时 如果不是身份证和户口本 就隐藏被保人证件类型
|
||||
if ((this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
@@ -1732,6 +1834,7 @@ export default {
|
||||
this.insuredInfo.lifeGrade = data.lifeGrade
|
||||
this.insuredInfo.occupationType = data.lifeGrade
|
||||
this.insuredInfo.healthGrade = data.healthGrade
|
||||
|
||||
//除万福卡,投保人、被保险人年收入填写项去掉,默认为0,卡产品不满足反洗钱识别线
|
||||
this.insuredInfo.averageAnnualIncome = this.itemProductDTOS.productCode == 'GFRS_M0032' ? data.averageYearlyIncome : '0' //平均年收入
|
||||
//2516--三个学平险--被保险人婚姻默认未婚,允许修改
|
||||
@@ -1760,9 +1863,12 @@ export default {
|
||||
// console.log(data, val)
|
||||
},
|
||||
nextStep() {
|
||||
// console.log(this.userInfo.idType)
|
||||
// console.log(this.userInfo.salarySource)
|
||||
// console.log(this.userInfo.otherSalarySource)
|
||||
if (this.manageComCode == '45' && (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined)) {
|
||||
return this.$toast('投保人新市民身份不能为空')
|
||||
}
|
||||
if(this.manageComCode == '45' && this.userInfo.isNewPeopleFlag != '0' && !this.userInfo.npType) {
|
||||
return this.$toast('投保人新市民类型不能为空')
|
||||
}
|
||||
//表单校验, 成功跳转
|
||||
if (this.userInfo.relationToInsured == 1) {
|
||||
Object.assign(this.insuredInfo, this.userInfo)
|
||||
@@ -1807,6 +1913,12 @@ export default {
|
||||
if (this.userInfo.relationToInsured == 2 && this.userInfo.sex == this.insuredInfo.sex) {
|
||||
return this.$toast('哦~配偶性别不能相同的哟~')
|
||||
}
|
||||
if (this.manageComCode == '45' && (this.insuredInfo.isNewPeopleFlag == '' || this.insuredInfo.isNewPeopleFlag == null || this.insuredInfo.isNewPeopleFlag == undefined)) {
|
||||
return this.$toast('被保人新市民身份不能为空')
|
||||
}
|
||||
if (this.manageComCode == '45' && this.insuredInfo.isNewPeopleFlag != '0' && !this.insuredInfo.npType) {
|
||||
return this.$toast('被保人新市民类型不能为空')
|
||||
}
|
||||
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
console.log('计算年龄', age)
|
||||
@@ -1891,7 +2003,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//如果证件类型是户口本
|
||||
}else if(this.userInfo.idType == '2'){
|
||||
}
|
||||
else if(this.userInfo.idType == '2'){
|
||||
if (this.userInfo.nativeplace != '1') {
|
||||
return this.$toast('证件类型”为“身份证,国籍必须为中国哦')
|
||||
}
|
||||
@@ -2019,7 +2132,8 @@ export default {
|
||||
return this.$toast('证件有效期不正常,26周岁至45周岁公民身份证有效期应小于等于20年')
|
||||
}
|
||||
}
|
||||
}else if (this.insuredInfo.idType == '2'){
|
||||
}
|
||||
else if (this.insuredInfo.idType == '2'){
|
||||
if (this.insuredInfo.nativeplace != '1') {
|
||||
return this.$toast('证件类型”为“身份证,国籍必须为中国哦')
|
||||
}
|
||||
@@ -2069,7 +2183,8 @@ export default {
|
||||
// else if (this.insuredInfo.idNo.length != 18) {
|
||||
// return this.$toast('户口本的证件号码长度应等于18位')
|
||||
// }
|
||||
}else if (this.insuredInfo.idType == '3'){
|
||||
}
|
||||
else if (this.insuredInfo.idType == '3'){
|
||||
if (insuredAge >= 2) {
|
||||
return this.$toast('客户年龄在2周岁及以上,不能使用出生证作为有效证件')
|
||||
}
|
||||
@@ -2092,7 +2207,8 @@ export default {
|
||||
if (insuredAge < 0) {
|
||||
return this.$toast('被保险人的年龄需要大于28天')
|
||||
}
|
||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0041') {
|
||||
}
|
||||
else if (this.itemProductDTOS.productCode === 'GFRS_M0041') {
|
||||
console.log(this.proSchemeCode)
|
||||
if (this.proSchemeCode == '00000227') {
|
||||
if (insuredAge < 18) {
|
||||
@@ -2595,7 +2711,9 @@ export default {
|
||||
homeAddress: '', //详细地址
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
effectiveDateType: false //是否长期
|
||||
effectiveDateType: false, //是否长期
|
||||
isNewPeopleFlag: '', //新市民身份
|
||||
npType: '', //新市民类型
|
||||
}
|
||||
// 设置选中‘同投保人’的勾选项
|
||||
this.withRootUser.value = true
|
||||
|
||||
@@ -110,7 +110,8 @@
|
||||
item.productCode == 'GFRS_M0051' ||
|
||||
item.productCode == 'GFRS_M0054' ||
|
||||
item.productCode == 'GFRS_M0073' ||
|
||||
item.productCode == 'GFRS_M0057'
|
||||
item.productCode == 'GFRS_M0057' ||
|
||||
item.productCode == 'GFRS_M0086'
|
||||
)
|
||||
"
|
||||
class="fs14 w100"
|
||||
@@ -128,7 +129,8 @@
|
||||
item.productCode == 'GFRS_M0051' ||
|
||||
item.productCode == 'GFRS_M0054' ||
|
||||
item.productCode == 'GFRS_M0073' ||
|
||||
item.productCode == 'GFRS_M0057'
|
||||
item.productCode == 'GFRS_M0057' ||
|
||||
item.productCode == 'GFRS_M0086'
|
||||
)
|
||||
"
|
||||
v-model="dutyItem.defaultDutyAmt"
|
||||
@@ -136,7 +138,7 @@
|
||||
:max="dutyItem.maxDutyAmt"
|
||||
:show-plus="false"
|
||||
:show-minus="false"
|
||||
:disabled="item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')"
|
||||
:disabled="item.productCode == 'GFRS_M0088' || item.productCode == 'GFRS_A0012' || (item.productCode == 'GFRS_M0077' && !dutyItem.necess) || (item.productCode == 'GFRS_M0077' && dutyItem.duty == '311507')"
|
||||
class="ml10 mr10"
|
||||
@focus="focusStep"
|
||||
@blur="blurStep(dutyItem, index,item.productCode)"
|
||||
@@ -798,7 +800,6 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
console.log(item,'123231321321')
|
||||
let payEndYearVal
|
||||
//初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
|
||||
item.calFactorLst.map((i) => {
|
||||
@@ -871,7 +872,6 @@
|
||||
//初始化数据试算
|
||||
this.getTrial()
|
||||
})
|
||||
console.log(this.trialList, '')
|
||||
// 判断是否 含有 后台配置js验证函数
|
||||
if (localStorage.ruleExpression) {
|
||||
let ruleExpression = JSON.parse(localStorage.ruleExpression)
|
||||
@@ -918,7 +918,7 @@
|
||||
let detailPromise = this.isFrom === 'proposal' ? localStorage.proposalMedical : await getOrderDetail({ orderNo })
|
||||
this.chooseProducts.map((item) => {
|
||||
if (
|
||||
!(item.mainRiskCode === 'GFRS_M0016' ||item.mainRiskCode === 'GFRS_M0070' || item.productCode === 'GFRS_A0004' || item.productCode === 'GFRS_A0008' || item.productCode === 'GFRS_A0005')
|
||||
!(item.mainRiskCode === 'GFRS_M0016' ||item.mainRiskCode === 'GFRS_M0070' || item.productCode === 'GFRS_A0004' || item.productCode === 'GFRS_A0008' || item.productCode === 'GFRS_A0005' || item.productCode === 'GFRS_M0088')
|
||||
) {
|
||||
//其他产品删掉两个字段
|
||||
let calFactorLst = item.calFactorLst
|
||||
@@ -1053,6 +1053,34 @@
|
||||
// let productCode = this.chooseProducts[this.productIndex].productCode
|
||||
let currentFactor = this.chooseProducts[this.productIndex].calFactorLst
|
||||
let currentEle = currentFactor[this.calFactorIndex]
|
||||
console.log(currentEle.code)
|
||||
if(currentEle.code == 'insuYear'){
|
||||
if(value.value == '70') {
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
if (item.mainRiskCode == 'GFRS_M0086') {
|
||||
item.calFactorLst.forEach((i) => {
|
||||
if (i.code == "inputAmt") {
|
||||
i.minPrem = 20
|
||||
i.displayAmount = 20
|
||||
i.defaultValue = 20
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
} else if(value.value == '106') {
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
if (item.mainRiskCode == 'GFRS_M0086') {
|
||||
item.calFactorLst.forEach((i) => {
|
||||
if (i.code == "inputAmt") {
|
||||
i.minPrem = 10
|
||||
i.displayAmount = 10
|
||||
i.defaultValue = 10
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
// let sex = this.saleInsuredPersonInfo.sex //0男 1女
|
||||
|
||||
// //特殊设置:如果需要填写的保费/保额校验规则跟缴费期间挂钩,当改变缴费期间时,将输入框的值恢复默认值1
|
||||
@@ -1215,6 +1243,30 @@
|
||||
})
|
||||
}
|
||||
}
|
||||
if (validateRiskCode === 'GFRS_M0088'){
|
||||
if(dutyItem.duty == '411200' || dutyItem.duty == '411206' || dutyItem.duty == '411207'){
|
||||
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules.forEach((i) => {
|
||||
if(i.duty == '411200' || i.duty == '411206' || i.duty == '411207'){
|
||||
i.necess = dutyItem.necess
|
||||
} else {
|
||||
if(dutyItem.necess){
|
||||
i.necess = !dutyItem.necess
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
if(dutyItem.duty == '411200_GBC' || dutyItem.duty == '411206_GBC' || dutyItem.duty == '411207_GBC'){
|
||||
this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules.forEach((i) => {
|
||||
if(i.duty == '411200_GBC' || i.duty == '411206_GBC' || i.duty == '411207_GBC'){
|
||||
i.necess = dutyItem.necess
|
||||
} else {
|
||||
if(dutyItem.necess){
|
||||
i.necess = !dutyItem.necess
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
this.valiAndSend(dutyItem, productIndex)
|
||||
},
|
||||
valiAndSend(dutyItem, productIndex) {
|
||||
@@ -1289,7 +1341,6 @@
|
||||
const rule = dutdutyGFRS_M0070RulesyRules[duty]
|
||||
const mutiple = rule.mutiple || DUTY_DEFAULT_MIN
|
||||
const min = rule.min || DUTY_DEFAULT_MIN
|
||||
console.log(rule.min,'rule.min')
|
||||
if (!value || value < min || value % mutiple !== 0) {
|
||||
this.$toast(rule.msg)
|
||||
this.nextStepFlag = true
|
||||
@@ -1565,7 +1616,6 @@
|
||||
},
|
||||
trialBeforeRule() {
|
||||
let that = this
|
||||
console.log('走试算前规则')
|
||||
// 针对于国富人寿附加两全保险附加险(GFRS_A0011),缴费期间期间要等于主险的缴费期间
|
||||
let mainRiskInfo = this.getMainRiskInfo()
|
||||
this.chooseProducts.forEach((item) => {
|
||||
@@ -2492,10 +2542,6 @@
|
||||
}
|
||||
else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
|
||||
|| productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
|
||||
console.log('defalutValue==', defalutValue)
|
||||
console.log("currentEle['amt']==", currentEle['amt'])
|
||||
console.log('riskFactor.rules', riskFactor.rules)
|
||||
console.log('this.saleInsuredPersonInfo.insuredAge ', this.saleInsuredPersonInfo.insuredAge)
|
||||
//被保险人年龄如果在50-65区间
|
||||
if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
|
||||
//使用rules规则里的第二条控制保额份数
|
||||
@@ -2769,9 +2815,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// let currentEle = this.chooseProducts[this.productIndex].calFactorLst[this.calFactorIndex]
|
||||
// defalutValue = value
|
||||
console.log('进来几次')
|
||||
this.mult = Math.ceil(Number(defalutValue) / Number(riskFactor.defaultValue))
|
||||
},
|
||||
//下一步
|
||||
@@ -2875,7 +2918,8 @@
|
||||
this.trialList[index].productCode == 'GFRS_M0054' ||
|
||||
this.trialList[index].productCode == 'GFRS_M0073' ||
|
||||
this.trialList[index].productCode == 'GFRS_M0077' ||
|
||||
this.trialList[index].productCode == 'GFRS_M0057'
|
||||
this.trialList[index].productCode == 'GFRS_M0057' ||
|
||||
this.trialList[index].productCode == 'GFRS_M0086'
|
||||
) {
|
||||
riskItem['dutyLst'] = this.trialInfos[index].duty
|
||||
}
|
||||
@@ -2925,8 +2969,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// console.log(riskItem)
|
||||
riskItem = Object.assign(riskItem, this.trialInfos[index])
|
||||
riskDTOLst.push(riskItem)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
const res =await getServiceConfig({})
|
||||
if (res.sections) {
|
||||
res.sections.forEach(e=>{
|
||||
if(e.name.indexOf('一月专区')!=-1){
|
||||
if(e.name.indexOf('旺季专区')!=-1){
|
||||
this.menuList =e.items;
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1162,6 +1162,9 @@ export default {
|
||||
break
|
||||
}
|
||||
}
|
||||
if(!path) {
|
||||
path = 'signDocuments'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1179,6 +1182,9 @@ export default {
|
||||
break
|
||||
}
|
||||
}
|
||||
if(!path) {
|
||||
path = 'signDocuments'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1193,9 +1199,12 @@ export default {
|
||||
break
|
||||
}
|
||||
}
|
||||
if(!path) {
|
||||
path = 'signDocuments'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
console.log('12321321'+path)
|
||||
if (path){
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
@@ -1866,12 +1875,12 @@ export default {
|
||||
line-height: 30px;
|
||||
}
|
||||
/deep/ .fs16{
|
||||
font-size: 16px;
|
||||
font-size: 16px!important;
|
||||
}
|
||||
/deep/ .fs20{
|
||||
font-size: 20px;
|
||||
font-size: 16px;
|
||||
.van-cell{
|
||||
font-size: 20px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
data-vv-name="单选"
|
||||
v-for="(items, indexs) in item.options" :key="indexs"
|
||||
>
|
||||
<van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}} ({{items.score}}分)</van-radio>
|
||||
<!-- <van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}} ({{items.score}}分)</van-radio>-->
|
||||
<van-radio :name="items.option" :label="items.option" class="mr150 ml70">{{items.item}}</van-radio>
|
||||
</van-radio-group>
|
||||
<div style=" font-size:13px" v-if="item.remarks" v-html="item.remarks">
|
||||
</div>
|
||||
@@ -43,11 +44,23 @@
|
||||
<div class="bottom-btn bg-white">
|
||||
<van-button type="danger" size="large" @click="next" :disabled="isDisabled" v-no-more-click="1000">提交问卷</van-button>
|
||||
</div>
|
||||
<van-dialog v-model="thisdialogshow" :showConfirmButton="false">
|
||||
<div slot="title">
|
||||
<p style="color: #E9332E;">提示</p>
|
||||
</div>
|
||||
<div style="padding: 20px 30px 20px;font-size: 14px;">
|
||||
<div style="line-height: 20px;">根据风险测评结果,您不适合投保万能型或分红型保险产品,建议您停止投保。</div>
|
||||
</div>
|
||||
<div style="text-align: center;display: flex;align-items: end;">
|
||||
<van-button type="danger" style="font-size: 12px;background: #fff;color: #e9332e;line-height: 15px;width: 50%;padding: 0px 2px;" @click="thisdialogfunc1">已知晓不适宜继续投保,但本人仍申请继续投保</van-button>
|
||||
<van-button type="danger" style="font-size: 14px;width: 50%;" @click="thisdialogfunc2">停止投保</van-button>
|
||||
</div>
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { Collapse, CollapseItem, RadioGroup, Radio, Field, CellGroup, Icon } from 'vant'
|
||||
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import { saveInformation, getOrderDetail, changeOrderStatus } from '@/api/ebiz/sale/sale'
|
||||
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
||||
export default {
|
||||
data() {
|
||||
@@ -56,6 +69,8 @@ export default {
|
||||
],
|
||||
isDisabled:true,
|
||||
salePageFlag: '6',
|
||||
thisdialogshow:false,
|
||||
productType:'',
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -72,6 +87,7 @@ created(){
|
||||
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(res => {
|
||||
if (res.result == 0) {
|
||||
this.question =JSON.parse( res.orderDTO.riskEvaluationDTO.quentionAnswer)
|
||||
this.productType = res.orderDTO.orderInfoDTO.productType
|
||||
this.isDisabledType()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
@@ -100,6 +116,38 @@ mounted(){
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
thisdialogfunc1(){
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
},
|
||||
thisdialogfunc2(){
|
||||
let params = {
|
||||
orderNO:this.$route.query.orderNo
|
||||
}
|
||||
changeOrderStatus(params).then(res=>{
|
||||
if(res.result == 0){
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/list',
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/list'
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'left_button_click') {
|
||||
return this.$dialog
|
||||
@@ -159,21 +207,42 @@ methods:{
|
||||
}
|
||||
saveInformation(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
let that = this
|
||||
localStorage.removeItem('changeCard')
|
||||
if (!this.$route.query.salePageFlag) {
|
||||
//不是从导航栏进入
|
||||
localStorage.salePageFlag = '7'
|
||||
}
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
if(this.productType == '1' || this.productType == '2') {
|
||||
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(res => {
|
||||
if (res.result == 0) {
|
||||
if(res.orderDTO.riskEvaluationDTO.totalScore >= 60 && res.orderDTO.riskEvaluationDTO.totalScore <= 85){
|
||||
this.thisdialogshow = true
|
||||
} else {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/answerSuccess?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/answerSuccess?orderNo=' + this.$route.query.orderNo
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
</van-button>
|
||||
</div>
|
||||
<div class='bg-white bottom-btn' v-if="current != '1'">
|
||||
<van-button style="width: 30%;font-size: 20px;" plain type='danger' size='large' v-no-more-click='1000' @click="prevStep">上一步
|
||||
<van-button style="width: 30%;font-size: 16px;" plain type='danger' size='large' v-no-more-click='1000' @click="prevStep">上一步
|
||||
</van-button>
|
||||
<van-button style="width: 70%;font-size: 20px;" type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>
|
||||
<van-button style="width: 70%;font-size: 16px;" type='danger' size='large' :disabled='isDisabledComplite' @click='goNext' v-no-more-click='1000'>
|
||||
我已阅读确认并理解,继续
|
||||
</van-button>
|
||||
</div>
|
||||
@@ -417,7 +417,7 @@
|
||||
color: red;
|
||||
}
|
||||
/deep/ .fs20{
|
||||
font-size: 20px;
|
||||
font-size: 16px;
|
||||
.van-button__text{
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
代理人:{{signName}}
|
||||
</span>
|
||||
</div>
|
||||
<div style="margin-top: 15px;font-weight: bold;line-height: 32px;font-size: 20px;" class="fs20">
|
||||
<div style="margin-top: 15px;font-weight: bold;line-height: 32px;font-size: 16px;" class="fs20">
|
||||
<span v-if="signVal == '3'">
|
||||
1.接下来您作为代理人将进行投保文件的签字,请在签字前确保您已仔细阅读投保文件并了解投保文件的内容和含义,确定投保单各项信息准确无误。签字完成并成功提交说明您正式向我司提交投保申请。
|
||||
</span>
|
||||
@@ -27,21 +27,21 @@
|
||||
</span>
|
||||
</div>
|
||||
<div style="border-bottom: 1px dashed #eee;padding-bottom: 15px;margin-top: 15px;">
|
||||
<p style="font-size: 20px;font-weight: bold;">2.您将为以下文件进行统一签名:</p>
|
||||
<p style="font-size: 16px;font-weight: bold;">2.您将为以下文件进行统一签名:</p>
|
||||
<div v-for="item in fileList" style="margin-top: 15px;display: flex;justify-content: space-between;">
|
||||
<span style="font-size: 20px;color: red;opacity: 0.7;width: 60%;display: inline-block;">{{item.name}}</span>
|
||||
<span style="font-size: 16px;color: red;opacity: 0.7;width: 60%;display: inline-block;">{{item.name}}</span>
|
||||
<span v-if="signstatus == '1'" style="display: flex;align-items: center;display: inline-block;width: 40%;">
|
||||
<img :src="src" style="margin-left: 15px;width: 16px;"/>
|
||||
<span style="font-size: 20px;color: #03ceaf;margin-left: 10px;">签署完成</span>
|
||||
<span style="font-size: 16px;color: #03ceaf;margin-left: 10px;">签署完成</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 15px;display: flex;align-items: center;" class="fs20">
|
||||
<span v-if="signVal == '3'" style="font-size: 20px;font-weight: bold;">代理人签名:</span>
|
||||
<span v-if="signVal == '0' || signVal == '2'" style="font-size: 20px;font-weight: bold;">投保人签名:</span>
|
||||
<span v-if="signVal == '1' && insuredAge >= 18" style="font-size: 20px;font-weight: bold;">被保险人签名:</span>
|
||||
<span v-if="signVal == '1' && insuredAge < 18" style="font-size: 20px;font-weight: bold;">被保险人/监护人签名:</span>
|
||||
<van-button type="danger" size="small" round style="margin-left: 20px;height: 40px;font-size: 16px;" @click="gosign" class="fs20">
|
||||
<span v-if="signVal == '3'" style="font-size: 16px;font-weight: bold;">代理人签名:</span>
|
||||
<span v-if="signVal == '0' || signVal == '2'" style="font-size: 16px;font-weight: bold;">投保人签名:</span>
|
||||
<span v-if="signVal == '1' && insuredAge >= 18" style="font-size: 16px;font-weight: bold;">被保险人签名:</span>
|
||||
<span v-if="signVal == '1' && insuredAge < 18" style="font-size: 16px;font-weight: bold;">被保险人/监护人签名:</span>
|
||||
<van-button type="danger" size="small" round style="margin-left: 20px;height: 32px;font-size: 16px;" @click="gosign" class="fs20">
|
||||
{{signstatus ? '重新签名' : '签名'}}
|
||||
</van-button>
|
||||
</div>
|
||||
@@ -49,7 +49,7 @@
|
||||
<img v-if="signstatus" :src="signImgUrl" style="height: 34px;margin-left: 20px;width: auto;"/>
|
||||
</div>
|
||||
<div class='bg-white bottom-btn'>
|
||||
<van-button :disabled="nextDisabled" type='danger' size='normal' style="font-size: 20px;" block v-no-more-click='1000' @click="gonext">
|
||||
<van-button :disabled="nextDisabled" type='danger' size='normal' style="font-size: 16px;" block v-no-more-click='1000' @click="gonext">
|
||||
完成阅读并签署
|
||||
</van-button>
|
||||
</div>
|
||||
@@ -59,7 +59,7 @@
|
||||
<p style="color: #E9332E;">监护人姓名</p>
|
||||
</div>
|
||||
<div class="guardianContent" style="padding: 20px 30px 30px;font-size: 14px;">
|
||||
<van-field v-model="guardianName" label="" name="体重" placeholder="请输入"/>
|
||||
<van-field v-model="guardianName" label="" name="监护人姓名" placeholder="请输入"/>
|
||||
</div>
|
||||
<div style="text-align: center;margin-bottom: 30px;">
|
||||
<van-button round type="danger" size="small" style="padding:0px 35px;font-size: 14px;" @click="gosign">确定</van-button>
|
||||
@@ -276,9 +276,9 @@
|
||||
}
|
||||
}
|
||||
.fs20{
|
||||
font-size: 20px;
|
||||
font-size: 16px;
|
||||
.van-button__text{
|
||||
padding: 10px 20px;
|
||||
padding: 8px 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
const autoprefixer = require('autoprefixer')
|
||||
const pxtoviewport = require('postcss-px-to-viewport')
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
||||
@@ -41,5 +42,19 @@ module.exports = {
|
||||
},
|
||||
devServer: {
|
||||
port: 8082
|
||||
}
|
||||
},
|
||||
configureWebpack: {
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
output: {
|
||||
comments: false
|
||||
}
|
||||
},
|
||||
extractComments: false
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user