代码更新
This commit is contained in:
@@ -190,18 +190,19 @@ export default {
|
||||
},
|
||||
addIvt(index, row) {
|
||||
this.bomShow = true
|
||||
this.fileBomJson = row
|
||||
this.fileBomindex = index
|
||||
this.nowindex = index
|
||||
this.nowrow = row
|
||||
},
|
||||
tableChanged2(row) {
|
||||
debugger
|
||||
const arr = this.fileBom
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
if (i === this.fileBomindex) {
|
||||
arr[i].change_only_id = row.sparepart_only_id
|
||||
}
|
||||
}
|
||||
this.fileBom = arr
|
||||
// const arr = this.fileBom
|
||||
// for (let i = 0; i < arr.length; i++) {
|
||||
// if (i === this.fileBomindex) {
|
||||
// arr[i].change_only_id = row.sparepart_only_id
|
||||
// }
|
||||
// }
|
||||
// this.fileBom = arr
|
||||
this.$set(this.nowrow, 'change_only_id', row.sparepart_only_id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user