模糊查询

This commit is contained in:
mengxiaolong
2020-08-09 12:40:04 +08:00
parent e90dc72a15
commit 9ce803600a
2 changed files with 49 additions and 36 deletions

View File

@@ -53,7 +53,7 @@
<div class="item"> <div class="item">
<van-field label-class="labels" label="处理方式"> <van-field label-class="labels" label="处理方式">
<template #input> <template #input>
<van-radio-group v-model="transfer.mode" direction="horizontal" class="radioGroup" @change="modeChange"> <van-radio-group :disabled="handleType" v-model="transfer.mode" direction="horizontal" class="radioGroup" @change="modeChange">
<van-radio :name="1" icon-size="16px">继续转账</van-radio> <van-radio :name="1" icon-size="16px">继续转账</van-radio>
<van-radio :name="2" icon-size="16px">终止转账</van-radio> <van-radio :name="2" icon-size="16px">终止转账</van-radio>
<van-radio :name="3" icon-size="16px">更换卡号</van-radio> <van-radio :name="3" icon-size="16px">更换卡号</van-radio>
@@ -75,7 +75,7 @@
<div class="item"> <div class="item">
<van-field label-class="labels" readonly label="银行卡照片"></van-field> <van-field label-class="labels" readonly label="银行卡照片"></van-field>
<div class="cardList"> <div class="cardList">
<van-uploader :max-count="2" :after-read="cardUpload" name="card" v-model="transfer.cardPhoto" /> <van-uploader :max-count="1" :after-read="cardUpload" name="card" v-model="transfer.cardPhoto" />
</div> </div>
</div> </div>
</div> </div>
@@ -199,7 +199,9 @@ export default {
phoneNum: '', phoneNum: '',
showConfirm: false, showConfirm: false,
src: '', src: '',
pdfUrl: '' pdfUrl: '',
// 转账不成功处理方式是否不可用
handleType: false
} }
}, },
methods: { methods: {
@@ -234,19 +236,16 @@ export default {
// 签名 // 签名
async autograph(personType) { async autograph(personType) {
// 新契约问题件签名前必须输入回复内容 // 新契约问题件签名前必须输入回复内容
if (this.$route.params.type === 'TB89') { if (this.issueType === 'TB89') {
if (!this.newContract.feedback.trim()) { if (!this.newContract.feedback.trim()) {
return this.$toast('请先填写回复内容') return this.$toast('请先填写回复内容')
} }
// 根据回复内容重新生成PDF&回复内容不能在更改
this.newContract.feedbackAvailable = true
} }
// 转账不成功签名前必须选择处理方式 // 转账不成功签名前必须选择处理方式
if (this.$route.params.type === '818901') { if (this.issueType === '818901') {
if (this.transfer.mode === '') { if (this.transfer.mode === '') {
return this.$toast('请先选择处理方式') return this.$toast('请先选择处理方式')
} }
// 根据选择的处理方式重新生成PDF
} }
let name = personType === 0 ? this.problemInfo.appntName : this.problemInfo.insuredName let name = personType === 0 ? this.problemInfo.appntName : this.problemInfo.insuredName
let number = personType === 0 ? this.problemInfo.appntIdCardNo : this.problemInfo.insuredIdCardNo let number = personType === 0 ? this.problemInfo.appntIdCardNo : this.problemInfo.insuredIdCardNo
@@ -270,6 +269,16 @@ 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 === 'TB89') {
// 根据回复内容重新生成PDF&回复内容不能在更改
this.newContract.feedbackAvailable = true
}
if (this.issueType === '818901') {
// 根据选择的处理方式重新生成PDF&处理方式不能再更改
this.handleType = true
}
} }
// 被保人签名 // 被保人签名
else if (personType === 1 && signRes.state === '1') { else if (personType === 1 && signRes.state === '1') {
@@ -340,6 +349,7 @@ export default {
data.append('imgPath', file.file) data.append('imgPath', file.file)
return await uploadImg(data) return await uploadImg(data)
}, },
// 下一步
submit() { submit() {
// 校验回复内容 // 校验回复内容
if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写回复内容') if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写回复内容')
@@ -349,6 +359,7 @@ export default {
return this.$toast('请上传补充资料') return this.$toast('请上传补充资料')
} }
} }
// 转账不成功
if (this.issueType === '818901') { if (this.issueType === '818901') {
// 校验处理方式 // 校验处理方式
if (this.transfer.mode === '') { if (this.transfer.mode === '') {
@@ -422,7 +433,7 @@ export default {
// 转账不成功问题件 // 转账不成功问题件
else { else {
problemData.disposeStatus = this.transfer.mode problemData.disposeStatus = this.transfer.mode
problemData.bankType = this.transfer.mode problemData.bankType = this.transfer.bankCode
problemData.bankName = this.transfer.bank problemData.bankName = this.transfer.bank
problemData.bankNo = this.transfer.card problemData.bankNo = this.transfer.card
for (let item of this.transfer.cardUploadResult) { for (let item of this.transfer.cardUploadResult) {
@@ -434,29 +445,29 @@ export default {
// 更新问题件数据 // 更新问题件数据
let res = await updateQuestionDetail(problemData) let res = await updateQuestionDetail(problemData)
// 签名pdf // 签名pdf
let data = { // let data = {
orderType: 'SIGN_ORDER', // orderType: 'SIGN_ORDER',
orderDTO: { // orderDTO: {
orderInfoDTO: { // orderInfoDTO: {
orderNo: '' // orderNo: ''
}, // },
ebizSignDTOS: [] // ebizSignDTOS: []
} // }
} // }
saveInformation(data).then(res => { // saveInformation(data).then(res => {
this.$toast.clear() // this.$toast.clear()
if (res.result == '1') { // if (res.result == '1') {
localStorage.setItem('failedReason', res.resultMessage) // localStorage.setItem('failedReason', res.resultMessage)
} // }
this.$jump({ // this.$jump({
flag: 'h5', // flag: 'h5',
extra: { // extra: {
forbidSwipeBack: '1', // forbidSwipeBack: '1',
url: location.origin + `/#/questions/result/${res.result}` // url: location.origin + `/#/questions/result/${res.result}`
}, // },
routerInfo: { path: `/questions/result/${res.result}` } // routerInfo: { path: `/questions/result/${res.result}` }
}) // })
}) // })
console.dir(res) console.dir(res)
} }
}, },
@@ -559,6 +570,7 @@ export default {
border: 0; border: 0;
} }
.detail-container { .detail-container {
min-height: 100vh;
background: #fff; background: #fff;
padding-bottom: 40px; padding-bottom: 40px;
box-sizing: border-box; box-sizing: border-box;

View File

@@ -154,9 +154,9 @@ export default {
type: this.active, type: this.active,
pageInfo: { pageInfo: {
pageNum: this.currentPage, pageNum: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize
},
keyword: this.searchValue ? this.searchValue : '' keyword: this.searchValue ? this.searchValue : ''
}
}) })
if (rs && rs.result === '0') { if (rs && rs.result === '0') {
this.currentPage++ this.currentPage++
@@ -197,6 +197,7 @@ export default {
this.processedList.splice(0) this.processedList.splice(0)
this.pendingListFinished = false this.pendingListFinished = false
this.processedListFinished = false this.processedListFinished = false
this.searchValue = ''
if (this.active === 0) { if (this.active === 0) {
this.pendingListLoading = true this.pendingListLoading = true
} else { } else {