Commit f4045e9ecfe03036b973fc89bdaff8dc9180d449

Authored by youxiw2000
1 parent fa231d17

m

Showing 1 changed file with 17 additions and 2 deletions
trash-ui/src/api/three_step.js
@@ -309,8 +309,15 @@ @@ -309,8 +309,15 @@
309 this.form.objectId = item.id; 309 this.form.objectId = item.id;
310 this.form.place = Number(item.areaCode); 310 this.form.place = Number(item.areaCode);
311 this.filterConract(); 311 this.filterConract();
312 -  
313 - 312 +
  313 + if(this.filterContract.length == 0){
  314 + this.$message("未找到对应消纳合同");
  315 + this.form.objectId = null;
  316 + this.form.name = null;
  317 + }
  318 +
  319 + this.filterConract();
  320 +
314 for(let i in this.filterContract){ 321 for(let i in this.filterContract){
315 if(this.filterContract[i].constructionSiteID == objId || this.filterContract[i].earthSiteID == objId){ 322 if(this.filterContract[i].constructionSiteID == objId || this.filterContract[i].earthSiteID == objId){
316 this.form.earthsitesName = name; 323 this.form.earthsitesName = name;
@@ -437,6 +444,14 @@ @@ -437,6 +444,14 @@
437 this.form.earthsitesId = item.id; 444 this.form.earthsitesId = item.id;
438 this.filterConract(); 445 this.filterConract();
439 446
  447 + if(this.filterContract.length == 0){
  448 + this.form.earthSiteName = null;
  449 + this.form.earthSiteID = null;
  450 + this.$message("未找到对应消纳合同!!");
  451 + }
  452 +
  453 + this.filterConract();
  454 +
440 for(let i in this.filterContract){ 455 for(let i in this.filterContract){
441 if(this.filterContract[i].constructionSiteID == objId || this.filterContract[i].earthSiteID == objId){ 456 if(this.filterContract[i].constructionSiteID == objId || this.filterContract[i].earthSiteID == objId){
442 this.form.name = name; 457 this.form.name = name;