Commit 7f7d7d43 authored by 黄媛媛's avatar 黄媛媛

11

parent f04faa89
......@@ -295,7 +295,7 @@ export default {
"dmc_post_Get_KKDayOrderQueryOrderDtl",
this.msg,
res => {
console.log("sfafg",res);
// console.log("sfafg",res);
if (res.data.resultCode == 1) {
this.oldModel=res.data.data.oldModel;
this.jo=res.data.data.jo;
......
......@@ -385,16 +385,19 @@ export default {
if (r.data.resultCode == 1) {
this.sites = r.data.data;
if(userInfo){
let rB_Branch_id=userInfo.salesBaseInfo.rB_Branch_id;
// let rB_Branch_id=1;
this.sites.forEach(item=>{
if(item.companyId==rB_Branch_id){
state=true;
this.city = item.companyId;
window.localStorage.site = this.city;
window.localStorage.cityId = item.cityId;
}
})
if(userInfo.salesBaseInfo){
let rB_Branch_id=userInfo.salesBaseInfo.rB_Branch_id;
this.sites.forEach(item=>{
if(item.companyId==rB_Branch_id){
state=true;
this.city = item.companyId;
window.localStorage.site = this.city;
window.localStorage.cityId = item.cityId;
}
})
}else{
this.Error("请重新登陆!")
}
}
if(!state){
let cityname = this.cityText.slice(0, this.cityText.length - 1);
......
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