浏览代码

Merge branch 'master' of http://192.168.1.41:3000/maixinrong/Calculation

laiguoran 5 年之前
父节点
当前提交
7a0a21586d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]];