Explorar el Código

供应商重复提交问题

cz hace 1 año
padre
commit
a655d9b1c5
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      src/views/purchaseManage/supplier/supplier/index.vue

+ 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;