|
@@ -408,7 +408,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
_this.$refs.table.refresh(false)
|
|
|
// 触发事件给父级组件
|
|
|
- _this.$emit('refash', 'normal')
|
|
|
+ _this.$emit('refash', 'normal', 'batchDel')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.spinning = false
|
|
@@ -440,7 +440,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
_this.$refs.table.refresh(false)
|
|
|
// 触发事件给父级组件
|
|
|
- _this.$emit('refash', 'normal')
|
|
|
+ _this.$emit('refash', 'normal', 'batchDel')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.spinning = false
|
|
@@ -480,7 +480,7 @@ export default {
|
|
|
updateWarehouse(data).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- _this.$emit('refash', 'promo')
|
|
|
+ _this.$emit('refash', 'promo', 'update')
|
|
|
}
|
|
|
_this.$refs.table.refresh(false)
|
|
|
_this.openWarehouseModal = false
|
|
@@ -525,7 +525,7 @@ export default {
|
|
|
salesBillSn: _this.salesBillSn
|
|
|
}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- _this.$emit('refash', 'normal')
|
|
|
+ _this.$emit('refash', 'normal', 'update')
|
|
|
_this.$message.success(res.message)
|
|
|
}
|
|
|
_this.$refs.table.refresh(false)
|
|
@@ -591,7 +591,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
_this.$refs.table.refresh(false)
|
|
|
- _this.$emit('refash', 'normal')
|
|
|
+ _this.$emit('refash', 'normal', 'del')
|
|
|
}
|
|
|
_this.delLoading = false
|
|
|
_this.spinning = false
|
|
@@ -629,7 +629,7 @@ export default {
|
|
|
this.$message.success('产品添加成功', 2.5)
|
|
|
this.resetSearchForm(true)
|
|
|
// 触发事件给父级组件
|
|
|
- this.$emit('refash', 'normal')
|
|
|
+ this.$emit('refash', 'normal', 'add')
|
|
|
}
|
|
|
this.spinning = false
|
|
|
this.isInster = false
|
|
@@ -653,7 +653,7 @@ export default {
|
|
|
this.$message.success('产品导入成功', 2.5)
|
|
|
this.resetSearchForm(true)
|
|
|
// 触发事件给父级组件
|
|
|
- this.$emit('refash', 'normal')
|
|
|
+ this.$emit('refash', 'normal', 'import')
|
|
|
}
|
|
|
})
|
|
|
}
|