Browse Source

报表汇总类型,新增2种类型

lishihao 1 year ago
parent
commit
02a2583a70

+ 3 - 1
web/maintain/report/html/rpt_tpl_dtl_info.html

@@ -94,9 +94,11 @@
                         <option value ="Single">单项工程级别</option>
                         <option value ="custom">用户自选工程</option>
                         <option value="complexUnit">跨项目自选工程(3个建设项目单位工程)</option>
-                        <option value="stageContrast">阶段对比</option>
+                        <option value="stageContrast">前后阶段对比(当前项目对其他项目)</option>
                         <option value="unitPriceContrast">单价偏差对比</option>
                         <option value="complexConstruct">跨项目汇总对比(3个建设项目)</option>
+                        <option value="stageBackContrast">审核项目对比(其他项目对当前项目)</option>
+                        <option value="stageUnitContrast">审核项目对比(一对一)</option>
                     </select>
                 </div>
             </div>

+ 5 - 3
web/maintain/report/js/rpt_tpl_main.js

@@ -957,6 +957,8 @@ let zTreeOprObj = {
                             else if (sumLvType === 'stageContrast') $("#element_sumLv_flags")[0].selectedIndex = 5
                             else if (sumLvType === 'unitPriceContrast') $("#element_sumLv_flags")[0].selectedIndex = 6
                             else if (sumLvType === 'complexConstruct') $("#element_sumLv_flags")[0].selectedIndex = 7
+                            else if (sumLvType === 'stageBackContrast') $("#element_sumLv_flags")[0].selectedIndex = 8
+                            else if (sumLvType === 'stageUnitContrast') $("#element_sumLv_flags")[0].selectedIndex = 9
                             else $("#element_sumLv_flags")[0].selectedIndex = 0;
                         } else {
                             $("#element_sumLv_flags")[0].selectedIndex = 0;
@@ -971,9 +973,9 @@ let zTreeOprObj = {
                         }
                         if (me.currentNode.flags.hasOwnProperty('existLevel')) {
                             let existLevel = me.currentNode.flags['existLevel'];
-                            if (existLevel === 'true') $("#element_existLevel_select")[0].selectedIndex = 1
-                            if (existLevel === 'false') $("#element_existLevel_select")[0].selectedIndex = 2
-                            else $("#element_existLevel_select")[0].selectedIndex = 0;
+                            if (existLevel === 'true') { $("#element_existLevel_select")[0].selectedIndex = 1 }
+                            else if (existLevel === 'false') { $("#element_existLevel_select")[0].selectedIndex = 2 }
+                            else { $("#element_existLevel_select")[0].selectedIndex = 0; }
                         } else {
                             $("#element_existLevel_select")[0].selectedIndex = 0;
                         }