Commit c148e877 by zhangxw

问题修改

1 parent ce9e093e
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
mounted() { mounted() {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
if (this.merchantList.length) return
this.getSelectingList() this.getSelectingList()
}, },
......
...@@ -548,7 +548,7 @@ ...@@ -548,7 +548,7 @@
</el-form> </el-form>
</el-row> </el-row>
</relate-store-dialog> </relate-store-dialog>
<assi-relate-store-dialog v-if="speciRelateStoreVisible" <assi-relate-store-dialog v-show="speciRelateStoreVisible"
ref="formRelateStore" ref="formRelateStore"
:speci-relate-store-visible="speciRelateStoreVisible" :speci-relate-store-visible="speciRelateStoreVisible"
:specificationValueList="specificationDialogList" :specificationValueList="specificationDialogList"
...@@ -1017,6 +1017,7 @@ export default { ...@@ -1017,6 +1017,7 @@ export default {
getSpecDataByMerchent({ baseGoodsId: this.formData.baseGoodsId }).then(res => { getSpecDataByMerchent({ baseGoodsId: this.formData.baseGoodsId }).then(res => {
let arr = [] let arr = []
let merchantIds = [] let merchantIds = []
let speciId = ''
res.forEach(val => { res.forEach(val => {
let specsValueList = [] let specsValueList = []
this.formData.upgradeGoodsList && this.formData.upgradeGoodsList.forEach(item => { this.formData.upgradeGoodsList && this.formData.upgradeGoodsList.forEach(item => {
...@@ -1025,12 +1026,13 @@ export default { ...@@ -1025,12 +1026,13 @@ export default {
specsValueList.push(it.split('-')[1]) specsValueList.push(it.split('-')[1])
}) })
} }
speciId = item.id
}) })
val.merchantList.forEach(i => { val.merchantList.forEach(i => {
merchantIds.push(i.merchantId) merchantIds.push(i.merchantId)
}) })
arr.push({ arr.push({
id: item.id, id: speciId,
specsValueList: specsValueList, specsValueList: specsValueList,
selectedMerchantIds: merchantIds, selectedMerchantIds: merchantIds,
selectedMerchantList: val.merchantList selectedMerchantList: val.merchantList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!