chunk-0c267520.fdf2e9a1.js 3.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c267520"],{"07bb":function(e,t,a){"use strict";a("77ee")},"77ee":function(e,t,a){},aeec: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.addMedicalTreeDialogFlag?a("el-drawer",{attrs:{title:"选择牙齿诊断",visible:e.addMedicalTreeDialogFlag,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1,"before-close":e.beforeClose},on:{"update:visible":function(t){e.addMedicalTreeDialogFlag=t}}},[a("el-input",{attrs:{placeholder:"输入关键字进行过滤"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),a("el-tree",{ref:"tree",staticClass:"filter-tree",staticStyle:{"max-height":"90%","overflow-y":"auto"},attrs:{data:e.deptOptions,props:e.defaultProps,"default-expand-all":!1,"filter-node-method":e.filterNode,draggable:"","allow-drop":e.allowDrop},on:{"node-click":e.handleNodeClick}}),a("div",{staticClass:"por_box"},[a("el-button",{on:{click:e.cancel}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.doSubmit}},[e._v("确 定")])],1)],1):e._e()],1)},n=[],r=a("c7eb"),l=a("1da1"),o=(a("4de4"),a("d3b7"),a("943d")),s={name:"EitcErmPcAddMedicalTreeDialog",props:{addMedicalTreeDialogFlag:{type:Boolean,default:!1},ids:{type:String,default:""}},data:function(){return{deptOptions:[],filterText:"",defaultProps:{children:"childrenList",label:"diagnosisName"},diagnosisTypeId:"",tableData:{}}},watch:{filterText:function(e){this.$refs.tree.filter(e)}},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(o["s"])();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;case 6:case"end":return t.stop()}}),t)})))()},filterNode:function(e,t){return!e||-1!==t.diagnosisName.indexOf(e)},beforeClose:function(){this.$emit("cancelAll","3")},handleNodeClick:function(e,t,a){this.diagnosisTypeId=e.id},cancel:function(){this.$emit("cancelAll","3")},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:if(e.diagnosisTypeId){t.next=2;break}return t.abrupt("return",e.$message.error("请选择诊断类型"));case 2:return t.next=4,Object(o["M"])({diagnosisTypeId:e.diagnosisTypeId,patientId:e.ids});case 4:if(a=t.sent,200===a.code){t.next=7;break}return t.abrupt("return",e.$message.error(a.msg));case 7:return e.tableData=a.data,e.$emit("cancelAll","3"),e.$emit("addYaList",e.tableData),t.next=12,Object(o["r"])(e.deptOptions);case 12:case"end":return t.stop()}}),t)})))()},allowDrop:function(e,t,a){return e.level===t.level&&("prev"===a||"next"===a)}}},c=s,d=(a("07bb"),a("2877")),u=Object(d["a"])(c,i,n,!1,null,"58b447a9",null);t["default"]=u.exports}}]);