From 72818363b0bc6f6370f45270e496c957cd33911b Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 26 Mar 2025 18:29:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=99=BA=E8=81=AA=E8=AE=B0=E8=B4=A6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E6=8A=95=E8=B5=84=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95bug=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invest/investAccountDeal/index.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/invest/investAccountDeal/index.vue b/src/views/invest/investAccountDeal/index.vue index 75ba0bd..1df3d63 100644 --- a/src/views/invest/investAccountDeal/index.vue +++ b/src/views/invest/investAccountDeal/index.vue @@ -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 = '修改投资交易记录' })