mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 02:56:45 +08:00
优化问题件搜索等
This commit is contained in:
@@ -127,7 +127,7 @@ import { getBankList, uploadImg } from '@/api/ebiz/sale/sale'
|
|||||||
import { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions'
|
import { getQuestionDetail, updateQuestionDetail } from '@/api/ebiz/questions'
|
||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
|
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
|
||||||
// import config from '@/config'
|
import config from '@/config'
|
||||||
export default {
|
export default {
|
||||||
name: 'QuestionsDetail',
|
name: 'QuestionsDetail',
|
||||||
components: {
|
components: {
|
||||||
@@ -200,7 +200,7 @@ export default {
|
|||||||
phoneNum: '',
|
phoneNum: '',
|
||||||
showConfirm: false,
|
showConfirm: false,
|
||||||
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
src: location.origin + '/pdfjs/web/viewer.html?file=',
|
||||||
pdfUrl: '',
|
pdfUrl: 'Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoN0unDE+KdzOJpwYZ6VWFx63RYcCay7bYWjVorf7R2P+88QRX5G3qnp86nOA3WgkTLUqooFPNUZSjGoZts28jTW',
|
||||||
// 转账不成功处理方式是否不可用
|
// 转账不成功处理方式是否不可用
|
||||||
handleType: false
|
handleType: false
|
||||||
}
|
}
|
||||||
@@ -257,6 +257,22 @@ export default {
|
|||||||
localStorage.setItem('resolveType', this.transfer.mode)
|
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) {
|
if (this.transfer.bank) {
|
||||||
localStorage.setItem('problemBank', this.transfer.bank)
|
localStorage.setItem('problemBank', this.transfer.bank)
|
||||||
}
|
}
|
||||||
@@ -287,18 +303,12 @@ export default {
|
|||||||
if (personType === 0 && signRes.state === '1') {
|
if (personType === 0 && signRes.state === '1') {
|
||||||
this.policyholderBase64 = decodeURI(signRes.sign)
|
this.policyholderBase64 = decodeURI(signRes.sign)
|
||||||
this.policyholderSigned = true
|
this.policyholderSigned = true
|
||||||
|
|
||||||
if (this.issueType === '818901') {
|
|
||||||
// 根据选择的处理方式重新生成PDF&处理方式不能再更改
|
|
||||||
this.handleType = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 被保人签名
|
// 被保人签名
|
||||||
else if (personType === 1 && signRes.state === '1') {
|
else if (personType === 1 && signRes.state === '1') {
|
||||||
this.insurantBase64 = decodeURI(signRes.sign)
|
this.insurantBase64 = decodeURI(signRes.sign)
|
||||||
this.insurantSigned = true
|
this.insurantSigned = true
|
||||||
}
|
}
|
||||||
console.log('签名结果: ', res)
|
|
||||||
} else {
|
} else {
|
||||||
if (personType === 0) {
|
if (personType === 0) {
|
||||||
this.toAirSign('0', '投保人签名:', '-150', '2', personType)
|
this.toAirSign('0', '投保人签名:', '-150', '2', personType)
|
||||||
@@ -419,7 +429,6 @@ export default {
|
|||||||
let signInfo = []
|
let signInfo = []
|
||||||
if (this.policyholderBase64) signInfo.push(this.policyholderBase64)
|
if (this.policyholderBase64) signInfo.push(this.policyholderBase64)
|
||||||
if (this.insurantBase64) signInfo.push(this.insurantBase64)
|
if (this.insurantBase64) signInfo.push(this.insurantBase64)
|
||||||
// 获取dialog信息,type为confirm时为短信框,alert时是确定框
|
|
||||||
let problemData = {
|
let problemData = {
|
||||||
id: this.$route.params.id,
|
id: this.$route.params.id,
|
||||||
businessType: this.$route.params.type,
|
businessType: this.$route.params.type,
|
||||||
@@ -468,10 +477,10 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/question/result/${res.result}`
|
url: location.origin + `/#/questions/result/${res.result}`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/question/result/${res.result}`
|
path: `/questions/result/${res.result}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -482,11 +491,16 @@ export default {
|
|||||||
prtNo: this.$route.query.prtNo,
|
prtNo: this.$route.query.prtNo,
|
||||||
userType: Number(this.$route.query.receiveType)
|
userType: Number(this.$route.query.receiveType)
|
||||||
})
|
})
|
||||||
|
// 包含投保人和被保人证件id和姓名
|
||||||
this.problemInfo = rs.content
|
this.problemInfo = rs.content
|
||||||
this.pdfUrl = this.problemInfo.pdfUrl
|
this.pdfUrl = this.problemInfo.pdfUrl
|
||||||
|
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.pdfUrl}`)
|
||||||
this.problemDetail = this.problemInfo.list[0]
|
this.problemDetail = this.problemInfo.list[0]
|
||||||
|
// 问题件接收人类型: 0投保人, 1被保人
|
||||||
this.problemDetail.receiveType = this.$route.query.receiveType
|
this.problemDetail.receiveType = this.$route.query.receiveType
|
||||||
|
// 被保人资料问题描述
|
||||||
this.supplement.descriptionInsurant = this.problemDetail.content
|
this.supplement.descriptionInsurant = this.problemDetail.content
|
||||||
|
// 投保人资料问题描述
|
||||||
this.supplement.descriptionPolicyholder = this.problemDetail.issueContent
|
this.supplement.descriptionPolicyholder = this.problemDetail.issueContent
|
||||||
},
|
},
|
||||||
// 微信空签
|
// 微信空签
|
||||||
|
|||||||
@@ -206,10 +206,16 @@ export default {
|
|||||||
this.loadMore()
|
this.loadMore()
|
||||||
},
|
},
|
||||||
async searchProblems() {
|
async searchProblems() {
|
||||||
|
// 每次搜索查询第一页
|
||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
|
// 开启loading, 复位finished
|
||||||
if (this.active === 0) {
|
if (this.active === 0) {
|
||||||
|
this.pendingListLoading = true
|
||||||
|
this.pendingListFinished = false
|
||||||
this.pendingList.splice(0)
|
this.pendingList.splice(0)
|
||||||
} else {
|
} else {
|
||||||
|
this.processedListLoading = true
|
||||||
|
this.processedListFinished = false
|
||||||
this.processedList.splice(0)
|
this.processedList.splice(0)
|
||||||
}
|
}
|
||||||
this.loadMore()
|
this.loadMore()
|
||||||
|
|||||||
Reference in New Issue
Block a user