From f84d98efd6680548da815e842d11d73782c31305 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Mon, 6 May 2024 10:07:36 +0800 Subject: [PATCH] =?UTF-8?q?app=E5=9B=BE=E7=89=87=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=B8=8D=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/updateStock/updateStock.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/product/updateStock/updateStock.vue b/pages/product/updateStock/updateStock.vue index bc4b857..819c477 100644 --- a/pages/product/updateStock/updateStock.vue +++ b/pages/product/updateStock/updateStock.vue @@ -2,7 +2,8 @@ - + + 点击预览 @@ -11,10 +12,11 @@ - {{short.store_name||short.storeCategory.cate_name}} + {{short.store_name}} - 库存: {{short.attrValue[0].stock}}个 + + 库存: {{attrvalueStock}}个 @@ -94,7 +96,8 @@ type: "", short: { product_id: '' - } + }, + attrvalueStock: 0, } }, onLoad(options) { @@ -125,6 +128,7 @@ initInfo() { productDetail(this.mer_id, this.short.product_id).then((res) => { this.short = res.data; + this.attrvalueStock = res.data.attrValue[0].stock console.log({ ...res.data });