From 4d80994c07587b1573d197eb9639cc9c938515fb Mon Sep 17 00:00:00 2001 From: weiwei Date: Mon, 10 Mar 2025 14:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E7=B1=BB=E5=9E=8B=E5=8D=95?= =?UTF-8?q?=E9=80=89=E6=8C=89=E9=92=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wallet/mch-manage/form.vue | 23 ++++++++++++++++++++++- src/views/wallet/mch-manage/index.vue | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/views/wallet/mch-manage/form.vue b/src/views/wallet/mch-manage/form.vue index eb0b1df..dcdb532 100644 --- a/src/views/wallet/mch-manage/form.vue +++ b/src/views/wallet/mch-manage/form.vue @@ -17,7 +17,16 @@ - {{ item.label }} + + {{ item.label }} + @@ -128,6 +137,7 @@ const jobTime = reactive<{ noon: [], evening: [], }) +const merchantTypeRadioDisabled = ref(false) // 定义校验规则 const dataRules = ref({ @@ -203,6 +213,17 @@ const getmerchantInfoData = async (id: string) => { } } +// 点击商户类型单选按钮 +const handleClickRadio = (radioItemValue: string) => { + if (radioItemValue === form.merchantType) { + form.merchantType = "" + merchantTypeRadioDisabled.value = true + setTimeout(() => { + merchantTypeRadioDisabled.value = false + }, 0) + } +} + // 暴露变量 defineExpose({ openDialog, diff --git a/src/views/wallet/mch-manage/index.vue b/src/views/wallet/mch-manage/index.vue index d212e77..97924c7 100644 --- a/src/views/wallet/mch-manage/index.vue +++ b/src/views/wallet/mch-manage/index.vue @@ -23,7 +23,7 @@ class="ml10 mr20" style="float: right" @queryTable="getDataList" - > + />