TonyKang 4 anni fa
parent
commit
295453feb8

+ 5 - 2
web/building_saas/main/js/views/project_view.js

@@ -1431,7 +1431,7 @@ var projectObj = {
                     },
                     visible: function (key, opt) {
                         let rst = true;
-                        if (compilationName === '内蒙古高速公路日常养护估算(2021)') return false;
+                        if (compilationName === '内蒙古高速公路日常养护估算(2021)') rst = false;
                         return rst;
                     },
                     callback: function (key, opt) {
@@ -1806,7 +1806,10 @@ var projectObj = {
                         blockLibObj.checkShow();
                     },
                     visible: function (key, opt) {
-                        return G_SHOW_BLOCK_LIB;
+                        let rst = G_SHOW_BLOCK_LIB;
+                        if (compilationName === '内蒙古高速公路日常养护估算(2021)') rst = false;
+                        return rst;
+                        // return G_SHOW_BLOCK_LIB;
                     }
                 }
             }

+ 1 - 1
web/building_saas/pm/html/project-management.html

@@ -386,7 +386,7 @@
                             </select>
                         </div>
                     </div>
-                    <div class="form-group row" id="tender-engineering-group" >
+                    <div class="form-group row" id="tender-engineering-group" <% if (compilationName.includes("内蒙古高速公路日常养护估算(2021)") ) { %> style="display:none" <% } %>>
                         <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">养护类别</label>
                         <div class="col">
                             <select class="form-control  form-control-sm" id="tender-engineering">

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

@@ -1981,7 +1981,12 @@ $(document).ready(function() {
         let nameList = getNameList($('#poj-name-list').children());
         let isExist = hasListName(nameList, pojName);
         if (!isExist) {
-            changeValuationType(BUDGET);
+            //ESTIMATION
+            if (compilationData.name === '内蒙古高速公路日常养护估算(2021)') {
+                changeValuationType(ESTIMATION);
+            } else {
+                changeValuationType(BUDGET);
+            }
             if (pojName !== '') {
                 replaceClass($('#poj-name-info'), 'text-danger', 'text-info');
                 setDangerInfo($('#poj-name-info'), `新建“${pojName}”`);