1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a52d374"],{"46f9":function(t,e,a){"use strict";e["a"]={data:function(){return{}},methods:{initPatientSource:function(t){switch(t){case 1:return"朋友介绍";case 2:return"自进门店";default:return""}},initBloodGroup:function(t){switch(t){case 1:return"A型血";case 2:return"B型血";case 3:return"O型血";case 4:return"AB型血";case 5:return"RH型血";default:return""}},initSex:function(t){switch(t){case 1:return"男";case 2:return"女";default:return""}},initMarriage:function(t){switch(t){case 1:return"未婚";case 2:return"已婚";case 3:return"丧偶";case 4:return"离婚";default:return""}},initPatientType:function(t){switch(t){case 1:return"临时";case 2:return"普通";default:return""}},initPppointmentStatus:function(t){switch(t){case 1:return"预约";case 2:return"已确定";case 3:return"已到店";case 4:return"待复诊";case 5:return"治疗完成";case 6:return"已结账";case 7:return"已离开";case 8:return"已失约";default:return""}},initToothPosition:function(t){switch(t){case"upLeft1":return"21";case"upLeft2":return"22";case"upLeft3":return"23";case"upLeft4":return"24";case"upLeft5":return"25";case"upLeft6":return"26";case"upLeft7":return"27";case"upLeft8":return"28";case"upRight1":return"11";case"upRight2":return"12";case"upRight3":return"13";case"upRight4":return"14";case"upRight5":return"15";case"upRight6":return"16";case"upRight7":return"17";case"upRight8":return"18";case"downLeft1":return"41";case"downLeft2":return"42";case"downLeft3":return"43";case"downLeft4":return"44";case"downLeft5":return"45";case"downLeft6":return"46";case"downLeft7":return"47";case"downLeft8":return"48";case"downRight1":return"31";case"downRight2":return"32";case"downRight3":return"33";case"downRight4":return"34";case"downRight5":return"35";case"downRight6":return"36";case"downRight7":return"37";case"downRight8":return"38";default:return"-"}},initBgc:function(t){switch(t){case 1:return"#649aff";case 2:return"#00f900";case 3:return"#b6d8b3";case 4:return"#fdc86a";case 5:return"#74a863";case 6:return"#ff8683";case 7:return"#8a8385";case 8:return"#c7c7c7";default:}}}}},"8b93":function(t,e,a){},d73d:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.dialogVisible?a("el-dialog",{attrs:{title:t.title+"回访",visible:t.dialogVisible,width:"1200px","close-on-press-escape":!1,"close-on-click-modal":!1,"before-close":t.beforeClose},on:{"update:visible":function(e){t.dialogVisible=e},close:t.beforeClose}},[a("div",{staticClass:"big_dialog"},[a("div",{staticClass:"left_box"},[a("ul",{staticClass:"tap_Top_box"},t._l(t.activeList,(function(e,i){return a("li",{key:i,class:{active:t.activeName===e.value},staticStyle:{"font-weight":"700","font-family":"fantasy"},on:{click:function(a){return t.handleClick(e)}}},[t._v(" "+t._s(e.name)+" ")])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"first"==t.activeName,expression:"activeName == 'first'"}],staticClass:"over"},[a("div",{staticClass:"boxbox"},[a("div",[a("div",{staticClass:"bottom_box"},[a("p",{staticStyle:{"font-weight":"700"}},[t._v("个人信息")]),a("el-row",{staticClass:"contet_box"},[a("el-col",{attrs:{span:12}},[a("ul",[a("li",[a("span",[t._v("姓名:")]),a("span",[t._v(t._s(t.tableForm.patientName))])]),a("li",[a("span",[t._v(" 用户编号:")]),a("span",[t._v(" "+t._s(t.tableForm.medicalRecordNum))])]),a("li",[a("span",[t._v(" 出生日期:")]),a("span",[t._v(" "+t._s(t.tableForm.birthday))])]),a("li",[a("span",[t._v(" 性别:")]),a("span",[t._v(" "+t._s(t.initSex(t.tableForm.sex)))])]),a("li",[a("span",[t._v(" 国籍:")]),a("span",[t._v(" "+t._s(t.tableForm.citizenship))])]),a("li",[a("span",[t._v(" 工作单位:")]),a("span",[t._v(" "+t._s(t.tableForm.workUnit))])])])]),a("el-col",{attrs:{span:12}},[a("ul",[a("li",[a("span",[t._v(" 年龄:")]),a("span",[t._v(" "+t._s(t.getAgeFromIdCard(t.tableForm.identificationCard)))])]),a("li",[a("span",[t._v(" 身份证号:")]),a("span",[t._v(" "+t._s(t.tableForm.identificationCard))])]),a("li",[a("span",[t._v(" 职业:")]),a("span",[t._v(" "+t._s(t.tableForm.occupation))])]),a("li",[a("span",[t._v(" 血型:")]),a("span",[t._v(" "+t._s(t.tableForm.bloodGroup))])]),a("li",[a("span",[t._v(" 婚姻状况:")]),a("span",[t._v(" "+t._s(t.initMarriage(t.tableForm.marriage)))])]),a("li",[a("span",[t._v(" 民族:")]),a("span",[t._v(" "+t._s(t.tableForm.nationality))])])])])],1)],1),a("div",{staticClass:"bottom_box1"},[a("p",{staticStyle:{"font-weight":"700"}},[t._v("联系方式")]),a("el-row",{staticClass:"contet_box"},[a("el-col",{attrs:{span:12}},[a("ul",[a("li",[a("span",[t._v("电话:")]),a("span",[t._v(t._s(t.tableForm.patientPhone))])]),a("li",[a("span",[t._v(" 联系人电话:")]),a("span",[t._v(" "+t._s(t.tableForm.linkPhone))])])])]),a("el-col",{attrs:{span:12}},[a("ul",[a("li",[a("span",[t._v(" 家庭住址:")]),a("span",[t._v(" "+t._s(t.tableForm.homeAddress))])]),a("li",[a("span",[t._v(" 与患者关系:")]),a("span",[t._v(" "+t._s(t.tableForm.personalRelationship))])])])])],1)],1),a("div",{staticClass:"bottom_box1"},[a("p",{staticStyle:{"font-weight":"700"}},[t._v("患者信息")]),a("el-row",{staticClass:"contet_box"},[a("el-col",{attrs:{span:12}},[a("ul",[a("li",[a("span",[t._v("患者来源:")]),a("span",[t._v(t._s(t.initPatientSource(t.tableForm.patientSource)))])]),a("li",[a("span",[t._v(" 患者标签:")]),a("span",[t._v(" "+t._s(t.tableForm.patientTags))])]),a("li",[a("span",[t._v(" 家族史:")]),a("span",[t._v(" "+t._s(t.tableForm.familyHistory))])])])]),a("el-col",{attrs:{span:12}},[a("ul",[a("li",[a("span",[t._v(" 过敏史:")]),a("span",[t._v(" "+t._s(t.tableForm.allergyHistory))])]),a("li",[a("span",[t._v(" 既往史:")]),a("span",[t._v(" "+t._s(t.tableForm.pastHistory))])])])])],1)],1)])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"second"==t.activeName,expression:"activeName == 'second'"}],staticClass:"over"},[a("div",{staticClass:"boxbox"},[a("div",{staticClass:"bottom_box"},[a("el-timeline",t._l(t.secondList,(function(e,i){return a("el-timeline-item",{key:i,attrs:{size:"large",timestamp:e.groupTime,placement:"top"}},[a("el-card",[a("div",{staticClass:"card_box"},[a("h3",[a("span",[t._v(" "+t._s(e.appointmentStartTime.split(" ")[1])+" - "+t._s(e.appointmentEndTime.split(" ")[1])+" "+t._s(1==e.visitType?"初诊预约":"复诊预约")+" ")]),1==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#649aff"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),2==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#00f900"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),3==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#b6d8b3"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),4==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#fdc86a"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),5==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#74a863"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),6==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#ff8683"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),7==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#8a8385"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e(),8==e.appointmentStatus?a("el-tag",{staticClass:"tag_box",attrs:{color:"#c7c7c7"}},[t._v(t._s(t.initPppointmentStatus(e.appointmentStatus)))]):t._e()],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 预约科室: ")]),a("el-col",{attrs:{span:8}},[a("b",[t._v(" "+t._s(e.department)+" ")])]),a("el-col",{staticStyle:{width:"100px"}},[t._v(" 医生: ")]),a("el-col",{attrs:{span:8}},[a("b",[t._v(" "+t._s(e.attendingDoctor)+" ("+t._s(e.attendingDoctorDepCn)+") ")])])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 项目: ")]),a("el-col",{attrs:{span:8}},[a("b"),t._v(" "+t._s(e.appointmentProject)+" ")]),a("el-col",{staticStyle:{width:"100px"}},[t._v(" 预约状态: ")]),a("el-col",{attrs:{span:8}},[t._v(" "+t._s(t.initPppointmentStatus(e.appointmentStatus))+" ")])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 备注: ")]),a("el-col",{attrs:{span:20}},[t._v(" "+t._s(e.remark)+" ")])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 创建时间: ")]),a("el-col",{attrs:{span:20}},[t._v(" "+t._s(e.createDate))])],1)],1)])],1)})),1)],1)])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"third"==t.activeName,expression:"activeName == 'third'"}],staticClass:"over"},[a("div",{staticClass:"boxbox box_scoped"},[a("el-select",{staticStyle:{width:"100px","margin-bottom":"10px"},attrs:{size:"mini"},on:{change:t.initMedicalRecordList},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},t._l(t.listOptions,(function(t){return a("el-option",{key:t.dictValue,attrs:{label:t.dictLabel,value:+t.dictValue}})})),1),a("el-timeline",t._l(t.list,(function(e,i){return a("el-timeline-item",{key:i,attrs:{timestamp:e.createDate,placement:"top",color:"#0bbd87"}},[a("el-card",[a("el-collapse",[a("el-collapse-item",[a("template",{slot:"title"},[a("div",{staticStyle:{display:"flex",width:"620px","align-items":"center",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[t._v(" "+t._s(1==e.visitType?"初诊":"复诊")+" ")]),a("span",{staticClass:"span_heigth"}),a("span",[t._v(" 诊断:"+t._s(e.diagnosisContent)+" ")]),a("span",{staticClass:"span_heigth"}),a("span",[t._v(" 治疗:"+t._s(e.treatmentPlanningContent)+" ")])])]),a("div",{staticClass:"df_box"},[a("div",{staticClass:"left_box"},[a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 主诉: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.chiefComplaintContent)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 现病史: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.presentIllnessContent)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 既往史: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(Array.isArray(e.doctorPastHistory)&&e.doctorPastHistory.length>0?e.doctorPastHistory.join():"无")+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 家族史: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(Array.isArray(e.doctorFamilyHistory)&&e.doctorFamilyHistory.length>0?e.doctorFamilyHistory.join():"无")+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 过敏史: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(Array.isArray(e.doctorAllergyHistory)&&e.doctorAllergyHistory.length>0?e.doctorAllergyHistory.join():"无")+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 检查: ")]),a("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},[t._v(" "+t._s(e.inspectContent)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 诊断: ")]),a("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},[t._v(" "+t._s(e.diagnosisContent)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 治疗计划: ")]),a("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},[t._v(" "+t._s(e.treatmentPlanningContent)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 处置: ")]),a("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},[t._v(" "+t._s(e.disposeContent)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 便签: ")]),a("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},[t._v(" "+t._s(e.noteContent)+" ")])])]),a("div",{staticClass:"rigth_box"},[a("el-card",{staticStyle:{height:"100%",padding:"20px"}},[a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 科室: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.department)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 医生: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.attendingDoctorName)+" ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 费用: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.cost)+" (元) ")])]),a("div",{staticStyle:{display:"flex","margin-top":"10px"}},[a("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 诊所: ")]),a("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.outpatientService)+" ")])])])],1)])],2)],1)],1)],1)})),1)],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"fourth"==t.activeName,expression:"activeName == 'fourth'"}],staticClass:"over"},[a("div",{staticClass:"boxbox"},[a("div",{staticClass:"bottom_box"},[a("el-timeline",t._l(t.patientFollowUpList,(function(e,i){return a("el-timeline-item",{key:i,attrs:{size:"large",timestamp:e.createDate,placement:"top"}},[a("el-card",[a("div",{staticClass:"card_box",on:{click:function(a){return t.doclick(e)}}},[a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 就诊时间: ")]),a("el-col",{attrs:{span:8}},[t._v(" "+t._s(e.appointmentStartTime)+" ")]),a("el-col",{staticStyle:{width:"100px"}},[t._v(" 回访时间: ")]),a("el-col",{attrs:{span:8}},[t._v(" "+t._s(e.followUpTime)+" ")])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 回访人: ")]),a("el-col",{attrs:{span:8}},[t._v(" "+t._s(e.followUpUser)+" ")]),a("el-col",{staticStyle:{width:"100px"}},[t._v(" 回访状态: ")]),a("el-col",{attrs:{span:8}},[t._v(" "+t._s(1==e.followUpStatus?"已回访":"未回访")+" ")])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 回访类型: ")]),a("el-col",{attrs:{span:20}},[t._v(" "+t._s(t.initType(e.followUpType))+" ")])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 回访内容: ")]),a("el-col",{attrs:{span:20}},[t._v(" "+t._s(e.followUpContent))])],1),a("el-row",{staticClass:"ccc"},[a("el-col",{staticStyle:{width:"100px"}},[t._v(" 回访结果: ")]),a("el-col",{attrs:{span:20}},[t._v(" "+t._s(e.followUpResult))])],1)],1)])],1)})),1)],1)])])]),a("div",{staticClass:"right_box"},[a("h3",{staticClass:"title_box"},[t._v("回访信息")]),a("el-form",{ref:"formRef",attrs:{model:t.form,rules:t.rules,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"就诊时间:"}},[t._v(" "+t._s(t.appointmentStartTime)+" ")]),a("el-form-item",{attrs:{label:"回访时间:",prop:"followUpTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间","picker-options":{disabledDate:function(t){return t.getTime()<Date.now()-864e5}}},model:{value:t.form.followUpTime,callback:function(e){t.$set(t.form,"followUpTime",e)},expression:"form.followUpTime"}})],1),a("el-form-item",{attrs:{label:"回访人:",prop:"followUpUserId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.form.followUpUserId,callback:function(e){t.$set(t.form,"followUpUserId",e)},expression:"form.followUpUserId"}},t._l(t.docAllListOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t.nickName,value:t.userId}})})),1)],1),a("el-form-item",{attrs:{label:"回访状态:",prop:"followUpStatus"}},[a("el-radio-group",{model:{value:t.form.followUpStatus,callback:function(e){t.$set(t.form,"followUpStatus",e)},expression:"form.followUpStatus"}},[a("el-radio",{attrs:{label:1}},[t._v("已回访")]),a("el-radio",{attrs:{label:2}},[t._v("待回访")])],1)],1),a("el-form-item",{attrs:{label:"回访类型:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.form.followUpType,callback:function(e){t.$set(t.form,"followUpType",e)},expression:"form.followUpType"}},t._l(t.visitTypeOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t.dictName,value:t.dictValue}})})),1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"回访内容:",required:""}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"插入常用语"},on:{change:t.changeFollowUpContentName},model:{value:t.followUpContentName,callback:function(e){t.followUpContentName=e},expression:"followUpContentName"}},t._l(t.visitContentOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t.dictName,value:t.dictValue}})})),1)],1),a("el-form-item",{attrs:{label:"",prop:"followUpContent"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:3},model:{value:t.form.followUpContent,callback:function(e){t.$set(t.form,"followUpContent",e)},expression:"form.followUpContent"}})],1),a("el-form-item",{attrs:{label:"回访结果:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"插入常用语"},on:{change:t.changeFollowUpResultName},model:{value:t.followUpResultName,callback:function(e){t.followUpResultName=e},expression:"followUpResultName"}},t._l(t.visitResultOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t.dictName,value:t.dictValue}})})),1),a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:3},model:{value:t.form.followUpResult,callback:function(e){t.$set(t.form,"followUpResult",e)},expression:"form.followUpResult"}})],1)],1)],1)]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.beforeClose}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)]):t._e()],1)},s=[],n=a("c7eb"),l=a("1da1"),o=(a("7db0"),a("a9e3"),a("d3b7"),a("25f0"),a("943d")),r=a("46f9"),c={name:"EitcErmPcAddVisitDialog",mixins:[r["a"]],props:{dialogVisible:{type:Boolean,default:!1},patientId:{type:String,default:""},appointmentId:{type:String,default:""},appointmentStartTime:{type:String,default:""},type:{type:Number,default:1},title:{type:String,default:""}},data:function(){return{visitTypeOptions:[],visitContentOptions:[],visitResultOptions:[],patientFollowUpList:[],textarea:"",form:{followUpStatus:1,followUpContent:"",followUpUserId:"",followUpType:"",followUpResult:""},rules:{followUpTime:[{required:!0,message:"请选择回访日期",trigger:"change"}],followUpUserId:[{required:!0,message:"请输入回访人",trigger:"blur"}],followUpStatus:[{required:!0,message:"请选择回访状态",trigger:"change"}],followUpContent:[{required:!0,message:"请输入回访内容",trigger:"blur"}]},activeName:"first",activeList:[{name:"患者信息",value:"first"},{name:"预约记录",value:"second"},{name:"就诊记录",value:"third"},{name:"回访信息",value:"fourth"}],tableForm:{},secondList:[],date:1,list:[],listOptions:[],docAllListOptions:[],followUpContentName:"",followUpResultName:""}},mounted:function(){var t=this;this.initDropdownList(),this.initdocAllList(),this.patientId&&this.initDetail(this.patientId),this.appointmentId&&2==this.type&&"编辑"==this.title&&Object(o["Ib"])(this.appointmentId).then((function(e){t.form=e.data[0],t.form.followUpType=e.data[0].followUpType.toString(),t.form.followUpUserId=+e.data[0].followUpType})),1==this.type?this.activeList=[{name:"患者信息",value:"first"},{name:"预约记录",value:"second"},{name:"就诊记录",value:"third"}]:this.activeList=[{name:"患者信息",value:"first"},{name:"预约记录",value:"second"},{name:"就诊记录",value:"third"},{name:"回访信息",value:"fourth"}]},methods:{initDropdownList:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var a,i,s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["bb"])("erm_follow_up_type");case 2:return a=e.sent,e.next=5,Object(o["bb"])("erm_follow_up_content");case 5:return i=e.sent,e.next=8,Object(o["bb"])("erm_follow_up_results");case 8:s=e.sent,t.visitTypeOptions=a.data,t.visitContentOptions=i.data,t.visitResultOptions=s.data;case 12:case"end":return e.stop()}}),e)})))()},beforeClose:function(){this.$emit("closeDialog")},initDetail:function(t){var e=this;return Object(l["a"])(Object(n["a"])().mark((function a(){var i;return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(o["Gb"])({id:t});case 2:i=a.sent,e.tableForm=i.data,e.$forceUpdate();case 5:case"end":return a.stop()}}),a)})))()},initSecondList:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Eb"])({appointmentPersonId:t.patientId});case 2:a=e.sent,t.secondList=a.data;case 4:case"end":return e.stop()}}),e)})))()},initType:function(t){return this.visitTypeOptions.find((function(e){return+e.dictValue==t})).dictName},initdocAllList:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Z"])();case 2:a=e.sent,t.docAllListOptions=a.rows;case 4:case"end":return e.stop()}}),e)})))()},initMedicalRecordList:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["tb"])({patientId:t.patientId,queryScope:t.date});case 2:a=e.sent,console.log(a.data,"res.data3"),t.list=a.data;case 5:case"end":return e.stop()}}),e)})))()},getAgeFromIdCard:function(t){if(t&&18===t.length){var e=parseInt(t.substring(6,10),10),a=(new Date).getFullYear();return a-e}return null},initerm_query_scope:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["db"])();case 2:a=e.sent,t.listOptions=a.data;case 4:case"end":return e.stop()}}),e)})))()},handleClick:function(t){switch(this.activeName=t.value,this.activeName){case"first":break;case"second":this.initSecondList();break;case"third":this.initerm_query_scope(),this.initMedicalRecordList();break;case"fourth":this.initPatientFollowUpList();break;default:break}},initPatientFollowUpList:function(){var t=this;return Object(l["a"])(Object(n["a"])().mark((function e(){var a;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Ib"])(t.appointmentId);case 2:a=e.sent,t.patientFollowUpList=a.data,console.log(t.patientFollowUpList,"this.patientFollowUpList");case 5:case"end":return e.stop()}}),e)})))()},changeFollowUpContentName:function(t){this.form.followUpContent=this.visitContentOptions.find((function(e){return e.dictValue==t})).dictName},changeFollowUpResultName:function(t){this.form.followUpResult=this.visitResultOptions.find((function(e){return e.dictValue==t})).dictName},doclick:function(t){"编辑"==this.title&&(this.form=t,this.form.followUpType=t.followUpType.toString(),this.form.followUpUserId=+t.followUpType,this.$forceUpdate())},submit:function(){var t=this;this.$refs.formRef.validate(function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(a){var i,s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=20;break}if(!t.form.id){e.next=10;break}return e.next=4,Object(o["Kb"])(t.form);case 4:if(i=e.sent,200===i.code){e.next=7;break}return e.abrupt("return",t.$message.error(i.msg));case 7:t.$message.success("编辑成功"),e.next=17;break;case 10:return t.form.patientAppointmentId=t.appointmentId,e.next=13,Object(o["Hb"])(t.form);case 13:if(s=e.sent,200===s.code){e.next=16;break}return e.abrupt("return",t.$message.error(s.msg));case 16:t.$message.success("新增成功");case 17:t.$emit("closeDialog"),e.next=21;break;case 20:return e.abrupt("return",!1);case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},p=c,u=(a("e7ad"),a("2877")),d=Object(u["a"])(p,i,s,!1,null,"ef8eae4c",null);e["default"]=d.exports},e7ad:function(t,e,a){"use strict";a("8b93")}}]);
|