Pārlūkot izejas kodu

修复调差不参与调差不变灰bug

ellisran 1 gadu atpakaļ
vecāks
revīzija
b6e02a41ef
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      app/public/js/material_list.js

+ 3 - 3
app/public/js/material_list.js

@@ -716,9 +716,9 @@ $(document).ready(() => {
             for (const [iRow,x] of xmj.entries()) {
                 const notx = findNotJoinLeafXmj(x);
                 const color = notx === undefined ? '' : '#d6d8db';
-                leafXmjSheet.getRange(iRow, -1, 1, -1).backColor(color);
+                // leafXmjSheet.getRange(iRow, -1, 1, -1).backColor(color);
                 const notx2 = findNotChangeLeafXmj(x);
-                const color2 = notx2 === undefined ? '' : '#FFE699';
+                const color2 = notx2 === undefined ? color : '#FFE699';
                 leafXmjSheet.getRange(iRow, -1, 1, -1).backColor(color2);
             }
         }
@@ -860,7 +860,7 @@ $(document).ready(() => {
                 return item.qc_qty || item.contract_qty
             });
             const nRow = leafXmjs.indexOf(leafXmjSelect);
-            const leafXmjColor = findNotJoinLeafXmj(leafXmjSelect) ? '#d6d8db' : '';
+            const leafXmjColor = findNotJoinLeafXmj(leafXmjSelect) ? '#d6d8db' : (findNotChangeLeafXmj(leafXmjSelect) ? '#FFE699' : '');
             return [index, iRow, nRow, leafXmjSheet, leafXmjSelect, leafXmjColor];
         },
         checkJoinMaterial: function (type) {