Bläddra i källkod

fix: 限价checkbox取消三种状态

vian 5 år sedan
förälder
incheckning
dda9f41c82

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

@@ -407,9 +407,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

@@ -415,14 +415,14 @@ let MainTreeCol = {
       if (node.sourceType === projectObj.project.Bills.getSourceType()) {
         return projectObj.project.projectInfo.importedByInterface  || projectObj.project.projectInfo.property.lockBills
           ? sheetCommonObj.getReadOnlyCheckBox()
-          : sheetCommonObj.getCheckBox(true);
+          : sheetCommonObj.getCheckBox();
       }
     },
     outPutLimitPrice: function (node) {
       if (node.sourceType === projectObj.project.Bills.getSourceType()) {
         return projectObj.project.projectInfo.importedByInterface || projectObj.project.projectInfo.property.lockBills
           ? sheetCommonObj.getReadOnlyCheckBox()
-          : sheetCommonObj.getCheckBox(true);
+          : sheetCommonObj.getCheckBox();
       }
     },
     /* maxPrice: function (node, setting) {