1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f1b1f602"],{"46f9":function(t,e,i){"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"上左牙位1";case"upLeft2":return"上左牙位2";case"upLeft3":return"上左牙位3";case"upLeft4":return"上左牙位4";case"upLeft5":return"上左牙位5";case"upLeft6":return"上左牙位6";case"upLeft7":return"上左牙位7";case"upLeft8":return"上左牙位8";case"upRight1":return"上右牙位1";case"upRight2":return"上右牙位2";case"upRight3":return"上右牙位3";case"upRight4":return"上右牙位4";case"upRight5":return"上右牙位5";case"upRight6":return"上右牙位6";case"upRight7":return"上右牙位7";case"upRight8":return"上右牙位8";case"downLeft1":return"下左牙位1";case"downLeft2":return"下左牙位2";case"downLeft3":return"下左牙位3";case"downLeft4":return"下左牙位4";case"downLeft5":return"下左牙位5";case"downLeft6":return"下左牙位6";case"downLeft7":return"下左牙位7";case"downLeft8":return"下左牙位8";case"downRight1":return"下左牙位1";case"downRight2":return"下左牙位2";case"downRight3":return"下左牙位3";case"downRight4":return"下左牙位4";case"downRight5":return"下左牙位5";case"downRight6":return"下左牙位6";case"downRight7":return"下左牙位7";case"downRight8":return"下左牙位8";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:}}}}},"4c18":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("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 i("el-option",{key:t.dictValue,attrs:{label:t.dictLabel,value:+t.dictValue}})})),1),i("el-timeline",t._l(t.list,(function(e,n){return i("el-timeline-item",{key:n,attrs:{timestamp:e.createDate,placement:"top",color:"#0bbd87"}},[i("el-card",[i("el-collapse",[i("el-collapse-item",{},[i("template",{slot:"title"},[i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("span",[t._v(" "+t._s(1==e.visitType?"初诊":"复诊")+" ")]),i("span",{staticClass:"span_heigth"}),i("span",[t._v(" 诊断:"+t._s(e.diagnosisTypeCn)+" ")]),i("span",{staticClass:"span_heigth"}),i("span",[t._v(" 治疗:"+t._s(e.treatment)+" ")])]),i("div",{staticClass:"white dayin_box",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.print(e.id)}}},[t._v("打印病历")]),2==e.status?i("div",{staticClass:"zhang_box"},[t._v("已完成治疗")]):t._e(),1==e.status?i("div",{staticClass:"zhang_box"},[t._v("待复诊")]):t._e()]),i("div",{staticClass:"df_box"},[i("div",{staticClass:"left_box"},[i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("主诉:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[0].toothPosition))+" "+t._s(e.dataList[0].data[0].contentInfo)+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("现病史:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[0].toothPosition))+" "+t._s(e.dataList[0].data[1].contentInfo)+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("既往史:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.dataList[0].data[2].formattedPartsList.length>0?e.dataList[0].data[2].formattedPartsList.join():"无")+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("家族史:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.dataList[0].data[3].formattedPartsList.length>0?e.dataList[0].data[2].formattedPartsList.join():"无")+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("过敏史:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(e.dataList[0].data[4].formattedPartsList.length>0?e.dataList[0].data[2].formattedPartsList.join():"无")+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 检查: ")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[5].contentInfo)+" ")])})),0)]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" X线片示(影像): ")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[6].contentInfo)+" ")])})),0)]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("诊断:")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[7].contentInfo)+" ")])})),0)]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("治疗计划:")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[8].contentInfo)+" ")])})),0)]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v(" 处置(基础模版公用): ")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[9].contentInfo)+" ")])})),0)]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("处置:")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[10].contentInfo)+" ")])})),0)]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("医嘱:")]),i("div",{staticStyle:{flex:"1",display:"flex","flex-direction":"column"}},t._l(e.dataList,(function(n,a){return i("span",{key:a,staticStyle:{"margin-top":"5px"}},[t._v(" "+t._s(t.initToothPosition(e.dataList[a].toothPosition))+" "+t._s(n.data[11].contentInfo)+" ")])})),0)])]),i("div",{staticClass:"rigth_box"},[i("el-card",{staticStyle:{height:"100%",padding:"20px"}},[i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("科室:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(t.list[0].department)+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("医生:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(t.list[0].attendingDoctorName)+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("费用:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(t.list[0].cost)+" ")])]),i("div",{staticStyle:{display:"flex","margin-top":"10px"}},[i("div",{staticStyle:{width:"80px","font-weight":"700"}},[t._v("诊所:")]),i("div",{staticStyle:{flex:"1"}},[t._v(" "+t._s(t.list[0].clinicName)+" ")])])])],1)])],2)],1)],1)],1)})),1),i("el-dialog",{attrs:{title:"请选择知情同意书",visible:t.dialogWrittenConsent,width:"40%","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogWrittenConsent=e},close:t.cancel}},[i("div",{staticStyle:{"margin-bottom":"20px"}},[i("span",[t._v(" 模版名称: ")]),i("el-select",{on:{change:t.changeSel},model:{value:t.templateName,callback:function(e){t.templateName=e},expression:"templateName"}},t._l(t.templateNameOptions,(function(t){return i("el-option",{key:t.id,attrs:{label:t.protocolTemplateName,value:t.id}})})),1)],1),i("vue-editor",{attrs:{id:"editor",disabled:!0,useCustomImageHandler:""},model:{value:t.protocolTemplateContent,callback:function(e){t.protocolTemplateContent=e},expression:"protocolTemplateContent"}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancel}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)],1)],1)},a=[],s=i("c7eb"),o=i("1da1"),r=(i("7db0"),i("d3b7"),i("943d")),c=i("5873"),l=i("46f9"),d={name:"EitcErmPcIndex",mixins:[l["a"]],props:{ids:{type:String,default:""}},components:{VueEditor:c["a"]},data:function(){return{protocolTemplateContent:"",dialogWrittenConsent:!1,templateName:"",templateNameOptions:[],date:1,list:[],sonIds:"",listOptions:[]}},mounted:function(){this.initMedicalRecordList(),this.initerm_query_scope()},methods:{initMedicalRecordList:function(){var t=this;return Object(o["a"])(Object(s["a"])().mark((function e(){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["N"])({patientId:t.ids,queryScope:t.date});case 2:i=e.sent,t.list=i.data;case 4:case"end":return e.stop()}}),e)})))()},initInformedConsentFormOption:function(){var t=this;return Object(o["a"])(Object(s["a"])().mark((function e(){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["K"])();case 2:i=e.sent,t.templateNameOptions=i.data,console.log(i);case 5:case"end":return e.stop()}}),e)})))()},initerm_query_scope:function(){var t=this;return Object(o["a"])(Object(s["a"])().mark((function e(){var i;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["C"])();case 2:i=e.sent,t.listOptions=i.data,console.log(t.listOptions,"this.listOptions");case 5:case"end":return e.stop()}}),e)})))()},handleChange:function(t){console.log(t)},isEdit:function(t,e){1==t.status?this.editDetail(t,e):this.lookDetail(t,e)},editDetail:function(t,e){this.$emit("editDetail",t,e)},lookDetail:function(t,e){console.log(t,e,88888),this.$emit("lookDetail",t,e)},print:function(t){this.sonIds=t,this.dialogWrittenConsent=!0,this.initInformedConsentFormOption()},cancel:function(){this.dialogWrittenConsent=!1,this.templateName="",this.sonIds="",this.protocolTemplateContent=""},submit:function(){if(!this.templateName)return this.$message.warning("请选择模版");var t={medicalRecordId:this.sonIds,protocolTemplateId:this.templateName,protocolTemplateContent:this.protocolTemplateContent};this.$emit("print",t),this.printDialogVisible=!0,this.dialogWrittenConsent=!1},changeSel:function(t){this.protocolTemplateContent=this.templateNameOptions.find((function(e){return e.id==t})).protocolTemplateContent}}},p=d,u=(i("fc37"),i("2877")),f=Object(u["a"])(p,n,a,!1,null,"4d088fab",null);e["default"]=f.exports},fc37:function(t,e,i){"use strict";i("fc6b")},fc6b:function(t,e,i){}}]);
|