保誠-保戶業務員媒合平台
PAMapp/components/Appointment/AppointmentClosedInfo.vue
@@ -39,12 +39,15 @@
import { Vue, Component, Prop } from 'nuxt-property-decorator';
import { Appointment } from '~/shared/models/appointment.model';
import { ContactStatus } from '~/shared/models/enum/contact-status';
@Component
export default class AppointmentRecordList extends Vue {
export default class AppointmentClosedInfo extends Vue {
    @Prop()
    appointmentDetail!: Appointment;
    contactStatus = ContactStatus;
    //////////////////////////////////////////////////////////////////////
@@ -52,6 +55,19 @@
      this.$router.push(`/appointment/${this.appointmentDetail.id}/close`);
    }
    get displayClosedType(): string {
      let closedType = '成交';
      switch (this.appointmentDetail.communicateStatus) {
        case this.contactStatus.CLOSE:
          closedType = '未成交';
          break;
        case this.contactStatus.CANCEL:
          closedType = '取消';
          break;
      }
      return closedType;
    }
}
</script>