Browse Source

Merge branch 'master' of http://smartcost.f3322.net:3000/SmartCost/YangHuCost

zhongzewei 6 years ago
parent
commit
bd037b7347

+ 1 - 0
web/building_saas/main/js/models/quantity_detail.js

@@ -773,6 +773,7 @@ var quantity_detail = {
                 /*project.calcProgram.calcNodesAndSave(needUpdateChildren, function () {
                     project.projectGLJ.loadData();
                 });*/
+                needUpdateChildren.push(node);
                 project.calcProgram.calcNodesAndSave(needUpdateChildren, function () {
                     project.projectGLJ.calcQuantity();
                     if(project.Bills.isFBFX(node)) { //判断是否属于分部分项工程 ,是的话才需要做计取安装费计算

+ 5 - 1
web/building_saas/main/js/views/main_tree_col.js

@@ -220,7 +220,9 @@ let MainTreeCol = {
         },
         forQuantity: function (node) {
             if(node.sourceType === projectObj.project.Bills.getSourceType()){
-                if(node.data.type==billType.DXFY||node.data.type==billType.FB||(node.data.type==billType.BILL&&MainTreeCol.readOnly.billsParent(node))){//大项费用、分部、清单父项行,工程量只读。
+                //如果是预算项目的,所有清单的数量1、数量2不做输入限制。
+                if(projectInfoObj.projectInfo.property && projectInfoObj.projectInfo.property.valuationType == "bill")  return false;
+                if(node.data.type==billType.FB||(node.data.type==billType.BILL&&MainTreeCol.readOnly.billsParent(node))){//大项费用、分部、清单父项行,工程量只读。
                     return true;
                 }
             }else if(MainTreeCol.readOnly.glj(node)){
@@ -230,6 +232,8 @@ let MainTreeCol = {
         },
         forQuantity2:function (node) {
             if(node.sourceType !== ModuleNames.bills) return true;//不是清单,只读
+            //如果是预算项目的,所有清单的数量1、数量2不做输入限制。
+            if(projectInfoObj.projectInfo.property && projectInfoObj.projectInfo.property.valuationType == "bill")  return false;
             if(node.data.type==billType.DXFY||(node.data.type==billType.BILL&&MainTreeCol.readOnly.billsParent(node))) return true;//大项费用、清单父项行,工程量只读。
             return false
         },