|
@@ -196,7 +196,7 @@ export default {
|
|
|
handleSpareSelected (record, keys, rows) {
|
|
|
const addData = []
|
|
|
for (let i = 0; i < rows.length; i++) {
|
|
|
- addData.push({ modelId: this.model.id, spareId: rows[i].id, spareName: rows[i].name, num: 1, period: 500, periodType: 6 })
|
|
|
+ addData.push({ sbId: this.model.id, modelId: this.model.id, spareId: rows[i].id, spareName: rows[i].name, num: 1, period: 500, periodType: 6 })
|
|
|
}
|
|
|
addSbModelBomBatch(addData)
|
|
|
.then((response) => {
|