浏览代码

fix: 设计细目总表编辑bug

vian 2 年之前
父节点
当前提交
ae67a69192
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/maintain/bills_lib/scripts/db_controller.js

+ 1 - 1
web/maintain/bills_lib/scripts/db_controller.js

@@ -712,7 +712,7 @@ var tools = {
         }
         else {
             if (arr) {
-                arr.forEach(function (item) {
+                arr.forEach(function (item, index) {
                     if (ref === 'reference' && index !== row && ((item.data.name == name && item.data.unit == unit) || (field === 'code' && item.data.code == newData))) {
                         isRepeat = true;
                     }