Vue.component('fangshi-detail-6', { template: '
\ \

新生儿家庭访视记录表

\
\
\
\
姓名:
\
\ \
\
\
\
\
\
户籍: 
\
\ \ 本市\ 省内\ 省外\ \
\
\
\
\
\
卡号:
\
\ \
\
\
\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
性别\ \
\ 未知的性别\ \
\
\ \ 未说明的性别\
\
\
\
\
\ 出生日期:\
\
\ \ \
\
\
\
\
\ 户籍地址:\
\
\ \
\
\
母亲身份证号\ \ 家庭住址\ \
母 亲\
\
\ 姓名\
\
\ \
\
\
\
\
\ 职业\
\
\ \
\
\
\
\
\ 联系电话\
\
\ \
\
\
\
\
\ 出生日期\
\
\ \ \
\
\
父 亲\
\
\ 姓名\
\
\ \
\
\
\
\
\ 职业\
\
\ \
\
\
\
\
\ 联系电话\
\
\ \
\
\
\
\
\ 出生日期\
\
\ \ \
\
\
出生孕周\ \ 周\ \
\
\ 母亲妊娠期患病情况:\
\
\ \ 糖尿病\ 妊娠期高血压\ 其他\ \ \ \
\
\
助产机构名称:\ \ \ 出院时间\
\ \ \
\
\ 出生情况:\ \ 顺产\ 胎头吸引\ 产钳\ 剖宫\ 双多胎\ 臀位\ \ \ \ \ \ 新生儿窒息:\ \ \ \ \
\ (Apgar 评分:1分钟\ 分,5分钟\ 分,不详\ )\
\
新生儿病史:\ \ 诊治机构:\ \ 计划免疫情况:\ \ 卡介苗\ 乙肝疫苗\ 以上两种\ 未种\ \
\
\
\ 新生儿出生体重:\
\
\ \ kg\
\
\
\
\
\ 出生身长:\
\
\ cm\
\
\
是否有畸形:\ \ \ \ \
\ *********** 第二次访视以上八行信息不需要重复填写 ***********\
\ 新生儿疾病筛查:\ \ 未进行\ 检查均阴性\ 甲低\ 苯丙酮尿症\ 其他遗传代谢病\ \ \ 已查无结果\ \
\ 新生儿听力筛查:\ \ 通过\ 未通过\ 未筛查\ 不详\ 已查无结果\ \ \ 目前体重\ \ kg\
\ 喂养方式:\ \ 纯母乳\ 部分母乳\ 人工\ \ \ 吃奶量\ ml/次\ \ 吃奶次数\ 次/日\
\ 呕吐:\ \ \ \ \ \ 大便:\ \ 糊状\ \ 其他\ \ \ 大便次数\ 次/日\
\ 体温:\ \ ℃\ \ 心率:\ \ 次/分钟\ \ 呼吸频率\ \ 次/分钟\
面色:\ \ 红润\ 黄染\ 其他\ \ \ \ 黄疸部位:\ \ 面部\ 躯干\ 四肢\ 手足\ \
\ 前囟\ \  cm ✖\  cm  \ \ 正常\ 膨隆\ 凹陷\ 其他\ \ \ \
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
眼外观:\ \ 未见异常\ 异常\ \ \ \ 四肢活动度:\ \ 未见异常\ 异常\ \ \ \
耳外观:\ \ 未见异常\ 异常\ \ \ \ 颈部包块:\ \ \ 有\ \ \ \
鼻:\ \ 未见异常\ 异常\ \ \ \ 皮肤:\ \ 未见异常\ 湿疹\ 糜烂\ 其他\ \ \ \
口腔:\ \ 未见异常\ 异常\ \ \ \ 肛门:\ \ 未见异常\ 异常\ \ \ \
心肺听诊:\ \ 未见异常\ 异常\ \ \ \ 外生殖器:\ \ 未见异常\ 异常\ \ \ \
腹部触诊:\ \ 未见异常\ 异常\ \ \ \ 脊柱:\ \ 未见异常\ 异常\ \ \ \
脐带:\ \ 未脱\ 脱落\ 脐部有渗出\ 其他\ \ \ \ \
\
其他:
\
\ \
\
\
\
\ 转诊意见:\ \ \ \ \
\
\ 原因:\
\
\ \
\
\
\
\
\ 机构:\
\
\ \
\
\
\
\ 科室:\
\
\ \
\
\
\
\
\
\ 指导:\
\
\ \ 喂养指导\ 发育指导\ 防病指导\ 预防伤害指导\ 口腔保健指导\ 其他\ \ \ \
\
\
\
\
\ 本次访视日期\
\
\ \ \
\
\
\
\
\ 下次随访地点\
\
\ \
\
\
\
\
\ 下次访视日期\
\
\ \ \
\
\
\
\
\
\ 随访医生签名:\
\
\ \
\
\
\
\ 家属确认签字:\
\
\ \
\
\
\
\
', props: ['followupid', 'version'], data: function () { return { finishedStatus: null, //随访完成状态 editable: false, isEditBtn: true,//是否是编辑按钮 birth_OTHER: true, pregnancy_SICK_CIRCS_other: true, SCREENING_3_dis: true, bregma_other_dis: true, eye_NULL_dis: true, limbs_NULL_dis: true, complexion_NULL_dis: true, ear_FACE_dis: true, neck_PACK_NULL_dis: true, nose_PERFORMANCE_dis: true, skin_PERFORMANCE_dis: true, oral_PERFORMANCE_dis: true, anus_PERFORMANCE_dis: true, heart_PERFORMANCE_dis: true, genitalia_NULL_dis: true, abdomen_NULL_dis: true, vertebral_NULL_dis: true, umbilical_NULL_dis: true, other_GUIDE_CONTENT_dis: true, delivery_WAY_check: [], SCREENING_check: [], guide_check: [], data2: "", radio: "", input: '', name: '', number: '', newbornData: { this_INTERVIEW_DATE:'', birthday:'', sick_SEX:'', next_VISITING_DATE:"", }, patientCode:'', followupClass:'' } }, computed: { pregnancy_SICK: function () { return this.newbornData.pregnancy_SICK }, bregma: function () { return this.newbornData.bregma }, complexion: function () { return this.newbornData.complexion }, eye: function () { return this.newbornData.eye }, limbs: function () { return this.newbornData.limbs }, neck_PACK: function () { return this.newbornData.neck_PACK }, ear: function () { return this.newbornData.ear }, nose: function () { return this.newbornData.nose }, skin: function () { return this.newbornData.skin }, oral: function () { return this.newbornData.oral }, anus: function () { return this.newbornData.anus }, heart: function () { return this.newbornData.heart }, genitalia: function () { return this.newbornData.genitalia }, abdomen: function () { return this.newbornData.abdomen }, vertebral: function () { return this.newbornData.vertebral }, umbilical: function () { return this.newbornData.umbilical } }, watch: { umbilical: function (i) { var a = i ? i.toString().indexOf('4') : '' if (a > -1) { this.umbilical_NULL_dis = false } else { this.umbilical_NULL_dis = true this.newbornData.umbilical_NULL = '' } }, vertebral: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.vertebral_NULL_dis = false } else { this.vertebral_NULL_dis = true this.newbornData.vertebral_NULL = '' } }, abdomen: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.abdomen_NULL_dis = false } else { this.abdomen_NULL_dis = true this.newbornData.abdomen_NULL = '' } }, genitalia: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.genitalia_NULL_dis = false } else { this.genitalia_NULL_dis = true this.newbornData.genitalia_NULL = '' } }, heart: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.heart_PERFORMANCE_dis = false } else { this.heart_PERFORMANCE_dis = true this.newbornData.heart_PERFORMANCE = '' } }, anus: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.anus_PERFORMANCE_dis = false } else { this.anus_PERFORMANCE_dis = true this.newbornData.anus_PERFORMANCE = '' } }, oral: function (i) { var a = i ? i.toString().indexOf('2') : "" if (a > -1) { this.oral_PERFORMANCE_dis = false } else { this.oral_PERFORMANCE_dis = true this.newbornData.oral_PERFORMANCE = '' } }, skin: function (i) { var a = i ? i.toString().indexOf('4') : '' if (a > -1) { this.skin_PERFORMANCE_dis = false } else { this.skin_PERFORMANCE_dis = true this.newbornData.skin_PERFORMANCE = '' } }, nose: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.nose_PERFORMANCE_dis = false } else { this.nose_PERFORMANCE_dis = true this.newbornData.nose_PERFORMANCE = '' } }, neck_PACK: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.neck_PACK_NULL_dis = false } else { this.neck_PACK_NULL_dis = true this.newbornData.neck_PACK_NULL = '' } }, limbs: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.limbs_NULL_dis = false } else { this.limbs_NULL_dis = true this.newbornData.limbs_NULL = '' } }, ear: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.ear_FACE_dis = false } else { this.ear_FACE_dis = true this.newbornData.ear_FACE = '' } }, limbs: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.limbs_NULL_dis = false } else { this.limbs_NULL_dis = true this.newbornData.limbs_NULL = '' } }, eye: function (i) { var a = i ? i.toString().indexOf('2') : '' if (a > -1) { this.eye_NULL_dis = false } else { this.eye_NULL_dis = true this.newbornData.eye_NULL = '' } }, pregnancy_SICK: function (i) { var a = i ? i.toString().indexOf('4') : '' if (a > -1) { this.pregnancy_SICK_CIRCS_other = false } else { this.pregnancy_SICK_CIRCS_other = true this.newbornData.pregnancy_SICK_CIRCS = '' } }, bregma: function (i) { var a = i ? i.toString().indexOf('4') : '' if (a > -1) { this.bregma_other_dis = false } else { this.bregma_other_dis = true this.newbornData.bregma_PERFORMANCE = '' } }, complexion: function (i) { var a = i ? i.toString().indexOf('3') : '' if (a > -1) { this.complexion_NULL_dis = false } else { this.complexion_NULL_dis = true this.newbornData.complexion_NULL = '' } }, delivery_WAY_check: function (i) { var a = i ? i.toString().indexOf('7') : '' if (a > -1) { this.birth_OTHER = false } else { this.birth_OTHER = true this.newbornData.birth_OTHER = '' } }, SCREENING_check: function (i) { var a = i ? i.toString().indexOf('5') : '' if (a > -1) { this.SCREENING_3_dis = false } else { this.SCREENING_3_dis = true this.newbornData.screening_ABNORMAL = '' } }, guide_check: function (i) { var a = i.toString().indexOf('6') if (a > -1) { this.other_GUIDE_CONTENT_dis = false } else { this.other_GUIDE_CONTENT_dis = true this.other_GUIDE_CONTENT = '' } } }, mounted: function () { this.getData() //获取随访状态 }, methods: { getData: function () { var vm = this fangshiAPI.getNewbornFamilyVisitRecord({ followupId: this.followupid || '2' }).then(function (res) { if (res.status == 200) { var data = res.data if (data != null) { vm.newbornData = data vm.dealData(data) vm.getStatus(false) }else{ vm.getStatus(true) } } else { top.toastr.error(res.msg); } }) }, dealData:function(data){ var vm=this var vmN = vm.newbornData vmN.help_ORGANIZATION_FLAG = data.help_ORGANIZATION_FLAG ? data.help_ORGANIZATION_FLAG.toString() : '' vmN.sick_SEX = data.sick_SEX ? data.sick_SEX.toString() : '' vmN.pregnancy_SICK = data.pregnancy_SICK ? data.pregnancy_SICK.toString() : '' vm.delivery_WAY_check = data.delivery_WAY ? data.delivery_WAY.split(',') : []; vmN.suffocation = data.suffocation ? data.suffocation.toString() : '' vmN.plan_IMMUNE = data.plan_IMMUNE ? data.plan_IMMUNE.toString() : '' vmN.deformity_NULL = data.deformity_NULL ? data.deformity_NULL.toString() : '' vmN.hearing = data.hearing ? data.hearing.toString() : '' vmN.feed_TYPE = data.feed_TYPE ? data.feed_TYPE.toString() : '' vmN.vomit = data.vomit ? data.vomit.toString() : '' vmN.vulnus = data.vulnus ? data.vulnus.toString() : '' vmN.vulnus_TIME = data.vulnus_TIME ? data.vulnus_TIME.toString() : '' vmN.body_TEMPERATURE = data.body_TEMPERATURE ? data.body_TEMPERATURE.toString() : "" vmN.complexion = data.complexion ? data.complexion.toString() : "" vmN.face = data.face ? data.face.toString() : '' vmN.bregma = data.bregma ? data.bregma.toString() : '' vmN.eye = data.eye ? data.eye.toString() : '' vmN.limbs = data.limbs ? data.limbs.toString() : '' vmN.ear = data.ear ? data.ear.toString() : '' vmN.nose = data.nose ? data.nose.toString() : '' vmN.neck_PACK = data.neck_PACK ? data.neck_PACK.toString() : '' vmN.skin = data.skin ? data.skin.toString() : "" vmN.oral = data.oral ? data.oral.toString() : '' vmN.anus = data.anus ? data.anus.toString() : "" vmN.heart = data.heart ? data.heart.toString() : '' vmN.genitalia = data.genitalia ? data.genitalia.toString() : '' vmN.abdomen = data.abdomen ? data.abdomen.toString() : "" vmN.vertebral = data.vertebral ? data.vertebral.toString() : '' vmN.referral = data.referral ? data.referral.toString() : '' vmN.umbilical = data.umbilical ? data.umbilical.toString() : '' if (data.screening_4 == 1) { vm.SCREENING_check.push('1') } if (data.screening_5 == 1) { vm.SCREENING_check.push('2') } if (data.screening_1 == 1) { vm.SCREENING_check.push('3') } if (data.screening_2 == 1) { vm.SCREENING_check.push('4') } if (data.screening_3 == 1) { vm.SCREENING_check.push('5') } if (data.screening_6 == 1) { vm.SCREENING_check.push('6') } if (data.feed_GUID == 1) { vm.guide_check.push('1') } if (data.growup_GUID == 1) { vm.guide_check.push('2') } if (data.prevention_DEFORMITY_GUID == 1) { vm.guide_check.push('3') } if (data.prevention_HURT_GUID == 1) { vm.guide_check.push('4') } if (data.oral_CAVITY_GUID == 1) { vm.guide_check.push('5') } if (data.other_GUIDE == 1) { vm.guide_check.push('6') } }, getLastData:function(obj){ var vm=this fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass,patientCode:vm.patientCode }).then(function (res) { if (res.status == 200) { var data = res.data.detail // finishedStatus:true 随访完成,false 随访未完成 //默认信息 vm.newbornData.sick_NAME=obj.name vm.newbornData.sick_SEX=obj.sex.toString() vm.newbornData.birthday=obj.birthday vm.newbornData.visiting_DOCTOR=obj.doctorName // 居民存在上次历史记录,则代入默认信息 if (res.data.detail) { vm.newbornData = res.data.detail vm.dealData(data) } //默认随访时间为当前时间 vm.newbornData.this_INTERVIEW_DATE = new Date().format("yyyy-MM-dd") vm.newbornData.next_VISITING_DATE=null } }) }, // 完成随访状态修改 finish: function () { var vm = this fangshiAPI.updateFollowStatus({ followupId: this.followupid }).then(function (res) { if (res.status == 200) { vm.finishedStatus=true vm.setEditBtn() top.toastr.info("完成随访成功") } else { top.toastr.error(res.msg); } }) }, editData: function () { var vm = this var vmN = this.newbornData vmN.delivery_WAY = vm.delivery_WAY_check.join(',') vm.SCREENING_check.map(function (i) { if (i == '1') { vmN.screening_4 = 1 } if (i == '2') { vmN.screening_5 = 1 } if (i == '3') { vmN.SCREENING_3 = 1 } if (i == '4') { vmN.screening_2 = 1 } if (i == '5') { vmN.screening_3 = 1 } if (i == '6') { vmN.screening_6 = 1 } }) vm.guide_check.map(function (i) { if (i == '1') { vmN.feed_GUID = 1 } if (i == '2') { vmN.growup_GUID = 1 } if (i == '3') { vmN.prevention_DEFORMITY_GUID = 1 } if (i == '4') { vmN.prevention_HURT_GUID = 1 } if (i == '5') { vmN.oral_CAVITY_GUID = 1 } if (i == '6') { vmN.other_GUIDE = 1 } }) vmN.create_time = null vmN.version = this.version fangshiAPI.saveNewbornFamilyVisitRecord({ followupId: this.followupid || '2', newbornFamilyVisitRecordData: JSON.stringify(vmN) }).then(function (res) { if (res.status == 200) { vm.finishedStatus ? '' : vm.finish() vm.finishedStatus ? top.toastr.info('保存成功') : '' } else { top.toastr.error(res.msg); } }) }, setEditBtn: function () { var btn = document.getElementsByClassName('button')[0] if(!this.finishedStatus){ btn.innerHTML='完成随访' this.editable = true return } if (this.isEditBtn == true) { btn.innerHTML = '编辑' this.editable = false } else if (this.isEditBtn == false) { btn.innerHTML='保存' this.editable = true } }, editBtn: function () { if (this.finishedStatus) { this.isEditBtn = !this.isEditBtn } this.setEditBtn() this.isEditBtn || !this.finishedStatus?this.editData():''//保存数据 }, //获取当前随访状态信息 Request['id']||'1' getStatus: function (getLast) { var vm = this fangshiAPI.getFollowupInfo({ followupId: this.followupid || '1888107' }).then(function (res) { if (res.status == 200) { res.data.status!=1?vm.finishedStatus=false:vm.finishedStatus=true vm.patientCode=res.data.patientCode vm.followupClass=res.data.followupClass var obj={} obj.doctorName=res.data.doctorName obj.name=res.data.patient.name obj.sex=res.data.patient.sex obj.birthday=res.data.patient.birthday if (getLast) { vm.getLastData(obj)//获取patientCode,followupClass 获取上一次数据 } vm.setEditBtn() } else { top.toastr.error(res.msg); } }) }, } })