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('请完善表单信息后提交'); } }