1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3de54adb"],{"24a5":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.printDialogVisible?a("el-dialog",{attrs:{title:t.tableData.companyName,visible:t.printDialogVisible,width:"1100px","close-on-press-escape":!1,"close-on-click-modal":!1,"before-close":t.cancel},on:{"update:visible":function(e){t.printDialogVisible=e},close:t.cancel}},[a("div",{staticStyle:{"max-height":"70vh",overflow:"auto","padding-bottom":"20px"}},[a("el-row",{staticClass:"row_box"},[a("el-col",{attrs:{span:8}},[a("span",[t._v(" 姓 "),a("i",{staticClass:"kong_box"}),t._v(" 名: "+t._s(t.tableData.patientName)+" ")])]),a("el-col",{attrs:{span:8}},[t._v(" 性 "),a("i",{staticClass:"kong_box"}),t._v(" 别: "+t._s(t.initSex(t.tableData.sex))+" ")]),a("el-col",{attrs:{span:8}},[t._v(" 年 "),a("i",{staticClass:"kong_box"}),t._v(" 龄: "+t._s(t.tableData.age)+" ")])],1),a("el-row",{staticClass:"row_box"},[a("el-col",{attrs:{span:8}},[a("span",[t._v(" 出生日期: "+t._s(t.tableData.birthday)+" ")])]),a("el-col",{attrs:{span:8}},[t._v(" 民 "),a("i",{staticClass:"kong_box"}),t._v(" 族: "+t._s(t.tableData.nationality)+" ")]),a("el-col",{attrs:{span:8}},[t._v(" 婚 "),a("i",{staticClass:"kong_box"}),t._v(" 姻: "+t._s(t.initMarriage(t.tableData.marriage))+" ")])],1),a("el-row",{staticClass:"row_box"},[a("el-col",{attrs:{span:8}},[a("span",[t._v(" 电 "),a("i",{staticClass:"kong_box"}),t._v(" 话: "+t._s(t.tableData.patientPhone)+" ")])]),a("el-col",{attrs:{span:8}},[t._v(" 工作单位: "+t._s(t.tableData.workUnit)+" ")]),a("el-col",{attrs:{span:8}},[t._v(" 职 "),a("i",{staticClass:"kong_box"}),t._v(" 业: "+t._s(t.tableData.occupation)+" ")])],1),a("el-row",{staticClass:"row_box"},[a("el-col",{attrs:{span:24}},[a("span",[t._v(" 现"),a("i",{staticStyle:{width:"5px",display:"inline-block"}}),t._v(" 住"),a("i",{staticStyle:{width:"5px",display:"inline-block"}}),t._v("址: "+t._s(t.tableData.homeAddress)+" ")])])],1),a("el-row",{staticClass:"row_box"},[a("el-col",{attrs:{span:8}},[a("span",[t._v(" 联系人电话: "+t._s(t.tableData.linkPhone)+" ")])]),a("el-col",{attrs:{span:16}},[t._v(" 联系人姓名(与患者关系): "+t._s(t.tableData.personalRelationship)+" ")])],1),a("el-divider"),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 主诉: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.chiefComplaintContent)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 现病史: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.presentIllnessContent)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 既往史: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.pastHistory)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 家族史: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.familyHistory)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 过敏史: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.allergyHistory)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 检查: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.inspectContent)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 诊断: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.diagnosisContent)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 治疗计划: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.treatmentPlanningContent)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 处置: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.treatmentPlanningContent)+" ")])]),a("div",{staticClass:"row_df_box"},[a("span",{staticStyle:{width:"80px"}},[t._v(" 便签: ")]),a("span",{staticStyle:{display:"flex",flex:"1","flex-direction":"column"}},[t._v(" "+t._s(t.tableData.noteContent)+" ")])]),t.protocolTemplateContent?a("div",{staticStyle:{border:"1px solid #ccc",padding:"5px","margin-top":"10px"},domProps:{innerHTML:t._s(t.protocolTemplateContent)}}):t._e()],1),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.dayin}},[t._v("打 印")])],1)]):t._e()],1)},l=[],o=a("c7eb"),i=a("1da1"),s=(a("14d9"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("943d")),r=a("46f9"),c=a("5873"),d=a("9bb4"),u={name:"EitcErmPcPrintMedical",mixins:[r["a"]],components:{VueEditor:c["a"],editor:d["a"]},props:{printDialogVisible:{type:Boolean,default:!1},medicalRecordId:{type:String,default:""},protocolTemplateId:{type:String,default:""},protocolTemplateContent:{type:String,default:""}},watch:{medicalRecordId:function(t){t&&this.initList()}},data:function(){return{xianList:["主诉","现病史","既往史","家族史","过敏史"],tableData:{}}},mounted:function(){this.initList()},methods:{onContentChange:function(t){this.protocolTemplateContent=t},initList:function(){var t=this;return Object(i["a"])(Object(o["a"])().mark((function e(){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["fb"])({medicalRecordId:t.medicalRecordId,protocolTemplateId:t.protocolTemplateId});case 2:a=e.sent,console.log(a.data),t.tableData=a.data;case 5:case"end":return e.stop()}}),e)})))()},cancel:function(){this.$emit("cancelAll","5")},changeVal:function(t){console.log(this.tableData.listMap)},dayin:function(){var t=this;return Object(i["a"])(Object(o["a"])().mark((function e(){var a,n,l,i;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["mb"])(t.tableData);case 2:a=e.sent,n=a,l=[],l.push(n),i=window.URL.createObjectURL(new Blob(l,{type:"application/pdf"})),window.open(i);case 8:case"end":return e.stop()}}),e)})))()}}},p=u,f=(a("35d1"),a("2877")),h=Object(f["a"])(p,n,l,!1,null,"571ec848",null);e["default"]=h.exports},"35d1":function(t,e,a){"use strict";a("44fa")},"44fa":function(t,e,a){},"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:}}}}},"9bb4":function(t,e,a){"use strict";var n=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)}}})])},l=[],o=(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})}}),i=o,s=a("2877"),r=Object(s["a"])(i,n,l,!1,null,null,null);e["a"]=r.exports}}]);
|