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 870 this.model.jobNature = uni.getStorageSync('jobNature');
871 871 // 定位获取当前位置
872 872 this.getLocaltion();
  873 + let nickName = uni.getStorageSync("nickName");
  874 + this.$set(this.model, 'billingPersonName', nickName)
873 875 // 查询财年
874 876 await this.getCurrentFiscalYear()
  877 + // 查询项目公司
875 878 await this.getCompanyCascader()
876   - let nickName = uni.getStorageSync("nickName");
877   - this.$set(this.model, 'billingPersonName', nickName)
878 879 console.log("model", this.model);
879 880 },
880 881 async getLocaltion() {
... ... @@ -964,6 +965,8 @@
964 965 },
965 966 async getCompanyCascader() {
966 967 this.companyOption = (await getCompanyCascader()).data;
  968 + console.log("companyOption",this.companyOption)
  969 + if(!this.companyOption.length) return;
967 970 this.companyOption.forEach((item1, index1) => {
968 971 this.regionName.push(item1);
969 972 item1.children.forEach((item2, index2) => {
... ...