From 7bc811f52ac53ee7ea5fb55afcdda6ce1fcf1ddd Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 17 二月 2022 10:20:37 +0800 Subject: [PATCH] fix#135491: [ 顧問管理流程 ] 顧問已更改個人資訊的手機號碼後,發送約訪通知給客戶的通知內容中,手機號碼依然沒有更新 --- PAMapp/pages/agentInfo/edit/_agentNo.vue | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/PAMapp/pages/agentInfo/edit/_agentNo.vue b/PAMapp/pages/agentInfo/edit/_agentNo.vue index 1ed9e6c..ae47457 100644 --- a/PAMapp/pages/agentInfo/edit/_agentNo.vue +++ b/PAMapp/pages/agentInfo/edit/_agentNo.vue @@ -263,14 +263,15 @@ const loginStore = namespace('login.store'); @Component -export default class AgentInfoComponent extends Vue { +export default class AgentInfoEditComponent extends Vue { - @localStorageTest.State('current_role') + @localStorageTest.State + current_role: any; @loginStore.Action - updateConsultantDetail!: (agentInfo: AgentInfo) => AgentInfo; + updateConsultantDetail!: (agentNo: string) => Promise<AgentInfo>; - _agentInfoSetting!: AgentInfoSetting; + defaultAgentInfoSetting!: AgentInfoSetting; agentInfo! : AgentInfo fieldInfoDesc : string = ''; fieldInfoTitle : string = ''; @@ -358,7 +359,7 @@ private setAgentInfo(agentInfo: AgentInfo): void { const [agentYear, _yearUnit , agentMonth, _monthUnit] = agentInfo.seniority.split(" "); - this._agentInfoSetting = { + this.defaultAgentInfoSetting = { agentNo : agentInfo.agentNo||'', name : agentInfo.name || '', expertise : agentInfo.expertise || [], @@ -378,10 +379,10 @@ }; this.editInfoValue = { - ...this._agentInfoSetting, - expertise : _.cloneDeep(this._agentInfoSetting.expertise), + ...this.defaultAgentInfoSetting, + expertise : _.cloneDeep(this.defaultAgentInfoSetting.expertise), // TODO: 蝣箄��垢甇斗���垢���隞�" , "���� [Tomas, 2021/12/28] - communicationStyle : this._agentInfoSetting.communicationStyle.split('��'), + communicationStyle : this.defaultAgentInfoSetting.communicationStyle.split('��'), } } @@ -394,8 +395,8 @@ serveArea: this.editInfoValue.serveArea.join('��'), } accountSettingService.editAgentInfoSetting(editSettingInfo).then((res: AgentInfoSetting) => { - this.updateConsultantDetail(editSettingInfo.agentNo); this.isInfoUpdate = true; + this.updateConsultantDetail(editSettingInfo.agentNo); }); } @@ -426,7 +427,7 @@ //////////////////////////////////////////////////////////// get nameValid(): boolean { - return !!this.editAgentInfoSetting.name; + return !!this.defaultAgentInfoSetting?.name; } get phoneValid(): boolean { -- Gitblit v1.8.0