Browse Source

台账修订,复制粘贴问题

MaiXinRong 3 years ago
parent
commit
0c888d20be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/public/js/revise.js

+ 2 - 2
app/public/js/revise.js

@@ -584,7 +584,7 @@ $(document).ready(() => {
                         }
                     }
 
-                    if (tree.checkNodeUsed(node, pos) && col.field === 'unit_price') {
+                    if (tree.checkNodeUsed(node, pos) && colSetting.field === 'unit_price') {
                         toastMessageUniq (hint.usedUp);
                         continue;
                     }
@@ -606,7 +606,7 @@ $(document).ready(() => {
                             }
                         }
                     } else {
-                        if (node.used && (col.field === 'code' || col.field ==='b_code')
+                        if (node.used && (colSetting.field === 'code' || colSetting.field ==='b_code')
                             && data[colSetting.field] !== '' && value === '') {
                             toastMessageUniq(hint.usedCode);
                             continue;