Pārlūkot izejas kodu

先更新再计算

zhangweicheng 1 gadu atpakaļ
vecāks
revīzija
3f7dd912d6
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      web/building_saas/main/js/models/ration_glj.js

+ 2 - 1
web/building_saas/main/js/models/ration_glj.js

@@ -478,10 +478,10 @@ let ration_glj = {
             }
             let callback = function (data) {
                 if (updateField == 'customQuantity') {
-                    projectObj.project.projectGLJ.calcQuantity();
                     me.refreshAfterQuantityUpdate(data, node);
                     me.refreshTreeNodeIfNeeded(recode);//刷新造价书上的树节点(如果需要)
                     me.reCalcWhenGLJChange(recode);//触发计算定额以及父节点
+                    projectObj.project.projectGLJ.calcQuantity();
                     zmhs_obj.refreshStableDataIfNeeded();
                     gljOprObj.refreshView();
                     $.bootstrapLoading.end();
@@ -506,6 +506,7 @@ let ration_glj = {
                         installationFeeObj.calcInstallationFee();
                     });
                 }
+             
             };
             $.bootstrapLoading.start();
             CommonAjax.post("/rationGlj/updateRationGLJByEdit", {