Browse Source

fix: 优化经销商加载

Howie 1 năm trước cách đây
mục cha
commit
8d865fc3a3

+ 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()
     }