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 });