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

fix: 定寿险数据调整

parent 55650228
......@@ -214,7 +214,8 @@ export default {
"policyFormData",
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() {
this.goodId = this.$route.query.id;
......
......@@ -524,7 +524,8 @@ export default {
},
relationChange(relation = this.formData.insuredUserInfo.relation) {
this.formData.insuredUserInfo = {
relation
relation,
longTerm: "1"
};
this.familyList.forEach(item => {
const { relation, nameMask: name, idNoMask: idNo, userInfoSecId } = item;
......@@ -552,7 +553,17 @@ export default {
}
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();
},
......
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