Commit cbae1d13 authored by youjie's avatar youjie

只看待我审核

parent fe7f44a3
......@@ -42,6 +42,14 @@
@keyup.native="checkInteger(msg,'TCID')"></el-input>
</span>
</li>
<li>
<span><em>只看待我审核</em>
<el-switch
v-model="PendingMyTrial"
active-value="1"
inactive-value="0" @change="getPendingMyTrial"> </el-switch>
</span>
</li>
<li>
<button class="hollowFixedBtn" type="button"
@click="getControlList">{{$t('pub.searchBtn')}}</button>
......@@ -250,6 +258,7 @@
export default {
data() {
return {
PendingMyTrial: '0',
companyList:[],
cancelRemark: '',
dataRow: null,
......@@ -281,6 +290,7 @@
RB_Group_Id:'0',
Status:'0',
},
userinfo: {}
}
},
components: {
......@@ -289,11 +299,15 @@
created() {
this.getTeamList()
let userinfo = this.getLocalStorage();
this.userinfo = this.getLocalStorage()
this.getCompanyMsg.RB_Group_Id=userinfo.RB_Group_id;
this.EmployeeId = userinfo.EmployeeId
let ActionMenuCode=userinfo.ActionMenuCode;
if(ActionMenuCode.indexOf('Finance_clumpSeeAll')!=-1){//如果有权限 可以查看所有 如果没有只能看自己审核的
this.msg.OutGroupAuditEmpId = 0
if(userinfo.EmployeeId==2786||userinfo.EmployeeId==5){
this.PendingMyTrial = '1'
this.msg.OutGroupAuditEmpId = userinfo.EmployeeId
}else this.msg.OutGroupAuditEmpId = 0
}else{
this.msg.OutGroupAuditEmpId = userinfo.EmployeeId
}
......@@ -307,6 +321,17 @@
},
methods: {
getPendingMyTrial(){
let ActionMenuCode=this.userinfo.ActionMenuCode;
if(ActionMenuCode.indexOf('Finance_clumpSeeAll')!=-1){
if(this.PendingMyTrial=='0') {
this.msg.OutGroupAuditEmpId = '0'
}else{
this.msg.OutGroupAuditEmpId = this.userinfo.EmployeeId
}
this.getList()
}
},
// 销售预期提成
goAnticipate(row,type){
let userInfo = this.getLocalStorage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment