Commit 48c89560 authored by 郭志伟's avatar 郭志伟

fix: 字段纠正

parent a2e76c80
...@@ -291,16 +291,13 @@ ...@@ -291,16 +291,13 @@
</template> </template>
</cr-field> </cr-field>
<cr-field <cr-field
v-model="formData.productItem.paymentPeriod" v-model="formData.productItem.payPeriod"
name="productItem_paymentPeriod" name="productItem_paymentPeriod"
label="交费期间" label="交费期间"
:rules="[{ required: true, message: '请选择交费期间' }]" :rules="[{ required: true, message: '请选择交费期间' }]"
> >
<template #input> <template #input>
<cr-radio-btn <cr-radio-btn v-model="formData.productItem.payPeriod" :radio-data="benefitOptions" />
v-model="formData.productItem.paymentPeriod"
:radio-data="benefitOptions"
/>
</template> </template>
</cr-field> </cr-field>
<cr-field :value="formData.effectiveDate" name="effectiveDate" readonly label="生效日期" /> <cr-field :value="formData.effectiveDate" name="effectiveDate" readonly label="生效日期" />
...@@ -572,17 +569,11 @@ export default { ...@@ -572,17 +569,11 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
getParamFromSession() { getParamFromSession() {
const { const { amountInsured, policyPeriod, payPeriod, payType, productNo } = this.policyFormData;
amountInsured,
policyPeriod,
payPeriod: paymentPeriod,
payType,
productNo
} = this.policyFormData;
this.formData.productNo = productNo; this.formData.productNo = productNo;
this.formData.productItem = { this.formData.productItem = {
...this.formData.productItem, ...this.formData.productItem,
...{ amountInsured, policyPeriod, paymentPeriod, payType } ...{ amountInsured, policyPeriod, payPeriod, payType }
}; };
const nextDate = Date.parse(new Date()) + 86400000; const nextDate = Date.parse(new Date()) + 86400000;
this.formData.effectiveDate = parseTime(nextDate, "{y}-{m}-{d} 00:00:00"); this.formData.effectiveDate = parseTime(nextDate, "{y}-{m}-{d} 00:00:00");
...@@ -618,12 +609,7 @@ export default { ...@@ -618,12 +609,7 @@ export default {
}, },
async calFee() { async calFee() {
let { price } = this.headerInfo; let { price } = this.headerInfo;
const { const { amountInsured, policyPeriod, payPeriod, payType } = this.formData.productItem;
amountInsured,
policyPeriod,
paymentPeriod: payPeriod,
payType
} = this.formData.productItem;
let idNo = ""; let idNo = "";
let userInfoSecId = undefined; let userInfoSecId = undefined;
const { socialSecurity } = this.formData.insuredUserInfo; const { socialSecurity } = this.formData.insuredUserInfo;
......
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