chenrui %!s(int64=3) %!d(string=hai) anos
pai
achega
112328b4bd
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      src/views/common/productCodeList.vue

+ 2 - 4
src/views/common/productCodeList.vue

@@ -62,10 +62,8 @@ export default {
         }
       } else if (this.mode == 'multiple') { //  多选
         if (value.length > 0) {
-          value.map(subItem => {
-            const ind = _this.data.findIndex(item => item.productSn == subItem.key)
-            subItem.row = ind != -1 ? _this.data[ind] : undefined
-          })
+          const ind = _this.data.findIndex(item => item.productSn == value[value.length - 1].key)
+          value[value.length - 1].row = ind != -1 ? _this.data[ind] : undefined
         }
       }
       Object.assign(this, {