소스 검색

fix: 优化经销商加载

Howie 1 년 전
부모
커밋
8d865fc3a3
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/commercialEngineering/components/base.vue
  2. 4 1
      src/views/commercialEngineering/mixin/index.js

+ 1 - 1
src/views/commercialEngineering/components/base.vue

@@ -704,7 +704,7 @@ export default {
         if (!temp && !temp?.parentLbsId && !Object.keys(this.specialCity).includes(temp?.parentLbsId)) {
           await this.getCallbackPosition(this.formData.areaId, this.formData.streetId, 'street', 'lbsId')
         }
-        if (this.formData.customerId && this.formData.customerName) {
+        if (this.module !== 'add' && this.isTradeExaminer && this.formData.customerId && this.formData.customerName) {
           this.getDealerListV2(this.formData.customerName)
         }
       }

+ 4 - 1
src/views/commercialEngineering/mixin/index.js

@@ -135,9 +135,12 @@ export default {
       ...this.formData
     }
     this.getDictList()
-    this.getDealerListV2()
     this.getSalesmanListService()
     this.getFirstPartyCustomerManagementList()
+    if (this.module === 'add') {
+      this.getDealerListV2()
+
+    }
     if (this.detailId) {
       this.getCommercialEngineeringDetail()
     }