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

Merge branch 'fix/policy_fix' into 'master'

fix: 试算调整

See merge request !60
parents a8333ba8 4c627686
...@@ -309,7 +309,7 @@ export default { ...@@ -309,7 +309,7 @@ export default {
this.$notify({ type: "warning", message: errors[0].message }); this.$notify({ type: "warning", message: errors[0].message });
}, },
nextStep() { nextStep() {
this.$router.push("/goods/inform"); this.$router.push({ path: "/goods/inform" });
}, },
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
......
...@@ -235,8 +235,12 @@ export default { ...@@ -235,8 +235,12 @@ export default {
"policyFormData", "policyFormData",
JSON.stringify(Object.assign(this.formData, { productNo: this.goodId })) JSON.stringify(Object.assign(this.formData, { productNo: this.goodId }))
); );
const { queryId } = this.$route; const { userInfoSecId } = this.$route.query;
this.$router.push({ path: "/policy/add", query: { queryId } }); this.$router.push({
path: "/goods/inform",
query: { url: this.popupArray[1].url, userInfoSecId, noOrder: true }
});
// this.$router.push({ path: "/policy/add", query: { queryId } });
}, },
async getDetail() { async getDetail() {
this.goodId = this.$route.query.id; this.goodId = this.$route.query.id;
......
...@@ -286,12 +286,21 @@ export default { ...@@ -286,12 +286,21 @@ export default {
userInfoSecId, userInfoSecId,
socialSecurity: socialSecurity:
socialSecurity === "" || typeof socialSecurity === "undefined" socialSecurity === "" || typeof socialSecurity === "undefined"
? this[this.autoSaveKey + "Cache"].socialSecurity || "" ? ""
: socialSecurity : socialSecurity
? "1" ? "1"
: "0" : "0"
} }
}; };
if (!this.formData.socialSecurity) {
try {
this.formData.insuredUserInfo.socialSecurity = this[
this.autoSaveKey + "Cache"
].socialSecurity;
} catch (e) {
console.log("缓存中不存在");
}
}
}, },
async getFamilyList() { async getFamilyList() {
this.mongoToken = localStorage.get("mongoToken"); this.mongoToken = localStorage.get("mongoToken");
......
...@@ -53,11 +53,15 @@ export default { ...@@ -53,11 +53,15 @@ export default {
}, },
methods: { methods: {
conform() { conform() {
// this.$router.push(`/policy/detail/123`); if (this.$route.query.noOrder) {
const { userInfoSecId } = this.$route.query;
this.$router.push({ path: "/policy/add", query: { userInfoSecId } });
} else {
// this.generateFormData(); // this.generateFormData();
this.generateOrder(); this.generateOrder();
} }
} }
}
}; };
</script> </script>
<style lang="less" src="./index.less" scoped></style> <style lang="less" src="./index.less" scoped></style>
...@@ -715,8 +715,8 @@ export default { ...@@ -715,8 +715,8 @@ export default {
delete this.subFormData.insuredUserInfo; delete this.subFormData.insuredUserInfo;
} }
sessionStorage.setItem("policyFormData", JSON.stringify(this.subFormData)); sessionStorage.setItem("policyFormData", JSON.stringify(this.subFormData));
this.$router.push({ path: "/goods/inform", query: { url: popupArray[1].url } }); // this.$router.push({ path: "/goods/inform", query: { url: popupArray[1].url } });
// this.generateOrder(); this.generateOrder();
}, },
relationOptionChange(relation) { relationOptionChange(relation) {
relation && this.relationChange(relation, this.clearInsured); relation && this.relationChange(relation, this.clearInsured);
...@@ -778,7 +778,7 @@ export default { ...@@ -778,7 +778,7 @@ export default {
AUTO_SAVE_TARGET + "Cache" AUTO_SAVE_TARGET + "Cache"
].insuredUserInfo.socialSecurity; ].insuredUserInfo.socialSecurity;
} catch (e) { } catch (e) {
console.log(e); console.log("缓存中不存在");
} }
} }
if (relation) { if (relation) {
......
...@@ -111,9 +111,13 @@ export default { ...@@ -111,9 +111,13 @@ export default {
methods: { methods: {
go(path, params) { go(path, params) {
if (path === "/goods/detail" && params) { if (path === "/goods/detail" && params) {
let userInfoSecId = "";
if (this.familyList && this.familyList.length) {
userInfoSecId = this.familyList[this.activeIndex].userInfoSecId;
}
path = { path = {
path, path,
query: { id: params.id, type: params.itype } query: { id: params.id, type: params.itype, userInfoSecId }
}; };
} else if (path === "/policy/detail" && params.orderNo) { } else if (path === "/policy/detail" && params.orderNo) {
path = `${path}/${params.orderNo}`; path = `${path}/${params.orderNo}`;
......
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