保誠-保戶業務員媒合平台
Mila
2022-01-21 b6e9939aec90be36f7533e20cc92b09ad4035b07
update: TODO#134562 客戶端-預約單狀態調整
修改2個檔案
6 ■■■■ 已變更過的檔案
PAMapp/components/Consultant/ConsultantCard.vue 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/myConsultantList.vue 4 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Consultant/ConsultantCard.vue
@@ -217,7 +217,7 @@
    get latestReservedAppointment(): Appointment {
        return this.agentInfo.appointments!
                .filter((appointment) => appointment.communicateStatus !== 'contacted')
                .filter((appointment) => appointment.communicateStatus === 'reserved')
                .map((reversedAppointment) => {
                    return {
                    ...reversedAppointment,
PAMapp/pages/myConsultantList.vue
@@ -76,7 +76,7 @@
    // format consultant list
      this.consultantList = (this.myConsultantList || [])
        .filter(item => item.contactStatus === 'picked' || item.contactStatus === 'reserved')
        .filter(item => item.contactStatus !== 'contacted')
        .map((item) => ({ ...item, formatDate: new Date(item.updateTime || item.createTime)}))
        .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate );
@@ -96,7 +96,7 @@
          });
        this.contactedList = this.contactedList
          .filter((appointment) => appointment['appointmentStatus'] === 'contacted' || appointment['appointmentStatus'] === 'closed' || appointment['appointmentStatus'] === 'done')
          .filter((appointment) => appointment['appointmentStatus'] !== 'reserved')
          .map((appointment) => ({ ...appointment, sortTime: new Date(appointment.appointmentDate)}))
          .sort((preAppointment, nextAppointment) => +nextAppointment.sortTime - +preAppointment.sortTime);
      }