瀏覽代碼

先更新再计算

zhangweicheng 1 年之前
父節點
當前提交
3f7dd912d6
共有 1 個文件被更改,包括 2 次插入1 次删除
  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", {