From 086f66acfc1d8e6da2da6dbab6b5704521cc62ed Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期三, 16 二月 2022 16:08:35 +0800
Subject: [PATCH] Fixed#135499 修正 [ 滿意度評分 ] 我的顧問清單 : 預約顧問後,(預約單未結案狀態)。喬妹顧問卡片會顯示「給予滿意度評分

---
 PAMapp/components/Consultant/ConsultantCard.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index 151e9d0..99e9ba6 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -12,12 +12,15 @@
                       class="icon-star pam-icon icon--yellow satisfaction"
                        style="margin-top: 0"></i>
                     <template v-if="isAppointment">
-                      <span v-if="agentInfo.appointmentScore">
-                          {{ agentInfo.appointmentScore }}
-                      </span>
-                      <div class="unfilled text--center "
-                          style="display:flex"
-                          v-else>�憛�<br />皛踵�漲</div>
+                      <template v-if="agentInfo.appointmentStatus === 'close'
+                                    || agentInfo.appointmentStatus === 'done'">
+                        <span v-if="agentInfo.appointmentScore">
+                            {{ agentInfo.appointmentScore }}
+                        </span>
+                        <div class="unfilled text--center "
+                            style="display:flex"
+                            v-else>�憛�<br />皛踵�漲</div>
+                      </template>
                     </template>
                     <template v-else>
                       <span v-if="agentInfo.avgScore">{{ agentInfo.avgScore }}</span>
@@ -29,6 +32,7 @@
             </el-col>
             <el-col :xs="10" :sm="15">
                 <div class="smTxt_bold name">{{agentInfo.name}}</div>
+                {{agentInfo.appointmentStatus}}
                 <div class="professionals">
                     <span
                         class="professionalsTxt"
@@ -42,7 +46,7 @@
                     @click="isRemoveAgentPopup = true"
                 >蝘駁</div>
                 <div
-                    v-if="notScoreAppointmentYet && !(agentInfo.contactStatus === 'picked' || agentInfo.contactStatus === 'reserved')"
+                    v-if="notScoreAppointmentYet && (agentInfo.appointmentStatus === 'closed' || agentInfo.appointmentStatus === 'done')"
                     class="text--primary text--underline cursor--pointer xsTxt text--bold"
                     @click="reviewsBtn = true">蝯虫�遛��漲閰��</div>
             </el-col>
@@ -88,7 +92,7 @@
                     </div>
                 </div>
 
-                <div v-if="notScoreAppointmentYet && (agentInfo.contactStatus !== 'picked' || agentInfo.contactStatus !== 'reserved') " class="reserved-btn">
+                <div v-if="notScoreAppointmentYet && (agentInfo.appointmentStatus === 'closed' || agentInfo.appointmentStatus === 'done')" class="reserved-btn">
                     <el-button type="primary"
                         @click.native="reviewsBtn = true">蝯虫�遛��漲閰��</el-button>
                 </div>

--
Gitblit v1.8.0