text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a5e5d42"],{"00fb":function(t,e,a){},"0cc9":function(t,e,a){},"2b5a":function(t,e,a){},"3ab0":function(t,e,a){"use strict";var s=a("0cc9"),i=a.n(s);i.a},4744:function(t,e,a){"use strict";var s=a("2b5a"),i=a.n(s);i.a},6063:function(t,e,a){},"942a":function(t,e,a){"use strict";var s=a("00fb"),i=a.n(s);i.a},"9cd5":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"H-Department"},[t.departvue?a("div",{staticClass:"departalBg"},[a("headpow"),a("div",{staticClass:"departIptsech"},[a("div",{staticClass:"departIptsech_div"},[a("el-input",{staticClass:"departNameipt",attrs:{placeholder:"请输入科室名称"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),a("el-button",{staticClass:"departNamesch",attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.departsearch()}}})],1)]),a("el-table",{staticClass:"departtable",attrs:{data:t.dormitory,"max-height":"560","row-key":"id","header-cell-style":{background:"#c2c5f6",color:"#000"},"cell-style":{background:"#fff"},"tree-props":{children:"_child",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{width:"50",label:"序号",type:"index"}}),a("el-table-column",{attrs:{prop:"title",label:"科室名称",width:"160"}}),a("el-table-column",{attrs:{prop:"number",label:"科室编号",width:"150"}}),a("el-table-column",{attrs:{prop:"usernumber",label:"员工数量"}}),a("el-table-column",{attrs:{prop:"head_department.name",label:"负责人"}}),a("el-table-column",{attrs:{prop:"createname.name",label:"创建人员"}}),a("el-table-column",{attrs:{width:"200",prop:"create_time",label:"创建时间"}}),a("el-table-column",{attrs:{label:"科室状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:function(a){return t.changeSwitch(a,e.row,e.row.id)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}],null,!1,1204060852)}),a("el-table-column",{attrs:{fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"departEdit",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleEdit(e.row.id)}}},[t._v("编辑")]),a("el-button",{staticClass:"departDel",attrs:{size:"small",type:"text"},on:{click:function(a){return t.handleDelete(e.row.id)}}},[t._v("删除")])]}}],null,!1,3629347427)})],1)],1):t._e(),a("adddep",{directives:[{name:"show",rawName:"v-show",value:t.adddep,expression:"adddep"}],attrs:{departadd:t.adddepart}}),a("editdep",{directives:[{name:"show",rawName:"v-show",value:t.editdep,expression:"editdep"}],attrs:{editchild:t.departchildedit}})],1)])},i=[],l=(a("ac1f"),a("841c"),a("4795"),a("f4df")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"departAll"},[a("div",{staticClass:"departaddThre"},[a("span",{staticClass:"departaddSpan"},[t._v("新增科室信息")]),a("div",[a("el-button",{staticClass:"departaddgr",attrs:{type:"primary",size:"medium",icon:"iconfont el-icon-hospital-passwordbaocun"},on:{click:t.departaddvueyes}},[t._v("保存 ")]),a("el-button",{staticClass:"departaddb",attrs:{type:"primary",size:"medium",icon:"iconfont el-icon-hospital-passwordai207"},on:{click:t.departaddvueno}},[t._v("返回 ")])],1)]),a("div",{staticClass:"addmain"},[a("el-form",{ref:"form"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"科室编号",disabled:""}},[a("el-input",{staticClass:"dialog-input-text",attrs:{disabled:"",type:"input",autosize:""},model:{value:t.numb,callback:function(e){t.numb=e},expression:"numb"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"科室名称",required:""}},[a("el-input",{staticClass:"dialog-input-text",model:{value:t.departNameipt,callback:function(e){t.departNameipt=e},expression:"departNameipt"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"科室排序",required:""}},[a("el-input",{attrs:{placeholder:"数字越小,排序越高"},model:{value:t.departpxipt,callback:function(e){t.departpxipt=e},expression:"departpxipt"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-top":"40px"},attrs:{label:"科室状态"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.valuestatus,callback:function(e){t.valuestatus=e},expression:"valuestatus"}})],1)],1),a("el-col",{attrs:{span:6}})],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{staticClass:"ssks",attrs:{label:"上级科室"}},[a("el-select",{staticClass:"dialog-input-text",staticStyle:{"margin-top":"6px"},attrs:{placeholder:"请选择"},on:{change:t.departsel},model:{value:t.adddepartsel,callback:function(e){t.adddepartsel=e},expression:"adddepartsel"}},t._l(t.options,(function(t){return a("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}}),a("el-col",{attrs:{span:6}}),a("el-col",{attrs:{span:6}})],1)],1)],1)])},n=[],d=a("6022"),o={props:["departadd"],inject:["reload"],data:function(){return{departNameipt:"",departpxipt:"",valuestatus:1,adddepartsel:"",options:[],numb:""}},created:function(){},watch:{departadd:function(t){console.log(t),this.options=t.lists,this.numb=t.number}},methods:{departsel:function(){},departaddvueyes:function(){var t=this,e={title:this.departNameipt,status:this.valuestatus,pid:this.adddepartsel,sort:this.departpxipt};d["a"].departsave(e).then((function(e){20010==e.code&&(t.$message({type:"success",message:e.msg,duration:1500}),setTimeout((function(){t.reload()}),2e3))}))},departaddvueno:function(){this.$parent.fathdepartno()}}},c=o,p=(a("942a"),a("2877")),u=Object(p["a"])(c,r,n,!1,null,"4ab157b5",null),h=u.exports,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"departAll"},[a("div",{staticClass:"departaddThre"},[a("span",{staticClass:"departaddSpan"},[t._v("编辑科室信息")]),a("div",[a("el-button",{staticClass:"departaddgr",attrs:{size:"medium",icon:"iconfont el-icon-hospital-passwordbaocun"},on:{click:t.departeditvueyes}},[t._v("保存 ")]),a("el-button",{staticClass:"departaddb",attrs:{size:"medium",icon:"iconfont el-icon-hospital-passwordai207"},on:{click:t.departeditvueno}},[t._v("返回 ")])],1)]),a("div",{staticClass:"addmain"},[a("el-form",{ref:"form"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"科室编号",disabled:""}},[a("el-input",{attrs:{type:"input",autosize:"",disabled:"",placeholder:"10001"},model:{value:t.ksnum,callback:function(e){t.ksnum=e},expression:"ksnum"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"科室名称",required:""}},[a("el-input",{attrs:{type:"input",autosize:""},model:{value:t.departNameipt,callback:function(e){t.departNameipt=e},expression:"departNameipt"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"科室排序",required:""}},[a("el-input",{attrs:{placeholder:"数字越小,排序越高"},model:{value:t.departpxipt,callback:function(e){t.departpxipt=e},expression:"departpxipt"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{staticStyle:{"margin-top":"40px"},attrs:{label:"科室状态"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.valuestatus,callback:function(e){t.valuestatus=e},expression:"valuestatus"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"上级科室"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.departsel},model:{value:t.editdepartsel,callback:function(e){t.editdepartsel=e},expression:"editdepartsel"}},[a("el-option",{attrs:{label:"顶级科室",value:0}}),t._l(t.options,(function(t){return a("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})}))],2)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"选择负责人",required:""}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.chargesel},model:{value:t.editchargetsel,callback:function(e){t.editchargetsel=e},expression:"editchargetsel"}},t._l(t.charge,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}}),a("el-col",{attrs:{span:6}})],1)],1)],1)])},m=[],v=(a("4e82"),{props:["editchild"],inject:["reload"],data:function(){return{departNameipt:"",valuestatus:0,editdepartsel:"",editchargetsel:"",options:[],departpxipt:"",id:"",pid:"",charge:[],ksnum:""}},watch:{editchild:function(t){this.options=t.data.list,this.departNameipt=t.data.info.title,this.valuestatus=t.data.info.status,this.departpxipt=t.data.info.sort,this.id=t.data.info.id,this.pid=t.data.info.pid,this.charge=t.data.userlist,this.ksnum=t.data.info.number,this.editdepartsel=t.data.info.pid,this.editchargetsel=t.data.info.head_department}},methods:{departsel:function(){},chargesel:function(){},departeditvueyes:function(){var t=this,e={titles:this.departNameipt,status:this.valuestatus,id:this.id,sort:this.departpxipt,pid:this.editdepartsel,head_department:this.editchargetsel};d["a"].departeditsave(e).then((function(e){20010==e.code&&(t.$message({message:"保存成功！",type:"success",duration:2e3}),setTimeout((function(){t.reload()}),2e3))}))},departeditvueno:function(){this.$parent.fathdepartno()}}}),b=v,g=(a("f0f0"),Object(p["a"])(b,f,m,!1,null,"a8505390",null)),w=g.exports,x=(a("4328"),{components:{headpow:l["a"],adddep:h,editdep:w},inject:["reload"],data:function(){return{departvue:!0,currentPage:1,nums:[8,10,20],num:8,total:0,adddep:!1,editdep:!1,currentRow:[],dormitory:[],search:"",departchildedit:[],tables1:[],adddepart:[]}},created:function(){var t=this;d["a"].departlist().then((function(e){t.dormitory=e.data}))},methods:{fathpowadd:function(){var t=this;this.departvue=!this.departvue,this.adddep=!this.adddep,d["a"].departadd().then((function(e){console.log(e.data),t.adddepart=e.data}))},departsearch:function(){var t=this,e={name:this.search};d["a"].departserc(e).then((function(e){t.dormitory=t.tables1=e.data}))},fathdepartyes:function(){var t=this;setTimeout((function(){t.adddep=!1,t.editdep=!1,t.departvue=!0}),3e3)},fathdepartno:function(){this.adddep=!1,this.editdep=!1,this.departvue=!0},changeSwitch:function(t,e){var a=this;this.$confirm("此操作将修改状态, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={id:e.id,status:e.status};d["a"].departstatus(t).then((function(t){a.$message({type:"success",message:t.msg,duration:1300}),setTimeout((function(){a.reload()}),2e3)}))}))["catch"]((function(){1==e.status?e.status=0:e.status=1,a.$message({type:"info",message:"已取消操作",duration:1e3})}))},indexMethod:function(t){return 1*t},handleEdit:function(t){var e=this;this.editdep=!0,this.departvue=!1;var a={id:t};d["a"].departedit(a).then((function(t){e.departchildedit=t}))},handleDelete:function(t){var e=this;this.$confirm("此操作将删除该科室, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t};d["a"].departdel(a).then((function(t){e.$message({type:"success",message:t.msg,duration:1e3}),e.reload()}))}))["catch"]((function(){e.$message({type:"info",message:"已取消操作",duration:1e3})}))}}}),k=x,y=(a("3ab0"),Object(p["a"])(k,s,i,!1,null,null,null));e["default"]=y.exports},f0f0:function(t,e,a){"use strict";var s=a("6063"),i=a.n(s);i.a},f4df:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"powerheadThre"},[a("ul",{staticClass:"list"},[a("li",{staticClass:"stafflist",on:{click:t.staff}},[t._v("员工列表")]),a("li",{staticClass:"departlist",on:{click:t.depart}},[t._v("科室列表")]),a("li",{staticClass:"rolelist",on:{click:t.role}},[t._v("角色列表")]),a("li",{staticClass:"editpowlist",on:{click:t.editpow}},[t._v("编辑权限")])]),a("el-button",{staticClass:"powerAdd",attrs:{type:"primary",size:"medium",icon:"el-icon-circle-plus"},on:{click:t.staffadd}},[t._v("新增 ")])],1)])},i=[],l=(a("6022"),{data:function(){return{all:{},job_number:""}},methods:{staffadd:function(){this.$parent.fathpowadd()},staff:function(){this.$router.push("/Staff")},depart:function(){this.$router.push("/Department")},role:function(){this.$router.push("/Role")},editpow:function(){this.$router.push("/Edit")}}}),r=l,n=(a("4744"),a("2877")),d=Object(n["a"])(r,s,i,!1,null,"f1b496d4",null);e["a"]=d.exports}}]);