|
@@ -215,7 +215,7 @@ export default {
|
|
|
handleSpareStoreSelected (record, keys, rows) {
|
|
|
const addData = []
|
|
|
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) => {
|