Commit e7add3e7 authored by 黄奎's avatar 黄奎

页面修改

parent 3fadf35a
...@@ -595,6 +595,7 @@ ...@@ -595,6 +595,7 @@
this.isShowGoods = false; this.isShowGoods = false;
this.IsShowSpec = false; this.IsShowSpec = false;
var chooseGoods = this.$refs.choiceGood.getChoicedGoods(); var chooseGoods = this.$refs.choiceGood.getChoicedGoods();
console.log("chooseGoods", chooseGoods);
if (chooseGoods && chooseGoods.length > 0) { if (chooseGoods && chooseGoods.length > 0) {
this.addMsg.GoodId = chooseGoods[0].Id; this.addMsg.GoodId = chooseGoods[0].Id;
this.addMsg.name = chooseGoods[0].Name; this.addMsg.name = chooseGoods[0].Name;
...@@ -605,7 +606,24 @@ ...@@ -605,7 +606,24 @@
this.addMsg.Goods_unit = chooseGoods[0].DefaultSpecificationName; this.addMsg.Goods_unit = chooseGoods[0].DefaultSpecificationName;
this.addMsg.Goods_no = chooseGoods[0].GoodsNumbers; this.addMsg.Goods_no = chooseGoods[0].GoodsNumbers;
this.addMsg.Goods_weight = chooseGoods[0].GoodsWeight; this.addMsg.Goods_weight = chooseGoods[0].GoodsWeight;
this.SpecificationList = chooseGoods[0].SpecificationList; var tempSpecArray = chooseGoods[0].SpecificationList;
if (tempSpecArray && tempSpecArray.length > 0) {
tempSpecArray.forEach(item => {
item.Id = 0;
if (item.SpecificationValueList && item.SpecificationValueList.length > 0) {
item.SpecificationValueList.forEach(secondItem => {
secondItem.Id = 0;
})
}
})
}
this.SpecificationList = tempSpecArray;
var tempPriceArray = chooseGoods[0].SpecificationPriceList;
if (tempPriceArray && tempPriceArray.length > 0) {
tempPriceArray.forEach(item => {
item.Id = 0;
});
}
this.SpecificationPriceList = chooseGoods[0].SpecificationPriceList; this.SpecificationPriceList = chooseGoods[0].SpecificationPriceList;
this.IsShowSpec = true; this.IsShowSpec = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment