diff --git a/pages/nongKe/gather/select_warehouse.vue b/pages/nongKe/gather/select_warehouse.vue index 98db7d2..35d4780 100644 --- a/pages/nongKe/gather/select_warehouse.vue +++ b/pages/nongKe/gather/select_warehouse.vue @@ -290,11 +290,11 @@ methods: { addGoods(item={}) { item = JSON.parse(JSON.stringify(item)); - if(this.isNullImage(item.image)|| - ( this.isNullImage(item.slider_image[0]) && this.isNullImage(item.slider_image[1]) && this.isNullImage(item.slider_image[2]) )){ - return Toast('请先上传商品图片后再加入店铺'); - } - if(item.update) return Toast('请保存修改后再添加'); + // if(this.isNullImage(item.image)|| + // ( this.isNullImage(item.slider_image[0]) && this.isNullImage(item.slider_image[1]) && this.isNullImage(item.slider_image[2]) )){ + // return Toast('请先上传商品图片后再加入店铺'); + // } + // if(item.update) return Toast('请保存修改后再添加'); this.putGoods.id = item.id; this.putGoods.price = ''; this.putGoods.stock = ''; diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue index 3ecdb77..ceea70f 100644 --- a/pages/product/addGood/addGood.vue +++ b/pages/product/addGood/addGood.vue @@ -413,17 +413,24 @@ async initClasiffy() { this.merchantClassification = (await storeClassifyLst(this.merId)).data; }, - async initData() { + initData() { // 获取品牌 - this.brand = (await categoryBrandlist(this.merId)).data; + categoryBrandlist(this.merId).then((res)=>{ + this.brand = res.data; + }).catch(e=>{ + console.log(e); + }); // 获取平台分类 - let { data } = await categoryList(this.merId); - data.forEach((item1) => { - item1.children.forEach((item2) => { - item2.children = null; + categoryList(this.merId).then((res)=>{ + res.data.forEach((item1) => { + item1.children.forEach((item2) => { + item2.children = null; + }) }) + this.platformClassificationData = res.data; + }).catch(e=>{ + console.log(e); }) - this.platformClassificationData = data; }, // 更新商品条码 updateCode(e) {