fix: 智聪记账管理,部分功能新增复制功能,时间默认当前日期。

This commit is contained in:
tianyongbao
2025-04-28 12:23:51 +08:00
parent 145d378f2d
commit ea7909fa30
18 changed files with 109 additions and 10 deletions

View File

@@ -177,7 +177,7 @@
<div class="title-con">
<div class="title">基本信息</div>
<div class="operate-btn-con">
<!-- <el-button @click="handleAddDetail" icon="Plus" v-hasPermi="['invest:installmentHistory:add']">新增</el-button> -->
<el-button @click="handleAddDetail" icon="Plus" v-hasPermi="['invest:installmentHistory:add']">新增</el-button>
<el-button icon="Delete" @click="handleDeleteDetail" v-hasPermi="['invest:installmentHistory:remove']">删除明细</el-button>
<el-button @click="handleUpdateInterest" icon="Expand" v-hasPermi="['invest:installmentHistory:add']">总利息汇总</el-button>
</div>
@@ -237,6 +237,7 @@ import {
import { listBankcardLend } from '@/api/invest/bankcardlend'
// eslint-disable-next-line no-unused-vars
import { require } from '@/utils/require'
import dayjs from 'dayjs'
const { proxy } = getCurrentInstance()
const { settle_state, bank_card_type, posting_state } = proxy.useDict('settle_state', 'bank_card_type', 'posting_state')
@@ -394,7 +395,7 @@ function reset() {
}
// 表单重置
function resetDetail() {
form.value = {
formDetail.value = {
id: null,
installmentHistoryId: null,
bankCardLendId: null,
@@ -451,6 +452,7 @@ const handleView = (row) => {
/** 新增按钮操作 */
function handleAdd() {
reset()
form.value.installmentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
open.value = true
title.value = '添加信用卡分期'
}
@@ -458,6 +460,7 @@ function handleAdd() {
/** 新增按钮操作 */
function handleAddDetail() {
resetDetail()
formDetail.value.repaymentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
titleDetail.value = '添加分期历史明细'
openDetail.value = true
}