diff --git a/src/components/ehsSelect/select.vue b/src/components/ehsSelect/select.vue index 9e20ca9f..db73d4b3 100644 --- a/src/components/ehsSelect/select.vue +++ b/src/components/ehsSelect/select.vue @@ -3,8 +3,18 @@
- - + + @@ -12,67 +22,103 @@ diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 394c5631..f9b2624d 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -13,14 +13,14 @@ type="primary" icon="el-icon-plus" @click="table_add(10)" - v-auth="'mgroup.create'" + v-auth="'mllog.create'" >新增 返工 @@ -76,9 +76,9 @@ @@ -125,7 +125,7 @@ link size="small" @click="table_edit(scope.row)" - v-auth="'mgroup.update'" + v-auth="'mlog.update'" type="primary" v-if=" scope.row.send_mgroup == mgroupId && @@ -145,7 +145,7 @@ 删除 diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index 6d38e655..d6b98c91 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -42,8 +42,15 @@ + min-width="150" + > + + @@ -130,7 +129,13 @@ - + diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index ffa4c472..6971b96a 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -6,7 +6,7 @@ type="primary" icon="el-icon-plus" @click="table_add" - v-auth="'mgroup.create'" + v-auth="'mlog.create'" >新增 @@ -82,7 +82,7 @@ label="操作" fixed="right" align="center" - width="180" + width="150" > @@ -178,7 +181,7 @@ export default { that.$API.mtm.mgroup.list .req({ page: 0, search: that.mgroupName }) .then((res) => { - if(res.length != 1){ + if (res.length != 1) { that.$message.error("获取工段错误"); return; } @@ -191,20 +194,21 @@ export default { }); }, methods: { - //添加 + //添加日志 table_add() { this.dialog.save = true; this.$nextTick(() => { this.$refs.saveDialog.open("add"); }); }, - //编辑 + //编辑日志 table_edit(row) { this.dialog.save = true; this.$nextTick(() => { this.$refs.saveDialog.open("edit").setData(row); }); }, + //日志详情 table_detail(row) { this.mlogId = row.id; this.dialog.detail = true; @@ -212,7 +216,7 @@ export default { this.$refs.detailDialog.open(); }); }, - //删除 + //日志删除 table_del(row) { this.$confirm(`确定删除吗?`, "提示", { type: "warning", @@ -228,6 +232,23 @@ export default { }); }); }, + //日志撤回 + mlogRevert(row) { + this.$confirm(`确定撤回该日志吗?`, "提示", { + type: "warning", + }).then(() => { + var id = row.id; + this.$API.wpm.mlog.revert.req(id).then((res) => { + if (res.err_msg) { + this.$message.error(res.err_msg); + } else { + this.$refs.table.refresh(); + this.$message.success("撤回成功"); + } + }); + }); + }, + //表格选择后回调事件 selectionChange(selection) { this.selection = selection;