fix:修改生产工序输出物料检测缺陷项不保存的问题
This commit is contained in:
parent
a4ee87d688
commit
ca9c398241
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue