Commit 51dbee5a authored by youjie's avatar youjie

no message

parent bb32df02
...@@ -3,14 +3,17 @@ ...@@ -3,14 +3,17 @@
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
<ul> <ul>
<li> <li>
<span><em>{{$t('sm.company')}}</em><el-select filterable @change='getUser' v-model='msg.RB_BranchId'> <span><em>{{$t('sm.company')}}</em><el-select filterable @change='getUser' v-model='msg.RB_BranchId'
:disabled="F_Query_SelfBranch"
>
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for='item in companyList' :label='item.BName' :value='item.Id' :key='item.Id'></el-option> <el-option v-for='item in companyList' :label='item.BName' :value='item.Id' :key='item.Id'></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span><em>{{$t('objFill.v101.administrative.qiandaoren')}}</em><el-select filterable v-model='msg.EmployeeId'> <span><em>{{$t('objFill.v101.administrative.qiandaoren')}}</em><el-select filterable v-model='msg.EmployeeId'
:disabled="F_Query_SelfBranch">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for='item in userList' :label='item.name' :value='item.empId' :key='item.empId'></el-option> <el-option v-for='item in userList' :label='item.name' :value='item.empId' :key='item.empId'></el-option>
</el-select> </el-select>
...@@ -105,6 +108,7 @@ ...@@ -105,6 +108,7 @@
export default { export default {
data() { data() {
return { return {
F_Query_SelfBranch: false,
picObj:[], picObj:[],
dspNone:true, dspNone:true,
loading:true, loading:true,
...@@ -142,6 +146,7 @@ ...@@ -142,6 +146,7 @@
companyList:[], companyList:[],
userList:[], userList:[],
layerItem:[], layerItem:[],
} }
}, },
methods: { methods: {
...@@ -182,7 +187,7 @@ ...@@ -182,7 +187,7 @@
},err=>{}) },err=>{})
}, },
getUser(){ getUser(){
this.msg.EmployeeId='-1' if(!this.msg.EmployeeId) this.msg.EmployeeId='-1'
this.getUserMsg.RB_Branch_id=this.msg.RB_BranchId; this.getUserMsg.RB_Branch_id=this.msg.RB_BranchId;
this.apipost('app_get_company_employee',this.getUserMsg,res=>{ this.apipost('app_get_company_employee',this.getUserMsg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
...@@ -213,6 +218,16 @@ ...@@ -213,6 +218,16 @@
}, },
mounted() { mounted() {
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
if(ActionMenuCode.indexOf('F_Query_AllIncomPay')!=-1){
this.F_Query_SelfBranch = false
}else if(ActionMenuCode.indexOf('F_Query_SelfBranch')!=-1){
this.F_Query_SelfBranch = true
this.msg.RB_BranchId = userInfo.RB_Branch_id
}else{
this.F_Query_SelfBranch = true
this.msg.EmployeeId = userInfo.EmployeeId
}
this.getUserMsg.RB_Group_id=this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID this.getUserMsg.RB_Group_id=this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID
this.getCompany() this.getCompany()
this.getUser() this.getUser()
......
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