1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d822f32a","chunk-597298f6"],{"08ba":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:4,xs:24}},[n("div",{staticClass:"head-container"},[n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"新建","open-delay":500,placement:"top-start"}},[n("el-button",{attrs:{icon:"el-icon-circle-plus-outline",circle:"",size:"mini"},on:{click:t.add}})],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"编辑","open-delay":500,placement:"top-start"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-edit",circle:"",size:"mini"},on:{click:t.edit}})],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"删除","open-delay":500,placement:"top-start"}},[n("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:"",size:"mini"},on:{click:t.del}})],1)],1)],1),n("div",{staticClass:"head-container"},[n("el-tree",{ref:"tree",attrs:{data:t.deptOptions,props:t.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:{"node-click":t.handleNodeClick,"check-change":t.handleNodeClick}})],1)]),n("el-col",{attrs:{span:20,xs:24}},[n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-col",{attrs:{span:1.5}},[n("el-button",{attrs:{disabled:t.lookFlag,type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:t.addDiagnosticlassification}},[t._v("新建")])],1)],1),n("el-table",{staticStyle:{width:"100%",height:"calc(100%-80vh)"},attrs:{data:t.tableData}},[n("el-table-column",{attrs:{label:"预约项目名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.appointmentName||"-"))])]}}])}),n("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.updateDate||"-"))])]}}])}),n("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.editTableData(e.row)}}},[t._v(" 编辑 ")]),n("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"mini"},on:{click:function(n){return t.delTable(e.row)}}},[t._v(" 删除 ")])]}}])})],1)],1)],1),n("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e},close:t.closeDialog}},[n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"预约项目名称:",prop:"appointmentName"}},[n("el-input",{attrs:{placeholder:"请输入预约项目名称"},model:{value:t.ruleForm.appointmentName,callback:function(e){t.$set(t.ruleForm,"appointmentName",e)},expression:"ruleForm.appointmentName"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.closeDialog}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"编辑",visible:t.TabledialogVisible,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.TabledialogVisible=e},close:t.closeDialog}},[n("div",{staticStyle:{display:"flex","align-items":"center","margin-top":"15px"}},[n("div",{staticStyle:{width:"130px"}},[t._v(" 预约项目名称: ")]),n("el-input",{attrs:{placeholder:"请输入预约项目名称",type:"textarea",rows:2},model:{value:t.tableDataObject.appointmentName,callback:function(e){t.$set(t.tableDataObject,"appointmentName",e)},expression:"tableDataObject.appointmentName"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.closeDialog}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.doSubmit}},[t._v("确 定")])],1)]),n("addTemplateDialog",{ref:"addTemplateDialogRef",attrs:{listInId:t.listInId,treeName:t.treeName}})],1)},r=[],i=n("5530"),o=n("c7eb"),s=n("1da1"),c=n("f0aa"),l=n("943d"),u={name:"medicalRecord",components:{addTemplateDialog:c["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 t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["g"])({type:1});case 2:if(n=e.sent,200===n.code){e.next=5;break}return e.abrupt("return",t.$message.error(n.msg));case 5:t.deptOptions=n.data,t.deptOptions.length&&(t.listInId=t.deptOptions[0].id,t.deptOptions[0].childrenList.length?t.lookFlag=!0:t.lookFlag=!1,t.initList());case 7:case"end":return e.stop()}}),e)})))()},initList:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["e"])({parentId:t.listInId});case 2:if(n=e.sent,200===n.code){e.next=5;break}return e.abrupt("return",t.$message.error(n.msg));case 5:t.tableData=n.data;case 6:case"end":return e.stop()}}),e)})))()},handleNodeClick:function(t,e,n){t.childrenList.length?this.lookFlag=!0:this.lookFlag=!1,this.listInId=t.id,e&&this.$refs.tree.getCheckedNodes().length>1&&this.$refs.tree.setCheckedNodes([t]),this.initList()},add:function(){this.title="新建",this.ruleForm.appointmentName="",this.dialogVisible=!0},addDiagnosticlassification:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.$refs.addTemplateDialogRef.appointmentName="",t.listInId){e.next=3;break}return e.abrupt("return",t.$message.info("请先选择预约项目名称!"));case 3:return e.next=5,Object(l["d"])({id:t.listInId});case 5:if(n=e.sent,200===n.code){e.next=8;break}return e.abrupt("return",t.$message.error(n.msg));case 8:t.treeName=n.data,t.$refs.addTemplateDialogRef.addTemplateDialogVisible=!0;case 10:case"end":return e.stop()}}),e)})))()},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 t;this.ruleForm.appointmentName="",null===(t=this.$refs.ruleForm)||void 0===t||t.resetFields(),this.dialogVisible=!1,this.TabledialogVisible=!1},submit:function(){var t=this;this.$refs.ruleForm.validate(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(n){var a,r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=19;break}if("新建"!==t.title){e.next=9;break}return e.next=4,Object(l["c"])({appointmentName:t.ruleForm.appointmentName,type:1,parentId:t.$refs.tree.getCheckedNodes().length>0?t.$refs.tree.getCheckedNodes()[0].id:0});case 4:if(a=e.sent,200===a.code){e.next=7;break}return e.abrupt("return",t.$message.error(a.msg));case 7:e.next=14;break;case 9:return e.next=11,Object(l["h"])({appointmentName:t.ruleForm.appointmentName,type:1,id:t.$refs.tree.getCheckedNodes().length>0?t.$refs.tree.getCheckedNodes()[0].id:0});case 11:if(r=e.sent,200===r.code){e.next=14;break}return e.abrupt("return",t.$message.error(r.msg));case 14:t.$message.success("".concat(t.title,"成功!")),t.initAiagnosisTypeTree(),t.closeDialog(),e.next=21;break;case 19:return console.log("error submit!!"),e.abrupt("return",!1);case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},del:function(){var t=this;if(!this.$refs.tree.getCheckedNodes().length)return this.$message.info("请选择需要删除的选项");this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(o["a"])().mark((function e(){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.ids=t.$refs.tree.getCheckedNodes()[0].id,e.next=3,Object(l["f"])({ids:t.ids});case 3:if(n=e.sent,200===n.code){e.next=6;break}return e.abrupt("return",t.$message.error(n.msg));case 6:t.$message.success("删除成功!"),t.initAiagnosisTypeTree();case 8:case"end":return e.stop()}}),e)})))).catch((function(){}))},editTableData:function(t){this.TabledialogVisible=!0,this.tableDataObject=Object(i["a"])({},t)},doSubmit:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["i"])({id:t.tableDataObject.id,parentId:t.tableDataObject.parentId,appointmentName:t.tableDataObject.appointmentName});case 2:if(n=e.sent,200===n.code){e.next=5;break}return e.abrupt("return",t.$message.error(n.msg));case 5:t.$message.success("修改成功!"),t.closeDialog(),t.initList();case 8:case"end":return e.stop()}}),e)})))()},delTable:function(t){var e=this;this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(o["a"])().mark((function n(){var a;return Object(o["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(l["f"])({ids:t.id});case 2:if(a=n.sent,200===a.code){n.next=5;break}return n.abrupt("return",e.$message.error(a.msg));case 5:e.$message.success("删除成功!"),e.initList();case 7:case"end":return n.stop()}}),n)})))).catch((function(){}))}}},d=u,p=n("2877"),m=Object(p["a"])(d,a,r,!1,null,null,null);e["default"]=m.exports},2210:function(t,e,n){"use strict";n("83d9")},"83d9":function(t,e,n){},"943d":function(t,e,n){"use strict";n.d(e,"p",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"r",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"q",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"s",(function(){return u})),n.d(e,"h",(function(){return d})),n.d(e,"u",(function(){return p})),n.d(e,"A",(function(){return m})),n.d(e,"e",(function(){return f})),n.d(e,"t",(function(){return b})),n.d(e,"L",(function(){return h})),n.d(e,"v",(function(){return g})),n.d(e,"i",(function(){return y})),n.d(e,"z",(function(){return j})),n.d(e,"o",(function(){return O})),n.d(e,"d",(function(){return k})),n.d(e,"K",(function(){return v})),n.d(e,"P",(function(){return x})),n.d(e,"O",(function(){return w})),n.d(e,"N",(function(){return _})),n.d(e,"S",(function(){return N})),n.d(e,"M",(function(){return T})),n.d(e,"Q",(function(){return $})),n.d(e,"T",(function(){return D})),n.d(e,"U",(function(){return I})),n.d(e,"V",(function(){return C})),n.d(e,"R",(function(){return S})),n.d(e,"D",(function(){return F})),n.d(e,"G",(function(){return V})),n.d(e,"F",(function(){return L})),n.d(e,"E",(function(){return A})),n.d(e,"B",(function(){return z})),n.d(e,"H",(function(){return B})),n.d(e,"a",(function(){return P})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return R})),n.d(e,"J",(function(){return U})),n.d(e,"I",(function(){return J})),n.d(e,"b",(function(){return q})),n.d(e,"w",(function(){return M})),n.d(e,"C",(function(){return G})),n.d(e,"W",(function(){return H})),n.d(e,"j",(function(){return K})),n.d(e,"x",(function(){return Q})),n.d(e,"y",(function(){return W})),n.d(e,"l",(function(){return X})),n.d(e,"k",(function(){return Y}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/diagnosis-type/tree",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/project/appointment-project/tree",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/system/diagnosis-type/remove?ids=".concat(t.ids),method:"delete"})}function s(t){return Object(a["a"])({url:"/project/appointment-project/remove?ids=".concat(t.ids),method:"delete"})}function c(t){return Object(a["a"])({url:"/system/diagnosis-type",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/project/appointment-project",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/system/diagnosis-type",method:"put",data:t})}function d(t){return Object(a["a"])({url:"/project/appointment-project",method:"put",data:t})}function p(t){return Object(a["a"])({url:"/system/diagnosis-type-template/list",method:"get",params:t})}function m(t){return Object(a["a"])({url:"/system/diagnosis-type-template/listToPatientId",method:"get",params:t})}function f(t){return Object(a["a"])({url:"/project/appointment-project/list",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/system/diagnosis-type-template",method:"post",data:t})}function h(){return Object(a["a"])({url:"/system/dict/data/type/erm_diagnosis_type_template_name",method:"get"})}function g(t){return Object(a["a"])({url:"/system/diagnosis-type-template",method:"put",data:t})}function y(t){return Object(a["a"])({url:"/project/appointment-project",method:"put",data:t})}function j(t){return Object(a["a"])({url:"/system/diagnosis-type-template/importTemplate",method:"post",data:t,responseType:"blob",timeOut:6e4})}function O(t){return Object(a["a"])({url:"/system/diagnosis-type/crumb",method:"get",params:t})}function k(t){return Object(a["a"])({url:"/project/appointment-project/crumb",method:"get",params:t})}function v(){return Object(a["a"])({url:"/system/dict/data/type/erm_citizenship",method:"get"})}function x(){return Object(a["a"])({url:"/system/dict/data/type/erm_occupation",method:"get"})}function w(){return Object(a["a"])({url:"/system/dict/data/type/erm_nationality",method:"get"})}function _(){return Object(a["a"])({url:"/system/dict/data/type/erm_marriage",method:"get"})}function N(){return Object(a["a"])({url:"/system/dict/data/type/erm_patient_source",method:"get"})}function T(){return Object(a["a"])({url:"/system/dict/data/type/erm_family_history",method:"get"})}function $(){return Object(a["a"])({url:"/system/dict/data/type/erm_past_history",method:"get"})}function D(){return Object(a["a"])({url:"/system/dict/data/type/erm_patient_tags",method:"get"})}function I(){return Object(a["a"])({url:"/system/dict/data/type/erm_personal_relationship",method:"get"})}function C(){return Object(a["a"])({url:"/system/dict/data/type/erm_reservation_status",method:"get"})}function S(){return Object(a["a"])({url:"/system/dict/data/type/erm_patient_blood",method:"get"})}function F(t){return Object(a["a"])({url:"/patient/patient",method:"post",data:t})}function V(){return Object(a["a"])({url:"/patient/patient/list",method:"get"})}function L(t){return Object(a["a"])({url:"/patient/patient/detail",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/patientAppointment/patientAppointment-appointment/list",method:"get",params:t})}function z(t){return Object(a["a"])({url:"/patient/medical-record/list",method:"get",params:t})}function B(t){return Object(a["a"])({url:"/patient/medical-record",method:"post",data:t})}function P(){return Object(a["a"])({url:"/system/user/allList",method:"get"})}function E(){return Object(a["a"])({url:"/system/user/deptTree",method:"get"})}function R(t){return Object(a["a"])({url:"/system/user/deptTreeByName?deptName=".concat(t),method:"get"})}function U(t){return Object(a["a"])({url:"/patient/medical-record/detail?id=".concat(t),method:"get"})}function J(){return Object(a["a"])({url:"/project/appointment-project/list",method:"get"})}function q(t){return Object(a["a"])({url:"/patientAppointment/patientAppointment-appointment",method:"post",data:t})}function M(){return Object(a["a"])({url:"/doctor/list",method:"get"})}function G(t){return Object(a["a"])({url:"/patientAppointment/patientAppointment-appointment/modifyState",method:"post",data:t})}function H(t){return Object(a["a"])({url:"/patient/medical-record/teethListByPatientId",method:"get",params:t})}function K(t){return Object(a["a"])({url:"/system/business-dict-data/list?dictType=".concat(t),method:"get"})}function Q(t){return Object(a["a"])({url:"/patient/medical-record/findMedicalInfo?medicalRecordId=".concat(t),method:"get"})}function W(t){return Object(a["a"])({url:"/patient/medical-record/html2Pdf",method:"post",responseType:"blob",data:t,timeout:3e5})}function X(t){return Object(a["a"])({url:"/system/business-dict-data",method:"put",data:t})}function Y(t){return Object(a["a"])({url:"/system/business-dict-data",method:"post",data:t})}},f0aa:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.addTemplateDialogVisible?n("el-dialog",{attrs:{title:"新建",visible:t.addTemplateDialogVisible,width:"700px","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.addTemplateDialogVisible=e},close:t.cancel}},[n("el-row",{staticStyle:{"margin-bottom":"15px"}},[n("el-col",{attrs:{span:24}},[n("span",{staticStyle:{width:"130px",display:"inline-block","text-align":"right"}},[t._v(" 所属目录: ")]),t._v(" "+t._s(t.treeName)+" ")])],1),n("el-row",{staticStyle:{"margin-bottom":"15px"}},[n("el-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:24}},[n("span",{staticStyle:{width:"130px",display:"inline-block","text-align":"right"}},[t._v(" 预约项目名称: ")]),n("el-input",{staticStyle:{width:"300px"},attrs:{type:"textarea",placeholder:"请输入预约项目名称"},model:{value:t.appointmentName,callback:function(e){t.appointmentName=e},expression:"appointmentName"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.cancel}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)],1):t._e()],1)},r=[],i=n("c7eb"),o=n("1da1"),s=(n("4de4"),n("d3b7"),n("943d")),c={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 t=this;return Object(o["a"])(Object(i["a"])().mark((function e(){var n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["L"])();case 2:if(n=e.sent,200===n.code){e.next=5;break}return e.abrupt("return",t.$message.error(n.msg));case 5:t.diagnosisTypeTemplateList=n.data.filter((function(t){return t.templateExample,t}));case 6:case"end":return e.stop()}}),e)})))()},cancel:function(){this.addTemplateDialogVisible=!1,this.initSysUserSexerm_diagnosis_type_template_name()},submit:function(){var t=this;return Object(o["a"])(Object(i["a"])().mark((function e(){var n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["c"])({appointmentName:t.appointmentName,type:2,parentId:t.listInId});case 2:if(n=e.sent,200===n.code){e.next=5;break}return e.abrupt("return",t.$message.error(n.msg));case 5:t.$message.success("新建成功!"),t.$parent.initList(),t.addTemplateDialogVisible=!1;case 8:case"end":return e.stop()}}),e)})))()}}},l=c,u=(n("2210"),n("2877")),d=Object(u["a"])(l,a,r,!1,null,"5753db08",null);e["default"]=d.exports}}]);
|