Przeglądaj źródła

新建分段绑定累进区间库

zhongzewei 7 lat temu
rodzic
commit
f745649625

+ 0 - 3
modules/pm/controllers/pm_controller.js

@@ -387,11 +387,9 @@ module.exports = {
             if(gc_tenderFiles.length > 0){
                 for(let i = 0, len = gc_tenderFiles.length; i < len; i++){
                     let gc_t = gc_tenderFiles[i];
-                    console.log(gc_t.ParentID);
                     let theProj = _projs[prefix + gc_t.ParentID] || null;
                     if(!theProj){
                         let tempProjs = await ProjectsData.getProjectsByIds(userID, compilatoinId, [gc_t.ParentID]);
-                        console.log(tempProjs[0]);
                         if(tempProjs.length > 0 && tempProjs[0].projType === projType.project){
                             theProj = _projs[prefix + gc_t.ParentID] = tempProjs[0]._doc;
                             buildProj(theProj);
@@ -402,7 +400,6 @@ module.exports = {
                     }
                 }
             }
-            console.log(_projs);
             for(let i in _projs){
                 rst.push(_projs[i]);
             }

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

@@ -2586,8 +2586,14 @@ function AddTender() {
         // 一个项目里面,这两个文件必须得有,而界面又没有像费率、单价文件那样给出可选项。所以这里给出提示。
         if (!libs.artificial_lib)  throw '编办没有绑定人工系数标准文件';
 
-        let featureLibID = "";
-        if(libs.feature_lib && libs.feature_lib.length > 0) featureLibID = libs.feature_lib[0].id;
+        let featureLibID = "",
+            progressiveLibID = "";
+        if(libs.feature_lib && libs.feature_lib.length > 0) {
+            featureLibID = libs.feature_lib[0].id;
+        }
+        if(libs.progressive_lib && libs.progressive_lib.length > 0) {
+            progressiveLibID = libs.progressive_lib[0].id;
+        }
 
 
         let calcProgramName = $('#tender-calcProgram').children("option:selected").text();
@@ -2622,6 +2628,7 @@ function AddTender() {
             templateLibID:templateLibID,
             colLibID:colLibID,
             featureLibID:featureLibID,
+            progressiveLibID:progressiveLibID,
             region: region
         };
         AddTenderItems(selectedItem, projName, tenderName, tenderInfo, callback);