fix:日志报错修正

This commit is contained in:
shijing 2025-09-22 15:12:58 +08:00
parent 5ce3889f3d
commit bc873ccb66
1 changed files with 3 additions and 6 deletions

View File

@ -387,6 +387,7 @@ export default {
year:"",
month:"",
values:"",
qctId: "",
wprNumber:"",
route_code:"",
wprInputText:"",
@ -437,7 +438,6 @@ export default {
watch: {},
mounted() {
let that = this;
console.log('that.cutCount',that.cutCount)
if(that.processType=='20'){
that.canMultiple = true;
}
@ -445,6 +445,7 @@ export default {
that.getdefects();
}else if(that.material_out!==''&&that.material_out!==null){//
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
that.qctId = res.id;
that.testdefectss(res);
}).catch(()=>{
that.getList();
@ -484,12 +485,10 @@ export default {
}
},
selectChange(rows){
console.log('rowsrows',rows)
let that = this;
that.selectWprList = rows;
},
selectAllChange(datas){
console.log('datas',datas)
let that = this;
that.selectWprList = datas;
},
@ -514,7 +513,6 @@ export default {
},
testdefectss(res){
let that = this;
console.log('res',res)
res.qct_defects.forEach((item) => {
that.addTemplate[item.defect_name] = false;
let obj = Object.assign({}, item);
@ -543,7 +541,6 @@ export default {
obj2.testitem_choices = arr;
that.addTemplate[item2.testitem_name] = null;
}
console.log('obj2',obj2)
that.qct_testitems.push(obj2);
}
})
@ -856,7 +853,7 @@ export default {
obj.testitems = that.form.testitemids;
that.setForm.testitemids = that.form.testitemids;
}
obj.qct = that.qct;
obj.qct = that.qct!==null?that.qct:that.qctId;
that.$API.wpm.mlogbw.start_test.req(obj).then((res) => {
that.isSaveing = false;
that.form = {};