1. 若无可退款金额,则不显示退款按钮

This commit is contained in:
ssyang1993 2021-07-02 17:31:15 +08:00
parent 8fa35952f9
commit 237f1e082e
1 changed files with 2 additions and 3 deletions

View File

@ -88,9 +88,8 @@
<template slot="opSlot" slot-scope="{record}"> <!-- 操作列插槽 -->
<JeepayTableColumns>
<a-button type="link" v-if="$access('ENT_PAY_ORDER_VIEW')" @click="detailFunc(record.payOrderId)">详情</a-button>
<a-button type="link" v-if="$access('ENT_PAY_ORDER_REFUND')" style="color: red" v-show="(record.state === 2)" @click="openFunc(record, record.payOrderId)">退款</a-button>
<!-- 占位用按钮判断条件为 record.state !== 2 -->
<a-button type="link" v-show="(record.state !== 2)" style="width:60px"></a-button>
<a-button type="link" v-if="$access('ENT_PAY_ORDER_REFUND')" style="color: red" v-show="(record.state === 2 && record.refundState !== 2)" @click="openFunc(record, record.payOrderId)">退款</a-button>
</JeepayTableColumns>
</template>
</JeepayTable>