Ver código fonte

公式错误标红显示

MaiXinRong 2 anos atrás
pai
commit
064a9b945a
2 arquivos alterados com 9 adições e 1 exclusões
  1. 6 0
      app/public/js/global.js
  2. 3 1
      app/public/js/stage_pay.js

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

@@ -1195,6 +1195,12 @@ const spreadColor = {
         differ: '#FFE699', // 同编号时,名称、单位、单价存在不同
         calc_differ: '#f8d7da', //
     },
+    pay: {
+        expr_err: '#FF9595',
+        pause: '#f2f2f2',
+        yf_without: '#d6d8db',
+        cur_add: '#FFFFE1',
+    }
 };
 
 $(document).ready(function () {

+ 3 - 1
app/public/js/stage_pay.js

@@ -201,7 +201,9 @@ $(document).ready(() => {
     };
     paySpreadSetting.getColor = function (sheet, data, row, col, defaultColor) {
         if (data) {
-            if (data.pause) {
+            if (data.expr && data.expr.indexOf('#ref!') >= 0) {
+                return spreadColor.pay.expr_err;
+            } else if (data.pause) {
                 return '#f2f2f2';
             } else if (!data.is_yf) {
                 return '#d6d8db';