feature/mall_product #8

Merged
tianyu merged 2 commits from feature/mall_product into master 2023-05-31 18:15:17 +08:00
1 changed files with 11 additions and 7 deletions

View File

@ -77,7 +77,7 @@
<dict-tag :type="DICT_TYPE.PAY_STATUS" :value="scope.row.paid"/>
</template>
</el-table-column>
<el-table-column label="退款状态" align="center">
<el-table-column label="退款状态" align="center" fixed="right">
<template v-slot="scope">
<span v-if="scope.row.refundStatus === 0">退</span>
<span v-else-if="scope.row.refundStatus === 1">申请中</span>
@ -86,15 +86,19 @@
<span v-else-if="scope.row.refundStatus === 4">拒绝退款</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding" fixed="right" width="80">
<template v-slot="scope">
<template v-if="scope.row.refundStatus === 1">
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleRefund(scope.row, 1)"
v-hasPermi="['shop:recharge-order:refund']">同意退款</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleRefund(scope.row, 2)"
v-hasPermi="['shop:recharge-order:refund']">拒绝退款</el-button>
<div>
<el-button size="mini" type="text" icon="el-icon-check" @click="handleRefund(scope.row, 1)"
v-hasPermi="['shop:recharge-order:refund']">同意</el-button>
</div>
<div>
<el-button size="mini" type="text" icon="el-icon-close" @click="handleRefund(scope.row, 2)"
v-hasPermi="['shop:recharge-order:refund']">拒绝</el-button>
</div>
</template>
<el-button v-if="scope.row.refundStatus !== 2 && scope.row.refundStatus !== 3 && scope.row.paid==1" size="mini" type="text" icon="el-icon-edit" @click="handleRefund(scope.row, 3)"
<el-button v-if="scope.row.refundStatus !== 2 && scope.row.refundStatus !== 3 && scope.row.paid==1" size="mini" type="text" icon="el-icon-refresh-left" @click="handleRefund(scope.row, 3)"
v-hasPermi="['shop:recharge-order:refund']">发起退款</el-button>
</template>
</el-table-column>