cz 1 rok pred
rodič
commit
07846baa59
1 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  1. 11 0
      src/components/process/EHSD/Contract.vue

+ 11 - 0
src/components/process/EHSD/Contract.vue

@@ -1961,6 +1961,17 @@ watch(
         res.countryId = res.buyCountryId;
         res.provinceId = res.buyProvinceId;
         res.cityId = res.buyCityId;
+        if (res && res.buyCorporationName) {
+          proxy
+            .post("/customer/selPage", { keyword: res.buyCorporationName })
+            .then((res) => {
+              customerList.value = res.rows.map((x) => ({
+                ...x,
+                label: x.name,
+                value: x.id,
+              }));
+            });
+        }
         for (const key in res) {
           formData.data[key] = res[key];
         }