Skip to content

Commit 02d284b

Browse files
committed
feat:【MALL 商城】商城分佣提现,初步对接成功微信支付
1 parent 876bf8d commit 02d284b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/views/mall/trade/brokerage/withdraw/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@
166166
</el-table-column>
167167
<el-table-column label="操作" align="left" width="110px" fixed="right">
168168
<template #default="scope">
169-
<template v-if="scope.row.status === BrokerageWithdrawStatusEnum.AUDITING.status">
169+
<template
170+
v-if="
171+
scope.row.status === BrokerageWithdrawStatusEnum.AUDITING.status &&
172+
!scope.row.payTransferId
173+
"
174+
>
170175
<el-button
171176
link
172177
type="primary"

src/views/pay/demo/withdraw/index.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
<el-table-column label="操作" align="center" width="100">
2525
<template #default="scope">
2626
<el-button
27-
v-if="scope.row.status === 0"
27+
v-if="scope.row.status === 0 && !scope.row.payTransferId"
2828
type="primary"
2929
link
3030
@click="handleTransfer(scope.row.id)"
3131
>
3232
发起转账
3333
</el-button>
3434
<el-button
35-
v-if="scope.row.status === 20"
35+
v-else-if="scope.row.status === 20"
3636
type="warning"
3737
link
3838
@click="handleTransfer(scope.row.id)"
@@ -59,7 +59,12 @@
5959
<el-table-column label="收款人账号" align="center" prop="userAccount" min-width="250" />
6060
<el-table-column label="提现状态" align="center" prop="status" width="100">
6161
<template #default="scope">
62-
<el-tag v-if="scope.row.status === 0" type="warning">等待转账</el-tag>
62+
<el-tag v-if="scope.row.status === 0 && !scope.row.payTransferId" type="warning">
63+
等待转账
64+
</el-tag>
65+
<el-tag v-else-if="scope.row.status === 0 && scope.row.payTransferId" type="info">
66+
转账中
67+
</el-tag>
6368
<el-tag v-else-if="scope.row.status === 10" type="success">转账成功</el-tag>
6469
<el-tag v-else-if="scope.row.status === 20" type="danger">转账失败</el-tag>
6570
</template>

0 commit comments

Comments
 (0)