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

@@ -171,7 +171,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 @click="handleUpdateInterest" icon="Expand" v-hasPermi="['invest:installmentHistory:add']">总利息汇总</el-button>
</div>
</div>
@@ -229,6 +229,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')
@@ -389,7 +390,7 @@ function reset() {
// 表单重置
function resetDetail() {
form.value = {
formDetail.value = {
id: null,
installmentHistoryId: null,
bankCardLendId: null,
@@ -446,6 +447,7 @@ const handleView = (row) => {
/** 新增按钮操作 */
function handleAdd() {
reset()
form.value.installmentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
open.value = true
title.value = '添加贷款账单'
}
@@ -453,6 +455,7 @@ function handleAdd() {
/** 新增按钮操作 */
function handleAddDetail() {
resetDetail()
formDetail.value.repaymentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
titleDetail.value = '添加贷款明细'
openDetail.value = true
}