|
@@ -525,7 +525,7 @@
|
|
|
_this.spinning = true
|
|
|
deleteAll({ salesBillSn: _this.salesBillSn, salesPromoSn: _this.promo.salesPromoSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetSearchForm(true)
|
|
|
+ _this.$refs.table.refresh(true)
|
|
|
_this.$emit('insterOk','promo')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
@@ -557,7 +557,7 @@
|
|
|
salesBillDetailSnList: obj
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetSearchForm(true)
|
|
|
+ _this.$refs.table.refresh(false)
|
|
|
_this.$emit('insterOk','promo')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
@@ -597,11 +597,10 @@
|
|
|
updateWarehouse(data).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetSearchForm(true)
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.openWarehouseModal = false
|
|
|
- _this.$refs.table.refresh(true)
|
|
|
+ _this.$refs.table.refresh(false)
|
|
|
_this.spinning = false
|
|
|
})
|
|
|
},
|
|
@@ -641,10 +640,10 @@
|
|
|
salesPromoSn: _this.promo.salesPromoSn
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetSearchForm(true)
|
|
|
_this.$emit('insterOk','promo')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
+ _this.$refs.table.refresh(false)
|
|
|
_this.spinning = false
|
|
|
})
|
|
|
} else {
|
|
@@ -665,7 +664,7 @@
|
|
|
_this.spinning = true
|
|
|
salesDetailDel({ salesBillDetailSn: row.salesBillDetailSn, salesBillSn: _this.salesBillSn, salesPromoSn: _this.promo.salesPromoSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.resetSearchForm(true)
|
|
|
+ _this.$refs.table.refresh(false)
|
|
|
_this.$emit('insterOk','promo')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
@@ -689,7 +688,7 @@
|
|
|
upAcitveSuccess(){
|
|
|
this.spinning = false
|
|
|
this.openUpActiveModal = false
|
|
|
- this.resetSearchForm()
|
|
|
+ this.$refs.table.refresh(false)
|
|
|
},
|
|
|
// 添加产品
|
|
|
insterProduct (row, promotionFlag, promoProductClz) {
|
|
@@ -729,7 +728,7 @@
|
|
|
salesDetailInsert(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success('产品添加成功', 2.5)
|
|
|
- this.resetSearchForm()
|
|
|
+ this.resetSearchForm(true)
|
|
|
this.$emit('insterOk','promo')
|
|
|
}
|
|
|
this.spinning = false
|
|
@@ -765,7 +764,7 @@
|
|
|
salesBatchInsert(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success('产品导入成功', 2.5)
|
|
|
- this.resetSearchForm()
|
|
|
+ this.resetSearchForm(true)
|
|
|
this.$emit('insterOk','promo')
|
|
|
}
|
|
|
})
|