Browse Source

台账修订,颜色标记

MaiXinRong 1 year ago
parent
commit
2dfe9afbb5
3 changed files with 9 additions and 2 deletions
  1. 3 0
      app/public/js/global.js
  2. 4 0
      app/public/js/revise.js
  3. 2 2
      publish.md

+ 3 - 0
app/public/js/global.js

@@ -1204,6 +1204,9 @@ const spreadColor = {
     },
     safe: {
         differ: '#F2DEDE',
+    },
+    revise: {
+        used: '#F2F2F2',
     }
 };
 

+ 4 - 0
app/public/js/revise.js

@@ -89,6 +89,10 @@ $(document).ready(() => {
             },
         },
     ];
+    billsSpreadSetting.getColor = function(sheet, data, row, col, defaultColor) {
+        if (!data) return defaultColor;
+        return data.used ? spreadColor.revise.used : defaultColor;
+    };
     sjsSettingObj.setNodeTypeCol(billsSpreadSetting.cols, [{field: 'node_type'}]);
     SpreadJsObj.initSheet(billsSheet, billsSpreadSetting);
     const posSpread = SpreadJsObj.createNewSpread($('#pos-spread')[0]);

+ 2 - 2
publish.md

@@ -12,8 +12,8 @@
 
 
 
-### V3.5.34.xxxx
-2023-7-28 ~ uat ~ prod
+### V3.5.34.0841
+2023-7-28 ~ 2023-8-21(uat) ~ prod
 1. 执行脚本
 #### uat
 ```shell