到账开票审核和来款回显支持pdf

This commit is contained in:
zhaoxiao
2021-12-24 16:24:54 +08:00
parent 4bf9cf9a3a
commit 12437e8fd9
2 changed files with 18 additions and 12 deletions
@@ -33,10 +33,15 @@
<a-col>
<div class="stage">
<div class="stage-title">缴费凭证</div>
<div v-if="item.proof && item.proof !== ''" class="stage-content">
<div v-for="(tt, indexs) in item.proof.split(',')" :key="indexs">
<div class="proof-img"><img :src="proofSrc(tt)" @click="previewProof(item.proof)"></div>
</div>
<div class="stage-content">
<template v-if="!item.paymentMethod || item.paymentMethod+'' === '1'">
<div v-for="(tt, indexs) in item.proof.split(',')" :key="indexs">
<div class="proof-img" ><img :src="proofSrc(tt)" @click="previewProof(item.proof)"></div>
</div>
</template>
<template v-if="item.paymentMethod && item.paymentMethod+'' === '2'">
<preview-file :file-id="item.proof"></preview-file>
</template>
</div>
</div>
</a-col>
@@ -69,10 +74,11 @@
import ArriveModule from './ArriveModule'
import { amountReceivedList } from '../../../../api/incomePaymentsApi'
import PreviewImgModal from '../../../../components/PreviewImgModal'
import PreviewFile from '../../../../components/jero/PreviewFile.vue'
export default {
name: 'ArriveStageModule',
components: { ArriveModule, PreviewImgModal },
components: { ArriveModule, PreviewImgModal, PreviewFile },
props: {
// 项目id
projectId: {
@@ -136,10 +136,10 @@ export default {
methods: {
async open(record) {
let flag = await this.getProofInfo(record)
if(!flag){
this.$message.warn('项目已审核')
return
}
if(!flag){
this.$message.warn('项目已审核')
return
}
this.form.resetFields()
let userInfo = Vue.ls.get(USER_INFO)
// 默认隐藏说明
@@ -157,15 +157,15 @@ export default {
*/
getProofType(record) {
if (record.projectType && (record.projectType.toString() === '5' || record.projectType.toString() === '6')) {
if (this.proofInfo.paymentMethod === '1') {
if (this.proofInfo.paymentMethod.toString() === '1') {
this.proofType = 'img'
return
}
if (this.proofInfo.paymentMethod === '2') {
if (this.proofInfo.paymentMethod.toString() === '2') {
this.proofType = 'pdf'
return
}
if (this.proofInfo.paymentMethod === '3') {
if (this.proofInfo.paymentMethod.toString() === '3') {
this.proofType = 'none'
return
}