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

fix: 定寿险数据调整

parent 55650228
...@@ -214,7 +214,8 @@ export default { ...@@ -214,7 +214,8 @@ export default {
"policyFormData", "policyFormData",
JSON.stringify(Object.assign(this.formData, { productNo: this.goodId })) JSON.stringify(Object.assign(this.formData, { productNo: this.goodId }))
); );
this.$router.push("/policy/add"); const { queryId } = this.$route;
this.$router.push({ path: "/policy/add", query: { queryId } });
}, },
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
......
...@@ -524,7 +524,8 @@ export default { ...@@ -524,7 +524,8 @@ export default {
}, },
relationChange(relation = this.formData.insuredUserInfo.relation) { relationChange(relation = this.formData.insuredUserInfo.relation) {
this.formData.insuredUserInfo = { this.formData.insuredUserInfo = {
relation relation,
longTerm: "1"
}; };
this.familyList.forEach(item => { this.familyList.forEach(item => {
const { relation, nameMask: name, idNoMask: idNo, userInfoSecId } = item; const { relation, nameMask: name, idNoMask: idNo, userInfoSecId } = item;
...@@ -552,7 +553,17 @@ export default { ...@@ -552,7 +553,17 @@ export default {
} }
this.formData.insuredUserInfo = { this.formData.insuredUserInfo = {
...this.formData.insuredUserInfo, ...this.formData.insuredUserInfo,
...{ name, idNo, userInfoSecId, socialSecurity: socialSecurity ? "1" : "0" } ...{
name,
idNo,
userInfoSecId,
socialSecurity:
typeof socialSecurity === undefined || socialSecurity === ""
? ""
: socialSecurity
? "1"
: "0"
}
}; };
this.$forceUpdate(); this.$forceUpdate();
}, },
......
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