1 |
- webpackJsonp([0],{CwSZ:function(t,e,r){"use strict";var n=r("p8xL"),i=r("XgCd"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},s=function t(e,r,i,o,a,s,c,p,u,d,f,m){var h=e;if("function"==typeof c)h=c(r,h);else if(h instanceof Date)h=d(h);else if(null===h){if(o)return s&&!m?s(r,l.encoder):r;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||n.isBuffer(h))return s?[f(m?r:s(r,l.encoder))+"="+f(s(h,l.encoder))]:[f(r)+"="+f(String(h))];var y,v=[];if(void 0===h)return v;if(Array.isArray(c))y=c;else{var b=Object.keys(h);y=p?b.sort(p):b}for(var g=0;g<y.length;++g){var _=y[g];a&&null===h[_]||(v=Array.isArray(h)?v.concat(t(h[_],i(r,_),i,o,a,s,c,p,u,d,f,m)):v.concat(t(h[_],r+(u?"."+_:"["+_+"]"),i,o,a,s,c,p,u,d,f,m)))}return v};t.exports=function(t,e){var r=t,a=e?n.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===a.delimiter?l.delimiter:a.delimiter,p="boolean"==typeof a.strictNullHandling?a.strictNullHandling:l.strictNullHandling,u="boolean"==typeof a.skipNulls?a.skipNulls:l.skipNulls,d="boolean"==typeof a.encode?a.encode:l.encode,f="function"==typeof a.encoder?a.encoder:l.encoder,m="function"==typeof a.sort?a.sort:null,h=void 0!==a.allowDots&&a.allowDots,y="function"==typeof a.serializeDate?a.serializeDate:l.serializeDate,v="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:l.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var b,g,_=i.formatters[a.format];"function"==typeof a.filter?r=(g=a.filter)("",r):Array.isArray(a.filter)&&(b=g=a.filter);var w,x=[];if("object"!=typeof r||null===r)return"";w=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=o[w];b||(b=Object.keys(r)),m&&b.sort(m);for(var O=0;O<b.length;++O){var C=b[O];u&&null===r[C]||(x=x.concat(s(r[C],C,j,p,u,d?f:null,g,m,h,y,_,v)))}var D=x.join(c),k=!0===a.addQueryPrefix?"?":"";return D.length>0?k+D:""}},DDCP:function(t,e,r){"use strict";var n=r("p8xL"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),l=a?n.slice(0,a.index):n,s=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;s.push(l)}for(var c=0;null!==(a=o.exec(n))&&c<r.depth;){if(c+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+n.slice(a.index)+"]"),function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a)o=(o=[]).concat(n);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(l,10);!isNaN(s)&&a!==l&&String(s)===l&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(o=[])[s]=n:o[l]=n}n=o}return n}(s,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"==typeof r.depth?r.depth:o.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,l=n.split(e.delimiter,a),s=0;s<l.length;++s){var c,p,u=l[s],d=u.indexOf("]="),f=-1===d?u.indexOf("="):d+1;-1===f?(c=e.decoder(u,o.decoder),p=e.strictNullHandling?null:""):(c=e.decoder(u.slice(0,f),o.decoder),p=e.decoder(u.slice(f+1),o.decoder)),i.call(r,c)?r[c]=[].concat(r[c]).concat(p):r[c]=p}return r}(t,r):t,s=r.plainObjects?Object.create(null):{},c=Object.keys(l),p=0;p<c.length;++p){var u=c[p],d=a(u,l[u],r);s=n.merge(s,d,r)}return n.compact(s)}},GNaF:function(t,e,r){(t.exports=r("FZ+f")(!1)).push([t.i,"\n.editor-slide-upload[data-v-30d7bdf1] {\n margin-bottom: 20px;\n}\n.editor-slide-upload[data-v-30d7bdf1] .el-upload--picture-card {\n width: 100%;\n}\n",""])},M8rB:function(t,e,r){var n=r("mYzK");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r("rjj0")("66d6753f",n,!0)},OO8d:function(t,e,r){(t.exports=r("FZ+f")(!1)).push([t.i,"\n.title {\n text-align: center;\n}\n",""])},OVM6:function(t,e,r){var n=r("GNaF");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r("rjj0")("644e8098",n,!0)},XgCd:function(t,e,r){"use strict";var n=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},mYzK:function(t,e,r){(t.exports=r("FZ+f")(!1)).push([t.i,"\n.tinymce-container[data-v-7101c782] {\r\n position: relative;\n}\n.tinymce-container[data-v-7101c782] .mce-fullscreen {\r\n z-index: 10000;\n}\n.tinymce-textarea[data-v-7101c782] {\r\n visibility: hidden;\r\n z-index: -1;\n}\n.editor-custom-btn-container[data-v-7101c782] {\r\n position: absolute;\r\n right: 4px;\r\n top: 4px;\r\n /*z-index: 2005;*/\n}\n.fullscreen .editor-custom-btn-container[data-v-7101c782] {\r\n z-index: 10000;\r\n position: fixed;\n}\n.editor-upload-btn[data-v-7101c782] {\r\n display: inline-block;\n}\r\n",""])},mw3O:function(t,e,r){"use strict";var n=r("CwSZ"),i=r("DDCP"),o=r("XgCd");t.exports={formats:o,parse:i,stringify:n}},nSoC:function(t,e,r){var n=r("OO8d");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r("rjj0")("482978e8",n,!0)},p8xL:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],a=Object.keys(o),l=0;l<a.length;++l){var s=a[l],c=o[s];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:o,prop:s}),r.push(c))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],i=0;i<e.length;++i)void 0!==e[i]&&n.push(e[i]);r.obj[r.prop]=n}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),r="",n=0;n<e.length;++n){var o=e.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,r,i){if(!r)return e;if("object"!=typeof r){if(Array.isArray(e))e.push(r);else{if("object"!=typeof e)return[e,r];(i.plainObjects||i.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!=typeof e)return[e].concat(r);var a=e;return Array.isArray(e)&&!Array.isArray(r)&&(a=o(e,i)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,o){n.call(e,o)?e[o]&&"object"==typeof e[o]?e[o]=t(e[o],r,i):e.push(r):e[o]=r}),e):Object.keys(r).reduce(function(e,o){var a=r[o];return n.call(e,o)?e[o]=t(e[o],a,i):e[o]=a,e},a)}}},tBYD:function(t,e,r){"use strict";var n=r("//Fk"),i=r.n(n),o=r("fZjL"),a=r.n(o),l={name:"editorSlideUpload",props:{color:{type:String,default:"#1890ff"}},data:function(){return{dialogVisible:!1,listObj:{},fileList:[]}},methods:{checkAllSuccess:function(){var t=this;return a()(this.listObj).every(function(e){return t.listObj[e].hasSuccess})},handleSubmit:function(){var t=this,e=a()(this.listObj).map(function(e){return t.listObj[e]});this.checkAllSuccess()?(console.log(e),this.$emit("successCBK",e),this.listObj={},this.fileList=[],this.dialogVisible=!1):this.$message("请等待所有图片上传成功 或 出现了网络问题,请刷新页面重新上传!")},handleSuccess:function(t,e){for(var r=e.uid,n=a()(this.listObj),i=0,o=n.length;i<o;i++)if(this.listObj[n[i]].uid===r)return this.listObj[n[i]].url=t.files.file,void(this.listObj[n[i]].hasSuccess=!0)},handleRemove:function(t){for(var e=t.uid,r=a()(this.listObj),n=0,i=r.length;n<i;n++)if(this.listObj[r[n]].uid===e)return void delete this.listObj[r[n]]},beforeUpload:function(t){var e=this,r=window.URL||window.webkitURL,n=t.uid;return this.listObj[n]={},new i.a(function(i,o){var a=new Image;a.src=r.createObjectURL(t),a.onload=function(){e.listObj[n]={hasSuccess:!1,uid:t.uid,width:this.width,height:this.height}},i(!0)})}}},s={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"upload-container"},[r("el-button",{style:{background:t.color,borderColor:t.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("上传图片\n ")]),t._v(" "),r("el-dialog",{attrs:{"append-to-body":"",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("el-upload",{staticClass:"editor-slide-upload",attrs:{action:"https://httpbin.org/post",multiple:!0,"file-list":t.fileList,"show-file-list":!0,"list-type":"picture-card","on-remove":t.handleRemove,"on-success":t.handleSuccess,"before-upload":t.beforeUpload}},[r("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),r("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var c=[" table textcolor textpattern"],p=["bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample table forecolor backcolor"],u={name:"tinymce",components:{editorImage:r("VU/8")(l,s,!1,function(t){r("OVM6")},"data-v-30d7bdf1",null).exports},props:{id:{type:String},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{default:"file edit insert view format table"},height:{type:Number,required:!1,default:360}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id||"vue-tinymce-"+ +new Date,fullscreen:!1}},watch:{value:function(t){var e=this;!this.hasChange&&this.hasInit&&this.$nextTick(function(){return window.tinymce.get(e.tinymceId).setContent(t||"")})}},mounted:function(){this.initTinymce()},activated:function(){this.initTinymce()},deactivated:function(){this.destroyTinymce()},methods:{initTinymce:function(){var t=this,e=this;window.tinymce.init({language:"zh_CN",selector:"#"+this.tinymceId,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:p,menubar:!1,plugins:c,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",branding:!1,default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(r){e.value&&r.setContent(e.value),e.hasInit=!0,r.on("NodeChange Change KeyUp SetContent",function(){t.hasChange=!0,t.$emit("input",r.getContent())})},setup:function(t){t.on("FullscreenStateChanged",function(t){e.fullscreen=t.state})}})},destroyTinymce:function(){window.tinymce.get(this.tinymceId)&&window.tinymce.get(this.tinymceId).destroy()},setContent:function(t){window.tinymce.get(this.tinymceId).setContent(t)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()}},destroyed:function(){this.destroyTinymce()}},d={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tinymce-container editor-container",class:{fullscreen:this.fullscreen}},[e("textarea",{staticClass:"tinymce-textarea",attrs:{id:this.tinymceId}})])},staticRenderFns:[]};var f={name:"applicationFrm",components:{Tinymce:r("VU/8")(u,d,!1,function(t){r("M8rB")},"data-v-7101c782",null).exports},data:function(){return{report:{parameter:"检查参数",description:"检查所见",impression:"印象",recommendation:"建议",positive:!1,reportDoctor:"",reportDatetime:null,reviewDoctor:"",reviewDatetime:null},hospitalconfig:this.$store.getters.hospitalconfig}},props:["data"],watch:{data:function(){console.log("watch",this.data)}},methods:{handleOperateExam:function(t,e){console.log("handleOperateExam",t)}}},m={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"form",attrs:{"label-width":"80px"}},[r("h2",{staticClass:"title"},[t._v(t._s(t.hospitalconfig.reportTitle))]),t._v(" "),r("h2",{staticClass:"title"},[t._v(t._s(t.data.examClass)+" "+t._s(t.hospitalconfig.reportSubTitle))]),t._v(" "),r("hr"),t._v(" "),r("el-row",{staticClass:"com-layout-flex",attrs:{gutter:20,type:"flex"}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("exam.patientID"),prop:"patientID"}},[t._v("\n "+t._s(t.data.patientID)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("patient.name"),prop:"name"}},[t._v("\n "+t._s(t.data.name)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("patient.sex"),prop:"sex"}},[t._v("\n "+t._s(t.data.sex)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("patient.age"),prop:"age"}},[t._v("\n "+t._s(t.data.age)+"\n ")])],1)],1),t._v(" "),r("el-row",{staticClass:"com-layout-flex",attrs:{gutter:20,type:"flex"}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("exam.examClass"),prop:"class"}},[t._v("\n "+t._s(t.data.examClass)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("exam.subClass"),prop:"subclass"}},[t._v("\n "+t._s(t.data.subClass)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:t.$t("exam.examDatetime"),prop:"examDatetime"}},[t._v("\n "+t._s(t.data.examDatetime)+"\n ")])],1)],1),t._v(" "),r("hr"),t._v(" "),r("el-row",[r("el-form-item",{attrs:{label:t.$t("report.description"),prop:"description"}},[r("Tinymce",{ref:"editor",attrs:{height:200},model:{value:t.report.description,callback:function(e){t.$set(t.report,"description",e)},expression:"report.description"}})],1)],1),t._v(" "),r("el-row",[r("el-form-item",{attrs:{label:t.$t("report.impression"),prop:"impression"}},[r("Tinymce",{ref:"editor",attrs:{height:200},model:{value:t.report.impression,callback:function(e){t.$set(t.report,"impression",e)},expression:"report.impression"}})],1)],1),t._v(" "),r("el-row",[r("el-form-item",{attrs:{prop:"positive"}},[r("el-checkbox",{model:{value:t.report.positive,callback:function(e){t.$set(t.report,"positive",e)},expression:"report.positive"}},[t._v(t._s(t.$t("report.positive")))])],1)],1),t._v(" "),r("hr"),t._v(" "),r("el-row",{staticClass:"com-layout-flex",attrs:{gutter:20,type:"flex"}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("report.reportDoctor"),prop:"reportDoctor"}},[t._v("\n "+t._s(t.report.reportDoctor)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("report.reportDatetime"),prop:"reportDatetime"}},[t._v("\n "+t._s(t.report.reportDatetime)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("report.reviewDoctor"),prop:"reviewDoctor"}},[t._v("\n "+t._s(t.report.reviewDoctor)+"\n ")])],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:t.$t("report.reviewDatetime"),prop:"reviewDatetime"}},[t._v("\n "+t._s(t.report.reviewDatetime)+"\n ")])],1)],1)],1)],1)},staticRenderFns:[]};var h=r("VU/8")(f,m,!1,function(t){r("nSoC")},null,null);e.a=h.exports}});
|