|
@@ -615,6 +615,7 @@ export default {
|
|
storageNameList: [],
|
|
storageNameList: [],
|
|
surplusRouteQuantityOption: [],
|
|
surplusRouteQuantityOption: [],
|
|
saveLoading: false,
|
|
saveLoading: false,
|
|
|
|
+ userInfo:null,
|
|
disabled: false,
|
|
disabled: false,
|
|
form: {
|
|
form: {
|
|
corpId: null,
|
|
corpId: null,
|
|
@@ -1428,6 +1429,7 @@ export default {
|
|
}
|
|
}
|
|
this.routerTag = window.location.hash.slice(1);
|
|
this.routerTag = window.location.hash.slice(1);
|
|
})
|
|
})
|
|
|
|
+ this.userInfo = localStorage.getItem('saber-userInfo') && JSON.parse(localStorage.getItem('saber-userInfo')).content.role_name.split(',').includes('admin');
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
IntegerFormat(num) {
|
|
IntegerFormat(num) {
|
|
@@ -1465,6 +1467,16 @@ export default {
|
|
}
|
|
}
|
|
let roleName = 'admin'
|
|
let roleName = 'admin'
|
|
this.judgeNew()
|
|
this.judgeNew()
|
|
|
|
+ //是管理员才能看返利价格
|
|
|
|
+ if (!this.roleName.includes('admin')) {
|
|
|
|
+ console.log('45654645');
|
|
|
|
+ this.customerContact.column.forEach(item => {
|
|
|
|
+ if (item.prop == 'purchaseRebatePrice') {
|
|
|
|
+ item.hide = true;
|
|
|
|
+ item.showColumn = false;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
if (this.roleName == 'salesman') {
|
|
if (this.roleName == 'salesman') {
|
|
this.customerContact.column.forEach(item => {
|
|
this.customerContact.column.forEach(item => {
|
|
if (item.prop == 'purchaseAmount') {
|
|
if (item.prop == 'purchaseAmount') {
|