diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index c24ff130..a3420f7b 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -727,6 +727,9 @@ export default { //表单提交方法 mlogSubmit() { let that = this; + if(that.mlogItem.work_end_time==''||that.mlogItem.work_end_time==null){ + that.mlogItem.handle_date = that.$TOOL.dateFormat2(new Date()); + } that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => { that.isSaveing = false; that.visible = false; diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 7b1a35d7..326d0e44 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -96,7 +96,7 @@ - + - + - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + {{item.number}} + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + 提交 @@ -144,8 +215,10 @@ export default { ] }, wm_in:'', + route_code:"", mlogbIns:[], options: [], + optionsEq: [], mlogbInOptions:[], materialOptions: [], mgroup_code:'', @@ -168,6 +241,7 @@ export default { }; }, mounted() { + this.route_code = this.$route.path.split("/")[2]; this.form.mlog = this.mlog; this.params.mlog = this.mlog; let arr = this.$route.path.split("/"); @@ -176,6 +250,7 @@ export default { this.getMtask(); this.getMaterial(); this.getParentList(); + this.getEquipment(); }, methods: { open() { @@ -195,6 +270,17 @@ export default { that.mlogbIns = res; }) }, + getEquipment() { + let that = this; + this.$API.em.equipment.list.req({ page: 0, type: 10,mgroup:that.mgroup}).then((res) => { + res.forEach((item) => { + let obj = {}; + Object.assign(obj, item); + obj.label = item.name+'-'+item.number; + that.optionsEq.push(obj); + }); + }); + }, getParentList(){ let that = this; that.$API.wpm.mlogb.list.req(that.params).then((res) => {