From b1b1fa9058a8e7df07c25cf6d5be1678a042ab7e Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期二, 18 一月 2022 14:27:07 +0800
Subject: [PATCH] update: TODO#134382 [顧問管理流程] 刪除/編輯約訪紀錄

---
 PAMapp/store/index.ts |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/PAMapp/store/index.ts b/PAMapp/store/index.ts
index 1aabd10..6d112fe 100644
--- a/PAMapp/store/index.ts
+++ b/PAMapp/store/index.ts
@@ -9,8 +9,10 @@
 import reviewsService from '~/shared/services/reviews.service';
 
 import { Consultant } from '~/shared/models/consultant.model';
-import { Appointment, AppointmentLog } from '~/shared/models/appointment.model';
+import { Appointment, AppointmentLog, InterviewRecord } from '~/shared/models/appointment.model';
 import { AgentOfStrictQuery } from '~/shared/models/strict-query.model';
+import { AgentInfo } from '~/shared/models/agent-info.model';
+import { agentCommunicationStyleList } from '~/shared/const/agent-communication-style-list';
 @Module
 export default class Store extends VuexModule {
     recommendList: Consultant[] = [];
@@ -21,6 +23,16 @@
     myNewAppointmentSum: number = 0;
 
     myAppointmentReviewLogList: AppointmentLog[] = [];
+    interviewRecord: InterviewRecord = {
+        appointmentId   : 0,
+        content         : '',
+        createdBy       : '',
+        createdDate     : '',
+        id              : 0,
+        interviewDate   : '',
+        lastModifiedBy  : '',
+        lastModifiedDate: ''
+    }
 
     get isUserLogin() {
         return this.context.getters['localStorage/isUserLogin'];
@@ -56,6 +68,25 @@
         this.myAppointmentReviewLogList = data;
     }
 
+    @Mutation
+    updateInterviewRecord(data: InterviewRecord) {
+        this.interviewRecord = data;
+    }
+
+    @Mutation
+    clearInterviewRecord() {
+        this.interviewRecord = {
+            appointmentId   : 0,
+            content         : '',
+            createdBy       : '',
+            createdDate     : '',
+            id              : 0,
+            interviewDate   : '',
+            lastModifiedBy  : '',
+            lastModifiedDate: ''
+        }
+    }
+
     @Action
     storeRecommendList() {
         queryConsultantService.getRecommendConsultantList().then(data => {

--
Gitblit v1.8.0