代客人下单增加过滤掉下架的单规格商品
This commit is contained in:
parent
770c369ebd
commit
c70a6b2f68
|
|
@ -2384,16 +2384,16 @@ export default {
|
||||||
},
|
},
|
||||||
async getGoods() {
|
async getGoods() {
|
||||||
const res = await getGoodsLists(this.goods.query);
|
const res = await getGoodsLists(this.goods.query);
|
||||||
console.log(res);
|
const goods= res.records.filter((v) => {
|
||||||
this.goods.list = res.records.filter((v) => {
|
|
||||||
let isShow = true;
|
let isShow = true;
|
||||||
if (v.typeEnum !== "sku") {
|
if (v.typeEnum !== "sku") {
|
||||||
isShow = v.specList.length >= 1;
|
isShow = v.specList.length >= 1;
|
||||||
}
|
}
|
||||||
return isShow;
|
return isShow;
|
||||||
});
|
});
|
||||||
|
this.goods.list =goods
|
||||||
this.goods.total = res.total;
|
this.goods.total = res.total;
|
||||||
this.$goodsData = res;
|
this.$goodsData = goods;
|
||||||
},
|
},
|
||||||
async open(item) {
|
async open(item) {
|
||||||
this.table = item;
|
this.table = item;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue