完善功能
This commit is contained in:
@ -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>
|
||||
|
||||
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user