From 4944dda4a935b9062e2e887e32548186f0039f4b Mon Sep 17 00:00:00 2001 From: mengxiaolong Date: Mon, 24 Aug 2020 09:11:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E6=95=B0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ebiz/question/ShortMessage.vue | 4 ++-- src/views/ebiz/questions/QuestionsDetail.vue | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/ebiz/question/ShortMessage.vue b/src/components/ebiz/question/ShortMessage.vue index ba8d92286..e45f61527 100644 --- a/src/components/ebiz/question/ShortMessage.vue +++ b/src/components/ebiz/question/ShortMessage.vue @@ -7,7 +7,7 @@
@@ -109,7 +109,7 @@ export default { this.timer = null this.$emit('update:sendTime', 0) } else { - this.$toast('验证失败, 请重新获取验证码') + this.$toast(res.resultMessage) } this.code = '' }, diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index afe97aee5..ed9237cab 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -362,6 +362,8 @@ export default { if (this.issueType === 'TB89') { if (!this.newContract.feedback.trim()) { return this.$toast('请填写具体回复信息') + } else if (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400) { + return this.$toast('请输入4-400个字符') } else { localStorage.setItem('problemReplay', this.newContract.feedback.trim()) } @@ -381,6 +383,9 @@ export default { return this.$toast('请选择开户银行') } // 银行卡号校验 + if (this.transfer.card.trim() === '') { + return this.$toast('请填写银行卡信息') + } let regx = /^(\d{16}|\d{18}|\d{19})$/ if (!regx.test(this.transfer.card)) { return this.$toast('银行卡号不符合规则') @@ -504,6 +509,8 @@ export default { submit() { // 校验回复内容 if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写具体回复信息') + if (this.issueType === 'TB89' && (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400)) + return this.$toast('请输入4-400个字符') // 校验补充资料 if (this.issueType === '828601') { if (!this.checkInsurantUpload()) return this.$toast('请上传被保人补充资料') @@ -522,6 +529,9 @@ export default { return this.$toast('请选择开户银行') } // 银行卡号校验 + if (this.transfer.card.trim() === '') { + return this.$toast('请填写银行卡信息') + } let regx = /^(\d{16}|\d{18}|\d{19})$/ if (!regx.test(this.transfer.card)) { return this.$toast('银行卡号不符合规则') From 04cbf1e9c2498de11642735263eeed0f23cb4428 Mon Sep 17 00:00:00 2001 From: mengxiaolong Date: Mon, 24 Aug 2020 15:14:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E5=B7=B2=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/questions/QuestionsDetail.vue | 46 +++++++++++++++----- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index ed9237cab..84389349a 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -481,7 +481,6 @@ export default { url: `${location.origin}/#/questions/detail/${this.problemDetail.issueId}/${this.problemDetail.issueType}?&token=${localStorage.token}&receiveType=${this.problemDetail.receiveType}&prtNo=${this.$route.query.prtNo}`, img: this.$assetsUrl + 'images/logo.png' } - console.log(JSON.stringify(shareObj)) if (data.trigger == 'right_button_click') { // eslint-disable-next-line no-undef EWebBridge.webCallAppInJs('bridge', { @@ -630,16 +629,41 @@ export default { prtNo: this.$route.query.prtNo, userType: Number(this.$route.query.receiveType) }) - // 包含投保人和被保人证件id和姓名 - this.problemInfo = rs.content - this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.problemInfo.pdfUrl}`) - this.problemDetail = this.problemInfo.list[0] - // 问题件接收人类型: 0投保人, 1被保人 - this.problemDetail.receiveType = this.$route.query.receiveType - // 被保人资料问题描述 - this.supplement.descriptionInsurant = this.problemDetail.content - // 投保人资料问题描述 - this.supplement.descriptionPolicyholder = this.problemDetail.issueContent + if (rs.result === '0') { + // 已处理问题件跳转至列表页 + if (rs.content && rs.content.status === '1') { + Dialog({ + message: '问题件已被处理', + confirmButtonColor: 'red', + beforeClose: (action, done) => { + done() + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + `/#/questions/list`, + forbidSwipeBack: '1' + }, + routerInfo: { + path: `/questions/list` + } + }) + } + }) + return + } + // 包含投保人和被保人证件id和姓名 + this.problemInfo = rs.content + this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.problemInfo.pdfUrl}`) + this.problemDetail = this.problemInfo.list[0] + // 问题件接收人类型: 0投保人, 1被保人 + this.problemDetail.receiveType = this.$route.query.receiveType + // 被保人资料问题描述 + this.supplement.descriptionInsurant = this.problemDetail.content + // 投保人资料问题描述 + this.supplement.descriptionPolicyholder = this.problemDetail.issueContent + } else { + this.$toast(rs.resultMessage) + } }, // 微信空签 toAirSign(status, keyword, offset, originStatus, personType) {