From c5417a3470326df94f7b9410f21540a6f395f296 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Wed, 18 Jun 2025 12:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=A3=E5=91=B3=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/integrated/lostAndFound/form.vue | 23 +++++++++++++------ .../components/package-unit.vue | 6 +++++ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/views/integrated/lostAndFound/form.vue b/src/views/integrated/lostAndFound/form.vue index a3defdd..48393fe 100644 --- a/src/views/integrated/lostAndFound/form.vue +++ b/src/views/integrated/lostAndFound/form.vue @@ -29,11 +29,17 @@ - - - - - + + + + + @@ -75,7 +81,7 @@ const form = reactive({ picUrl: '', sort: '', description: '', - status: '', + status: 0, // 默认待领取 dateFound: '', location: '', }); @@ -128,7 +134,10 @@ const getlostAndFoundData = (id: string) => { // 获取数据 loading.value = true getObj(id).then((res: any) => { - Object.assign(form, res.data) + const data = res.data + // 确保状态值为数字类型 + data.status = Number(data.status) + Object.assign(form, data) }).finally(() => { loading.value = false }) diff --git a/src/views/supermarketerp/supermarketSpu/components/package-unit.vue b/src/views/supermarketerp/supermarketSpu/components/package-unit.vue index 919bbec..40ba455 100644 --- a/src/views/supermarketerp/supermarketSpu/components/package-unit.vue +++ b/src/views/supermarketerp/supermarketSpu/components/package-unit.vue @@ -59,6 +59,11 @@ + + +