Commit b7a6bf2c by chenwq

fix(financeManage): 修复支付凭证图片显示问题并优化点击事件

调整支付凭证图片的显示逻辑,添加isShowPayVoucher状态控制显示次数
优化图片容器样式,修复点击事件触发问题
1 parent a18dd2ab
......@@ -82,8 +82,8 @@
<div v-else class="flex-center">
<!-- {{subItem.extInfo.source || 'ORDER'}}{{subItem.fieldCode}} -->
<div v-if="subItem.fieldCode == 'orderCode' && scope.row.ORDER.sourceType != 1" class="refund-txt">退</div>
<span v-if="subItem.fieldCode == 'tradeNo'" :class="['trade-no', scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length ? 'txt-blue': '' ]">
<el-image v-if="scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length" class="pay-voucher-img" :src="scope.row.ORDER.payVoucherList[0].payVoucher" :preview-src-list="srcList" @click="handleReviewImg(scope.row)"></el-image>
<span v-if="subItem.fieldCode == 'tradeNo'" :class="['trade-no', scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length ? 'txt-blue': '' ]" @click="handleReviewImg(scope.row)">
<el-image v-if="scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length && isShowPayVoucher != 0" class="pay-voucher-img" :src="scope.row.ORDER.payVoucherList[0].payVoucher" :preview-src-list="srcList" @preview-close="handlePreviewClose"></el-image>
{{ scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode] || '-' }}
</span>
<span v-else-if="scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode] === 0">0</span>
......@@ -192,6 +192,7 @@ export default {
data() {
return {
loading: false,
isShowPayVoucher: false,
billTypeStr: 'traffic',
dateStr: '',
tmplFieldsList: [],
......@@ -1613,6 +1614,13 @@ export default {
row.ORDER.payVoucherList.forEach(item => {
this.srcList.push(item.payVoucher)
})
this.isShowPayVoucher = ++this.isShowPayVoucher
if (this.isShowPayVoucher == 3) {
this.isShowPayVoucher = 0
}
},
handlePreviewClose() {
console.log(111)
},
handelBatchVisible() {
this.batchVisible = !this.batchVisible
......@@ -1902,9 +1910,9 @@ export default {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
// opacity: 0;
width: 83px;
height: 50px;
opacity: 1;
}
.footer {
position: absolute;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!