shudonghui 1 éve
szülő
commit
0eb1f9708c
1 módosított fájl, 9 hozzáadás és 7 törlés
  1. 9 7
      src/views/report/service-analysis/index.vue

+ 9 - 7
src/views/report/service-analysis/index.vue

@@ -329,6 +329,14 @@ watch(serviceId, (serviceUnitId) => {
   run6({ serviceUnitId });
   run7({ serviceUnitId });
   run8({ serviceUnitId });
+
+  runGetRegionList({ serviceUnitId: serviceId.value }).then(
+      (res) => {
+        if (res && res.length) {
+          regionId.value = res[0].region_id;
+        }
+      }
+  );
 });
 
 const supplierId = ref('');
@@ -358,13 +366,7 @@ watch(supplierId, (supplierId) => {
     obj1 && (ssgcsNum.value = obj1.count);
     obj2 && (qyxtrNum.value = obj2.count);
   });
-  runGetRegionList({ serviceUnitId: serviceId.value, supplierId }).then(
-    (res) => {
-      if (res && res.length) {
-        regionId.value = res[0].region_id;
-      }
-    }
-  );
+
 });
 watch(regionId, (regionId) => {
   run4({