Explorar o código

fix: 设计细目总表编辑bug

vian %!s(int64=2) %!d(string=hai) anos
pai
achega
ae67a69192
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                     }