|
@@ -89,7 +89,7 @@
|
|
width="60%"
|
|
width="60%"
|
|
>
|
|
>
|
|
<div class="dealerModalCon">
|
|
<div class="dealerModalCon">
|
|
- <chooseDealer ref="dealerChoose" @plAdd="handleAddDealer"></chooseDealer>
|
|
|
|
|
|
+ <chooseDealer ref="dealerChoose" :promotionSn="itemSn" @plAdd="handleAddDealer"></chooseDealer>
|
|
</div>
|
|
</div>
|
|
</a-modal>
|
|
</a-modal>
|
|
</a-modal>
|
|
</a-modal>
|
|
@@ -184,6 +184,7 @@ export default {
|
|
const _this = this
|
|
const _this = this
|
|
_this.openDealerModal = true
|
|
_this.openDealerModal = true
|
|
const arr = _this.chooseDealerList
|
|
const arr = _this.chooseDealerList
|
|
|
|
+ console.log('111111111111111:',arr)
|
|
// 选择参与客户回显
|
|
// 选择参与客户回显
|
|
_this.$nextTick(() => {
|
|
_this.$nextTick(() => {
|
|
_this.$refs.dealerChoose.pageInit(arr)
|
|
_this.$refs.dealerChoose.pageInit(arr)
|
|
@@ -192,15 +193,17 @@ export default {
|
|
// 添加经销商
|
|
// 添加经销商
|
|
handleAddDealer (list) {
|
|
handleAddDealer (list) {
|
|
const newArr = []
|
|
const newArr = []
|
|
|
|
+ let dealerSnArr= []
|
|
list.forEach(item => {
|
|
list.forEach(item => {
|
|
const obj = {
|
|
const obj = {
|
|
dealerScope: this.itemSn ? 'SOME_DEALER' : 'ALL_DEALER',
|
|
dealerScope: this.itemSn ? 'SOME_DEALER' : 'ALL_DEALER',
|
|
- promotionSn: this.itemSn ? this.itemSn : undefined,
|
|
|
|
dealerSn: item.dealerSn
|
|
dealerSn: item.dealerSn
|
|
}
|
|
}
|
|
newArr.push(obj)
|
|
newArr.push(obj)
|
|
|
|
+ dealerSnArr.push(item.dealerSn)
|
|
})
|
|
})
|
|
this.openDealerModal = false
|
|
this.openDealerModal = false
|
|
|
|
+ this.chooseDealerList = dealerSnArr
|
|
this.updateDataList(newArr)
|
|
this.updateDataList(newArr)
|
|
},
|
|
},
|
|
// 更新列表显示状态
|
|
// 更新列表显示状态
|