|
|
@@ -304,8 +304,11 @@ let MainTreeCol = {
|
|
|
return true;
|
|
|
},
|
|
|
maxPrice:function (node) {
|
|
|
- if($("#fileKind").val() == '1') return true;//对于投标项目只读
|
|
|
- return node.data.outPutMaxPrice!==true;
|
|
|
+ // 对于投标项目只读
|
|
|
+ if(+$('#fileKind').val() === _fileKind.tender) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return node.data.outPutMaxPrice !== true;
|
|
|
}
|
|
|
},
|
|
|
cellType: {
|
|
|
@@ -410,7 +413,13 @@ let MainTreeCol = {
|
|
|
if(MainTreeCol.mainBillsEnable(node)) return sheetCommonObj.getCheckBox(true);
|
|
|
},
|
|
|
outPutMaxPrice:function (node) {
|
|
|
- if(MainTreeCol.mainBillsEnable(node) && $("#fileKind").val() != '1') return sheetCommonObj.getCheckBox(true);
|
|
|
+ if(MainTreeCol.mainBillsEnable(node)) {
|
|
|
+ // 投标项目,复选框不可改变
|
|
|
+ const checkBox = +$('#fileKind').val() === _fileKind.tender
|
|
|
+ ? sheetCommonObj.getReadOnlyCheckBox()
|
|
|
+ : sheetCommonObj.getCheckBox(true);
|
|
|
+ return checkBox;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mainBillsEnable:function (node) {
|