|
@@ -661,7 +661,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success('产品添加成功', 2.5)
|
|
|
this.resetSearchForm(true)
|
|
|
- this.$emit('refash', 'promo')
|
|
|
+ this.$emit('refash', 'promo', 'add')
|
|
|
}
|
|
|
this.spinning = false
|
|
|
this.isInster = false
|
|
@@ -696,7 +696,7 @@ export default {
|
|
|
}
|
|
|
this.$message.success('累计产品添加成功', 2.5)
|
|
|
this.resetSearchForm(true)
|
|
|
- this.$emit('refash', 'promo')
|
|
|
+ this.$emit('refash', 'promo', 'add')
|
|
|
}
|
|
|
this.spinning = false
|
|
|
this.isInster = false
|
|
@@ -766,7 +766,7 @@ export default {
|
|
|
deleteAll({ salesBillSn: _this.salesBillSn, salesPromoSn: '' }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.searchProduct()
|
|
|
- _this.$emit('refash', 'promo')
|
|
|
+ _this.$emit('refash', 'promo', 'batchDel')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.spinning = false
|
|
@@ -796,7 +796,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.searchProduct()
|
|
|
- _this.$emit('refash', 'promo')
|
|
|
+ _this.$emit('refash', 'promo', 'batchDel')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.spinning = false
|
|
@@ -839,7 +839,7 @@ export default {
|
|
|
console.log(res)
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- _this.$emit('refash', 'promo')
|
|
|
+ _this.$emit('refash', 'promo', 'update')
|
|
|
}
|
|
|
_this.openWarehouseModal = false
|
|
|
_this.searchProduct()
|
|
@@ -895,7 +895,7 @@ export default {
|
|
|
salesPromoSn: ''
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.$emit('refash', 'promo')
|
|
|
+ _this.$emit('refash', 'promo', 'update')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.searchProduct()
|
|
@@ -919,7 +919,7 @@ export default {
|
|
|
salesDetailDel({ salesBillDetailSn: row.salesBillDetailSn, salesBillSn: _this.salesBillSn, salesPromoSn: '' }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.searchProduct()
|
|
|
- _this.$emit('refash', 'promo')
|
|
|
+ _this.$emit('refash', 'promo', 'del')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.delLoading = false
|