Commit ca47f760 authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/policy_fix' into 'master'

Fix/policy fix

See merge request !46
parents 2ef2c1cf 6f3a39ec
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description: 华贵大麦2020定期寿险 * @Description: 华贵大麦2020定期寿险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-18 20:47:53 * @LastEditTime: 2020-08-18 22:42:18
*/ */
import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png";
...@@ -56,6 +56,17 @@ export default { ...@@ -56,6 +56,17 @@ export default {
{ title: "保障期限", value: "保10年/20年/30年" }, { title: "保障期限", value: "保10年/20年/30年" },
{ title: " ", value: "保至60岁/65岁/70岁" } { title: " ", value: "保至60岁/65岁/70岁" }
], ],
bankInfo: [
{title: "工商银行", value: "101"},
{title: "农业银行", value: "102"},
{title: "中国银行", value: "103"},
{title: "建设银行", value: "104"},
{title: "招商银行", value: "115"},
{title: "贵州银行", value: "105"},
{title: "兴业银行", value: "116"},
{title: "民生银行", value: "112"},
{title: "邮政储蓄", value: "128"}
],
planTipOptions: ["最高350万", "高风险职业可保", "免体检"], planTipOptions: ["最高350万", "高风险职业可保", "免体检"],
noticeCellInfo: [ noticeCellInfo: [
{ title: "投保年龄", value: `18~60周岁` }, { title: "投保年龄", value: `18~60周岁` },
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<cr-picker <cr-picker
ref="picker" ref="picker"
:columns="pickerData" :columns="pickerData"
value-key="title"
show-toolbar show-toolbar
@cancel="onCancel" @cancel="onCancel"
@confirm="onConfirm" @confirm="onConfirm"
...@@ -28,8 +29,8 @@ export default { ...@@ -28,8 +29,8 @@ export default {
mixins: [popupPickerMixin], mixins: [popupPickerMixin],
methods: { methods: {
handleResult(res) { handleResult(res) {
this.pickerValShow = res[0]; this.pickerValShow = res[0].title;
this.pickerVal = res[1]; this.pickerVal = res[0].value;
}, },
setDefaultVal() { setDefaultVal() {
setTimeout(() => { setTimeout(() => {
......
export default { export default {
basicHost: "http://yapi.quantgroups.com/mock/329/", // basicHost: "http://yapi.quantgroups.com/mock/329/",
// basicHost: "http://192.168.29.100:8964", basicHost: "http://192.168.29.211:8964/",
wxAppId: "wx514de17b23d53a20" wxAppId: "wx514de17b23d53a20"
}; };
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
if (idNo === oldNo) return; if (idNo === oldNo) return;
this.calTimer = setTimeout(() => { this.calTimer = setTimeout(() => {
this.calFee(); this.calFee();
}, 600); }, 1200);
} }
} }
}, },
......
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
if (idNo === oldNo) return; if (idNo === oldNo) return;
this.calTimer = setTimeout(() => { this.calTimer = setTimeout(() => {
this.calFee(); this.calFee();
}, 600); }, 1200);
} }
} }
}, },
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
if (read !== oldread) return; if (read !== oldread) return;
this.calTimer = setTimeout(() => { this.calTimer = setTimeout(() => {
this.calFee(); this.calFee();
}, 600); }, 1200);
} }
} }
}, },
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
} }
this.calTimer = setTimeout(() => { this.calTimer = setTimeout(() => {
this.calFee(); this.calFee();
}, 600); }, 1200);
} }
} }
}, },
......
...@@ -260,7 +260,12 @@ export default { ...@@ -260,7 +260,12 @@ export default {
name, name,
idNo, idNo,
userInfoSecId, userInfoSecId,
socialSecurity socialSecurity:
socialSecurity === "" || typeof socialSecurity === "undefined"
? ""
: socialSecurity
? "1"
: "0"
} }
}; };
}, },
......
...@@ -303,6 +303,37 @@ ...@@ -303,6 +303,37 @@
<cr-field :value="formData.effectiveDate" name="effectiveDate" readonly label="生效日期" /> <cr-field :value="formData.effectiveDate" name="effectiveDate" readonly label="生效日期" />
<cr-field value="法定" name="beneficiaryUser" disabled label="受益人" /> <cr-field value="法定" name="beneficiaryUser" disabled label="受益人" />
</cr-cell-group> </cr-cell-group>
<cr-cell-group title="续费银行账户">
<cr-field
v-model="formData.holderUserInfo.bankCardName"
name="insuredUserInfo_bankCardName"
label="持卡人"
placeholder="请输入持卡人姓名"
:rules="[{ required: true, message: '请输入持卡人姓名' }]"
/>
<cr-field
v-model="formData.holderUserInfo.bankCardCode"
name="insuredUserInfo_bankCardCode"
label="开户行"
:rules="[{ required: true, message: '请选择开户行' }]"
>
<template #input>
<popup-picker
v-model="formData.holderUserInfo.bankCardCode"
:picker-data="bankInfo"
placeholder="请选择开户行"
/>
</template>
</cr-field>
<cr-field
v-model="formData.holderUserInfo.bankCardNo"
name="insuredUserInfo_bankCardNo"
label="银行卡号"
type="digit"
placeholder="请输入银行卡号"
:rules="[{ required: true, message: '请输入银行卡号' }]"
/>
</cr-cell-group>
<good-action @leftClick="goInsureState = true" :content="goodActionInfo" /> <good-action @leftClick="goInsureState = true" :content="goodActionInfo" />
</cr-form> </cr-form>
<go-insure-dialog <go-insure-dialog
...@@ -343,6 +374,7 @@ ...@@ -343,6 +374,7 @@
import GoodAction from "@/components/GoodAction"; import GoodAction from "@/components/GoodAction";
import CrRadioBtn from "@/components/CrRadioBtn"; import CrRadioBtn from "@/components/CrRadioBtn";
import PopupAreaPicker from "@/components/PopupAreaPicker"; import PopupAreaPicker from "@/components/PopupAreaPicker";
import PopupPicker from "@/components/PopupPicker";
import PopupDatePicker from "@/components/PopupDatePicker"; import PopupDatePicker from "@/components/PopupDatePicker";
import PopupWithIframe from "@/components/PopupWithIframe"; import PopupWithIframe from "@/components/PopupWithIframe";
import PopupCascade from "@/components/PopupCascade"; import PopupCascade from "@/components/PopupCascade";
...@@ -369,7 +401,8 @@ const { ...@@ -369,7 +401,8 @@ const {
benefitOptions, benefitOptions,
insuredOptions, insuredOptions,
idCardInvaildOptions, idCardInvaildOptions,
socialSecOptions socialSecOptions,
bankInfo
} = Detail; } = Detail;
export default { export default {
name: "AddPolicy", name: "AddPolicy",
...@@ -381,6 +414,7 @@ export default { ...@@ -381,6 +414,7 @@ export default {
PopupAreaPicker, PopupAreaPicker,
PopupDatePicker, PopupDatePicker,
PopupWithIframe, PopupWithIframe,
PopupPicker,
PopupCascade, PopupCascade,
Stepper Stepper
}, },
...@@ -407,7 +441,8 @@ export default { ...@@ -407,7 +441,8 @@ export default {
productItem: { productItem: {
amountInsured: "500000" amountInsured: "500000"
}, },
payPeriod: "1" payPeriod: "1",
autoRenewPolicy: true
}, },
subFromData: {}, subFromData: {},
familyList: [], familyList: [],
...@@ -419,6 +454,7 @@ export default { ...@@ -419,6 +454,7 @@ export default {
paywayOptions, paywayOptions,
benefitOptions, benefitOptions,
insuredAmountOptions, insuredAmountOptions,
bankInfo,
selfInfoReadonly: false, selfInfoReadonly: false,
infoReadonly: false infoReadonly: false
}; };
...@@ -454,7 +490,7 @@ export default { ...@@ -454,7 +490,7 @@ export default {
} }
this.calTimer = setTimeout(() => { this.calTimer = setTimeout(() => {
this.calFee(); this.calFee();
}, 600); }, 1200);
} }
}, },
showAuthXyqb: { showAuthXyqb: {
...@@ -512,11 +548,16 @@ export default { ...@@ -512,11 +548,16 @@ export default {
}, },
nextStep() { nextStep() {
this.subFromData = JSON.parse(JSON.stringify(this.formData)); this.subFromData = JSON.parse(JSON.stringify(this.formData));
const { socialSecurity, longTerm } = this.subFromData.insuredUserInfo; const { socialSecurity, longTerm, relation } = this.subFromData.insuredUserInfo;
const { longTerm: holderLongTerm } = this.subFromData.holderUserInfo;
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 = holderLongTerm === "2" ? true : false; if (relation === "1") {
this.subFromData.holderUserInfo = {
...this.subFromData.holderUserInfo,
...this.subFromData.insuredUserInfo
};
delete this.subFromData.insuredUserInfo;
}
this.generateOrder(); this.generateOrder();
}, },
relationChange(relation = this.formData.insuredUserInfo.relation) { relationChange(relation = this.formData.insuredUserInfo.relation) {
......
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