From 53ce3694be023c5585dc6126dcb648c6cc7b9670 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 24 Sep 2025 14:14:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96handover=5Fform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_show.vue | 6 +- src/views/wpm_gx/handover.vue | 27 +- src/views/wpm_gx/handover_form.vue | 515 +++++++++++++---------------- 3 files changed, 254 insertions(+), 294 deletions(-) diff --git a/src/views/mtm/route_show.vue b/src/views/mtm/route_show.vue index 72682a56..6a816a5b 100644 --- a/src/views/mtm/route_show.vue +++ b/src/views/mtm/route_show.vue @@ -75,7 +75,7 @@ export default { emits: ["success", "closed"], components: { ticketd }, props: { - modelId: { type: String, default: null }, + t_id: { type: String, default: null }, }, data() { return { @@ -107,8 +107,8 @@ export default { mounted() { this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code; this.tableData = []; - if (this.modelId) { - this.getRoutePackDetail(this.modelId); + if (this.t_id) { + this.getRoutePackDetail(this.t_id); } }, methods: { diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 63def9bc..d09272b7 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -251,8 +251,14 @@ - + - + > + @@ -379,6 +385,12 @@ export default { }, route_code: "", // setNameVisible: false, + titleMap: { + add: "新增交接记录", + edit: "编辑交接记录", + show: "查看交接记录", + }, + mode: "add" }; }, mounted() { @@ -410,6 +422,7 @@ export default { //添加 table_add(type) { this.dialog.save = true; + this.mode = "add"; this.type = type; this.$nextTick(() => { this.$refs.saveDialog.open("add",'',10); @@ -419,6 +432,7 @@ export default { let that = this; that.type = 10; that.codeText = codeText; + that.mode = "add"; that.dialog.save = true; that.$nextTick(() => { that.$refs.saveDialog.open("add",codeText,10); @@ -429,6 +443,7 @@ export default { this.type = 20; that.codeText2 = codeText2; this.dialog.save = true; + that.mode = "add"; this.$nextTick(() => { this.$refs.saveDialog.open("add",codeText2,10); }); @@ -437,6 +452,7 @@ export default { table_edit(row) { this.type=row.type; this.dialog.save = true; + this.mode = "edit"; this.$nextTick(() => { this.$refs.saveDialog.open("edit").setData(row); }); @@ -444,6 +460,7 @@ export default { table_show(row){ this.type=row.type; this.dialog.save = true; + this.mode = "show"; this.$nextTick(() => { this.$refs.saveDialog.open("show").setData(row); }); @@ -561,7 +578,7 @@ export default { //本地更新数据 //新增岗位后更新数据 handleSaveSuccess(data, mode) { - this.dialog.save = true; + this.dialog.save = false; this.$refs.table.refresh(); }, }, diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index f238d0ac..330cd0d8 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -1,217 +1,218 @@