whj 1 anno fa
parent
commit
8e7112144b
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/views/sb/modelbom/modules/Detail.vue

+ 2 - 1
src/views/sb/modelbom/modules/Detail.vue

@@ -214,8 +214,9 @@ export default {
     },
     handleSpareStoreSelected (record, keys, rows) {
       const addData = []
+      console.log(record, keys, rows)
       for (let i = 0; i < rows.length; i++) {
-        addData.push({ spareId: keys[i], sbId: this.model.id, modelId: this.model.id, no: rows[i].no, spareName: rows[i].spareName, num: 1, ggxh: rows[i].ggxh })
+        addData.push({ spareId: rows[i].spareId, sbId: this.model.id, modelId: this.model.id, no: rows[i].no, spareName: rows[i].spareName, num: 1, ggxh: rows[i].ggxh })
       }
       addSbModelBomBatch(addData)
         .then((response) => {