From 97a08cfa91fcf9fc658217fadf29fe1cba17a4ad Mon Sep 17 00:00:00 2001 From: lihuilin Date: Fri, 24 Oct 2025 13:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=92=8B=E6=B2=A1=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/executor/executor.vue | 4 ++-- src/views/moneyManage/receiveDetail/receiveDetail.vue | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/moneyManage/executor/executor.vue b/src/views/moneyManage/executor/executor.vue index 51c8fe1..3c9a305 100644 --- a/src/views/moneyManage/executor/executor.vue +++ b/src/views/moneyManage/executor/executor.vue @@ -62,9 +62,9 @@ - + diff --git a/src/views/moneyManage/receiveDetail/receiveDetail.vue b/src/views/moneyManage/receiveDetail/receiveDetail.vue index a04930e..33e2d1d 100644 --- a/src/views/moneyManage/receiveDetail/receiveDetail.vue +++ b/src/views/moneyManage/receiveDetail/receiveDetail.vue @@ -849,8 +849,9 @@ const selectItems = [ ]; const productUnit = ref('个') const ifGold = () => { - if (addFormData.value.goodsName == '金币充值') { + if (addFormData.value.goodsName === '金币充值') { isGold.value = true + addFormData.value.goodNum = 0 } else { isGold.value = false if (selectItems.includes(addFormData.value.goodsName)) { @@ -862,7 +863,7 @@ const ifGold = () => { } const isEditGold = ref(false) const EditifGold = () => { - if (editFormData.value.goodsName == '金币充值') { + if (editFormData.value.goodsName === '金币充值') { isEditGold.value = true } else { isEditGold.value = false @@ -968,7 +969,7 @@ const handleAddForm = async () => { } console.log('返回参数:', result); } catch (error) { - console.log(error); + console.log('出啥错了?',error); ElMessage.error('请完善表单信息后提交'); } }