diff --git a/components/addInvoicing/index.vue b/components/addInvoicing/index.vue index 0eeb1b2..511dc88 100644 --- a/components/addInvoicing/index.vue +++ b/components/addInvoicing/index.vue @@ -26,7 +26,8 @@ 发票抬头 - + + diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index c7e7726..f0f7b98 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -103,7 +103,7 @@ - + @@ -230,7 +230,7 @@ that.userInfoData = res.data; this.mer_id = res.data.service.mer_id if (!res.data.mer_info) { - that.$set(this, 'jurisdiction', true); + that.$set(this, 'jurisdiction', false); } }); } diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index 2ea1be5..60b59a7 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -894,6 +894,7 @@ //如果没有属性,赋值给商品默认库存 if (productSelect === undefined && !this.attr.productAttr.length) productSelect = this.attr.productSelect; + console.log(productSelect); //无属性值即库存为0;不存在加减; if (productSelect === undefined) return; let stock = productSelect.stock || 0; @@ -904,11 +905,11 @@ this.$set(this.attr.productSelect, "cart_num", stock); this.$set(this, "cart_num", stock); } - if (num.cart_num > this.storeInfo.once_max_count && this.storeInfo.once_max_count != 0) { + if (num.cart_num > productSelect.stock) { this.$set(this.attr.productSelect, "cart_num", this.storeInfo.once_max_count); this.$set(this, "cart_num", this.storeInfo.once_max_count); return this.$util.Tips({ - title: "单次购买件数不能超过" + this.storeInfo.once_max_count + "件!" + title: "单次购买件数不能超过" + productSelect.stock + "件!" }); } } else { diff --git a/pages/nongKe/cpns/goodsPopup.vue b/pages/nongKe/cpns/goodsPopup.vue index b5c5156..c64d8a8 100644 --- a/pages/nongKe/cpns/goodsPopup.vue +++ b/pages/nongKe/cpns/goodsPopup.vue @@ -47,12 +47,12 @@ }; }, onLoad() { - }, methods: { addor(item, index) { this.info.num += item; if (this.info.num <= 0) { + console.log(goods_info); this.info.num = 1; } }, diff --git a/pages/nongKe/gather/select_warehouse.vue b/pages/nongKe/gather/select_warehouse.vue index 9e97034..46831df 100644 --- a/pages/nongKe/gather/select_warehouse.vue +++ b/pages/nongKe/gather/select_warehouse.vue @@ -183,7 +183,7 @@ if (type === 1) { if (this.stype == 1) { uni.navigateTo({ - url: '/pages/product/addGoods/index' + url: `/pages/product/addGoods/index?mer_id=${this.mer_id}` }); return; } diff --git a/pages/product/addGoods/index.vue b/pages/product/addGoods/index.vue index 5ba3b6e..40d52a3 100644 --- a/pages/product/addGoods/index.vue +++ b/pages/product/addGoods/index.vue @@ -1,825 +1,869 @@