1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-653c1318"],{"216d":function(t,e,a){},4657:function(t,e,a){"use strict";a("216d")},"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:}}}}},"4c18":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",[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","max-width":"1200px","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)+" ")])]),1===e.saveStatus?a("div",{staticClass:"white edit_box",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.doDetail(e)}}},[t._v(" 编辑 ")]):t._e(),a("div",{staticClass:"white dayin_box",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.print(e.id)}}},[t._v(" 打印病历 ")])]),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),a("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}},[a("div",{staticStyle:{"max-height":"65vh",overflow:"auto"}},[a("div",{staticStyle:{"margin-bottom":"20px"}},[a("span",[t._v(" 模版名称: ")]),a("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 a("el-option",{key:t.id,attrs:{label:t.protocolTemplateName,value:t.id}})})),1)],1),t.protocolTemplateContent?a("div",{staticStyle:{border:"1px solid #ccc",padding:"5px"},domProps:{innerHTML:t._s(t.protocolTemplateContent)}}):t._e()]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)])],1)},n=[],l=a("c7eb"),o=a("1da1"),r=(a("7db0"),a("e9c4"),a("b64b"),a("d3b7"),a("943d")),s=a("5873"),c=a("46f9"),d=a("9bb4"),p={name:"EitcErmPcIndex",mixins:[c["a"]],props:{ids:{type:String,default:""}},components:{VueEditor:s["a"],editor:d["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(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["tb"])({patientId:t.ids,queryScope:t.date});case 2:a=e.sent,console.log(a,88888),t.list=a.data,console.log(t.list,"this.list");case 6:case"end":return e.stop()}}),e)})))()},doDetail:function(t){console.log(t);var e=JSON.parse(JSON.stringify(t));this.$emit("doDetail",e)},onContentChange:function(t){this.protocolTemplateContent=t},initInformedConsentFormOption:function(){var t=this;return Object(o["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["pb"])();case 2:a=e.sent,t.templateNameOptions=a.data,console.log(a);case 5:case"end":return e.stop()}}),e)})))()},initerm_query_scope:function(){var t=this;return Object(o["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["db"])();case 2:a=e.sent,t.listOptions=a.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}}},u=p,f=(a("4657"),a("2877")),h=Object(f["a"])(u,i,n,!1,null,"672c3b1c",null);e["default"]=h.exports},"9bb4":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"kindeditor"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.outContent,expression:"outContent"}],attrs:{id:t.id,name:"content"},domProps:{value:t.outContent},on:{input:function(e){e.target.composing||(t.outContent=e.target.value)}}})])},n=[],l=(a("a9e3"),a("c7ea"),a("8187"),a("475d"),{name:"kindeditor",data:function(){return{editor:null,outContent:this.content}},props:{content:{type:String,default:""},id:{type:String,required:!0},width:{type:String},height:{type:String},minWidth:{type:Number,default:650},minHeight:{type:Number,default:100},items:{type:Array,default:function(){return["undo","redo","|","preview","print","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","clearhtml","quickformat","selectall","|","fullscreen","/","formatblock","fontname","fontsize","|","forecolor","hilitecolor","bold","italic","underline","strikethrough","lineheight","removeformat"]}},noDisableItems:{type:Array,default:function(){return["source","fullscreen"]}},filterMode:{type:Boolean,default:!0},htmlTags:{type:Object,default:function(){return{font:["color","size","face",".background-color"],span:["style"],div:["class","align","style"],table:["class","border","cellspacing","cellpadding","width","height","align","style"],"td,th":["class","align","valign","width","height","colspan","rowspan","bgcolor","style"],a:["class","href","target","name","style"],embed:["src","width","height","type","loop","autostart","quality","style","align","allowscriptaccess","/"],img:["src","width","height","border","alt","title","align","style","/"],hr:["class","/"],br:["/"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["align","style"],"tbody,tr,strong,b,sub,sup,em,i,u,strike":[]}}},wellFormatMode:{type:Boolean,default:!0},resizeType:{type:Number,default:2},themeType:{type:String,default:"default"},langType:{type:String,default:"zh-CN"},designMode:{type:Boolean,default:!0},fullscreenMode:{type:Boolean,default:!1},basePath:{type:String},themesPath:{type:String},pluginsPath:{type:String,default:""},langPath:{type:String},minChangeSize:{type:Number,default:5},loadStyleMode:{type:Boolean,default:!0},urlType:{type:String,default:""},newlineTag:{type:String,default:"p"},pasteType:{type:Number,default:2},dialogAlignType:{type:String,default:"page"},shadowMode:{type:Boolean,default:!0},zIndex:{type:Number,default:811213},useContextmenu:{type:Boolean,default:!0},syncType:{type:String,default:"form"},indentChar:{type:String,default:"\t"},cssPath:{type:[String,Array]},cssData:{type:String},bodyClass:{type:String,default:"ke-content"},colorTable:{type:Array},afterCreate:{type:Function},afterChange:{type:Function},afterTab:{type:Function},afterFocus:{type:Function},afterBlur:{type:Function},afterUpload:{type:Function},uploadJson:{type:String},fileManagerJson:{type:Function},allowPreviewEmoticons:{type:Boolean,default:!0},allowImageUpload:{type:Boolean,default:!0},allowFlashUpload:{type:Boolean,default:!0},allowMediaUpload:{type:Boolean,default:!0},allowFileUpload:{type:Boolean,default:!0},allowFileManager:{type:Boolean,default:!1},fontSizeTable:{type:Array,default:function(){return["9px","10px","12px","14px","16px","18px","24px","32px"]}},imageTabIndex:{type:Number,default:0},formatUploadUrl:{type:Boolean,default:!0},fullscreenShortcut:{type:Boolean,default:!1},extraFileUploadParams:{type:Array,default:function(){return[]}},filePostName:{type:String,default:"imgFile"},fillDescAfterUploadImage:{type:Boolean,default:!1},afterSelectFile:{type:Function},pagebreakHtml:{type:String,default:"<hr style=”page-break-after: always;” class=”ke-pagebreak” />"},allowImageRemote:{type:Boolean,default:!0},autoHeightMode:{type:Boolean,default:!1},fixToolBar:{type:Boolean,default:!1},tabIndex:{type:Number}},watch:{content:function(t){this.editor&&t!==this.outContent&&this.editor.html(t)},outContent:function(t){this.$emit("update:content",t),this.$emit("on-content-change",t)}},mounted:function(){var t=this;t.editor=window.KindEditor.create("#"+this.id,{width:t.width,height:t.height,minWidth:t.minWidth,minHeight:t.minHeight,items:t.items,noDisableItems:t.noDisableItems,filterMode:t.filterMode,htmlTags:t.htmlTags,wellFormatMode:t.wellFormatMode,resizeType:t.resizeType,themeType:t.themeType,langType:t.langType,designMode:t.designMode,fullscreenMode:t.fullscreenMode,basePath:t.basePath,themesPath:t.cssPath,pluginsPath:t.pluginsPath,langPath:t.langPath,minChangeSize:t.minChangeSize,loadStyleMode:t.loadStyleMode,urlType:t.urlType,newlineTag:t.newlineTag,pasteType:t.pasteType,dialogAlignType:t.dialogAlignType,shadowMode:t.shadowMode,zIndex:t.zIndex,useContextmenu:t.useContextmenu,syncType:t.syncType,indentChar:t.indentChar,cssPath:t.cssPath,cssData:t.cssData,bodyClass:t.bodyClass,colorTable:t.colorTable,afterCreate:t.afterCreate,afterChange:function(){t.afterChange,t.outContent=this.html()},afterTab:t.afterTab,afterFocus:t.afterFocus,afterBlur:t.afterBlur,afterUpload:t.afterUpload,uploadJson:t.uploadJson,fileManagerJson:t.fileManagerJson,allowPreviewEmoticons:t.allowPreviewEmoticons,allowImageUpload:t.allowImageUpload,allowFlashUpload:t.allowFlashUpload,allowMediaUpload:t.allowMediaUpload,allowFileUpload:t.allowFileUpload,allowFileManager:t.allowFileManager,fontSizeTable:t.fontSizeTable,imageTabIndex:t.imageTabIndex,formatUploadUrl:t.formatUploadUrl,fullscreenShortcut:t.fullscreenShortcut,extraFileUploadParams:t.extraFileUploadParams,filePostName:t.filePostName,fillDescAfterUploadImage:t.fillDescAfterUploadImage,afterSelectFile:t.afterSelectFile,pagebreakHtml:t.pagebreakHtml,allowImageRemote:t.allowImageRemote,autoHeightMode:t.autoHeightMode,fixToolBar:t.fixToolBar,tabIndex:t.tabIndex})}}),o=l,r=a("2877"),s=Object(r["a"])(o,i,n,!1,null,null,null);e["a"]=s.exports}}]);
|