银保代理人电子化合同签署关于证件号码以及姓名存储在vuex中

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-09 10:50:50 +08:00
parent dfa1afefd1
commit f96cc01b74
3 changed files with 7 additions and 24 deletions

View File

@@ -30,9 +30,6 @@ export default new Vuex.Store({
answerType: false,//风险测评tab是否显示 answerType: false,//风险测评tab是否显示
YBidNo: '', //银保代理人电子化合同签署证件号码 YBidNo: '', //银保代理人电子化合同签署证件号码
YBname: '', //银保代理人电子化合同签署姓名 YBname: '', //银保代理人电子化合同签署姓名
YBuuid: '', //银保代理人电子化合同签署代理人uuid
uploadImgType: '',
uploadImgOrderNo: '',
}, },
mutations: { mutations: {
setOrderDetail (state, data) { setOrderDetail (state, data) {
@@ -80,11 +77,8 @@ export default new Vuex.Store({
state.pcList = val state.pcList = val
}, },
//更新 风险测评是否显示状态 //更新 风险测评是否显示状态
updateUploadImgType (state, val) { updateAnswerType (state, val) {
state.uploadImgType = val state.answerType = val
},
updateUploadImgOrderNo (state, val) {
state.uploadImgOrderNo = val
}, },
//更新 银保代理人电子化合同签署证件号码 //更新 银保代理人电子化合同签署证件号码
updateYBidNo (state, val) { updateYBidNo (state, val) {
@@ -94,10 +88,6 @@ export default new Vuex.Store({
updateYBname (state, val) { updateYBname (state, val) {
state.YBname = val state.YBname = val
}, },
//更新 银保代理人电子化合同签署代理人uuid
updateYBuuid (state, val) {
state.YBuuid = val
},
}, },
getters: { getters: {
getPageFlag (state) { getPageFlag (state) {
@@ -124,21 +114,12 @@ export default new Vuex.Store({
getAnswerType (state) { getAnswerType (state) {
return state.answerType return state.answerType
}, },
getUploadImgType (state) {
return state.uploadImgType
},
getUploadImgOrderNo (state) {
return state.uploadImgOrderNo
},
getYBidNo (state) { getYBidNo (state) {
return state.YBidNo return state.YBidNo
}, },
getYBname (state) { getYBname (state) {
return state.YBname return state.YBname
}, },
getYBuuid (state) {
return state.YBuuid
},
} }
}) })

View File

@@ -137,6 +137,8 @@ export default {
if (res.result === '0') { if (res.result === '0') {
this.code = '' this.code = ''
this.isCaptchaModalShow = false this.isCaptchaModalShow = false
this.$store.commit('updateYBidNo', this.idNo)
this.$store.commit('updateYBname', this.name)
this.$router.push({ path: '/YB_agentSign/step2',query:{uuid:this.uuid} }) this.$router.push({ path: '/YB_agentSign/step2',query:{uuid:this.uuid} })
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)

View File

@@ -98,9 +98,9 @@
'signInfo', 'signInfo',
JSON.stringify({ JSON.stringify({
originStatus: originStatus, originStatus: originStatus,
idNo: this.saleInsuredInfo.idNo, idNo: this.$store.getters.getYBidNo,
name: this.saleInsuredInfo.name, name: this.$store.getters.getYBname,
type: this.saleInsuredInfo.idType, type: '1',
keyword: keyword, keyword: keyword,
status: status, status: status,
offset: offset, offset: offset,