|
|
@@ -181,6 +181,16 @@
|
|
|
<div class="stat-item">
|
|
|
<div class="stat-label">账户余额</div>
|
|
|
<div class="stat-value balance-value">¥{{ accountData.balance || "0.00" }}</div>
|
|
|
+ <el-button
|
|
|
+ v-hasPerm="['module_payment:account:withdraw']"
|
|
|
+ type="warning"
|
|
|
+ size="small"
|
|
|
+ class="mt-2"
|
|
|
+ :disabled="!accountData.account_book_id || (accountData.balance || 0) <= 0"
|
|
|
+ @click="$emit('withdraw')"
|
|
|
+ >
|
|
|
+ 提现
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
@@ -273,6 +283,7 @@ const props = defineProps<{
|
|
|
const emit = defineEmits<{
|
|
|
(e: "goTab", tab: string): void;
|
|
|
(e: "refresh", data: any): void;
|
|
|
+ (e: "withdraw"): void;
|
|
|
}>();
|
|
|
|
|
|
const enterpriseStore = useEnterpriseStore();
|
|
|
@@ -462,6 +473,10 @@ defineExpose({ refresh });
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
+.mt-2 {
|
|
|
+ margin-top: 8px;
|
|
|
+}
|
|
|
+
|
|
|
.stat-item {
|
|
|
text-align: center;
|
|
|
|