whj 1 년 전
부모
커밋
29b010534f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/sb/modelbom/modules/Detail.vue

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

@@ -223,7 +223,7 @@ export default {
       this.spareIds = [...keys, ...this.spareIds]
       this.sparePartInfoList = [...rows, ...this.sparePartInfoList]
       for (let i = 0; i < rows.length; i++) {
-        addData.push({ spareId: 111111, 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: keys[i], 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) => {