fix: 智聪记账管理,部分功能新增复制功能,时间默认当前日期。
This commit is contained in:
@@ -124,6 +124,7 @@
|
|||||||
<script setup name="Activity">
|
<script setup name="Activity">
|
||||||
import { listActivity, getActivity, delActivity, addActivity, updateActivity } from '@/api/health/activity'
|
import { listActivity, getActivity, delActivity, addActivity, updateActivity } from '@/api/health/activity'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
import dayjs from 'dayjs'
|
||||||
import { require } from '@/utils/require'
|
import { require } from '@/utils/require'
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { activity_type, activity_exercise } = proxy.useDict('activity_type', 'activity_exercise')
|
const { activity_type, activity_exercise } = proxy.useDict('activity_type', 'activity_exercise')
|
||||||
@@ -260,6 +261,8 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.startTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
form.value.endTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加活动记录'
|
title.value = '添加活动记录'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -815,6 +815,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.visitingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
if (personList.value.length > 0) {
|
if (personList.value.length > 0) {
|
||||||
form.value.personId = personList.value[0].id
|
form.value.personId = personList.value[0].id
|
||||||
queryHealthRecordParams.personId = personList.value[0].id
|
queryHealthRecordParams.personId = personList.value[0].id
|
||||||
|
|||||||
@@ -235,6 +235,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.measureTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加身高体重记录'
|
title.value = '添加身高体重记录'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -398,6 +398,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.dosingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
if (personList.value.length > 0) {
|
if (personList.value.length > 0) {
|
||||||
form.value.personId = personList.value[0].id
|
form.value.personId = personList.value[0].id
|
||||||
queryHealthRecordParams.personId = personList.value[0].id
|
queryHealthRecordParams.personId = personList.value[0].id
|
||||||
@@ -440,6 +441,7 @@ function handleCopy(row) {
|
|||||||
getMarRecord(_id).then((response) => {
|
getMarRecord(_id).then((response) => {
|
||||||
form.value = response.data
|
form.value = response.data
|
||||||
form.value.id = null
|
form.value.id = null
|
||||||
|
form.value.dosingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '复制用药记录'
|
title.value = '复制用药记录'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -201,6 +201,7 @@ function handleCopy(row) {
|
|||||||
getProcessRecord(_id).then((response) => {
|
getProcessRecord(_id).then((response) => {
|
||||||
form.value = response.data
|
form.value = response.data
|
||||||
form.value.id = null
|
form.value.id = null
|
||||||
|
form.value.recordingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '复制档案过程记录'
|
title.value = '复制档案过程记录'
|
||||||
})
|
})
|
||||||
@@ -288,6 +289,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.recordingTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
if (personList.value.length > 0) {
|
if (personList.value.length > 0) {
|
||||||
form.value.personId = personList.value[0].id
|
form.value.personId = personList.value[0].id
|
||||||
queryHealthRecordParams.personId = personList.value[0].id
|
queryHealthRecordParams.personId = personList.value[0].id
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ function handleCopy(row) {
|
|||||||
getTemperatureRecord(_id).then((response) => {
|
getTemperatureRecord(_id).then((response) => {
|
||||||
form.value = response.data
|
form.value = response.data
|
||||||
form.value.id = null
|
form.value.id = null
|
||||||
|
form.value.measureTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '复制体温记录'
|
title.value = '复制体温记录'
|
||||||
})
|
})
|
||||||
@@ -303,6 +304,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.measureTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
if (personList.value.length > 0) {
|
if (personList.value.length > 0) {
|
||||||
form.value.personId = personList.value[0].id
|
form.value.personId = personList.value[0].id
|
||||||
queryHealthRecordParams.personId = personList.value[0].id
|
queryHealthRecordParams.personId = personList.value[0].id
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<div class="content-con" v-loading="loading" height="calc(100% - 0.65rem)">
|
<div class="content-con" v-loading="loading" height="calc(100% - 0.65rem)">
|
||||||
<el-table v-loading="loading" :data="accountDealRecordList" @selection-change="handleSelectionChange" height="calc(100% - 0.65rem)">
|
<el-table v-loading="loading" :data="accountDealRecordList" @selection-change="handleSelectionChange" height="calc(100% - 0.65rem)">
|
||||||
<el-table-column label="账户名称" align="center" width="200" prop="accountName" />
|
<el-table-column label="账户名称" align="center" width="200" prop="accountName" />
|
||||||
<el-table-column label="记账类型" align="center" prop="type">
|
<el-table-column label="记账类型" align="center" width="180" prop="type">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :options="account_type" :value="scope.row.type" />
|
<dict-tag :options="account_type" :value="scope.row.type" />
|
||||||
</template>
|
</template>
|
||||||
@@ -62,14 +62,14 @@
|
|||||||
<dict-tag :options="deal_type" :value="scope.row.dealType" />
|
<dict-tag :options="deal_type" :value="scope.row.dealType" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="交易类别" align="center" prop="dealCategory">
|
<el-table-column label="交易类别" align="center" width="180" prop="dealCategory">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :options="deal_category" :value="scope.row.dealCategory" />
|
<dict-tag :options="deal_category" :value="scope.row.dealCategory" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="交易子类别" align="center" prop="childCategoryName" />
|
<el-table-column label="交易子类别" align="center" width="150" prop="childCategoryName" />
|
||||||
<el-table-column label="备注" align="center" width="350" prop="remark" />
|
<el-table-column label="备注" align="center" width="180" prop="remark" />
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" width="180" align="center" class-name="small-padding fixed-width">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div class="ctrl-btn d-flex">
|
<div class="ctrl-btn d-flex">
|
||||||
<el-tooltip v-for="item in operateList" :key="item.id" class="item" effect="dark" :content="item.title" placement="top">
|
<el-tooltip v-for="item in operateList" :key="item.id" class="item" effect="dark" :content="item.title" placement="top">
|
||||||
@@ -164,6 +164,7 @@ const currentBalanceShow = ref(false)
|
|||||||
const operateList = ref([
|
const operateList = ref([
|
||||||
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accountDealRecord:query'] },
|
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accountDealRecord:query'] },
|
||||||
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accountDealRecord:edit'] },
|
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accountDealRecord:edit'] },
|
||||||
|
{ id: 'copy', icon: 'Link', title: '复制', hasPermi: ['invest:accountDealRecord:edit'] },
|
||||||
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
||||||
])
|
])
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
@@ -222,6 +223,9 @@ const handleOperate = (operate, row) => {
|
|||||||
case 'delete':
|
case 'delete':
|
||||||
handleDelete(row)
|
handleDelete(row)
|
||||||
break
|
break
|
||||||
|
case 'copy':
|
||||||
|
handleCopy(row)
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -345,6 +349,7 @@ function handleAdd() {
|
|||||||
currentBalanceShow.value = false
|
currentBalanceShow.value = false
|
||||||
queryAddAccountParams.value.type = ''
|
queryAddAccountParams.value.type = ''
|
||||||
getAddAccountList()
|
getAddAccountList()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加账户交易记录'
|
title.value = '添加账户交易记录'
|
||||||
}
|
}
|
||||||
@@ -364,7 +369,26 @@ function handleUpdate(row) {
|
|||||||
} else {
|
} else {
|
||||||
childCategoryShow.value = false
|
childCategoryShow.value = false
|
||||||
}
|
}
|
||||||
title.value = '修改账户交易记录'
|
title.value = '复制账户交易记录'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/** 复制按钮操作 */
|
||||||
|
function handleCopy(row) {
|
||||||
|
reset()
|
||||||
|
currentBalanceShow.value = true
|
||||||
|
queryAddAccountParams.value.type = ''
|
||||||
|
getAddAccountList()
|
||||||
|
const _id = row.id || ids.value
|
||||||
|
getAccountDealRecord(_id).then((response) => {
|
||||||
|
form.value = response.data
|
||||||
|
open.value = true
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
if (form.value.dealCategory == '1') {
|
||||||
|
childCategoryShow.value = true
|
||||||
|
} else {
|
||||||
|
childCategoryShow.value = false
|
||||||
|
}
|
||||||
|
title.value = '复制账户交易记录'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -177,7 +177,7 @@
|
|||||||
<div class="title-con">
|
<div class="title-con">
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<div class="operate-btn-con">
|
<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 icon="Delete" @click="handleDeleteDetail" v-hasPermi="['invest:installmentHistory:remove']">删除明细</el-button>
|
||||||
<el-button @click="handleUpdateInterest" icon="Expand" v-hasPermi="['invest:installmentHistory:add']">总利息汇总</el-button>
|
<el-button @click="handleUpdateInterest" icon="Expand" v-hasPermi="['invest:installmentHistory:add']">总利息汇总</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -237,6 +237,7 @@ import {
|
|||||||
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { require } from '@/utils/require'
|
import { require } from '@/utils/require'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { settle_state, bank_card_type, posting_state } = proxy.useDict('settle_state', 'bank_card_type', 'posting_state')
|
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() {
|
function resetDetail() {
|
||||||
form.value = {
|
formDetail.value = {
|
||||||
id: null,
|
id: null,
|
||||||
installmentHistoryId: null,
|
installmentHistoryId: null,
|
||||||
bankCardLendId: null,
|
bankCardLendId: null,
|
||||||
@@ -451,6 +452,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.installmentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加信用卡分期'
|
title.value = '添加信用卡分期'
|
||||||
}
|
}
|
||||||
@@ -458,6 +460,7 @@ function handleAdd() {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAddDetail() {
|
function handleAddDetail() {
|
||||||
resetDetail()
|
resetDetail()
|
||||||
|
formDetail.value.repaymentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
titleDetail.value = '添加分期历史明细'
|
titleDetail.value = '添加分期历史明细'
|
||||||
openDetail.value = true
|
openDetail.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ import {
|
|||||||
} from '@/api/invest/creditQueryRecord'
|
} from '@/api/invest/creditQueryRecord'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { require } from '@/utils/require'
|
import { require } from '@/utils/require'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { credit_report_type, credit_query_type } = proxy.useDict('credit_report_type', 'credit_query_type')
|
const { credit_report_type, credit_query_type } = proxy.useDict('credit_report_type', 'credit_query_type')
|
||||||
|
|
||||||
@@ -168,6 +169,7 @@ const queryInstitutionList = ref([])
|
|||||||
const operateList = ref([
|
const operateList = ref([
|
||||||
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:creditQueryRecord:query'] },
|
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:creditQueryRecord:query'] },
|
||||||
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:creditQueryRecord:edit'] },
|
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:creditQueryRecord:edit'] },
|
||||||
|
{ id: 'copy', icon: 'Link', title: '复制', hasPermi: ['invest:creditQueryRecord:edit'] },
|
||||||
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:creditQueryRecord:remove'] }
|
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:creditQueryRecord:remove'] }
|
||||||
])
|
])
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
@@ -203,6 +205,9 @@ const handleOperate = (operate, row) => {
|
|||||||
case 'delete':
|
case 'delete':
|
||||||
handleDelete(row)
|
handleDelete(row)
|
||||||
break
|
break
|
||||||
|
case 'copy':
|
||||||
|
handleCopy(row)
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -287,6 +292,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.queryDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加征信查询记录'
|
title.value = '添加征信查询记录'
|
||||||
}
|
}
|
||||||
@@ -325,6 +331,18 @@ function handleUpdate(row) {
|
|||||||
title.value = '修改征信查询记录'
|
title.value = '修改征信查询记录'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
/** 复制按钮操作 */
|
||||||
|
function handleCopy(row) {
|
||||||
|
reset()
|
||||||
|
const _id = row.id || ids.value
|
||||||
|
getCreditQueryRecord(_id).then((response) => {
|
||||||
|
form.value = response.data
|
||||||
|
form.value.id = null
|
||||||
|
form.value.queryDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
|
open.value = true
|
||||||
|
title.value = '复制征信查询记录'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
function submitForm() {
|
function submitForm() {
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加信用卡还款'
|
title.value = '添加信用卡还款'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加储蓄账户转账'
|
title.value = '添加储蓄账户转账'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
import { listHeartJourney, getHeartJourney, delHeartJourney, addHeartJourney, updateHeartJourney } from '@/api/invest/heartJourney'
|
import { listHeartJourney, getHeartJourney, delHeartJourney, addHeartJourney, updateHeartJourney } from '@/api/invest/heartJourney'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { require } from '@/utils/require'
|
import { require } from '@/utils/require'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { journey_type } = proxy.useDict('journey_type')
|
const { journey_type } = proxy.useDict('journey_type')
|
||||||
|
|
||||||
@@ -200,6 +201,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加心路历程'
|
title.value = '添加心路历程'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ const accountList = ref([])
|
|||||||
const operateList = ref([
|
const operateList = ref([
|
||||||
//{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accountDealRecord:query'] },
|
//{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accountDealRecord:query'] },
|
||||||
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accountDealRecord:edit'] },
|
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accountDealRecord:edit'] },
|
||||||
|
{ id: 'copy', icon: 'Link', title: '复制', hasPermi: ['invest:accountDealRecord:edit'] },
|
||||||
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
||||||
])
|
])
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
@@ -169,6 +170,9 @@ const handleOperate = (operate, row) => {
|
|||||||
case 'delete':
|
case 'delete':
|
||||||
handleDelete(row)
|
handleDelete(row)
|
||||||
break
|
break
|
||||||
|
case 'copy':
|
||||||
|
handleCopy(row)
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -283,6 +287,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
futuresShow.value = false
|
futuresShow.value = false
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加投资交易记录'
|
title.value = '添加投资交易记录'
|
||||||
@@ -313,6 +318,32 @@ function handleUpdate(row) {
|
|||||||
title.value = '修改投资交易记录'
|
title.value = '修改投资交易记录'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
/** 复制按钮操作 */
|
||||||
|
function handleCopy(row) {
|
||||||
|
reset()
|
||||||
|
const _id = row.id || ids.value
|
||||||
|
getAccountDealRecord(_id).then((response) => {
|
||||||
|
form.value = response.data
|
||||||
|
if (form.value.accountId != null && form.value.accountId != '') {
|
||||||
|
getFutureStocks(form.value.accountId).then((response) => {
|
||||||
|
const account = response.data
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
accountType.value = account.type
|
||||||
|
if (account.type == '1') {
|
||||||
|
futuresShow.value = true
|
||||||
|
form.value.closedPosition = null
|
||||||
|
form.value.commission = null
|
||||||
|
} else {
|
||||||
|
futuresShow.value = false
|
||||||
|
form.value.closedPosition = 0
|
||||||
|
form.value.commission = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
open.value = true
|
||||||
|
title.value = '复制投资交易记录'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
function submitForm() {
|
function submitForm() {
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加投资账户记账'
|
title.value = '添加投资账户记账'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -313,6 +313,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加借贷记账'
|
title.value = '添加借贷记账'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@
|
|||||||
<div class="title-con">
|
<div class="title-con">
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<div class="operate-btn-con">
|
<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>
|
<el-button @click="handleUpdateInterest" icon="Expand" v-hasPermi="['invest:installmentHistory:add']">总利息汇总</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -229,6 +229,7 @@ import {
|
|||||||
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { require } from '@/utils/require'
|
import { require } from '@/utils/require'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { settle_state, bank_card_type, posting_state } = proxy.useDict('settle_state', 'bank_card_type', 'posting_state')
|
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() {
|
function resetDetail() {
|
||||||
form.value = {
|
formDetail.value = {
|
||||||
id: null,
|
id: null,
|
||||||
installmentHistoryId: null,
|
installmentHistoryId: null,
|
||||||
bankCardLendId: null,
|
bankCardLendId: null,
|
||||||
@@ -446,6 +447,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.installmentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加贷款账单'
|
title.value = '添加贷款账单'
|
||||||
}
|
}
|
||||||
@@ -453,6 +455,7 @@ function handleAdd() {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAddDetail() {
|
function handleAddDetail() {
|
||||||
resetDetail()
|
resetDetail()
|
||||||
|
formDetail.value.repaymentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
titleDetail.value = '添加贷款明细'
|
titleDetail.value = '添加贷款明细'
|
||||||
openDetail.value = true
|
openDetail.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ import {
|
|||||||
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
import { listBankcardLend } from '@/api/invest/bankcardlend'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { require } from '@/utils/require'
|
import { require } from '@/utils/require'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const { settle_state, bank_card_type } = proxy.useDict('settle_state', 'bank_card_type')
|
const { settle_state, bank_card_type } = proxy.useDict('settle_state', 'bank_card_type')
|
||||||
|
|
||||||
@@ -256,6 +257,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.installmentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加人情账单'
|
title.value = '添加人情账单'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ const handleView = (row) => {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset()
|
reset()
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
open.value = true
|
open.value = true
|
||||||
title.value = '添加POS机刷卡'
|
title.value = '添加POS机刷卡'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user