diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 734b656e..7fe7ea32 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -10,13 +10,13 @@
- {{ + {{ mlogItem.routepack_name }} - {{ + {{ mlogItem.material_in_name }} - {{ + {{ mlogItem.material_out_name }} {{ @@ -251,17 +251,6 @@ hidePagination > - 详情 @@ -336,6 +325,7 @@ ref="saveDialog" :mlog="mlogId" :mgroup="mgroup" + :isfix = "mlogItem.is_fix" :routeId ="routeId" :tracking="tracking" :materialIn="materialIn" @@ -607,7 +597,7 @@ export default { that.handle_user = that.mlogItem.handle_user; console.log('that.mlogItem',that.mlogItem); that.dialog.check_single = true; - if(row.qct==null){ + if(row.qct==null&&!that.mlogItem.is_fix){ that.$API.qm.qct.list.req({qctmat__material:row.material_out,page:0}).then((res)=>{ if(res.length>0){ that.qct = res[0].id; diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 012d8b1f..0b19a594 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -17,7 +17,7 @@ style="padding: 0 10px" > - + - + - + { that.testitems.forEach((item) => { - item.value = data.oinfo_json[item.id]; - }); + item.value = data.oinfo_json[item.id]; + }); },500) } } diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue index 44fc2fef..a7003ba8 100644 --- a/src/views/wpm_bx/mlogb_form.vue +++ b/src/views/wpm_bx/mlogb_form.vue @@ -17,7 +17,7 @@ label-width="80px" style="padding: 0 10px" > - + - + { + let obj = {}; + obj.mtaskx =that.form.mtask; + obj.mgroupx =that.mgroup; + obj.route =that.routeId; + obj.page =0; + if(that.isfix){ + obj.state =30; + } + this.$API.wpm.wmaterial.list.req(obj).then((res) => { that.materialOptions = res; }); }, diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 68c6114d..21f85b36 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -492,9 +492,11 @@ export default { }, getOptions(){ let that = this; - that.$API.wpm.wpr.list.req({wm:that.wm,page:0}).then((res) => { - that.options = res; - }) + if(that.mode == 'ins'){//输入 + that.$API.wpm.wpr.list.req({wm:that.wm,page:0}).then((res) => { + that.options = res; + }) + } }, optionChange(row){ let that = this; diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue index 03d336a5..d3a6a6ef 100644 --- a/src/views/wpm_bx/mlogs.vue +++ b/src/views/wpm_bx/mlogs.vue @@ -9,7 +9,15 @@ v-auth="'mlog.create'" >新增 + 返工
+
{ + this.$refs.saveDialog.open("add","rework"); + }); + }, //编辑日志 table_edit(row) { this.dialog.save = true; this.$nextTick(() => { - this.$refs.saveDialog.open("edit").setData(row); + if(row.is_fix){ + this.$refs.saveDialog.open("edit","rework").setData(row); + }else{ + this.$refs.saveDialog.open("edit").setData(row); + } + }); }, //日志详情