撤回更改
This commit is contained in:
@@ -152,52 +152,50 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="280" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<template v-if="row.transfer_type === 'user_to_user'">
|
||||
<template v-if="row.status === 'confirmed'">
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
@click="confirmReceived(row.id)"
|
||||
:title="currentUser && row.to_user_id === currentUser.id ? '确认收款' : '管理员代确认收款'"
|
||||
>
|
||||
{{ currentUser && row.to_user_id === currentUser.id ? '确认收款' : '代确认收款' }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
size="small"
|
||||
@click="confirmNotReceived(row.id)"
|
||||
:title="currentUser && row.to_user_id === currentUser.id ? '未收到款' : '管理员代标记未收到款'"
|
||||
>
|
||||
{{ currentUser && row.to_user_id === currentUser.id ? '未收到款' : '代标记未收到' }}
|
||||
</el-button>
|
||||
</template>
|
||||
<!-- 解除坏账按钮 -->
|
||||
<template v-if="row.status === 'confirmed'">
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
@click="confirmReceived(row.id)"
|
||||
:title="currentUser && row.to_user_id === currentUser.id ? '确认收款' : '管理员代确认收款'"
|
||||
>
|
||||
{{ currentUser && row.to_user_id === currentUser.id ? '确认收款' : '代确认收款' }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="row.is_bad_debt"
|
||||
type="warning"
|
||||
size="small"
|
||||
@click="removeBadDebt(row)"
|
||||
:loading="row.removingBadDebt"
|
||||
@click="confirmNotReceived(row.id)"
|
||||
:title="currentUser && row.to_user_id === currentUser.id ? '未收到款' : '管理员代标记未收到款'"
|
||||
>
|
||||
解除坏账
|
||||
</el-button>
|
||||
<!-- 强制变更状态按钮(管理员权限) -->
|
||||
<el-button
|
||||
v-if="currentUser && currentUser.role === 'admin'"
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="showForceChangeDialog(row)"
|
||||
>
|
||||
强制变更
|
||||
</el-button>
|
||||
<el-button
|
||||
type="info"
|
||||
size="small"
|
||||
@click="viewDetails(row)"
|
||||
>
|
||||
详情
|
||||
{{ currentUser && row.to_user_id === currentUser.id ? '未收到款' : '代标记未收到' }}
|
||||
</el-button>
|
||||
</template>
|
||||
<!-- 解除坏账按钮 -->
|
||||
<el-button
|
||||
v-if="row.is_bad_debt"
|
||||
type="warning"
|
||||
size="small"
|
||||
@click="removeBadDebt(row)"
|
||||
:loading="row.removingBadDebt"
|
||||
>
|
||||
解除坏账
|
||||
</el-button>
|
||||
<!-- 强制变更状态按钮(管理员权限) -->
|
||||
<el-button
|
||||
v-if="currentUser && currentUser.role === 'admin'"
|
||||
type="danger"
|
||||
size="small"
|
||||
@click="showForceChangeDialog(row)"
|
||||
>
|
||||
强制变更
|
||||
</el-button>
|
||||
<el-button
|
||||
type="info"
|
||||
size="small"
|
||||
@click="viewDetails(row)"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user