fix:修改生产工序输出物料检测缺陷项不保存的问题

This commit is contained in:
shijing 2025-02-26 13:45:52 +08:00
parent a4ee87d688
commit ca9c398241
1 changed files with 6 additions and 8 deletions

View File

@ -159,7 +159,7 @@
>取消</el-link
>
<el-link
v-else
v-if="!scope.row.isEdit&&mode=='outs'"
type="primary"
size="small"
@click="formTableEdit(scope.row)"
@ -458,6 +458,8 @@ export default {
that.process_type=res.process_type;
if(that.mode == 'outs'){//
that.getdefects();
}else{
that.getList();
}
})
this.visible = true;
@ -563,6 +565,7 @@ export default {
},
//
formTableSave(row) {
let that = this;
let obj = {};
obj.number = row.number;
@ -575,8 +578,6 @@ export default {
str = str.replace(/\${(.*?)}/g, 'row.\$1')
let judge = eval(str);
row[item.defect_name] = judge;
}else{
row[item.defect_name] = false;
}
});
//qct
@ -669,11 +670,8 @@ export default {
},
switchChange(row,item){
let that = this;
let obj = {};
obj = Object.assign({},item);
// that.$API.wpm.mlogbw.update.req(row.id,obj).then((res) => {
// })
let index = that.mlogbwlist.indexOf(row);
that.mlogbwlist[index][item.defect_name] = row[item.defect_name];
},
//
mlogbwSubmit() {