|
@@ -32,7 +32,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="16">
|
|
|
<div class="p-notes">
|
|
|
- <a-icon style="color: #FF9900;" type="bell" /> 已选产品可参加<span v-for="item in activeList" :key="item.id">{{ item.name }}</span>的促销活动,促销产品为指定产品
|
|
|
+ <a-icon style="color: #FF9900;" type="bell" /> 已选产品可参加<span>{{ activeName }}</span>的促销活动,促销产品为指定产品
|
|
|
</div>
|
|
|
</a-col>
|
|
|
<!-- <a-col :span="6">
|
|
@@ -180,7 +180,7 @@ export default {
|
|
|
salesBillSn: '',
|
|
|
promotionFlag: 0
|
|
|
},
|
|
|
- activeList: [], // 促销活动
|
|
|
+ activeName: '', // 促销活动
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
@@ -347,8 +347,15 @@ export default {
|
|
|
},
|
|
|
// 获取促销活动
|
|
|
getPromoacActiveList () {
|
|
|
+ const _this = this
|
|
|
getPromoacActiveList({ salesBillSn: this.salesBillSn }).then(res => {
|
|
|
- this.activeList = res.data || []
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.activeName = ''
|
|
|
+ res.data.map(item => {
|
|
|
+ _this.activeName += item.name + '、'
|
|
|
+ })
|
|
|
+ _this.activeName = _this.activeName.slice(0, _this.activeName.length - 1)
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 选择促销品
|