|
@@ -811,6 +811,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
|
this.tabVal = 'insidePlan';
|
|
this.tabVal = 'insidePlan';
|
|
|
|
|
+ this.treeSelect = [];
|
|
|
// 授权
|
|
// 授权
|
|
|
getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
|
|
getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
|
|
|
this.getTCFXList();
|
|
this.getTCFXList();
|
|
@@ -1463,13 +1464,14 @@ export default {
|
|
|
this.$toast('部门未选择');
|
|
this.$toast('部门未选择');
|
|
|
return;
|
|
return;
|
|
|
} else {
|
|
} else {
|
|
|
- this.showPickerChainsList = true;
|
|
|
|
|
// 分销店
|
|
// 分销店
|
|
|
if (
|
|
if (
|
|
|
this.verifyStoreType(this.fromValue.storeCategory) &&
|
|
this.verifyStoreType(this.fromValue.storeCategory) &&
|
|
|
this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
|
|
this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
|
|
|
) {
|
|
) {
|
|
|
this.getStoreChainsContact();
|
|
this.getStoreChainsContact();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.showPickerChainsList = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1879,15 +1881,19 @@ export default {
|
|
|
// 打开select,上次选中确认数据赋值给选中待确认,回显使用
|
|
// 打开select,上次选中确认数据赋值给选中待确认,回显使用
|
|
|
this.activatedTCFXList = JSON.parse(JSON.stringify(this.sfaStoreChainsContactList));
|
|
this.activatedTCFXList = JSON.parse(JSON.stringify(this.sfaStoreChainsContactList));
|
|
|
if (!this.treeSelect.length) {
|
|
if (!this.treeSelect.length) {
|
|
|
- listChainsByCategory().then((res) => {
|
|
|
|
|
|
|
+ this.toastLoading(0, '加载中...', true);
|
|
|
|
|
+ listChainsByCategory({ id: this.$route.query.id }).then((res) => {
|
|
|
|
|
+ this.toastLoading().clear();
|
|
|
// 初始化数据
|
|
// 初始化数据
|
|
|
res.data.forEach((val) => {
|
|
res.data.forEach((val) => {
|
|
|
val.dot = false;
|
|
val.dot = false;
|
|
|
});
|
|
});
|
|
|
|
|
+ this.showPickerChainsList = true;
|
|
|
this.treeSelect = res.data;
|
|
this.treeSelect = res.data;
|
|
|
this.setCheckData();
|
|
this.setCheckData();
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ this.showPickerChainsList = true;
|
|
|
this.setCheckData();
|
|
this.setCheckData();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|