Commit b4b34cc4 by 王志慧

修复采购商城bug

1 parent aaf10dad
...@@ -597,6 +597,7 @@ export default { ...@@ -597,6 +597,7 @@ export default {
visible(val) { visible(val) {
if (val) { if (val) {
this.handleItemInfo.goodsNumber = 1 this.handleItemInfo.goodsNumber = 1
this.selectIndex = 0
this.getGoodsDetail() this.getGoodsDetail()
} }
} }
...@@ -779,7 +780,6 @@ export default { ...@@ -779,7 +780,6 @@ export default {
}) })
return item return item
}) })
console.log(goodType, 'goodType')
this.selectItemList = [] this.selectItemList = []
orgdata.skus = res.upgradeGoodsSpecificationValueDTOS.map((item, index) => { orgdata.skus = res.upgradeGoodsSpecificationValueDTOS.map((item, index) => {
item.skuId = '' item.skuId = ''
...@@ -846,7 +846,6 @@ export default { ...@@ -846,7 +846,6 @@ export default {
let flag = false let flag = false
let selectId = this.goodsTypeList.reduce((pre, item, index) => { let selectId = this.goodsTypeList.reduce((pre, item, index) => {
let value = item.propertyList.find(el => el.selected) let value = item.propertyList.find(el => el.selected)
console.log(value, 'value')
// 有一行没有选中 抛错 // 有一行没有选中 抛错
if (!value) { if (!value) {
flag = true flag = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!