From 5311b8ec19221a560aeca28262f14433b7781801 Mon Sep 17 00:00:00 2001
From: jxmanxk <312142485@qq.com>
Date: 星期二, 23 一月 2024 17:43:53 +0800
Subject: [PATCH] update_202401231742_强制重置房间状态,不传治疗记录数组

---
 src/pages/room/detail.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/pages/room/detail.vue b/src/pages/room/detail.vue
index feca948..032c3b9 100644
--- a/src/pages/room/detail.vue
+++ b/src/pages/room/detail.vue
@@ -95,7 +95,7 @@
       </div>
       <div class="right flex flex-col">
         <div v-for="(item,index) in occupyInfoViewArr" :key="index" class="flex-1 right_room_info">
-          <XioRoomInfoBlock ref="XioRoomInfoBlock" :occupy-info-view="item" />
+          <XioRoomInfoBlock ref="XioRoomInfoBlock" :occupy-info-view="item" :occupy-info-view-arr="occupyInfoViewArr" />
         </div>
         <div v-if="occupyInfoViewArr.length<=1" class="flex flex-col" style="border-radius: 10px;">
           <XioRoomGuestBox ref="XioRoomGuestBox" :assign-treat-list-view-com="assignTreatListView" @selectCustomer="selectCustomer" />
@@ -389,6 +389,7 @@
                 userName: '榛勫槈鑽�',
                 gender: 1,
                 hempStatus: 2,
+                treatRoomStatus: 0,
                 ciq: '123',
                 adviserName: 'a鍚�',
                 aDoctorName: 'b鍚�',
@@ -402,6 +403,7 @@
                 userName: '鏉庡痉鍗�',
                 gender: 1,
                 hempStatus: 2,
+                treatRoomStatus: 0,
                 ciq: '456',
                 adviserName: 'd鍚�',
                 aDoctorName: 'e鍚�',
@@ -415,6 +417,7 @@
                 userName: '鐚涘鍙�',
                 gender: 2,
                 hempStatus: 2,
+                treatRoomStatus: 0,
                 ciq: '789',
                 adviserName: 'g鍚�',
                 aDoctorName: 'h鍚�',
@@ -568,18 +571,18 @@
 
         // 褰撳墠閫夋嫨瀹㈡埛鐨勬暟缁勫垹闄ゅ鎴�
         this.occupyInfoViewArrDataHandle('cancel', item)
+        params.treatRoomList = []
+        if (arr && arr.length) {
+          arr.forEach((o) => {
+            params.treatRoomList.push({
+              treatRecordId: o.id,
+              status: o.treatRoomStatus
+            })
+          })
+        }
       } else {
         // 鏇存敼鐨勭姸鎬�
         params.status = status * 1
-      }
-      params.treatRoomList = []
-      if (arr && arr.length) {
-        arr.forEach((o) => {
-          params.treatRoomList.push({
-            treatRecordId: o.id,
-            status: o.treatRoomStatus
-          })
-        })
       }
 
       Req.http.post({

--
Gitblit v1.8.0