|
|
@@ -59,11 +59,7 @@
|
|
|
">
|
|
|
<van-row style="border-bottom: 1px solid #ebedf0">
|
|
|
<van-col span="24">
|
|
|
- <van-field
|
|
|
- label="经销商名称"
|
|
|
- :readonly="chainUser == 'true'"
|
|
|
- @click="showPickerChainsListFn"
|
|
|
- class="TCFXList">
|
|
|
+ <van-field label="经销商名称" @click="showPickerChainsListFn" class="TCFXList">
|
|
|
<template #left-icon>
|
|
|
<span class="van-f-red">*</span>
|
|
|
</template>
|
|
|
@@ -822,7 +818,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
- this.chainUser = localStorage.getItem('chainUser');
|
|
|
+ this.chainUser = localStorage.getItem('chainUser'); //经销商人员(包含分销、先锋)
|
|
|
this.tabVal = 'insidePlan';
|
|
|
this.treeSelect = [];
|
|
|
// 授权
|
|
|
@@ -1470,6 +1466,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
showPickerChainsListFn() {
|
|
|
+ if (this.chainUser == 'true') return;
|
|
|
if (this.fromValue.storeCategoryName == '') {
|
|
|
this.$toast('类型未选择');
|
|
|
return;
|
|
|
@@ -1654,9 +1651,12 @@ export default {
|
|
|
this.fromValue.ifJzStoreType = value.ifJzStoreType;
|
|
|
this.getChainsByDeptCode(null, value.ifJzStoreType);
|
|
|
// 切换门店类型删除选定经销商
|
|
|
- this.treeSelect = [];
|
|
|
- this.sfaStoreChainsContactList = []; //选中确定的经销商
|
|
|
- this.activatedTCFXList = []; //选中的经销商
|
|
|
+ // 同城分销人员禁止切换经销商
|
|
|
+ if (this.chainUser == 'false') {
|
|
|
+ this.treeSelect = [];
|
|
|
+ this.sfaStoreChainsContactList = []; //选中确定的经销商
|
|
|
+ this.activatedTCFXList = []; //选中的经销商
|
|
|
+ }
|
|
|
this.showPicker = false;
|
|
|
}
|
|
|
if (value.dictValue == 'C912') {
|