|
@@ -347,7 +347,8 @@ export default {
|
|
|
descDetail: null, // 规则详细数据
|
|
|
countData: null, // 统计信息
|
|
|
warehouseTit: '', // 仓库设置唐卡标题
|
|
|
- showStockCol: false // 第三方库存是否显示
|
|
|
+ showStockCol: false, // 第三方库存是否显示
|
|
|
+ promo: null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -568,7 +569,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 删除全部产品
|
|
|
+ // 删除全部产品 this.promo ? this.promo.salesPromoSn : ''
|
|
|
handleBatchDelAll () {
|
|
|
const _this = this
|
|
|
if (_this.dataSource.length == 0) {
|
|
@@ -581,7 +582,7 @@ export default {
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
_this.spinning = true
|
|
|
- deleteAll({ salesBillSn: _this.salesBillSn, salesPromoSn: this.promo ? this.promo.salesPromoSn : '' }).then(res => {
|
|
|
+ deleteAll({ salesBillSn: _this.salesBillSn, salesPromoSn: '' }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$refs.table.refresh(true)
|
|
|
_this.$emit('refash', 'promo')
|
|
@@ -690,6 +691,7 @@ export default {
|
|
|
},
|
|
|
// 打开换促销活动列表选项
|
|
|
handleUpdateActive (record) {
|
|
|
+ console.log('22222222:', this.promo)
|
|
|
this.$refs.updateActive.getActiveList({
|
|
|
productSn: record.productSn,
|
|
|
salesBillSn: this.salesBillSn,
|