From 766d791b1aa3525ddef7a74afb199abc5d44bc50 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期四, 20 一月 2022 18:07:45 +0800 Subject: [PATCH] update: 客戶端- 待結案後才能發送滿意度 --- PAMapp/components/Consultant/ConsultantCard.vue | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index 63ce8b8..d60648b 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -208,7 +208,7 @@ get notScoreAppointmentYet(): boolean { const isAppointment = !!this.agentInfo['appointmentStatus']; if (!isAppointment) return false; - return !this.agentInfo['appointmentScore']; + return this.agentInfo['appointmentStatus'] !== 'contacted' ? !this.agentInfo['appointmentScore'] : false; } get isAppointment(): boolean { @@ -255,6 +255,12 @@ if (this.agentInfo['appointmentStatus'] === 'reserved') { return '撌脤���'; } + if (this.agentInfo['appointmentStatus'] === 'done') { + return '撌脫�漱'; + } + if (this.agentInfo['appointmentStatus'] === 'closed') { + return '���漱'; + } } else { if (this.agentInfo.contactStatus === 'contacted') { return '撌脰蝯�'; @@ -274,6 +280,12 @@ } if (this.agentInfo['appointmentStatus'] === 'reserved') { return 'reservedBtn'; + } + if (this.agentInfo['appointmentStatus'] === 'done') { + return 'doneBtn'; + } + if (this.agentInfo['appointmentStatus'] === 'closed') { + return 'closedBtn'; } } else { if (this.agentInfo.contactStatus === 'contacted') { @@ -438,6 +450,28 @@ } } + .doneBtn { + color: $BEIGE; + border-color: $BEIGE; + + &:focus { + color: $PRIMARY_WHITE; + background-color: $BEIGE; + opacity: 0.5; + } + } + + .closedBtn { + color: $PRUDENTIAL_GREY; + border-color: $PRUDENTIAL_GREY; + + &:focus { + color: $PRIMARY_WHITE; + background-color: $PRUDENTIAL_GREY; + opacity: 0.5; + } + } + .updateTime { font-size: 12px; font-weight: bold; -- Gitblit v1.8.0