Prechádzať zdrojové kódy

供应商重复提交问题

cz 1 rok pred
rodič
commit
a655d9b1c5

+ 6 - 2
src/views/purchaseManage/supplier/supplier/index.vue

@@ -498,8 +498,12 @@ const getDtl = (row) => {
             };
           });
         }
-        getCityData(res.countryId, "20");
-        getCityData(res.provinceId, "30");
+        if (res.countryId) {
+          getCityData(res.countryId, "20");
+        }
+        if (res.provinceId) {
+          getCityData(res.provinceId, "30");
+        }
         res.type = res.type + "";
         formData.data = res;
         dialogVisible.value = true;