Browse Source

fix: 新建建议估算标段失败

vian 4 years ago
parent
commit
1aa48d2181
1 changed files with 2 additions and 1 deletions
  1. 2 1
      web/building_saas/pm/js/pm_newMain.js

+ 2 - 1
web/building_saas/pm/js/pm_newMain.js

@@ -1742,7 +1742,8 @@ const projTreeObj = {
 function changeValuationType(type) {
     $('input[name="valuation_type"]:checked').prop('checked', false);
     $(`input[name="valuation_type"][value="${type}"]`).prop('checked', true);
-    let targetData = type === 'bill' ? JSON.parse(billValuation) : JSON.parse(rationValuation);
+    // let targetData = type === 'bill' ? JSON.parse(billValuation) : JSON.parse(rationValuation);
+    let targetData = getValuationData(type);
     let html = '';
     for(let i = targetData.length - 1; i >=0; i--){
         let valuation = targetData[i];