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