Parcourir la source

审核比较,总额计量节点,根据金额判断前后计量是否相同

MaiXinRong il y a 5 ans
Parent
commit
1069492deb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/public/js/stage_compare.js

+ 1 - 1
app/public/js/stage_compare.js

@@ -61,7 +61,7 @@ $(document).ready(function () {
         function checkDiffer(data) {
             const fieldSufs = sheet.zh_setting.fieldSufs;
             if (fieldSufs.length <= 1) return false;
-            const field = data.quantity ? 'gather_qty' : 'gather_tp';
+            const field = !data.is_tp ? 'gather_qty' : 'gather_tp';
             const base = data[field + fieldSufs[0]];
             for (let i = 1; i< fieldSufs.length; i++) {
                 const compare = data[field + fieldSufs[i]];