保誠-保戶業務員媒合平台
Mila
2021-12-09 57dc3fc3fcd7c33e2cdd9bb7ba40028dd60faa17
Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM
修改3個檔案
26 ■■■■ 已變更過的檔案
PAMapp/assets/ts/api/appointment.ts 14 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/index.vue 6 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/myConsultantList.vue 6 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/assets/ts/api/appointment.ts
@@ -55,14 +55,14 @@
    job              : string,
    requirement      : string,
    communicateStatus: string,
    hopeContactTime: string,
    otherRequirement: string,
    appointmentDate: Date,
    agentNo: string,
    customerId: number,
    name: string,
    hopeContactTime  : string,
    otherRequirement : string,
    appointmentDate  : Date,
    agentNo          : string,
    customerId       : number,
    name             : string,
    consultantViewTime: Date,
    consultantReadTime: Date,
    contactTime: Date,
    contactTime      : Date,
    satisfactionScore: number
}
PAMapp/pages/index.vue
@@ -52,7 +52,7 @@
  })
  export default class MainComponent extends Vue {
    consultantList: Consultant[] = [];
    agents: Consultant[] = [];
    @State('recommendList') recommendList!: Consultant[];
    @Action storeRecommendList!: any;
@@ -66,7 +66,8 @@
    onMyConsultantListChange() {
      this.consultantList = (this.myConsultantList || [])
        .filter(item => item.contactStatus !== 'contacted')
        .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1)
        .map((item) => ({ ...item, formatDate: new Date(item.updateTime)}))
        .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate)
    }
    mounted() {
@@ -75,7 +76,6 @@
      }
      this.storeConsultantList();
      this.storageClearQuickFilter();
      this.storageClearRecommendConsultant();
    }
PAMapp/pages/myConsultantList.vue
@@ -69,10 +69,12 @@
    filterContactedList() {
        this.consultantList = (this.myConsultantList || [])
                .filter(item => item.contactStatus !== 'contacted')
                .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1);
                .map((item) => ({ ...item, formatDate: new Date(item.updateTime)}))
                .sort((preItem, nextItem) => +nextItem.formatDate - +preItem.formatDate );
        this.contactedList = (this.myConsultantList || [])
                .filter(item => item.contactStatus === 'contacted')
                .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1);
                .map((item) => ({ ...item, formDate: new Date(item.updateTime)}))
                .sort((preItem, nextItem) => +nextItem.formDate - +preItem.formDate);
    }
}