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

11

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