| | |
| | | <span>{{interviewRecord.lastModifiedDate | formatDate}} 更新</span> |
| | | </div> |
| | | <el-row class="mdTxt mb-10"> |
| | | <el-col :xs="16" :sm="20">約訪時間</el-col> |
| | | <el-col :xs="16" :sm="20" class="required">約訪時間</el-col> |
| | | <el-col :xs="8" :sm="4" class="text--right" v-if="interviewId"> |
| | | <span |
| | | v-if="!isEdit" |
| | |
| | | @closePopUp="closePopup"> |
| | | <div class="text--center mdTxt">{{confirmTxt}}!</div> |
| | | <div class="text--center mdTxt">立即發送約訪通知?</div> |
| | | <div class="text--center mt-30"> |
| | | <div class="text--center mt-30" style="display:flex"> |
| | | <el-button @click="closePopup">先不發送</el-button> |
| | | <el-button @click="showInterviewMsgPopup = true" type="primary">傳送約訪通知</el-button> |
| | | </div> |
| | |
| | | } |
| | | this.updateRecord(updateInterviewRecord); |
| | | } |
| | | this.updateAppointmentDetail(+this.appointmentId); |
| | | } |
| | | |
| | | private createdRecord(interviewRecordInfo) { |
| | | appointmentService.createInterviewRecord(interviewRecordInfo).then(res => { |
| | | this.confirmTxt = '新增成功' |
| | | this.showPopUp(); |
| | | this.showPopUp('新增成功'); |
| | | }); |
| | | } |
| | | |
| | | private updateRecord(updateInterviewRecord) { |
| | | appointmentService.updateInterviewRecord(updateInterviewRecord).then(res => { |
| | | this.confirmTxt = '編輯成功'; |
| | | this.showPopUp(); |
| | | this.showPopUp('編輯成功'); |
| | | }); |
| | | } |
| | | |
| | | private showPopUp() { |
| | | private showPopUp(confirmTxt) { |
| | | this.confirmTxt = confirmTxt; |
| | | this.updateAppointmentDetail(+this.appointmentId); |
| | | |
| | | if (new Date(this.interviewTime).getTime() >= new Date().getTime()) { |
| | | this.showFutureDateConfirmPopup = true; |
| | | } else { |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | <style lang="scss" > |
| | | .edit-appointment-record { |
| | | padding-left : 10px; |
| | | padding-right: 10px; |
| | |
| | | margin-bottom : 26px; |
| | | } |
| | | } |
| | | .icon { |
| | | color : $PRIMARY_RED; |
| | | display : flex; |
| | | flex : 1; |
| | | justify-content: flex-end; |
| | | } |
| | | .edit-appointment-record-btn{ |
| | | margin-top: 30px; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | .el-textarea__inner { |
| | | border: 1px solid #707070; |
| | | padding: 10px 20px; |
| | | font-size: 20px; |
| | | &::placeholder { |
| | | font-size: 20px; |
| | | } |
| | | } |
| | | .required { |
| | | position: relative; |
| | | transform: translateX(10px); |
| | | |
| | | &::before { |
| | | content: '*'; |
| | | font-size: 15px; |
| | | font-weight: bold; |
| | | position: absolute; |
| | | color: #FF0000; |
| | | transform: translateX(-10px); |
| | | z-index: 5; |
| | | } |
| | | } |
| | | </style> |