|
@@ -659,7 +659,7 @@ export default {
|
|
|
salesBillDetailSnList: snArr,
|
|
|
salesBillSn: _this.salesBillSn,
|
|
|
salesPromoSn: _this.promo.salesPromoSn,
|
|
|
- allFlag: _this.warehouseTit ? true : undefined
|
|
|
+ allFlag: _this.warehouseTit == '全部仓库设置' ? true : undefined
|
|
|
}
|
|
|
_this.setWarehouseInfo(ajax_data)
|
|
|
},
|
|
@@ -672,9 +672,10 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
_this.$emit('insterOk', 'promo')
|
|
|
+ _this.$refs.table.refresh(false)
|
|
|
+ _this.$refs.table.clearSelected()
|
|
|
}
|
|
|
_this.openWarehouseModal = false
|
|
|
- _this.$refs.table.refresh(false)
|
|
|
_this.spinning = false
|
|
|
})
|
|
|
},
|
|
@@ -685,6 +686,7 @@ export default {
|
|
|
if (!_this.rowSelectionInfo || (_this.rowSelectionInfo && _this.rowSelectionInfo.selectedRowKeys.length < 1)) {
|
|
|
_this.$message.warning('请先选择要设置的产品!')
|
|
|
} else {
|
|
|
+ _this.warehouseTit = '部分仓库设置'
|
|
|
_this.openWarehouseModal = true
|
|
|
}
|
|
|
} else if (e.key == 1) { // 删除已选项
|