| | |
| | | <UiField :span="12" icon="time" label="最後上線時間"> |
| | | {{ agentInfo.latestLoginTime | formatDate }} |
| | | </UiField> |
| | | <UiField :span="12" icon="calender" label="服務資歷"> |
| | | <div class="mt-10" style="display: flex; align-items: center"> |
| | | <el-input v-model="editInfoValue.seniorityYear" class="seniority-input" ></el-input>年 |
| | | <el-select style="width:60px" v-model="editInfoValue.seniorityMonth" class="seniority-input"> |
| | | <el-option |
| | | v-for="(month) in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]" |
| | | :value="month" |
| | | :key="month"> |
| | | {{ month }} |
| | | </el-option> |
| | | </el-select>月 |
| | | </div> |
| | | <UiField :span="12" icon="calender" label="到職日期"> |
| | | <UiDatePicker |
| | | class="mt-10" |
| | | @changeDate="onChangeDate($event)" |
| | | ></UiDatePicker> |
| | | </UiField> |
| | | </el-row> |
| | | |
| | |
| | | title : '', |
| | | serveArea : [] as string[], |
| | | companyAddress : '', |
| | | seniorityYear : 1, |
| | | seniorityMonth : 0, |
| | | concept : '', |
| | | experiences : '', |
| | | awards : '', |
| | |
| | | photoBase64 : '', |
| | | phoneNumber : '', |
| | | email : '', |
| | | entryDate : ',' |
| | | }; |
| | | |
| | | communicationStyleList: string[] = agentCommunicationStyleList; |
| | |
| | | } |
| | | |
| | | private setAgentInfo(agentInfo: AgentInfo): void { |
| | | const [agentYear, _yearUnit , agentMonth, _monthUnit] = agentInfo.seniority.split(" "); |
| | | // const [agentYear, _yearUnit , agentMonth, _monthUnit] = agentInfo.seniority.split(" "); |
| | | this.defaultAgentInfoSetting = { |
| | | agentNo : agentInfo.agentNo||'', |
| | | name : agentInfo.name || '', |
| | |
| | | gender : agentInfo.gender||'', |
| | | phoneNumber : agentInfo.phoneNumber||'', |
| | | companyAddress : agentInfo.companyAddress || '', |
| | | seniorityYear : agentYear? +agentYear : 0, |
| | | seniorityMonth : agentMonth ? +agentMonth : 0, |
| | | concept : agentInfo.concept || '', |
| | | experiences : agentInfo.experiences || '', |
| | | awards : agentInfo.awards || '', |
| | | communicationStyle: agentInfo.communicationStyle || '', |
| | | photoBase64 : '', |
| | | email : agentInfo.email || '' |
| | | email : agentInfo.email || '', |
| | | entryDate : agentInfo.entryDate || '', |
| | | }; |
| | | |
| | | this.editInfoValue = { |
| | |
| | | this.isInfoUpdate = true; |
| | | this.updateConsultantDetail(editSettingInfo.agentNo); |
| | | }); |
| | | } |
| | | |
| | | onChangeDate(date: any): void { |
| | | this.editInfoValue.entryDate = date; |
| | | } |
| | | |
| | | backToInfo() { |
| | |
| | | && this.editInfoValue.concept |
| | | && this.editInfoValue.experiences |
| | | && this.editInfoValue.phoneNumber.length |
| | | && this.editInfoValue.seniorityYear |
| | | && this.editInfoValue.entryDate |
| | | && this.editInfoValue.expertise.length |
| | | && this.editInfoValue.communicationStyle.length |
| | | && this.editInfoValue.email.length; |