保誠-保戶業務員媒合平台
Tomas
2021-12-27 c4657209fea6c0b74708de65d936e9033660a1b9
PAMapp/components/Client/ClientCard.vue
@@ -175,21 +175,21 @@
        }
    }
    get latestUpdateTime() {
    get displayTime(): string {
        if (this.isReserved) {
            return this.client.consultantReadTime ? this.client.consultantReadTime : this.client.appointmentDate;
            return this.client.appointmentDate;
        } else {
            return this.client.contactTime;
            return this.client.lastModifiedDate;
        }
    }
    get time() {
        const formatDate = (this.$options.filters as any).formatDate(this.latestUpdateTime);
        const formatDate = (this.$options.filters as any).formatDate(this.displayTime);
        return formatDate.split(' ')[1]
    }
    get date() {
        const formatDate = (this.$options.filters as any).formatDate(this.latestUpdateTime);
        const formatDate = (this.$options.filters as any).formatDate(this.displayTime);
        return formatDate.split(' ')[0];
    }