From fbad9178ff00c0861dfcc17aee3f603c4b75abf2 Mon Sep 17 00:00:00 2001 From: TianyangZhang Date: Wed, 5 Nov 2025 11:10:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20booking=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ofm/booking_form.vue | 29 +++++++++++------------------ src/views/ofm/mroombooking.vue | 22 ++++------------------ 2 files changed, 15 insertions(+), 36 deletions(-) diff --git a/src/views/ofm/booking_form.vue b/src/views/ofm/booking_form.vue index 4624e470..890dd552 100644 --- a/src/views/ofm/booking_form.vue +++ b/src/views/ofm/booking_form.vue @@ -78,7 +78,7 @@ > - + @@ -98,10 +98,6 @@ export default { type: String, default: "show", }, - editId: { - type: String, - default: null, - }, bookingIitem: { type: Object, default: null, @@ -190,8 +186,7 @@ export default { mounted() { let that = this; that.getmRoomList(); - console.log("that.editId",that.editId); - if (that.editId){ + if (that.t_id){ that.getTid(); } else { @@ -213,17 +208,15 @@ export default { }, getTid (){ var that = this; - if (that.editId) { - that.handleEidt(that.editId); - that.$API.ofm.mroombooking.item.req(that.editId).then(res=>{ - that.form = res; - if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { - that.$emit("changeMode", "edit"); - }else{ - that.$emit("changeMode", "show"); - } - }) - } + that.$API.ofm.mroombooking.item.req(that.t_id).then(res=>{ + that.form = res; + that.handleEidt(that.t_id); + if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { + that.$emit("changeMode", "edit"); + }else{ + that.$emit("changeMode", "show"); + } + }) }, getmRoomSlot(){ let that = this; diff --git a/src/views/ofm/mroombooking.vue b/src/views/ofm/mroombooking.vue index a87a4a7b..8f869950 100644 --- a/src/views/ofm/mroombooking.vue +++ b/src/views/ofm/mroombooking.vue @@ -56,13 +56,6 @@ type="primary" @click="handleShow(scope.row)" >查看 - 编辑