瀏覽代碼

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

MaiXinRong 2 年之前
父節點
當前提交
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) {