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" - > + />