diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index 3bd4b3050..e2d6106f6 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -127,7 +127,7 @@ import { getBankList, uploadImg } from '@/api/ebiz/sale/sale' import { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions' import BankCardScan from '@/components/ebiz/sale/BankCardScan' import ShortMessage from '@/components/ebiz/question/ShortMessage.vue' -// import config from '@/config' +import config from '@/config' export default { name: 'QuestionsDetail', components: { @@ -200,7 +200,7 @@ export default { phoneNum: '', showConfirm: false, src: location.origin + '/pdfjs/web/viewer.html?file=', - pdfUrl: '', + pdfUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoN0unDE+KdzOJpwYZ6VWFx63RYcCay7bYWjVorf7R2P+88QRX5G3qnp86nOA3WgkTLUqooFPNUZSjGoZts28jTW', // 转账不成功处理方式是否不可用 handleType: false } @@ -257,6 +257,22 @@ export default { localStorage.setItem('resolveType', this.transfer.mode) } + // 非终止转账 + if (this.transfer.mode !== 2) { + // 校验开户行 + if (!this.transfer.bank) { + return this.$toast('请选择开户行') + } + // 银行卡号校验 + let regx = /^(\d{16}|\d{18}|\d{19})$/ + if (!regx.test(this.transfer.card)) { + return this.$toast('银行卡号不符合规则') + } + if (this.transfer.cardPhoto.length === 0) { + return this.$toast('请上传银行卡图片') + } + } + if (this.transfer.bank) { localStorage.setItem('problemBank', this.transfer.bank) } @@ -287,18 +303,12 @@ export default { if (personType === 0 && signRes.state === '1') { this.policyholderBase64 = decodeURI(signRes.sign) this.policyholderSigned = true - - if (this.issueType === '818901') { - // 根据选择的处理方式重新生成PDF&处理方式不能再更改 - this.handleType = true - } } // 被保人签名 else if (personType === 1 && signRes.state === '1') { this.insurantBase64 = decodeURI(signRes.sign) this.insurantSigned = true } - console.log('签名结果: ', res) } else { if (personType === 0) { this.toAirSign('0', '投保人签名:', '-150', '2', personType) @@ -419,7 +429,6 @@ export default { let signInfo = [] if (this.policyholderBase64) signInfo.push(this.policyholderBase64) if (this.insurantBase64) signInfo.push(this.insurantBase64) - // 获取dialog信息,type为confirm时为短信框,alert时是确定框 let problemData = { id: this.$route.params.id, businessType: this.$route.params.type, @@ -468,10 +477,10 @@ export default { this.$jump({ flag: 'h5', extra: { - url: location.origin + `/#/question/result/${res.result}` + url: location.origin + `/#/questions/result/${res.result}` }, routerInfo: { - path: `/question/result/${res.result}` + path: `/questions/result/${res.result}` } }) } @@ -482,11 +491,16 @@ export default { prtNo: this.$route.query.prtNo, userType: Number(this.$route.query.receiveType) }) + // 包含投保人和被保人证件id和姓名 this.problemInfo = rs.content this.pdfUrl = this.problemInfo.pdfUrl + this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.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 }, // 微信空签 diff --git a/src/views/ebiz/questions/QuestionsList.vue b/src/views/ebiz/questions/QuestionsList.vue index 706104920..4b0bbf39d 100644 --- a/src/views/ebiz/questions/QuestionsList.vue +++ b/src/views/ebiz/questions/QuestionsList.vue @@ -206,10 +206,16 @@ export default { this.loadMore() }, async searchProblems() { + // 每次搜索查询第一页 this.currentPage = 1 + // 开启loading, 复位finished if (this.active === 0) { + this.pendingListLoading = true + this.pendingListFinished = false this.pendingList.splice(0) } else { + this.processedListLoading = true + this.processedListFinished = false this.processedList.splice(0) } this.loadMore()