@factoringplus/pl-components-pack-v3 0.3.70 → 0.3.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39647,6 +39647,7 @@ const _sfc_main$i = {
|
|
|
39647
39647
|
},
|
|
39648
39648
|
watch: {
|
|
39649
39649
|
value: function(newVal) {
|
|
39650
|
+
this.selectedValue = newVal;
|
|
39650
39651
|
this.ruleForm[this.prop] = newVal;
|
|
39651
39652
|
}
|
|
39652
39653
|
},
|
|
@@ -39675,28 +39676,43 @@ const _sfc_main$i = {
|
|
|
39675
39676
|
redirect: "follow"
|
|
39676
39677
|
};
|
|
39677
39678
|
fetch(`${this.serviceUrl}`, requestOptions).then((response2) => response2.json()).then((result) => {
|
|
39678
|
-
|
|
39679
|
-
|
|
39680
|
-
|
|
39681
|
-
|
|
39682
|
-
|
|
39683
|
-
|
|
39684
|
-
|
|
39685
|
-
|
|
39686
|
-
|
|
39679
|
+
this.suggestionList = result;
|
|
39680
|
+
this.suggestionList[0] = {
|
|
39681
|
+
value: query
|
|
39682
|
+
};
|
|
39683
|
+
if (this.personOrCompany === "company") {
|
|
39684
|
+
const liquidatedCompanyList = result.filter((item) => item.data.state.status === 2).map((item) => {
|
|
39685
|
+
const itemData = {
|
|
39686
|
+
name: item.value,
|
|
39687
|
+
inn: item.data.inn,
|
|
39688
|
+
kpp: item.data.kpp,
|
|
39689
|
+
ogrn: item.data.ogrn
|
|
39690
|
+
};
|
|
39691
|
+
return itemData;
|
|
39692
|
+
});
|
|
39693
|
+
liquidatedCompanyList[0] = {
|
|
39694
|
+
name: query
|
|
39687
39695
|
};
|
|
39688
|
-
|
|
39689
|
-
}
|
|
39690
|
-
this.$emit("update:suggestionsCount",
|
|
39691
|
-
this.$emit("update:liquidatedCompanyList", liquidatedCompanyList);
|
|
39696
|
+
this.$emit("update:liquidatedCompanyList", liquidatedCompanyList);
|
|
39697
|
+
}
|
|
39698
|
+
this.$emit("update:suggestionsCount", result.length);
|
|
39692
39699
|
this.noData = `\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445`;
|
|
39693
39700
|
});
|
|
39694
39701
|
},
|
|
39695
39702
|
onSelect(suggestion) {
|
|
39696
|
-
this
|
|
39697
|
-
|
|
39698
|
-
|
|
39699
|
-
|
|
39703
|
+
if (this.personOrCompany === "company") {
|
|
39704
|
+
if (suggestion.data) {
|
|
39705
|
+
this.$emit("update:kpp", suggestion.data.kpp);
|
|
39706
|
+
this.$emit("update:ogrn", suggestion.data.ogrn);
|
|
39707
|
+
this.$emit("update:inn", suggestion.data.inn);
|
|
39708
|
+
}
|
|
39709
|
+
this.$emit("updateValue", suggestion);
|
|
39710
|
+
} else if (this.personOrCompany === "person") {
|
|
39711
|
+
if (suggestion.data) {
|
|
39712
|
+
this.$emit("update:id", suggestion.data.id);
|
|
39713
|
+
}
|
|
39714
|
+
this.$emit("updateValue", suggestion);
|
|
39715
|
+
}
|
|
39700
39716
|
}
|
|
39701
39717
|
}
|
|
39702
39718
|
};
|