|
@@ -280,8 +280,9 @@ export default {
|
|
|
if (_this.itemSn && _this.itemSn.length > 0) {
|
|
|
const hasEq = _this.chooseDealerList.filter(item => !formData.shopPromoDealerList.map(k => k.dealerSn).includes(item.dealerSn)) // 经销商是否变更
|
|
|
const hasEq1 = _this.isAllDealerFlag == 0 && formData.allDealerFlag == 1 // 部分变全部
|
|
|
+ const hasChange = _this.isAllDealerFlag == 0 && _this.isAllDealerFlag == formData.allDealerFlag // 是否部分经销商未变更
|
|
|
console.log(hasEq, hasEq1)
|
|
|
- if (_this.chooseProductNum > 0 && (hasEq && hasEq.length > 0 || hasEq1)) {
|
|
|
+ if (_this.chooseProductNum > 0 && (hasChange && hasEq && hasEq.length > 0 || hasEq1)) {
|
|
|
_this.$confirm({
|
|
|
title: '提示',
|
|
|
content: <div>变更【参与经销商】后将会【<span style="color:red">清空</span>】已选产品列表,确定变更吗?</div>,
|