Commit d7e94257 authored by huangyuanyuan's avatar huangyuanyuan

财务收款单据增加权限

parent 17da0c45
......@@ -1320,12 +1320,15 @@ export default {
getCompany(){ //公司
this.apipost('admin_get_BranchGetList', this.companyMsg, res => {
let data = res.data.data;
let Status=false;
if(this.$route.query.companyID!=='-1' && this.$route.query.companyID!==undefined){
Status=true;
data.forEach(x=>{
x.disabled = true;
})
}
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
Status=true;
this.orderObj.companyIDList.forEach(x=>{
data.forEach(y=>{
if (y.disabled === false){
......@@ -1337,6 +1340,29 @@ export default {
});
}
this.companyList = data;
if(!Status){
let id=this.$route.query.id;
this.apipost('FinancialFlowTemplate_post_GetTemplateBranch', {ID:id}, res => {
if (res.data.resultCode == 1) {
let resdata = res.data.data;
if(resdata.IsGroupCommon==0){
let BranchList=resdata.BranchList;
data.forEach(x=>{
x.disabled=true;
BranchList.forEach(y=>{
if(x.Id==y){
x.disabled=false;
}
})
})
this.companyList = data;
}
}
}, err => {})
}
}, err => {})
},
//设置选中单据名单
......
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