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