|
|
@ -18,8 +18,8 @@ |
|
|
|
</div> |
|
|
|
<div class="table_form"> |
|
|
|
<invalid v-if="curFormType==='无效联系'" id="followFunc" ref="followRef" :json-text="dataForm.jsonText" :follow-id="dataForm.id" /> |
|
|
|
<phone-follow v-else-if="curFormType==='电话随访'" id="followFunc" ref="followRef" :json-text="dataForm.jsonText" :follow-id="dataForm.id" /> |
|
|
|
<out-follow v-else id="followFunc" ref="followRef" :patient-id="patientId" :json-text="dataForm.jsonText" :follow-id="dataForm.id" :platform="platform" /> |
|
|
|
<phone-follow v-if="curFormType==='电话随访'" id="followFunc" ref="followRef" :json-text="dataForm.jsonText" :follow-id="dataForm.id" /> |
|
|
|
<out-follow v-if="curFormType==='门诊随访'" id="followFunc" ref="followRef" :patient-id="patientId" :json-text="dataForm.jsonText" :follow-id="dataForm.id" :platform="platform" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 没有随访数据 --> |
|
|
@ -48,7 +48,6 @@ import timeLineFollowUp from '@/components/360View/time-line-follow-up' |
|
|
|
// import editFullCaseTemplate from '@/components/hm-crf/edit-full-case-template.vue' |
|
|
|
// import intelligentFull from '@/components/hm-crf/intelligent-full.vue' |
|
|
|
import addFollowRecord from './add-follow-record.vue' |
|
|
|
import IntelligentFill from '@/mixins/IntelligentFill' |
|
|
|
import Invalid from '@/components/360View/followUpRecord/formList/invalid.vue' |
|
|
|
import PhoneFollow from '@/components/360View/followUpRecord/formList/phoneFollow.vue' |
|
|
|
import OutFollow from '@/components/360View/followUpRecord/formList/outFollow.vue' |
|
|
@ -64,7 +63,6 @@ export default { |
|
|
|
// editFullCaseTemplate, |
|
|
|
// intelligentFull |
|
|
|
}, |
|
|
|
mixins: [IntelligentFill], |
|
|
|
props: { |
|
|
|
patientIdNumber: { |
|
|
|
type: String, |
|
|
@ -95,30 +93,8 @@ export default { |
|
|
|
timeAxisDataVisit: [], // 左侧时间轴数据 |
|
|
|
curFormType: '', |
|
|
|
followRecordVisible: false, |
|
|
|
// crfVisible: false, |
|
|
|
followUpVisible: false, |
|
|
|
editFullCaseTemplateVisible: false, |
|
|
|
intelligentFullVisible: false, |
|
|
|
jsArr: [], |
|
|
|
dataForm: {}, |
|
|
|
name: '', |
|
|
|
formDate: '', |
|
|
|
callList: [{ |
|
|
|
date: '2021--4-12 12:53:21', |
|
|
|
recordFile: '', |
|
|
|
recordLength: '10:12:12', |
|
|
|
flag: 1 |
|
|
|
}, { |
|
|
|
date: '2021--4-12 13:53:21', |
|
|
|
recordFile: '', |
|
|
|
recordLength: '10:12:12', |
|
|
|
flag: 1 |
|
|
|
}, { |
|
|
|
date: '2021--4-12 14:53:21', |
|
|
|
recordFile: '', |
|
|
|
recordLength: '10:12:12', |
|
|
|
flag: 0 |
|
|
|
}], |
|
|
|
followFormList: [ |
|
|
|
{ |
|
|
|
id: '1', |
|
|
@ -156,6 +132,7 @@ export default { |
|
|
|
} |
|
|
|
this.$http.get('/patient/view/getTimeAxisDataVisit', { params }).then(res => { |
|
|
|
this.timeAxisDataVisit = res.data.data |
|
|
|
this.curFormType = this.timeAxisDataVisit[0].itemList[0].groupName |
|
|
|
if (add) { |
|
|
|
const index = this.timeAxisDataVisit.findIndex(item => item.date === this.$moment(value.createTime).format('YYYY-MM-DD')) |
|
|
|
this.$refs.timeline.itemCurrentIndex = index || 0 |
|
|
@ -174,7 +151,7 @@ export default { |
|
|
|
if (Isdate) { |
|
|
|
const itemListIndex = itemListCurrentIndex * 1 === 0 ? 0 : itemListCurrentIndex - 1 |
|
|
|
this.$refs.timeline.itemListCurrentIndex = itemListIndex |
|
|
|
this.dataForm = this.timeAxisDataVisit[itemCurrentIndex].itemList[itemListIndex] |
|
|
|
this.dataForm = this.timeAxisDataVisit.length && this.timeAxisDataVisit[itemCurrentIndex].itemList[itemListIndex] |
|
|
|
window.sessionStorage.setItem('itemCurrentIndex', itemCurrentIndex) |
|
|
|
window.sessionStorage.setItem('itemListIndex', itemListIndex) |
|
|
|
} else { |
|
|
@ -182,7 +159,7 @@ export default { |
|
|
|
const itemIndex = itemCurrentIndex * 1 === 0 ? 0 : itemCurrentIndex - 1 |
|
|
|
this.$refs.timeline.itemCurrentIndex = itemIndex |
|
|
|
this.$refs.timeline.itemListCurrentIndex = 0 |
|
|
|
this.dataForm = this.timeAxisDataVisit[itemIndex].itemList[0] |
|
|
|
this.dataForm = this.timeAxisDataVisit.length && this.timeAxisDataVisit[itemIndex].itemList[0] |
|
|
|
window.sessionStorage.setItem('itemCurrentIndex', itemIndex) |
|
|
|
window.sessionStorage.setItem('itemListIndex', 0) |
|
|
|
} |
|
|
|