diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue index 39632e2a..479b6f1e 100644 --- a/src/views/wpm_gx/mlog_detail.vue +++ b/src/views/wpm_gx/mlog_detail.vue @@ -339,7 +339,7 @@ :mlog="mlogId" :mgroup="mgroup" :is_fix = "is_fix" - :mlogbindefect = "mlogbindefect" + :mlogbdefect = "mlogbdefect" :mgroupMtype="mgroupMtype" :mgroupName = "mgroupName" :codeText = "codeText" @@ -561,7 +561,7 @@ export default { options: [], tableData:[], tableData2:[], - mlogbindefect:[], + mlogbdefect:[], mlogboutdefect:[], saveInDialog: false, ticketDialog:false, @@ -699,17 +699,17 @@ export default { if (valid) { that.isSaveing = true; let obj = {}; - let count_pn_jgqbl = 0,mlogbindefect=[]; + let count_pn_jgqbl = 0,mlogbdefect=[]; that.qct_defects.forEach(item => { count_pn_jgqbl += that.defectinform[item.defect_name] ; let obj = {}; obj.defect = item.defect; obj.count = that.defectinform[item.defect_name]; obj.mlogb = that.saveInForm.id; - mlogbindefect.push(obj); + mlogbdefect.push(obj); }) obj.count_use = that.saveInForm.count_use; - obj.mlogbindefect = mlogbindefect; + obj.mlogbdefect = mlogbdefect; obj.count_pn_jgqbl = count_pn_jgqbl; that.$API.wpm.mlogb.updateIn.req(that.saveInForm.id, obj).then((res) => { that.isSaveing = false; diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue index 7cc8d2fb..8cf5cf9e 100644 --- a/src/views/wpm_gx/mlogb_form.vue +++ b/src/views/wpm_gx/mlogb_form.vue @@ -205,7 +205,7 @@ export default { type: String, default: "", }, - mlogbindefect:{ + mlogbdefect:{ type:Array, default:()=>[] }, @@ -328,9 +328,9 @@ export default { }) that.qct_defects=res.qct_defects; let count_pn_jgqbl = 0; - if(data.mlogbindefect.length>0){ + if(data.mlogbdefect.length>0){ that.qct_defects.forEach(item => { - data.mlogbindefect.forEach(item2=>{ + data.mlogbdefect.forEach(item2=>{ if(item.defect==item2.defect){ count_pn_jgqbl+=item2.count; that.defectform[item.defect_name] = item2.count;