shudonghui 1 년 전
부모
커밋
0eb1f9708c
1개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  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({