Parcourir la source

reviseTree,兼容没有加载变更单价的情况,保证变更令使用

MaiXinRong il y a 2 ans
Parent
commit
f9bea99361
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      app/public/js/path_tree.js

+ 1 - 0
app/public/js/path_tree.js

@@ -1225,6 +1225,7 @@ const createNewPathTree = function (type, setting) {
             });
         }
         checkRevisePrice(d) {
+            if (!this.price || this.price.length === 0) return false;
             const setting = this.setting;
             const pid = this.getAllParents(d).map(x => { return x[setting.id] + ''; });
             const checkRela = function(rela_lid) {