From c0946457d311eb1ced63f7dcbcf4bc3f0e33c55a Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 19 一月 2022 16:43:01 +0800
Subject: [PATCH] fixed: BackActionBar - 預約單結案後顯示的 lable 應為'結案明細'

---
 PAMapp/store/appointment.store.ts |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/PAMapp/store/appointment.store.ts b/PAMapp/store/appointment.store.ts
index 02576cb..e8c8eff 100644
--- a/PAMapp/store/appointment.store.ts
+++ b/PAMapp/store/appointment.store.ts
@@ -35,6 +35,11 @@
     .filter(item => item.communicateStatus === this.contactStatus.DONE || item.communicateStatus === this.contactStatus.CLOSE ).length;
   }
 
+  get isCloseAppointment(): boolean {
+    const closedStatusList = [this.contactStatus.DONE, this.contactStatus.CLOSE, this.contactStatus.CANCEL];
+    return closedStatusList.includes(this.appointmentDetail!.communicateStatus);
+  }
+
   //////////////////////////////////////////////////////////////////////
 
   @Mutation

--
Gitblit v1.8.0