Просмотр исходного кода

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

MaiXinRong 2 лет назад
Родитель
Сommit
f9bea99361
1 измененных файлов с 1 добавлено и 0 удалено
  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) {