|
|
@@ -293,8 +293,8 @@ export default {
|
|
|
name: 'createStore',
|
|
|
},
|
|
|
];
|
|
|
- // 2销售部主管和大区主管显示色卡
|
|
|
- if (this.userInfo.empLevel == '2' || this.userInfo.empLevel == '1') {
|
|
|
+ // 业务员不显示色卡
|
|
|
+ if (this.userInfo.empLevel != '3') {
|
|
|
this.tabsItem.push({
|
|
|
title: '色卡',
|
|
|
name: 'pantone',
|
|
|
@@ -310,8 +310,8 @@ export default {
|
|
|
// 请求子级数据时不需要loading
|
|
|
if (!resolve && !tree) {
|
|
|
this.toggleIndex = this.toggleIndex++;
|
|
|
- this.maskShow = true;
|
|
|
}
|
|
|
+ this.maskShow = true;
|
|
|
if (this.fromType == 'noVisit') {
|
|
|
// 未拜访
|
|
|
this.deptId = tree ? tree.onlyId : this.userInfo.deptId;
|
|
|
@@ -351,6 +351,7 @@ export default {
|
|
|
// 未拜访
|
|
|
selectNoVisitsInfoFun(resolve) {
|
|
|
selectNoVisitsInfo({ deptId: this.deptId }).then((res) => {
|
|
|
+ this.maskShow = false;
|
|
|
if (res.code == 200) {
|
|
|
res.data.forEach((val) => {
|
|
|
if (val.empLevel < 3) val.hasChildren = true;
|
|
|
@@ -359,11 +360,9 @@ export default {
|
|
|
if (resolve) {
|
|
|
resolve && resolve(res.data);
|
|
|
} else {
|
|
|
- this.maskShow = false;
|
|
|
this.tableList = res.data;
|
|
|
}
|
|
|
} else {
|
|
|
- this.maskShow = false;
|
|
|
this.Toast({
|
|
|
message: res.msg,
|
|
|
duration: 5000,
|
|
|
@@ -374,6 +373,7 @@ export default {
|
|
|
// 建店
|
|
|
selectPendingCasesInfoFun(resolve) {
|
|
|
selectPendingCasesInfo({ deptId: this.deptId }).then((res) => {
|
|
|
+ this.maskShow = false;
|
|
|
if (res.code == 200) {
|
|
|
res.data.forEach((val) => {
|
|
|
// 是否还有子级
|
|
|
@@ -383,11 +383,9 @@ export default {
|
|
|
if (resolve) {
|
|
|
resolve && resolve(res.data);
|
|
|
} else {
|
|
|
- this.maskShow = false;
|
|
|
this.tableList = res.data;
|
|
|
}
|
|
|
} else {
|
|
|
- this.maskShow = false;
|
|
|
this.Toast({
|
|
|
message: res.msg,
|
|
|
duration: 5000,
|
|
|
@@ -417,19 +415,21 @@ export default {
|
|
|
getReportMaterialTypeFun(resolve, deptId) {
|
|
|
// deptId 第一次传 null 获取当前等级下的数据(不需要当前层级)
|
|
|
getReportMaterialType({ materialCode: this.materialCode, deptId: deptId }).then((res) => {
|
|
|
+ this.maskShow = false;
|
|
|
if (res.code == 200) {
|
|
|
res.data.colorCardList.forEach((val) => {
|
|
|
if (val.isChildren && val.isChildren == 'true') val.hasChildren = true;
|
|
|
});
|
|
|
// 是否是子级
|
|
|
if (resolve) {
|
|
|
+ res.data.colorCardList.forEach((val, index) => {
|
|
|
+ this.$set(val, 'warehouseCode', val.warehouseCode + index);
|
|
|
+ });
|
|
|
resolve && resolve(res.data.colorCardList);
|
|
|
} else {
|
|
|
- this.maskShow = false;
|
|
|
this.tableList = res.data.colorCardList;
|
|
|
}
|
|
|
} else {
|
|
|
- this.maskShow = false;
|
|
|
this.Toast({
|
|
|
message: res.msg,
|
|
|
duration: 5000,
|