e02330f2 by joe

需求修复

1 parent e97859f2
......@@ -791,8 +791,9 @@ module.exports = {
},
auth: {
defaultTip: "您尚未驗證客戶資料,請填寫投保時提供的客戶資料",
customService: " 聯繫客服",
notMatch: "您填寫的信息與公司留存信息不一致,請核對,如有疑問可",
customService: "客戶服務熱線",
notMatch: "您填寫的資訊與我們記錄不同,請重新核對,如有疑問,請致電",
notMatch2: "",
}
},
pagination: {
......
......@@ -353,7 +353,7 @@ module.exports = {
e6: "您填写的证件号码有误",
e7: "您填写的信息有误,请核实后重新提交",
},
noPolicy: "对不起,您输入的数据与本公司的纪录不符,请重新输入。如需帮助可",
noPolicy: "您填写的信息与公司留存信息不一致,请核对,如有疑问可",
customService: "联系客服",
},
index: {
......@@ -814,8 +814,9 @@ module.exports = {
},
auth: {
defaultTip: "您尚未验证客户资料,请填写投保时提供的客户资料",
customService: "联系客服",
notMatch: "您填写的信息与公司留存信息不一致,请核对,如有疑问可",
customService: "客服热线",
notMatch: "您填写的信息与公司留存信息不一致,请核对,如有疑问可联系",
notMatch2: "",
}
},
pagination: {
......
......@@ -144,6 +144,8 @@ export default {
},
methods: {
initData() {
sessionStorage.setItem("clarmsRequestCid", this.cid);
let typeSelectedStr = sessionStorage.getItem("clarmTypeSelect");
sessionStorage.removeItem("clarmTypeSelect");
let clarmDataFormStr = sessionStorage.getItem("clarmDataForm");
......
......@@ -65,7 +65,20 @@ export default {
},
methods: {
initData() {
let dStr = sessionStorage.getItem("clarmsCheckForm");
sessionStorage.removeItem("clarmsCheckForm");
if (dStr) {
try {
let d = JSON.parse(dStr);
this.data = d;
} catch (e) {
}
}
},
cacheData() {
let d = JSON.stringify(this.data);
sessionStorage.setItem("clarmsCheckForm", d);
},
checkDate(data) {
this.birthdayIllegal = data.disable;
......@@ -81,6 +94,7 @@ export default {
});
},
toContactUs() {
this.cacheData();
this.$router.push({
path: "/custom/service?q=m1"
});
......@@ -102,7 +116,6 @@ export default {
httpPost({ url: api.clarmsCustomerList, data: { cid: cid } }).then(res => {
this.loading = false;
if (res && res.insuredInfoList && res.insuredInfoList.length > 0) {
sessionStorage.setItem("clarmsRequestCid", cid);
this.$emit("insuredInfoList", { cid: cid, list: res.insuredInfoList });
} else {
this.showTips = true;
......
......@@ -16,6 +16,7 @@ import {
export default {
data() {
return {
loading: false,
showPolicy: true,
key: 'value',
hadLoadPolicy: false,
......@@ -69,11 +70,11 @@ export default {
sid: true
}).then(res => {
this.hadLoadPolicy = true;
if (!res || res.length == 0) {} else {
if (!res || res.length == 0) { } else {
this.$store.commit("CACHE_POLICY_LIST", res);
this.checkIfShowPolicy();
}
}).catch(e => {});
}).catch(e => { });
} else {
this.checkIfShowPolicy();
}
......@@ -85,7 +86,7 @@ export default {
for (let index = 0; index < this.policyList.length; index++) {
let policy = this.policyList[index];
if (policy.checkFlag == "Y") {
// if (policy.checkFlag == "N") { // 体验弹窗
// if (policy.checkFlag == "N") { // 体验弹窗
continue;
}
if (this.ignorePolicyCodes.indexOf(policy.policyCode) >= 0) {
......@@ -148,11 +149,14 @@ export default {
// 确认保单按钮
handleConfirmPolicy() {
if (this.policyDetail) {
if (this.loading) {
return;
}
this.loading = true;
let policyCode = this.policyDetail.policyCode;
this.ignorePolicyCodes.push(policyCode);
sessionStorage.setItem("ignorePolicyCodes", JSON.stringify(this.ignorePolicyCodes));
this.showSuccessTip = true;
this.checkIfShowPolicy();
// this.checkIfShowPolicy();
let params = {
policyCode: policyCode
......@@ -162,8 +166,14 @@ export default {
url: api.policyReceipt,
sid: true,
data: params
}).then(res => {}).catch(e => {
}).then(res => {
this.loading = false;
this.showSuccessTip = true;
this.checkIfShowPolicy();
}).catch(e => {
this.loading = false;
this.showDownloadError = true;
this.checkIfShowPolicy();
});
}
......
......@@ -94,7 +94,10 @@
<span>{{$t('vhis.ymd3')}}{{$t('vhis.tip3')}}</span>
</div>
<div class="btn-wrap">
<div class="submit-btn" @click="handleConfirmPolicy">{{$t('vhis.btn2')}}</div>
<div class="submit-btn flex-center " @click="handleConfirmPolicy">
<van-loading v-if="loading" />
{{$t('vhis.btn2')}}
</div>
<div class="submit-btn " @click="handleIgnorePolicy">{{$t('vhis.btn3')}}</div>
</div>
<div class="flex-center contact">
......
......@@ -107,12 +107,17 @@
</div>
<div class="flex-center validator authTip" v-if="errorModel == 2">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>{{$t('customService.auth.notMatch')}}&nbsp;<span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
<div>{{$t('customService.auth.notMatch')}}&nbsp;
<span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
&nbsp;{{$t('customService.auth.notMatch2')}}
</div>
</div>
<div class="flex-center validator authTip" v-if="errorModel == 3">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>{{$t('infomationImprove.noPolicy')}}&nbsp;<span class="contact pointer" @click="toContactUs">{{$t('infomationImprove.customService')}}</span>
<div>
{{$t('customService.auth.notMatch')}}&nbsp;
<span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
&nbsp;{{$t('customService.auth.notMatch2')}}
</div>
</div>
......
......@@ -8,6 +8,7 @@ import { checkVerifyCode } from '@utils/utils.js';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue';
import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue';
import { passwordEncrypt } from '@/utils/encrypt.js';
import Vue from 'vue';
import { Loading } from 'vant';
......@@ -27,6 +28,7 @@ export default {
remain: 0, // 剩余时间
tip: "" // 显示的文字
},
showError:false,
modalSimpleVisiable: false,
modalVisiable: false,
targetPath: "",
......@@ -291,6 +293,7 @@ export default {
this.step4.error2 = "";
this.step4.success = false;
this.type = 1;
this.showError = true;
return false;
default:
return true;
......@@ -335,6 +338,7 @@ export default {
created() { },
components: {
modalComp,
modalSimpleComp
modalSimpleComp,
Modal2Comp
}
}
......
......@@ -3,6 +3,7 @@
<div>
<modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp>
<modal-simple-comp :visible="modalSimpleVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="closeModal" :overlay="closeModal" :close="closeModal"></modal-simple-comp>
<modal2-comp :visible="showError" :close="()=>{showError = false}" :content="$t('glbalTips.sessionLost')" ></modal2-comp>
<div class="ebg"></div>
<div class="content">
<div class="top-space"></div>
......