Explorar o código

feat: 造价书工程量%显示问题

zhangweicheng %!s(int64=4) %!d(string=hai) anos
pai
achega
16950f49ef
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      public/web/tree_sheet/tree_sheet_helper.js

+ 1 - 0
public/web/tree_sheet/tree_sheet_helper.js

@@ -177,6 +177,7 @@ var TREE_SHEET_HELPER = {
                 }
                 if(colSetting.visible == false) return;//隐藏列不做其它操作
                 if (colSetting.data.getText && Object.prototype.toString.apply(colSetting.data.getText) === "[object Function]") {
+                    if(colSetting.data.field=="quantity") sheet.setFormatter(iRow, iCol, '@');//输入 % 号时会出现奇怪的现像, %一直追加在后面
                     cell.value(colSetting.data.getText(node));
                 }else if((colSetting.data.field=="mainBills"||(['outPutMaxPrice', 'outPutLimitPrice'].includes(colSetting.data.field)))&&MainTreeCol.mainBillsEnable(node)){//主要清单有三种状态,所以直接显示就好,不走最后的逻辑
                     cell.value(node.data[colSetting.data.field]===undefined?false:node.data[colSetting.data.field]);