diff --git a/src/views/wpm_gx/fmlog_form.vue b/src/views/wpm_gx/fmlog_form.vue index 49423b8c..32f73e25 100644 --- a/src/views/wpm_gx/fmlog_form.vue +++ b/src/views/wpm_gx/fmlog_form.vue @@ -2,7 +2,7 @@ @@ -37,10 +37,10 @@ - + - {{ item.routepack_name }}-{{item.process_name}} @@ -166,6 +165,9 @@ export default { .req({ process: that.process, page: 0, routepack__state: 30 }) .then((res) => { that.routeOptions = res; + if(res.length==1){ + that.form.route = res[0].id; + } }); }, //显示 diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue index 34fa421c..fd292aa5 100644 --- a/src/views/wpm_gx/mlog_detail.vue +++ b/src/views/wpm_gx/mlog_detail.vue @@ -332,7 +332,7 @@ :mgroup="mgroup" :is_fix = "is_fix" :mgroupMtype="mgroupMtype" - :mgroupName = "mlogItem.mgroup_name" + :mgroupName = "mgroupName" :codeText = "codeText" :materialIn="materialIn" @success="handleSaveSuccess" @@ -342,6 +342,7 @@ @@ -468,6 +472,10 @@ export default { mgroupMtype:{ type: String, default: "", + }, + process:{ + type: String, + default: "", } }, components: { @@ -534,6 +542,7 @@ export default { cellsList:[], qct_defects:[], tableDataWm:[], + mgroupName:'', test_file:'', deptId: "", codeText: "", @@ -582,6 +591,7 @@ export default { let that = this; that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.mlogItem = res; + that.mgroupName = res.mgroup_name; if(res.test_file!==null){ that.fileList = [{name:res.test_file,url:res.test_file}]; that.form.test_file = res.test_file; diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index 58cd935b..436223a1 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -2,8 +2,8 @@ @@ -57,10 +57,10 @@ - + - {{ item.routepack_name }}-{{ - item.process_name - }} @@ -129,12 +124,12 @@ /> - + - @@ -406,6 +401,9 @@ export default { .req({ process: that.process, page: 0, routepack__state: 30 }) .then((res) => { that.routeOptions = res; + if(res.length==1){ + that.form.route = res[0].id; + } }); }, //显示 diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue index c26f4554..f6626b9c 100644 --- a/src/views/wpm_gx/mlogb_form.vue +++ b/src/views/wpm_gx/mlogb_form.vue @@ -343,6 +343,7 @@ export default { let that = this; that.materialOptions.forEach(item => { if(item.id==that.form.wm_in){ + that.form.batch = item.batch; that.form.count_use = item.count; that.batch_count = item.count; } @@ -414,11 +415,13 @@ export default { } let count_pn_jgqbl = 0,mlogbindefect=[]; 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]; - mlogbindefect.push(obj); + if(that.defectinform[item.defect_name]>0){ + count_pn_jgqbl += that.defectinform[item.defect_name] ; + let obj = {}; + obj.defect = item.defect; + obj.count = that.defectinform[item.defect_name]; + mlogbindefect.push(obj); + } }) that.form.mlogbindefect = mlogbindefect; that.form.count_pn_jgqbl = count_pn_jgqbl; diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index aed8a3cb..7ac41563 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -182,6 +182,7 @@ ref="detailDialog" :mlogId="mlogId" :mtask="mtask" + :process="processId" :mgroupMtype="mgroupMtype" @closed="detailClose" >