From 9c9c405bd85f3d59f8554ff3b9438fa1dae1ecff Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 3 Apr 2025 20:09:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E8=90=A5?= =?UTF-8?q?=E5=95=86=E5=AE=B6=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mch/mch-manage/form.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/mch/mch-manage/form.vue b/src/views/mch/mch-manage/form.vue index 13b50cb..769ead5 100644 --- a/src/views/mch/mch-manage/form.vue +++ b/src/views/mch/mch-manage/form.vue @@ -158,7 +158,7 @@ const form = reactive({ businessTime: "", addressDes: "", sort: 0, - supType: "10", + supType: "", cooperationStatus: "1", parentId: "", discountsPrice: "", @@ -222,7 +222,7 @@ watch( () => form.types, (newVal) => { if (newVal != "2") { - form.supType = "10" + form.supType = "" form.cooperationStatus = "1" form.parentId = "" form.discountsPrice = "" @@ -241,6 +241,11 @@ const onSubmit = async () => { cooperationStatus: form.types == "2" && form.supType == "10" ? null : form.cooperationStatus, parentId: form.types == "2" && form.supType == "10" ? -1 : form.parentId, } + + if (_pa.parentId == "") { + _pa.parentId = -1 + } + try { loading.value = true form.id ? await putObj(_pa) : await addObj(_pa) From 81960b123dafb262c5590a47edcef07f6d6ab107 Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 3 Apr 2025 20:23:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B6=85=E5=B8=82=E5=95=86=E6=88=B7?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/supermarketerp/supermarketBrand/form.vue | 8 +++----- src/views/supermarketerp/supermarketCategory/form.vue | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/supermarketerp/supermarketBrand/form.vue b/src/views/supermarketerp/supermarketBrand/form.vue index 21a6ab4..2f078d8 100644 --- a/src/views/supermarketerp/supermarketBrand/form.vue +++ b/src/views/supermarketerp/supermarketBrand/form.vue @@ -4,7 +4,7 @@ - + @@ -35,9 +35,7 @@ - {{ item.label }} - + {{ item.label }} @@ -55,7 +53,7 @@