From e064484fe22f6ccedc26e92bbe435925cc0e8e96 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 4 Nov 2024 10:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E4=BB=B7=E6=A0=BC=E7=BC=96=E8=BE=91=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=85=BC=E5=AE=B9=E6=97=A0=E5=8F=8D=E5=BA=94=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageProduct/index/components/edit-price.vue | 12 ++++++++++-- pageProduct/index/components/edit-stock.vue | 8 +++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pageProduct/index/components/edit-price.vue b/pageProduct/index/components/edit-price.vue index 5d5dc74..79f676a 100644 --- a/pageProduct/index/components/edit-price.vue +++ b/pageProduct/index/components/edit-price.vue @@ -89,7 +89,8 @@ reactive, ref, watch, - nextTick + nextTick, + onMounted } from 'vue'; import { returnSkuSnap, @@ -138,7 +139,10 @@ } } }) - let data = ref(props.goods) + let data = ref({ + lowPrice: 0, + skuList: [] + }) const rules = { 'lowPrice': [{ type: 'Number', @@ -221,6 +225,10 @@ // skuSnap: JSON.stringify(skuSnap) // }) // } + + onMounted(()=>{ + refForm.value.setRules(rules) + })