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