保誠-保戶業務員媒合平台
fixed#133252: [客戶端] 已聯絡顧問列表,在外部即可點擊並使用"給予滿意度評分"功能
修改2個檔案
44 ■■■■ 已變更過的檔案
PAMapp/assets/scss/utilities/_heading.scss 10 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Consultant/ConsultantCard.vue 34 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/assets/scss/utilities/_heading.scss
@@ -96,4 +96,12 @@
  font-size: 18px;
  color: $ORANGE;
  cursor: pointer;
}
}
.text--center {
  text-align: center;
}
.text--underline {
  text-decoration: underline;
}
PAMapp/components/Consultant/ConsultantCard.vue
@@ -44,8 +44,12 @@
                            @click="reserveCommunication"
                            :class="actionBtnStyle"
                        >{{ actionBtnLabel }}</el-button>
                        <div
                          v-if="notScoreAppointmentYet"
                          class="text--primary mt-10 text--center text--underline cursor--pointer"
                          @click="reviewsBtn = true">給予滿意度評分</div>
                        <div class="updateTime mt-10">
                            {{ displayTime | formatDate }}
                            {{ agentInfo.updateTime | formatDate }}
                        </div>
                    </el-col>
                </el-row>
@@ -229,27 +233,6 @@
      }
    }
    get displayTime(): string {
      const isAppointment = !!this.agentInfo['appointmentStatus'];
      let time: Date | string = '';
      if (isAppointment) {
        time = this.agentInfo['appointmentDate'];
      } else {
        switch(this.agentInfo.contactStatus) {
            case 'reserved':
                time = this.agentInfo.updateTime;
                break;
            case 'picked':
                time = this.agentInfo.updateTime;
                break;
        }
      }
        if (typeof time !== 'string') {
          time.toString();
        }
        return time as string;
    }
    get avatarFileName() {
        return this.agentInfo.img;
    }
@@ -349,8 +332,13 @@
    }
    userReviewsConsultants() {
      const isAppointment = !!this.agentInfo['appointmentStatus'];
      const appointmentId = isAppointment
                          ? this.agentInfo['appointmentId']
                          : this.latestReservedAppointment.id;
        const reviewParams: UserReviewsConsultantsParams = {
            appointmentId: this.appointmentDetail.id,
            appointmentId: appointmentId,
            score: this.inputScore,
        }
        this.appointmentDetail.satisfactionScore = this.inputScore;