Commit b7a6bf2c by chenwq

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

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