diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index cb05fae0..616d7e8b 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -14,7 +14,7 @@ icon="el-icon-plus" @click="table_add(20)" v-auth="'handover.create'" - v-if="mgroupName!=='切片'&&mgroupName!=='拉单丝'&&mgroupName!=='一次复丝'&&mgroupName!=='二次复丝'&&mgroupName!=='切丝排版'" + v-if="mgroupName!=='切片'" >返工 - + @@ -72,7 +72,7 @@ prop="handle_user_name" width="80" > - + @@ -146,7 +146,7 @@ :process="processId" :mgroup="mgroupId" :dept="deptId" - :mgroup_name = "mgroup_name" + :mgroupName = "mgroupName" @success="handleSaveSuccess" @closed="dialog.save = false" > @@ -193,27 +193,15 @@ export default { deptId: null, processId: "", processCate: "", - mgroup_name:'' }; }, - watch: { - mgroupName: { - handler: function (newval,odlval) { - let that = this; - that.params.mgroup = ""; - that.apiObj = null; - that.mgroup_name = newval; - that.getMgroupInfo(); - }, - }, - }, mounted() { - // this.getMgroupInfo(); + this.getMgroupInfo(); }, methods: { getMgroupInfo(){ let that = this; - that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroup_name }).then((res) => { + that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => { if (res.length < 1) { that.$message.error("获取工段错误"); return;