|
@@ -239,8 +239,9 @@
|
|
|
<el-tab-pane label="MB/L信息" name="third">
|
|
|
<mbinformation :assemblyForm="form" :detailData="detailData"></mbinformation>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="报表管理" name="fourth">
|
|
|
- <reports :id="form.id" :assemblyForm="form" :disabled="detailData.seeDisabled" businessValue="HYCK"></reports>
|
|
|
+ <el-tab-pane label="报表管理" name="fourth" v-if="roleName.indexOf('admin') != -1" >
|
|
|
+ <reports :id="form.id" :assemblyForm="form"
|
|
|
+ :disabled="detailData.seeDisabled" businessValue="HYCK"></reports>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="EDI CODE" name="sixth">
|
|
|
<edicode :assemblyForm="form" :detailData="detailData"></edicode>
|
|
@@ -613,6 +614,7 @@ import {editypesList} from "@/api/iosBasicData/editypes";
|
|
|
activeName:'first',
|
|
|
bigtabs:'wt',
|
|
|
saberUserInfo:{}, // 当前登录人信息
|
|
|
+ roleName:[], // 当前的角色权限
|
|
|
// 需要加判断是否必填的数据
|
|
|
messageData:[
|
|
|
{
|
|
@@ -721,6 +723,7 @@ import {editypesList} from "@/api/iosBasicData/editypes";
|
|
|
},
|
|
|
created() {
|
|
|
this.saberUserInfo = JSON.parse(localStorage.getItem('saber-userInfo')).content
|
|
|
+ this.roleName = localStorage.getItem('roleName').split(',')
|
|
|
// 判断是否员id, 有id 就不显示
|
|
|
if (!this.form.id) {
|
|
|
this.deptGetDetailPolfun() // 收货地 装货港 当前登录人的默认
|