From 9238036a4e37d19b702774ebb857988bfe8a92d4 Mon Sep 17 00:00:00 2001 From: FrancisHu <2756004617@qq.com> Date: Fri, 31 May 2024 18:58:56 +0800 Subject: [PATCH] =?UTF-8?q?5.31=E5=AE=81=E5=A4=8F=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/deviceDetail/deviceDetail.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/deviceDetail/deviceDetail.vue b/pages/deviceDetail/deviceDetail.vue index 7ccb5de..3af54c6 100644 --- a/pages/deviceDetail/deviceDetail.vue +++ b/pages/deviceDetail/deviceDetail.vue @@ -18,7 +18,7 @@ :clear="false" > -
当前型号剩余库存:{{ leftNum }}
+
当前规格剩余库存:{{ leftNum }}
预约数量
@@ -96,15 +96,16 @@ import { basePath } from '../../public'; title: '请选择规格!' }) } else { - console.log(this.typeId, this.deviceNum, this.companyId, this.leftNum); + console.log(this.typeId, this.deviceNum, this.companyId, this.leftNum, uni.getStorageSync('userInfo').userid); // 向购物车内添加商品 if (this.deviceNum > this.leftNum) { uni.showToast({ - icon: 'none', - title: '当前领料数量大于库存数量!' + icon: 'none', + title: '领料数量大于该规格库存数量!' }) } else { that.$api.fetchMaterial.addItemToCart({ + userId: uni.getStorageSync('userInfo').userid, typeId: this.typeId, bookNum: this.deviceNum, companyId: this.companyId