fix:光芯日志填写时不良项未清零问题修改

This commit is contained in:
shijing 2026-05-08 08:44:38 +08:00
parent ce49b9f9c4
commit 7f148071d7
1 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ export default {
that.defectform[item.defect_name] = 0;
})
that.qct_defects=res.qct_defects;
if(that.mlogdefect.length>0){
if(that.mlogdefect.length>0&&that.mode!=='add'){
that.qct_defects.forEach(item => {
that.mlogdefect.forEach(item2=>{
if(item.defect==item2.defect){
@ -552,7 +552,7 @@ export default {
that.defectform[item.defect_name] = 0;
})
that.qct_defects=res.qct_defects;
if(that.mlogdefect.length>0){
if(that.mlogdefect.length>0&&that.mode!=='add'){
that.qct_defects.forEach(item => {
that.mlogdefect.forEach(item2=>{
if(item.defect==item2.defect){