代码更新

This commit is contained in:
2022-07-06 11:27:49 +08:00
parent a1fb7fde09
commit dba5a0c917
2 changed files with 29 additions and 22 deletions

View File

@@ -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)
}
}
}