feat: 智聪记账管理,投资交易记录bug修复。

(cherry picked from commit 72818363b0)
This commit is contained in:
tianyongbao
2025-03-26 18:29:50 +08:00
parent fbf521438a
commit e573e393b4

View File

@@ -127,7 +127,7 @@ const accountType = ref(0)
const accountList = ref([])
const operateList = ref([
//{ 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: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
])
const data = reactive({
@@ -294,6 +294,21 @@ function handleUpdate(row) {
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
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 = '修改投资交易记录'
})