|
|
@@ -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
|
|
|
},
|