Commit f28d023a487433b500da90536a7a92b8da93f897

Authored by 郭伟龙
1 parent 16b3c790
Exists in charge

fix:执行顺序修改

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
pages/charge/visitsAndFees/createaVisit.vue
@@ -870,11 +870,12 @@ @@ -870,11 +870,12 @@
870 this.model.jobNature = uni.getStorageSync('jobNature'); 870 this.model.jobNature = uni.getStorageSync('jobNature');
871 // 定位获取当前位置 871 // 定位获取当前位置
872 this.getLocaltion(); 872 this.getLocaltion();
  873 + let nickName = uni.getStorageSync("nickName");
  874 + this.$set(this.model, 'billingPersonName', nickName)
873 // 查询财年 875 // 查询财年
874 await this.getCurrentFiscalYear() 876 await this.getCurrentFiscalYear()
  877 + // 查询项目公司
875 await this.getCompanyCascader() 878 await this.getCompanyCascader()
876 - let nickName = uni.getStorageSync("nickName");  
877 - this.$set(this.model, 'billingPersonName', nickName)  
878 console.log("model", this.model); 879 console.log("model", this.model);
879 }, 880 },
880 async getLocaltion() { 881 async getLocaltion() {
@@ -964,6 +965,8 @@ @@ -964,6 +965,8 @@
964 }, 965 },
965 async getCompanyCascader() { 966 async getCompanyCascader() {
966 this.companyOption = (await getCompanyCascader()).data; 967 this.companyOption = (await getCompanyCascader()).data;
  968 + console.log("companyOption",this.companyOption)
  969 + if(!this.companyOption.length) return;
967 this.companyOption.forEach((item1, index1) => { 970 this.companyOption.forEach((item1, index1) => {
968 this.regionName.push(item1); 971 this.regionName.push(item1);
969 item1.children.forEach((item2, index2) => { 972 item1.children.forEach((item2, index2) => {