chunk-35ff416c.937a909a.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35ff416c","chunk-64f2e9f0"],{"08ba":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4,xs:24}},[a("div",{staticClass:"head-container"},[a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"新建","open-delay":500,placement:"top-start"}},[a("el-button",{attrs:{icon:"el-icon-circle-plus-outline",circle:"",size:"mini"},on:{click:e.add}})],1),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"编辑","open-delay":500,placement:"top-start"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",circle:"",size:"mini"},on:{click:e.edit}})],1),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"删除","open-delay":500,placement:"top-start"}},[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:"",size:"mini"},on:{click:e.del}})],1)],1)],1),a("div",{staticClass:"head-container"},[a("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"check-on-click-node":!0,"expand-on-click-node":!1,"show-checkbox":"","node-key":"id","default-expand-all":"","highlight-current":"","check-strictly":!0},on:{check:e.handleNodeClick}})],1)]),a("el-col",{attrs:{span:20,xs:24}},[a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{disabled:e.lookFlag,type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.addDiagnosticlassification}},[e._v("新建")])],1)],1),a("el-table",{staticStyle:{width:"100%",height:"calc(100%-80vh)"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"预约项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appointmentName||"-"))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.updateDate||"-"))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.editTableData(t.row)}}},[e._v(" 编辑 ")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"mini"},on:{click:function(a){return e.delTable(t.row)}}},[e._v(" 删除 ")])]}}])})],1)],1)],1),a("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"预约项目名称:",prop:"appointmentName"}},[a("el-input",{attrs:{placeholder:"请输入预约项目名称"},model:{value:e.ruleForm.appointmentName,callback:function(t){e.$set(e.ruleForm,"appointmentName",t)},expression:"ruleForm.appointmentName"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeDialog}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"编辑",visible:e.TabledialogVisible,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.TabledialogVisible=t},close:e.closeDialog}},[a("div",{staticStyle:{display:"flex","align-items":"center","margin-top":"15px"}},[a("div",{staticStyle:{width:"130px"}},[e._v(" 预约项目名称: ")]),a("el-input",{attrs:{placeholder:"请输入预约项目名称",type:"textarea",rows:2},model:{value:e.tableDataObject.appointmentName,callback:function(t){e.$set(e.tableDataObject,"appointmentName",t)},expression:"tableDataObject.appointmentName"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeDialog}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doSubmit}},[e._v("确 定")])],1)]),a("addTemplateDialog",{ref:"addTemplateDialogRef",attrs:{listInId:e.listInId,treeName:e.treeName}})],1)},n=[],s=a("5530"),r=a("c7eb"),l=a("1da1"),o=a("f0aa"),c=a("943d"),p={name:"medicalRecord",components:{addTemplateDialog:o["default"]},data:function(){return{tableDataObject:{},TabledialogVisible:!1,deptOptions:[],defaultProps:{children:"childrenList",label:"appointmentName"},ids:"",listInId:"",ruleForm:{appointmentName:""},rules:{appointmentName:[{required:!0,message:"请输入预约项目名称",trigger:"blur"}]},lookFlag:!0,treeName:"",title:"",dialogVisible:!1,tableData:[]}},mounted:function(){this.initAiagnosisTypeTree()},methods:{initAiagnosisTypeTree:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["h"])({type:1});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.deptOptions=a.data,e.deptOptions.length&&(e.listInId=e.deptOptions[0].id,e.deptOptions[0].childrenList.length?e.lookFlag=!0:e.lookFlag=!1,e.initList());case 7:case"end":return t.stop()}}),t)})))()},initList:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["f"])({parentId:e.listInId});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.tableData=a.data;case 6:case"end":return t.stop()}}),t)})))()},handleNodeClick:function(e,t,a){e.childrenList.length?this.lookFlag=!0:this.lookFlag=!1,this.listInId=e.id,t&&this.$refs.tree.getCheckedNodes().length>1&&this.$refs.tree.setCheckedNodes([e]),this.initList()},add:function(){this.title="新建",this.ruleForm.appointmentName="",this.dialogVisible=!0},addDiagnosticlassification:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$refs.addTemplateDialogRef.appointmentName="",e.listInId){t.next=3;break}return t.abrupt("return",e.$message.info("请先选择预约项目名称!"));case 3:return t.next=5,Object(c["e"])({id:e.listInId});case 5:if(a=t.sent,200===a.code){t.next=8;break}return t.abrupt("return",e.$message.error(a.msg));case 8:e.treeName=a.data,e.$refs.addTemplateDialogRef.addTemplateDialogVisible=!0;case 10:case"end":return t.stop()}}),t)})))()},edit:function(){if(!this.$refs.tree.getCheckedNodes().length)return this.$message.info("请选择需要编辑的选项");this.title="编辑",this.dialogVisible=!0,this.ruleForm.appointmentName=this.$refs.tree.getCheckedNodes()[0].appointmentName},closeDialog:function(){var e;this.ruleForm.appointmentName="",null===(e=this.$refs.ruleForm)||void 0===e||e.resetFields(),this.dialogVisible=!1,this.TabledialogVisible=!1},submit:function(){var e=this;this.$refs.ruleForm.validate(function(){var t=Object(l["a"])(Object(r["a"])().mark((function t(a){var i,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=19;break}if("新建"!==e.title){t.next=9;break}return t.next=4,Object(c["d"])({appointmentName:e.ruleForm.appointmentName,type:1,parentId:e.$refs.tree.getCheckedNodes().length>0?e.$refs.tree.getCheckedNodes()[0].id:0});case 4:if(i=t.sent,200===i.code){t.next=7;break}return t.abrupt("return",e.$message.error(i.msg));case 7:t.next=14;break;case 9:return t.next=11,Object(c["i"])({appointmentName:e.ruleForm.appointmentName,type:1,id:e.$refs.tree.getCheckedNodes().length>0?e.$refs.tree.getCheckedNodes()[0].id:0});case 11:if(n=t.sent,200===n.code){t.next=14;break}return t.abrupt("return",e.$message.error(n.msg));case 14:e.$message.success("".concat(e.title,"成功!")),e.initAiagnosisTypeTree(),e.closeDialog(),t.next=21;break;case 19:return console.log("error submit!!"),t.abrupt("return",!1);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},del:function(){var e=this;if(!this.$refs.tree.getCheckedNodes().length)return this.$message.info("请选择需要删除的选项");this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.ids=e.$refs.tree.getCheckedNodes()[0].id,t.next=3,Object(c["g"])({ids:e.ids});case 3:if(a=t.sent,200===a.code){t.next=6;break}return t.abrupt("return",e.$message.error(a.msg));case 6:e.$message.success("删除成功!"),e.initAiagnosisTypeTree();case 8:case"end":return t.stop()}}),t)})))).catch((function(){}))},editTableData:function(e){this.TabledialogVisible=!0,this.tableDataObject=Object(s["a"])({},e)},doSubmit:function(){var e=this;return Object(l["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["j"])({id:e.tableDataObject.id,parentId:e.tableDataObject.parentId,appointmentName:e.tableDataObject.appointmentName});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.$message.success("修改成功!"),e.closeDialog(),e.initList();case 8:case"end":return t.stop()}}),t)})))()},delTable:function(e){var t=this;this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(Object(r["a"])().mark((function a(){var i;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(c["g"])({ids:e.id});case 2:if(i=a.sent,200===i.code){a.next=5;break}return a.abrupt("return",t.$message.error(i.msg));case 5:t.$message.success("删除成功!"),t.initList();case 7:case"end":return a.stop()}}),a)})))).catch((function(){}))}}},d=p,u=a("2877"),m=Object(u["a"])(d,i,n,!1,null,null,null);t["default"]=m.exports},2210:function(e,t,a){"use strict";a("83d9")},"83d9":function(e,t,a){},f0aa:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.addTemplateDialogVisible?a("el-dialog",{attrs:{title:"新建",visible:e.addTemplateDialogVisible,width:"700px","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.addTemplateDialogVisible=t},close:e.cancel}},[a("el-row",{staticStyle:{"margin-bottom":"15px"}},[a("el-col",{attrs:{span:24}},[a("span",{staticStyle:{width:"130px",display:"inline-block","text-align":"right"}},[e._v(" 所属目录: ")]),e._v(" "+e._s(e.treeName)+" ")])],1),a("el-row",{staticStyle:{"margin-bottom":"15px"}},[a("el-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:24}},[a("span",{staticStyle:{width:"130px",display:"inline-block","text-align":"right"}},[e._v(" 预约项目名称: ")]),a("el-input",{staticStyle:{width:"300px"},attrs:{type:"textarea",placeholder:"请输入预约项目名称"},model:{value:e.appointmentName,callback:function(t){e.appointmentName=t},expression:"appointmentName"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1):e._e()],1)},n=[],s=a("c7eb"),r=a("1da1"),l=(a("4de4"),a("d3b7"),a("943d")),o={name:"EitcErmPcAddTemplateDialog",props:{listInId:{type:String,default:""},treeName:{type:String,default:""}},data:function(){return{addTemplateDialogVisible:!1,diagnosisTypeTemplateList:[],appointmentName:""}},mounted:function(){this.initSysUserSexerm_diagnosis_type_template_name()},methods:{initSysUserSexerm_diagnosis_type_template_name:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["kc"])();case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.diagnosisTypeTemplateList=a.data.filter((function(e){return e.templateExample,e}));case 6:case"end":return t.stop()}}),t)})))()},cancel:function(){this.addTemplateDialogVisible=!1,this.initSysUserSexerm_diagnosis_type_template_name()},submit:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["d"])({appointmentName:e.appointmentName,type:2,parentId:e.listInId});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.$message.success("新建成功!"),e.$parent.initList(),e.addTemplateDialogVisible=!1;case 8:case"end":return t.stop()}}),t)})))()}}},c=o,p=(a("2210"),a("2877")),d=Object(p["a"])(c,i,n,!1,null,"5753db08",null);t["default"]=d.exports}}]);