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