Pārlūkot izejas kodu

①项目工料机、定额工料机、计算程序等地方调后单价、调后汇总数量、调后金额显示不一致。
②单价调整系数输入0.5后键盘回车,“显示调价后数据”选项自动被打勾了。
③项目工料机勾选不调价,直接切换到定额工料机的计算程序,没有刷新。
④项目工料机勾选不调价,没有实时全局计算,工具栏总造价没有计算刷新。
⑤新建项目套定额后,项目工料机界面,主材列等复选框显示不全。

chenshilong 5 gadi atpakaļ
vecāks
revīzija
5b28ba3954

+ 2 - 0
modules/main/facade/ration_facade.js

@@ -1037,6 +1037,8 @@ function getProjectGLJNewData(tmp,projectId,ext){
       materialCoe: tmp.materialCoe,
       base_price: tmp.basePrice,
       market_price: tmp.basePrice,
+      is_adjust_price:0,
+      is_main_material:1,
       from:tmp.from?tmp.from:"std"
   };
   if(gljData.from == 'std' && ext && ext.priceField &&(tmp.priceProperty && tmp.priceProperty[ext.priceField]!= undefined && tmp.priceProperty[ext.priceField]!=null)){

+ 2 - 0
modules/ration_glj/facade/ration_glj_facade.js

@@ -672,6 +672,8 @@ function getGLJSearchInfo(ration_glj) {
         purchaseStorageRate:ration_glj.purchaseStorageRate,
         offSiteTransportLossRate:ration_glj.offSiteTransportLossRate,
         handlingLossRate:ration_glj.handlingLossRate,
+        is_adjust_price:0,
+        is_main_material:1,
         from: ration_glj.from ? ration_glj.from : 'std'//std:标准工料机库, cpt:补充工料机库
     };
     let glj_type_object = glj_type_util.getStdGljTypeCacheObj();

+ 2 - 0
web/building_saas/main/js/main.js

@@ -24,6 +24,8 @@ $(function () {
         billsLibObj.refreshBillsSpread();
         billsLibObj.refreshBillsRelaSpread();
         rationLibObj.refreshSpread();
+        if($('#linkJSCX').hasClass('active'))
+            calcProgramObj.refreshCalcProgram(projectObj.project.mainTree.selected, 2);
         //autoFlashHeight 里已经包含了 refreshSubSpread();
     });
 

+ 1 - 1
web/building_saas/main/js/views/project_glj_view.js

@@ -1023,7 +1023,7 @@ projectGljObject={
             }
             info.sheet.resumeEvent();
             info.sheet.resumePaint();
-            if (dataCode === 'supply' || dataCode === 'supply_quantity'){    // basePrice、marketPrice 有自己的计算代码,无需走这里重复计算
+            if (dataCode === 'supply' || dataCode === 'supply_quantity' || dataCode === 'is_adjust_price'){    // basePrice、marketPrice 有自己的计算代码,无需走这里重复计算
                 let rations = calcTools.getRationsByProjectGLJ(recode.id);
                 projectObj.project.calcProgram.calcNodesAndSave(rations, function () {
                     projectObj.mainController.refreshTreeNode(projectObj.project.mainTree.roots);

+ 1 - 0
web/building_saas/main/js/views/tender_price_view.js

@@ -530,6 +530,7 @@ $(function () {
     $('#cbShowTenderFields').on('click', function () {
         let showFields = $('#cbShowTenderFields').prop("checked");
         projectObj.project.saveProperty('tenderSetting.showTenderFields', showFields);
+        projectObj.project.property.tenderSetting.showTenderFields = showFields;
         gljCol.showTenderFields(showFields, true);
     });