fix: 10车间mlog编辑

This commit is contained in:
caoqianming 2024-01-27 22:50:15 +08:00
parent 6cb3e526aa
commit 4855ab4028
1 changed files with 14 additions and 14 deletions

View File

@ -458,20 +458,20 @@ export default {
});
},
table_edit(row) {
let arr = [];
let mlogb = row.mlogb;
this.brothersListorigin.forEach(item => {
let obj = {};
obj.count_ok = null;
obj.material_out = item;
for (let i = 0; i < mlogb.length; i++) {
if (mlogb[i].material_out == item) {
obj.count_ok = mlogb[i].count_ok;
}
}
arr.push(obj)
})
this.brothersList = arr;
// let arr = [];
// let mlogb = row.mlogb;
// this.brothersListorigin.forEach(item => {
// let obj = {};
// obj.count_ok = null;
// obj.material_out = item;
// for (let i = 0; i < mlogb.length; i++) {
// if (mlogb[i].material_out == item) {
// obj.count_ok = mlogb[i].count_ok;
// }
// }
// arr.push(obj)
// })
// this.brothersList = arr;
this.dialogSave = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("edit").setData(row);