Browse Source

fix: 限价checkbox取消三种状态

vian 4 years ago
parent
commit
af01088a14

+ 2 - 2
public/web/sheet/sheet_common.js

@@ -499,9 +499,9 @@ var sheetCommonObj = {
         return c
     },
     // 无法勾选的复选框
-    getReadOnlyCheckBox () {
+    getReadOnlyCheckBox (threeState = false) {
         function ReadOnlyCheckBox() {}
-        ReadOnlyCheckBox.prototype = this.getCheckBox(true);
+        ReadOnlyCheckBox.prototype = this.getCheckBox(threeState);
         ReadOnlyCheckBox.prototype.processMouseUp = function () {
             return;
         };

+ 2 - 2
web/building_saas/main/js/views/main_tree_col.js

@@ -462,14 +462,14 @@ let MainTreeCol = {
             if(MainTreeCol.mainBillsEnable(node)) {
                 return projectObj.project.projectInfo.importedByInterface || projectObj.project.projectInfo.property.lockBills
                     ? sheetCommonObj.getReadOnlyCheckBox()
-                    : sheetCommonObj.getCheckBox(true);
+                    : sheetCommonObj.getCheckBox();
             }
         },
         outPutLimitPrice:function (node) {
             if(MainTreeCol.mainBillsEnable(node)) {
                 return projectObj.project.projectInfo.importedByInterface || projectObj.project.projectInfo.property.lockBills
                 ? sheetCommonObj.getReadOnlyCheckBox()
-                : sheetCommonObj.getCheckBox(true);
+                : sheetCommonObj.getCheckBox();
             }
         },
         overHeight: function (node) {