完善功能

This commit is contained in:
wangxiaowei
2026-04-22 14:11:42 +08:00
parent b1030cfa64
commit e60a986bae
5 changed files with 32 additions and 14 deletions

View File

@ -9,7 +9,7 @@
</el-select>
</el-form-item>
<el-form-item label="提现金额" prop="amount">
<el-input v-model="formData.amount" clearable placeholder="请输入现金额" />
<el-input v-model="formData.amount" clearable placeholder="请输入现金额" />
</el-form-item>
</el-form>
</popup>

View File

@ -27,7 +27,11 @@
</el-card>
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
<el-button v-perms="['parten_reflect/add']" type="primary" @click="handleAdd">
<div class="font-bold mb-4">
提现时间为每月2号
</div>
<el-button v-perms="['parten_reflect/add']" type="primary" :disabled="!isWithdrawDay" @click="handleAdd">
<template #icon>
<icon name="el-icon-Plus" />
</template>
@ -103,6 +107,14 @@ const queryParams = reactive({
status: ''
})
// 计算属性是否为提现日1号或16号
const isWithdrawDay = computed(() => {
const today = new Date()
const day = today.getDate()
return day === 2
})
// 选中数据
const selectData = ref<any[]>([])
@ -122,6 +134,11 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
// 添加
const handleAdd = async () => {
if (!isWithdrawDay.value) {
feedback.msgError('未到提现日期')
return
}
showEdit.value = true
await nextTick()
editRef.value?.open('add')