Commit 51dbee5a authored by youjie's avatar youjie

no message

parent bb32df02
......@@ -3,14 +3,17 @@
<div class="query-box" style="border-bottom: none;">
<ul>
<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 v-for='item in companyList' :label='item.BName' :value='item.Id' :key='item.Id'></el-option>
</el-select>
</span>
</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 v-for='item in userList' :label='item.name' :value='item.empId' :key='item.empId'></el-option>
</el-select>
......@@ -105,6 +108,7 @@
export default {
data() {
return {
F_Query_SelfBranch: false,
picObj:[],
dspNone:true,
loading:true,
......@@ -142,6 +146,7 @@
companyList:[],
userList:[],
layerItem:[],
}
},
methods: {
......@@ -182,7 +187,7 @@
},err=>{})
},
getUser(){
this.msg.EmployeeId='-1'
if(!this.msg.EmployeeId) this.msg.EmployeeId='-1'
this.getUserMsg.RB_Branch_id=this.msg.RB_BranchId;
this.apipost('app_get_company_employee',this.getUserMsg,res=>{
if(res.data.resultCode==1){
......@@ -213,6 +218,16 @@
},
mounted() {
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.getCompany()
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