|
@@ -1640,6 +1640,10 @@ export default {
|
|
|
this.fromValue.storeCategory = value.dictValue;
|
|
this.fromValue.storeCategory = value.dictValue;
|
|
|
this.fromValue.ifJzStoreType = value.ifJzStoreType;
|
|
this.fromValue.ifJzStoreType = value.ifJzStoreType;
|
|
|
this.getChainsByDeptCode(null, value.ifJzStoreType);
|
|
this.getChainsByDeptCode(null, value.ifJzStoreType);
|
|
|
|
|
+ // 切换门店类型删除选定经销商
|
|
|
|
|
+ this.treeSelect = [];
|
|
|
|
|
+ this.sfaStoreChainsContactList = []; //选中确定的经销商
|
|
|
|
|
+ this.activatedTCFXList = []; //选中的经销商
|
|
|
this.showPicker = false;
|
|
this.showPicker = false;
|
|
|
}
|
|
}
|
|
|
if (value.dictValue == 'C912') {
|
|
if (value.dictValue == 'C912') {
|
|
@@ -1882,7 +1886,7 @@ export default {
|
|
|
this.activatedTCFXList = JSON.parse(JSON.stringify(this.sfaStoreChainsContactList));
|
|
this.activatedTCFXList = JSON.parse(JSON.stringify(this.sfaStoreChainsContactList));
|
|
|
if (!this.treeSelect.length) {
|
|
if (!this.treeSelect.length) {
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
- listChainsByCategory({ id: this.$route.query.id }).then((res) => {
|
|
|
|
|
|
|
+ listChainsByCategory({ orgId: this.fromValue.orgId }).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
this.toastLoading().clear();
|
|
|
// 初始化数据
|
|
// 初始化数据
|
|
|
res.data.forEach((val) => {
|
|
res.data.forEach((val) => {
|