Commit 2367455e authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/policy_fix' into 'master'

fix: 非本人longTerm字段异常修复

See merge request !49
parents ef3b929a cc024d94
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<cr-form <cr-form
class="login-form" class="login-form"
ref="loginForm" ref="loginForm"
show-error
validate-trigger="onBlur" validate-trigger="onBlur"
@submit="login" @submit="login"
@failed="onFormFailed" @failed="onFormFailed"
......
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
<span>{{ pickerValShow || placeholder }}</span> <span>{{ pickerValShow || placeholder }}</span>
<svg-icon icon-class="triangle-right" slot="button" /> <svg-icon icon-class="triangle-right" slot="button" />
</div> </div>
<cr-popup v-model="show" position="bottom" get-container="body"> <cr-popup v-model="show" position="bottom" class="aaaa">
<cr-date-picker <cr-date-picker
ref="datepicker" ref="datepicker"
:before="before"
:later="later"
@confirm="onConfirm" @confirm="onConfirm"
@cancel="onCancel" @cancel="onCancel"
:init-value="initVal" :init-value="initVal"
...@@ -22,10 +24,27 @@ ...@@ -22,10 +24,27 @@
<script> <script>
import popupPickerMixin from "../mixins/popupPicker.mixin.js"; import popupPickerMixin from "../mixins/popupPicker.mixin.js";
import { parseTime } from "@/service/utils"; import { parseTime } from "@/service/utils";
const CURRENT_TIME = new Date();
const CURRENT_YEAR = CURRENT_TIME.getFullYear();
// const START_YEAR = 1949;
const END_YEAR = CURRENT_YEAR;
export default { export default {
name: "PopupDatePicker", name: "PopupDatePicker",
mixins: [popupPickerMixin], mixins: [popupPickerMixin],
props: {
before: {
type: Number,
default() {
return 100;
}
},
later: {
type: Number,
default() {
return END_YEAR - CURRENT_YEAR;
}
}
},
data() { data() {
return { return {
refName: "datepicker", refName: "datepicker",
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
font-size: @font-size-18; font-size: @font-size-18;
top: 16px; top: 16px;
right: 14px; right: 14px;
z-index: 201; z-index: 99;
} }
&-head { &-head {
position: absolute; position: absolute;
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
" "
v-show="currentStep === 1" v-show="currentStep === 1"
item-height="35" item-height="35"
:later="endYear"
:show-toolbar="false" :show-toolbar="false"
/> />
<cr-radio-btn <cr-radio-btn
...@@ -156,6 +157,12 @@ import Card from "@/components/Card"; ...@@ -156,6 +157,12 @@ import Card from "@/components/Card";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import areaList from "@qg/cherry-ui/src/area/demo/china"; import areaList from "@qg/cherry-ui/src/area/demo/china";
import { subCulQus } from "@/api/consultant"; import { subCulQus } from "@/api/consultant";
const CURRENT_TIME = new Date();
const CURRENT_YEAR = CURRENT_TIME.getFullYear();
const START_YEAR = 1949;
const END_YEAR = CURRENT_YEAR;
export default { export default {
name: "ConsultantQuestion", name: "ConsultantQuestion",
components: { components: {
...@@ -177,6 +184,8 @@ export default { ...@@ -177,6 +184,8 @@ export default {
gender: "", gender: "",
relation: "" relation: ""
}, },
startYear: CURRENT_YEAR - START_YEAR,
endYear: END_YEAR - CURRENT_YEAR,
currentStep: 0, currentStep: 0,
showSubState: false, showSubState: false,
stepTips: [ stepTips: [
......
...@@ -71,11 +71,6 @@ ...@@ -71,11 +71,6 @@
</div> </div>
<detail-footer :company-info="companyInfo" /> <detail-footer :company-info="companyInfo" />
<copyright /> <copyright />
<good-action
:content="goodActionInfo"
:class="{ 'cal-fee': currentPupopIndex === 6 }"
v-show="goodActionShow"
/>
<good-action :content="goodActionInfo" :class="{ 'cal-fee': currentPupopIndex === 6 }" /> <good-action :content="goodActionInfo" :class="{ 'cal-fee': currentPupopIndex === 6 }" />
<popup-with-iframe <popup-with-iframe
v-model="popupShow" v-model="popupShow"
......
...@@ -8,7 +8,13 @@ ...@@ -8,7 +8,13 @@
:rules="[{ required: true, message: 'required' }]" :rules="[{ required: true, message: 'required' }]"
> >
<template #input> <template #input>
<popup-date-picker v-model="formData.birth" placeholder="请选择被保人出生日期" /> <popup-date-picker
:before="60"
:later="0"
v-model="formData.birth"
class="cal-fee-date"
placeholder="请选择被保人出生日期"
/>
</template> </template>
</cr-field> </cr-field>
<cr-field <cr-field
......
...@@ -551,6 +551,7 @@ export default { ...@@ -551,6 +551,7 @@ export default {
const { socialSecurity, longTerm, relation } = this.subFromData.insuredUserInfo; const { socialSecurity, longTerm, relation } = this.subFromData.insuredUserInfo;
this.subFromData.insuredUserInfo.socialSecurity = socialSecurity === "1" ? true : false; this.subFromData.insuredUserInfo.socialSecurity = socialSecurity === "1" ? true : false;
this.subFromData.insuredUserInfo.longTerm = longTerm === "2" ? true : false; this.subFromData.insuredUserInfo.longTerm = longTerm === "2" ? true : false;
this.subFromData.holderUserInfo.longTerm = longTerm === "2" ? true : false;
if (relation === "1") { if (relation === "1") {
this.subFromData.holderUserInfo = { this.subFromData.holderUserInfo = {
...this.subFromData.holderUserInfo, ...this.subFromData.holderUserInfo,
......
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