feat: 智聪记账管理,投资交易记录bug修复。
This commit is contained in:
@@ -127,7 +127,7 @@ const accountType = ref(0)
|
|||||||
const accountList = ref([])
|
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: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
||||||
])
|
])
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
@@ -294,6 +294,21 @@ function handleUpdate(row) {
|
|||||||
const _id = row.id || ids.value
|
const _id = row.id || ids.value
|
||||||
getAccountDealRecord(_id).then((response) => {
|
getAccountDealRecord(_id).then((response) => {
|
||||||
form.value = response.data
|
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
|
open.value = true
|
||||||
title.value = '修改投资交易记录'
|
title.value = '修改投资交易记录'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user