From 3a317a03d3ec5994360c735d110edc231c1ce414 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 17 Nov 2025 17:09:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=8E=BB=E7=BA=A4=E5=90=8E=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E5=87=A0=E4=B8=AA=E6=88=90=E5=93=81=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E5=B7=A5=E5=BA=8F=E6=B7=BB=E5=8A=A0=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/index.vue | 16 ++++++++++- src/views/wpm_gx/inm_record.vue | 50 ++++++++++++++++++++++----------- src/views/wpm_gx/inmrecord.vue | 10 +++---- 3 files changed, 53 insertions(+), 23 deletions(-) diff --git a/src/views/wpm_bx/index.vue b/src/views/wpm_bx/index.vue index cd553579..61ba9631 100644 --- a/src/views/wpm_bx/index.vue +++ b/src/views/wpm_bx/index.vue @@ -81,6 +81,13 @@ :mgroup_code="mgroup_code" :mgroupMtype = "mgroupMtype" > + @@ -89,10 +96,11 @@ import inmIn from "./inmIn.vue"; import inmOut from "./inmOut.vue"; import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; +import record from "./../wpm_gx/inmrecord.vue"; import handover from "./handover.vue"; export default { name: "bx", - components: { inmIn, mlogs, mtask, handover,inmOut }, + components: { inmIn, mlogs, mtask, handover,inmOut,record }, data() { return { mgroups:[], @@ -118,6 +126,12 @@ export default { let paths = this.$route.path; let arr = paths.split("/"); this.mgroup_code = arr[2]; + if(this.mgroup_code=='chengpingneiwaichujian'||this.mgroup_code=='guangzhuichengpjianc'|| + this.mgroup_code=='chengpneizhifujian'||this.mgroup_code=='chengpingxinengjiance'|| + this.mgroup_code=='chenpjianchicunjiance'||this.mgroup_code=='chengpwaiguanfujianyi'|| + this.mgroup_code=='chengpwaiguanfujianer'){ + this.options.push('出入库记录'); + } console.log('this.mgroup_code',this.mgroup_code); that.getMgroups(this.mgroup_code); }, diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue index ea6e606e..20f9c3a7 100644 --- a/src/views/wpm_gx/inm_record.vue +++ b/src/views/wpm_gx/inm_record.vue @@ -157,22 +157,28 @@ hideDo stripe > - - - - - - - - - - + + + + + + + + + + + + + @@ -514,6 +520,18 @@ export default { this.$refs.saveDialog.open("edit").setData(row); }); }, + table_del(row){ + let that = this; + this.$confirm(`确定删除吗?`, "提示", { + type: "warning", + }).then(() => { + that.$API.inm.mioitem.delete.req(row.id).then((res) => { + that.$message.success("删除成功"); + that.$refs.tables.refresh(); + return res; + }); + }).catch(() => {}); + }, table_submit() { let that = this; that.$API.inm.mio.submit.req(that.mioId).then((res) => { diff --git a/src/views/wpm_gx/inmrecord.vue b/src/views/wpm_gx/inmrecord.vue index 31fde791..fdfc902e 100644 --- a/src/views/wpm_gx/inmrecord.vue +++ b/src/views/wpm_gx/inmrecord.vue @@ -3,20 +3,17 @@
领料 入库 - 退还入库