فهرست منبع

修复BOM版本取值

695593266@qq.com 11 ماه پیش
والد
کامیت
10fdd64f1f
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/views/material/BOMmanage/detailsPop.vue

+ 4 - 2
src/views/material/BOMmanage/detailsPop.vue

@@ -712,8 +712,10 @@
           this.versList = res || [];
           if (type == 'del' || type == 'add') {
             if (this.versList.length >= 1) {
-              this.searchObj.versions =
-                this.versList[this.versList.length - 1].versions;
+              if (!this.searchObj.versions) {
+                this.searchObj.versions =
+                  this.versList[this.versList.length - 1].versions;
+              }
               this.getTreeData();
             } else {
               this.searchObj.versions = '';