diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index a861af9f..698493bd 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -58,142 +58,74 @@ header="子工序操作记录" shadow="never" > - 新增 - - - - - - - - - - - - - + - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { that.tableData = res; }) @@ -595,6 +533,7 @@ export default { that.getPreocess(); that.getShift(); that.getEquipment(); + that.getProcessList(); }, methods: { open() { @@ -664,6 +603,12 @@ export default { } }) }, + getProcessList(){ + let that = this; + that.$API.wpm.mloguser.list.req({page:0,mlog:that.mlogId}).then((res) => { + that.processLists = res; + }) + }, getShift(){ let that = this; that.$API.mtm.shift.list.req({ page: 0 }).then((res) => { @@ -917,25 +862,15 @@ export default { that.isSaveing = false; }); }, - table_muser_add(){ - let that = this; - let userInfo = that.$TOOL.data.get("USER_INFO"); - that.muserForm.mlog = that.mlogItem.id; - that.muserForm.handle_user = userInfo.id; - that.muserForm.handle_user_name = userInfo.name; - that.muserForm.work_start_time = this.$TOOL.dateFormat(new Date()); - that.saveMuserDialog = true; - }, - saveMuserSubmit (){ + saveMuserSubmit(row){ let that = this; that.isSaveing = true; - that.$API.wpm.mloguser.create.req(that.muserForm).then((res) => { + that.$API.wpm.mloguser.create.req(that.addTemplate).then((res) => { that.isSaveing = false; - that.saveMuserDialog = false; that.$message.success("操作成功"); - that.$refs.tableMuser.refresh(); + that.getProcessList(); }).catch(() => { - that.isSaveing = false; + that.isSaveing = false; }) }, table_muser_del(row){ @@ -947,6 +882,14 @@ export default { }) }) }, + table_muser_edit(row){ + let that = this; + console.log('row',row); + let index = that.processLists.indexOf(row); + console.log('index',index); + that.processLists[index].isEdit = true; + + }, handleSaveSuccess() { this.$refs.tableIn.refresh(); if(this.mlogItem.material_out_&&this.mlogItem.material_out_.tracking==10){