chunk-199d3812.cea737c8.js 39 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-199d3812"],{1813:function(e,t,r){"use strict";r("d20d")},"1f34":function(e,t,r){"use strict";r.r(t);var a=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-input",{staticStyle:{"margin-bottom":"20px"},attrs:{placeholder:"请输入部门名称",clearable:"",size:"small","prefix-icon":"el-icon-search"},model:{value:e.deptName,callback:function(t){e.deptName=t},expression:"deptName"}})],1),a("div",{staticClass:"head-container"},[a("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"expand-on-click-node":!1,"filter-node-method":e.filterNode,"node-key":"id","default-expand-all":"","highlight-current":""},on:{"node-click":e.handleNodeClick}})],1)]),a("el-col",{attrs:{span:20,xs:24}},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入用户名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入手机号码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.phonenumber,callback:function(t){e.$set(e.queryParams,"phonenumber",t)},expression:"queryParams.phonenumber"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"用户状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.sys_normal_disable,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"创建时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:add"],expression:"['system:user:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:import"],expression:"['system:user:import']"}],attrs:{type:"info",plain:"",icon:"el-icon-upload2",size:"mini"},on:{click:e.handleImport}},[e._v("导入")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:export"],expression:"['system:user:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch,columns:e.columns},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),e.columns[0].visible?a("el-table-column",{key:"userId",attrs:{label:"用户编号",align:"center",prop:"userId"}}):e._e(),a("el-table-column",{attrs:{label:"头像",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.avatar?a("img",{staticClass:"circle",attrs:{src:e.baseUrl+i.avatar}}):a("img",{staticClass:"circle",attrs:{src:r("efc5")}})]}}])}),e.columns[1].visible?a("el-table-column",{key:"userName",attrs:{label:"用户名称",align:"center",prop:"userName","show-overflow-tooltip":!0}}):e._e(),e.columns[2].visible?a("el-table-column",{key:"nickName",attrs:{label:"用户昵称",align:"center",prop:"nickName","show-overflow-tooltip":!0}}):e._e(),e.columns[3].visible?a("el-table-column",{key:"deptName",attrs:{label:"部门",align:"center",prop:"dept.deptName","show-overflow-tooltip":!0}}):e._e(),a("el-table-column",{attrs:{label:"岗位",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(r.postNames)+" ")]}}])}),e.columns[4].visible?a("el-table-column",{key:"phonenumber",attrs:{label:"手机号码",align:"center",prop:"phonenumber",width:"120"}}):e._e(),a("el-table-column",{attrs:{label:"简介",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(r.doctorBlurb)+" ")]}}])}),e.columns[5].visible?a("el-table-column",{key:"status",attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":"0","inactive-value":"1"},on:{change:function(r){return e.handleStatusChange(t.row)}},model:{value:t.row.status,callback:function(r){e.$set(t.row,"status",r)},expression:"scope.row.status"}})]}}],null,!1,3955094654)}):e._e(),e.columns[6].visible?a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}],null,!1,3078210614)}):e._e(),a("el-table-column",{attrs:{label:"操作",align:"center",width:"160","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return 1!==t.row.userId?[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")]),a("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:resetPwd","system:user:edit"],expression:"['system:user:resetPwd', 'system:user:edit']"}],attrs:{size:"mini"},on:{command:function(r){return e.handleCommand(r,t.row)}}},[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-d-arrow-right"}},[e._v("更多")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{command:"handleResetPwd",icon:"el-icon-key"}},[e._v("重置密码")]),a("el-dropdown-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{command:"handleAuthRole",icon:"el-icon-circle-check"}},[e._v("分配角色")])],1)],1)]:void 0}}],null,!0)})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)],1),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"1000px","append-to-body":"","close-on-press-escape":!1,"close-on-click-modal":!1,"before-close":e.cancel},on:{"update:visible":function(t){e.open=t}}},[a("div",{staticStyle:{"max-height":"70vh",overflow:"auto","padding-right":"5px"}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"用户昵称",prop:"nickName"}},[a("el-input",{attrs:{placeholder:"请输入用户昵称",maxlength:"30"},model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"归属部门",prop:"deptId"}},[a("treeselect",{attrs:{options:e.deptOptions,"show-count":!0,placeholder:"请选择归属部门"},model:{value:e.form.deptId,callback:function(t){e.$set(e.form,"deptId",t)},expression:"form.deptId"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[a("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"11"},model:{value:e.form.phonenumber,callback:function(t){e.$set(e.form,"phonenumber",t)},expression:"form.phonenumber"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入邮箱",maxlength:"50"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[void 0==e.form.userId?a("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[a("el-input",{attrs:{placeholder:"请输入用户名称",maxlength:"30"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1):e._e()],1),a("el-col",{attrs:{span:12}},[void 0==e.form.userId?a("el-form-item",{attrs:{label:"用户密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入用户密码",type:"password",maxlength:"20","show-password":""},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e()],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"用户性别"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择性别"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.dict.type.sys_user_sex,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"状态"}},[a("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.dict.type.sys_normal_disable,(function(t){return a("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"岗位"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择岗位"},model:{value:e.form.postIds,callback:function(t){e.$set(e.form,"postIds",t)},expression:"form.postIds"}},e._l(e.postOptions,(function(e){return a("el-option",{key:e.postId,attrs:{label:e.postName,value:e.postId,disabled:1==e.status}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择角色"},model:{value:e.form.roleIds,callback:function(t){e.$set(e.form,"roleIds",t)},expression:"form.roleIds"}},e._l(e.roleOptions,(function(e){return a("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId,disabled:1==e.status}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医师资格证书"}},[a("el-upload",{ref:"uploadRef1",attrs:{"before-upload":e.beforeUpload,action:"#","list-type":"picture-card","http-request":e.handlePictureCardPreview1,"on-remove":e.handleRemove1,"file-list":e.imgFileList1,"on-change":e.handleChange1,accept:".jpg,.jpeg,.png,.gif,"}},[a("i",{staticClass:"el-icon-plus"})]),e.dialogImgVisible1?a("el-dialog",{attrs:{visible:e.dialogImgVisible1},on:{"update:visible":function(t){e.dialogImgVisible1=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl1}})]):e._e()],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医师头像"}},[a("el-upload",{ref:"uploadRef2",attrs:{"before-upload":e.beforeUpload,action:"#","list-type":"picture-card","http-request":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.imgFileList2,"on-change":e.handleChange2,accept:".jpg,.jpeg,.png,.gif,"}},[a("i",{staticClass:"el-icon-plus"})]),e.dialogImgVisible2?a("el-dialog",{attrs:{visible:e.dialogImgVisible2},on:{"update:visible":function(t){e.dialogImgVisible2=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl2}})]):e._e()],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医师执业证书"}},[a("el-upload",{ref:"uploadRef3",attrs:{"before-upload":e.beforeUpload,action:"#","list-type":"picture-card","http-request":e.handlePictureCardPreview3,"on-remove":e.handleRemove3,"file-list":e.imgFileList3,"on-change":e.handleChange3,accept:".jpg,.jpeg,.png,.gif,"}},[a("i",{staticClass:"el-icon-plus"})]),e.dialogImgVisible3?a("el-dialog",{attrs:{visible:e.dialogImgVisible3},on:{"update:visible":function(t){e.dialogImgVisible3=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl3}})]):e._e()],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否展示患者端"}},[a("el-radio-group",{model:{value:e.form.showPatient,callback:function(t){e.$set(e.form,"showPatient",t)},expression:"form.showPatient"}},[a("el-radio",{attrs:{label:1}},[e._v("是")]),a("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医师资格证书编号"}},[a("el-input",{attrs:{placeholder:"请输入医师资格证书编号",maxlength:"11"},model:{value:e.form.physicianQualificationCertificateNum,callback:function(t){e.$set(e.form,"physicianQualificationCertificateNum",t)},expression:"form.physicianQualificationCertificateNum"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医师执业证书编号"}},[a("el-input",{attrs:{placeholder:"请输入医师执业证书编号",maxlength:"50"},model:{value:e.form.medicalPracticingCertificateNum,callback:function(t){e.$set(e.form,"medicalPracticingCertificateNum",t)},expression:"form.medicalPracticingCertificateNum"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医生擅长"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择医师资格证书编号"},model:{value:e.form.doctorProficientList,callback:function(t){e.$set(e.form,"doctorProficientList",t)},expression:"form.doctorProficientList"}},e._l(e.businessDictDataOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.dictName,value:e.dictName}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"医生简介"}},[a("el-input",{attrs:{placeholder:"请输入医生简介"},model:{value:e.form.doctorBlurb,callback:function(t){e.$set(e.form,"doctorBlurb",t)},expression:"form.doctorBlurb"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1)],1),a("div",{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.submitForm}},[e._v("确 定")])],1)]),a("el-dialog",{attrs:{title:e.upload.title,visible:e.upload.open,width:"400px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.upload,"open",t)}}},[a("el-upload",{ref:"upload",attrs:{limit:1,accept:".xlsx, .xls",headers:e.upload.headers,action:e.upload.url+"?updateSupport="+e.upload.updateSupport,disabled:e.upload.isUploading,"on-progress":e.handleFileUploadProgress,"on-success":e.handleFileSuccess,"auto-upload":!1,drag:""}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),a("em",[e._v("点击上传")])]),a("div",{staticClass:"el-upload__tip text-center",attrs:{slot:"tip"},slot:"tip"},[a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[a("el-checkbox",{model:{value:e.upload.updateSupport,callback:function(t){e.$set(e.upload,"updateSupport",t)},expression:"upload.updateSupport"}}),e._v(" 是否更新已经存在的用户数据 ")],1),a("span",[e._v("仅允许导入xls、xlsx格式文件。")]),a("el-link",{staticStyle:{"font-size":"12px","vertical-align":"baseline"},attrs:{type:"primary",underline:!1},on:{click:e.importTemplate}},[e._v("下载模板")])],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitFileForm}},[e._v("确 定")]),a("el-button",{on:{click:function(t){e.upload.open=!1}}},[e._v("取 消")])],1)],1)],1)},i=[],n=r("ade3"),s=r("5530"),l=r("c7eb"),o=r("1da1"),u=(r("4de4"),r("a15b"),r("d81d"),r("14d9"),r("fb6a"),r("b0c0"),r("d3b7"),r("ac1f"),r("00b4"),r("c0c7")),c=r("5f87"),d=r("ca17"),m=r.n(d),p=(r("542c"),r("943d")),f={name:"User",dicts:["sys_normal_disable","sys_user_sex"],components:{Treeselect:m.a},data:function(){return{baseUrl:"http://172.17.0.1/api/",dialogImageUrl1:"",dialogImgVisible1:!1,imgFileList1:[],imgFileFlag1:"imgFileList1",dialogImageUrl2:"",dialogImgVisible2:!1,imgFileList2:[],imgFileFlag2:"imgFileList2",dialogImageUrl3:"",dialogImgVisible3:!1,imgFileList3:[],imgFileFlag3:"imgFileList3",fileType:["png","jpg","jpeg","gif"],businessDictDataOptions:[],loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,userList:null,title:"",deptOptions:void 0,open:!1,deptName:void 0,initPassword:void 0,dateRange:[],postOptions:[],roleOptions:[],form:{},defaultProps:{children:"children",label:"label"},upload:{open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Object(c["a"])()},url:"http://172.17.0.1/api//system/user/importData"},queryParams:{pageNum:1,pageSize:10,userName:void 0,phonenumber:void 0,status:void 0,deptId:void 0},columns:[{key:0,label:"用户编号",visible:!0},{key:1,label:"用户名称",visible:!0},{key:2,label:"用户昵称",visible:!0},{key:3,label:"部门",visible:!0},{key:4,label:"手机号码",visible:!0},{key:5,label:"状态",visible:!0},{key:6,label:"创建时间",visible:!0}],rules:{userName:[{required:!0,message:"用户名称不能为空",trigger:"blur"},{min:2,max:20,message:"用户名称长度必须介于 2 和 20 之间",trigger:"blur"}],nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],password:[{required:!0,message:"用户密码不能为空",trigger:"blur"},{min:5,max:20,message:"用户密码长度必须介于 5 和 20 之间",trigger:"blur"},{pattern:/^[^<>"'|\\]+$/,message:"不能包含非法字符:< > \" ' \\ |",trigger:"blur"}],email:[{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},watch:{deptName:function(e){this.$refs.tree.filter(e)}},created:function(){var e=this;this.getList(),this.getDeptTree(),this.getConfigKey("sys.user.initPassword").then((function(t){e.initPassword=t.msg})),this.initBusinessDictData()},methods:Object(n["a"])(Object(n["a"])(Object(n["a"])({initBusinessDictData:function(){var e=this;return Object(o["a"])(Object(l["a"])().mark((function t(){var r;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(p["j"])("erm_doctor_tags");case 2:r=t.sent,e.businessDictDataOptions=r.data;case 4:case"end":return t.stop()}}),t)})))()},getList:function(){var e=this;this.loading=!0,Object(u["h"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.userList=t.rows,e.total=t.total,e.loading=!1}))},getDeptTree:function(){var e=this;Object(u["d"])().then((function(t){e.deptOptions=t.data}))},filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},handleNodeClick:function(e){this.queryParams.deptId=e.id,this.handleQuery()},handleStatusChange:function(e){var t=this,r="0"===e.status?"启用":"停用";this.$modal.confirm('确认要"'+r+'""'+e.userName+'"用户吗?').then((function(){return Object(u["b"])(e.userId,e.status)})).then((function(){t.$modal.msgSuccess(r+"成功")})).catch((function(){e.status="0"===e.status?"1":"0"}))},cancel:function(){this.open=!1,this.imgFileList1=[],this.imgFileList2=[],this.imgFileList3=[],this.reset()},reset:function(){this.form={userId:void 0,deptId:void 0,userName:void 0,nickName:void 0,password:void 0,phonenumber:void 0,email:void 0,sex:void 0,status:"0",remark:void 0,postIds:[],roleIds:[]},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.queryParams.deptId=void 0,this.$refs.tree.setCurrentKey(null),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.userId})),this.single=1!=e.length,this.multiple=!e.length},handleCommand:function(e,t){switch(e){case"handleResetPwd":this.handleResetPwd(t);break;case"handleAuthRole":this.handleAuthRole(t);break;default:break}},handleAdd:function(){var e=this;this.reset(),Object(u["f"])().then((function(t){e.postOptions=t.posts,e.roleOptions=t.roles,e.open=!0,e.title="添加用户",e.form.password=e.initPassword,e.form.showPatient=1,e.$nextTick((function(){e.imgFileList1.length>0?e.$refs.uploadRef1.$el.children[1].style.display="none":e.$refs.uploadRef1.$el.children[1].style.display="block"})),e.$nextTick((function(){e.imgFileList2.length>0?e.$refs.uploadRef2.$el.children[1].style.display="none":e.$refs.uploadRef2.$el.children[1].style.display="block"})),e.$nextTick((function(){e.imgFileList3.length>0?e.$refs.uploadRef3.$el.children[1].style.display="none":e.$refs.uploadRef3.$el.children[1].style.display="block"}))}))},handleUpdate:function(e){var t=this;this.reset();var r=e.userId||this.ids;this.open=!0,Object(u["f"])(r).then((function(e){t.form=e.data,t.postOptions=e.posts,t.roleOptions=e.roles,t.$set(t.form,"postIds",e.postIds),t.$set(t.form,"roleIds",e.roleIds),t.$nextTick((function(){e.data.physicianQualificationCertificatePic?(t.dialogImageUrl1=t.baseUrl+e.data.physicianQualificationCertificatePic,t.imgFileList1.push({uid:Date.now(),url:t.baseUrl+e.data.physicianQualificationCertificatePic,name:"医师资格证书"}),t.$nextTick((function(){t.imgFileList1.length>0?t.$refs.uploadRef1.$el.children[1].style.display="none":t.$refs.uploadRef1.$el.children[1].style.display="block"}))):t.$refs.uploadRef1.$el.children[1].style.display="block",e.data.avatar?(t.dialogImageUrl2=t.baseUrl+e.data.avatar,t.imgFileList2.push({uid:Date.now(),url:t.baseUrl+e.data.avatar,name:"医师头像"}),t.$nextTick((function(){t.imgFileList2.length>0?t.$refs.uploadRef2.$el.children[1].style.display="none":t.$refs.uploadRef2.$el.children[1].style.display="block"}))):t.$refs.uploadRef2.$el.children[1].style.display="block",e.data.medicalPracticingCertificatePic?(t.dialogImageUrl3=t.baseUrl+e.data.medicalPracticingCertificatePic,t.imgFileList3.push({uid:Date.now(),url:t.baseUrl+e.data.medicalPracticingCertificatePic,name:"医师头像"}),t.$nextTick((function(){t.imgFileList3.length>0?t.$refs.uploadRef3.$el.children[1].style.display="none":t.$refs.uploadRef3.$el.children[1].style.display="block"}))):t.$refs.uploadRef3.$el.children[1].style.display="block",e.data.doctorProficient&&(t.form.doctorProficientList=e.data.doctorProficient.split(",")),t.title="修改用户",t.form.password=""}))}))},handleResetPwd:function(e){var t=this;this.$prompt('请输入"'+e.userName+'"的新密码',"提示",{confirmButtonText:"确定",cancelButtonText:"取消",closeOnClickModal:!1,inputPattern:/^.{5,20}$/,inputErrorMessage:"用户密码长度必须介于 5 和 20 之间",inputValidator:function(e){if(/<|>|"|'|\||\\/.test(e))return"不能包含非法字符:< > \" ' \\ |"}}).then((function(r){var a=r.value;Object(u["i"])(e.userId,a).then((function(e){t.$modal.msgSuccess("修改成功,新密码是:"+a)}))})).catch((function(){}))},handleAuthRole:function(e){var t=e.userId;this.$router.push("/system/user-auth/role/"+t)},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(Array.isArray(e.form.doctorProficientList)&&e.form.doctorProficientList.length&&(e.form.doctorProficient=e.form.doctorProficientList.join()),void 0!=e.form.userId?Object(u["k"])(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList(),e.imgFileList1=[],e.imgFileList2=[],e.imgFileList3=[]})):(Array.isArray(e.form.doctorProficientList)&&e.form.doctorProficientList.length&&(e.form.doctorProficient=e.form.doctorProficientList.join()),Object(u["a"])(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList(),e.imgFileList1=[],e.imgFileList2=[],e.imgFileList3=[]}))))}))},handleDelete:function(e){var t=this,r=e.userId||this.ids;this.$modal.confirm('是否确认删除用户编号为"'+r+'"的数据项?').then((function(){return Object(u["c"])(r)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("system/user/export",Object(s["a"])({},this.queryParams),"user_".concat((new Date).getTime(),".xlsx"))},handleImport:function(){this.upload.title="用户导入",this.upload.open=!0},importTemplate:function(){this.download("system/user/importTemplate",{},"user_template_".concat((new Date).getTime(),".xlsx"))},handleFileUploadProgress:function(e,t,r){this.upload.isUploading=!0},handleFileSuccess:function(e,t,r){this.upload.open=!1,this.upload.isUploading=!1,this.$refs.upload.clearFiles(),this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"+e.msg+"</div>","导入结果",{dangerouslyUseHTMLString:!0}),this.getList()},submitFileForm:function(){this.$refs.upload.submit()},beforeUpload:function(e){var t=!1;if(this.fileType.length){var r="";e.name.lastIndexOf(".")>-1&&(r=e.name.slice(e.name.lastIndexOf(".")+1)),t=this.fileType.some((function(t){return e.type.indexOf(t)>-1||!!(r&&r.indexOf(t)>-1)}))}else t=e.type.indexOf("image")>-1;return!!t||(this.$modal.msgError("文件格式不正确, 请上传".concat(this.fileType.join("/"),"图片格式文件!")),!1)},handleRemove1:function(e,t){this.imgFileList1=t,this.dialogImageUrl1="",t.length||(this.$refs.uploadRef1.$el.children[this.$refs.uploadRef1.$el.children.length-1].style.display="block",this.imgFileFlag1="imgFileList1")},handleRemove2:function(e,t){this.imgFileList2=t,this.dialogImageUrl2="",t.length||(this.$refs.uploadRef2.$el.children[this.$refs.uploadRef2.$el.children.length-1].style.display="block",this.imgFileFlag2="imgFileList2")},handleRemove3:function(e,t){this.imgFileList3=t,this.dialogImageUrl3="",t.length||(this.$refs.uploadRef3.$el.children[this.$refs.uploadRef3.$el.children.length-1].style.display="block",this.imgFileFlag3="imgFileList3")},handlePictureCardPreview1:function(e){this.dialogImageUrl1=e.url,this.dialogImgVisible1=!0},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogImgVisible2=!0},handlePictureCardPreview3:function(e){this.dialogImageUrl3=e.url,this.dialogImgVisible3=!0},handleChange1:function(e,t){t.length>0?this.$refs.uploadRef1.$el.children[this.$refs.uploadRef1.$el.children.length-1].style.display="none":this.$refs.uploadRef1.$el.children[this.$refs.uploadRef1.$el.children.length-1].style.display="block"},handleChange2:function(e,t){t.length>0?this.$refs.uploadRef2.$el.children[this.$refs.uploadRef2.$el.children.length-1].style.display="none":this.$refs.uploadRef2.$el.children[this.$refs.uploadRef2.$el.children.length-1].style.display="block"},handleChange3:function(e,t){t.length>0?this.$refs.uploadRef3.$el.children[this.$refs.uploadRef3.$el.children.length-1].style.display="none":this.$refs.uploadRef3.$el.children[this.$refs.uploadRef3.$el.children.length-1].style.display="block"}},"handlePictureCardPreview1",(function(e){var t=this;return Object(o["a"])(Object(l["a"])().mark((function r(){var a,i;return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,e){r.next=3;break}return r.abrupt("return",t.$message.error("文件有误"));case 3:return a=new FormData,a.append("file",e.file),r.next=7,Object(u["n"])(a);case 7:if(i=r.sent,t.dialogImageUrl1=i.url,t.$nextTick((function(){t.dialogVisible1=!0})),200===i.code){r.next=12;break}return r.abrupt("return",t.$message.error("文件格式不支持"));case 12:t.form.physicianQualificationCertificatePic=i.fileName,r.next=18;break;case 15:r.prev=15,r.t0=r["catch"](0),t.ruleForm.imgFileList=[];case 18:case"end":return r.stop()}}),r,null,[[0,15]])})))()})),"handlePictureCardPreview2",(function(e){var t=this;return Object(o["a"])(Object(l["a"])().mark((function r(){var a,i;return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,e){r.next=3;break}return r.abrupt("return",t.$message.error("文件有误"));case 3:return a=new FormData,a.append("file",e.file),r.next=7,Object(u["n"])(a);case 7:if(i=r.sent,t.dialogImageUrl2=i.url,t.$nextTick((function(){t.dialogVisible2=!0})),200===i.code){r.next=12;break}return r.abrupt("return",t.$message.error("文件格式不支持"));case 12:t.form.avatar=i.fileName,r.next=18;break;case 15:r.prev=15,r.t0=r["catch"](0),t.ruleForm.imgFileList=[];case 18:case"end":return r.stop()}}),r,null,[[0,15]])})))()})),"handlePictureCardPreview3",(function(e){var t=this;return Object(o["a"])(Object(l["a"])().mark((function r(){var a,i;return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,e){r.next=3;break}return r.abrupt("return",t.$message.error("文件有误"));case 3:return a=new FormData,a.append("file",e.file),r.next=7,Object(u["n"])(a);case 7:if(i=r.sent,t.dialogImageUrl3=i.url,t.$nextTick((function(){t.dialogVisible3=!0})),200===i.code){r.next=12;break}return r.abrupt("return",t.$message.error("文件格式不支持"));case 12:t.form.medicalPracticingCertificatePic=i.fileName,r.next=18;break;case 15:r.prev=15,r.t0=r["catch"](0),t.ruleForm.imgFileList=[];case 18:case"end":return r.stop()}}),r,null,[[0,15]])})))()}))},h=f,g=(r("1813"),r("2877")),b=Object(g["a"])(h,a,i,!1,null,"de5d900a",null);t["default"]=b.exports},"943d":function(e,t,r){"use strict";r.d(t,"p",(function(){return i})),r.d(t,"g",(function(){return n})),r.d(t,"r",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"q",(function(){return o})),r.d(t,"c",(function(){return u})),r.d(t,"s",(function(){return c})),r.d(t,"h",(function(){return d})),r.d(t,"u",(function(){return m})),r.d(t,"A",(function(){return p})),r.d(t,"e",(function(){return f})),r.d(t,"t",(function(){return h})),r.d(t,"L",(function(){return g})),r.d(t,"v",(function(){return b})),r.d(t,"i",(function(){return y})),r.d(t,"z",(function(){return v})),r.d(t,"o",(function(){return w})),r.d(t,"d",(function(){return k})),r.d(t,"K",(function(){return x})),r.d(t,"P",(function(){return $})),r.d(t,"O",(function(){return j})),r.d(t,"N",(function(){return O})),r.d(t,"S",(function(){return P})),r.d(t,"M",(function(){return _})),r.d(t,"Q",(function(){return I})),r.d(t,"T",(function(){return F})),r.d(t,"U",(function(){return N})),r.d(t,"V",(function(){return L})),r.d(t,"R",(function(){return R})),r.d(t,"D",(function(){return C})),r.d(t,"G",(function(){return S})),r.d(t,"F",(function(){return U})),r.d(t,"E",(function(){return T})),r.d(t,"B",(function(){return q})),r.d(t,"H",(function(){return D})),r.d(t,"a",(function(){return z})),r.d(t,"m",(function(){return V})),r.d(t,"n",(function(){return A})),r.d(t,"J",(function(){return Q})),r.d(t,"I",(function(){return B})),r.d(t,"b",(function(){return E})),r.d(t,"w",(function(){return M})),r.d(t,"C",(function(){return J})),r.d(t,"W",(function(){return K})),r.d(t,"j",(function(){return H})),r.d(t,"x",(function(){return G})),r.d(t,"y",(function(){return W})),r.d(t,"l",(function(){return X})),r.d(t,"k",(function(){return Y}));var a=r("b775");function i(e){return Object(a["a"])({url:"/system/diagnosis-type/tree",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/project/appointment-project/tree",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/system/diagnosis-type/remove?ids=".concat(e.ids),method:"delete"})}function l(e){return Object(a["a"])({url:"/project/appointment-project/remove?ids=".concat(e.ids),method:"delete"})}function o(e){return Object(a["a"])({url:"/system/diagnosis-type",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/project/appointment-project",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/system/diagnosis-type",method:"put",data:e})}function d(e){return Object(a["a"])({url:"/project/appointment-project",method:"put",data:e})}function m(e){return Object(a["a"])({url:"/system/diagnosis-type-template/list",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/system/diagnosis-type-template/listToPatientId",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/project/appointment-project/list",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/system/diagnosis-type-template",method:"post",data:e})}function g(){return Object(a["a"])({url:"/system/dict/data/type/erm_diagnosis_type_template_name",method:"get"})}function b(e){return Object(a["a"])({url:"/system/diagnosis-type-template",method:"put",data:e})}function y(e){return Object(a["a"])({url:"/project/appointment-project",method:"put",data:e})}function v(e){return Object(a["a"])({url:"/system/diagnosis-type-template/importTemplate",method:"post",data:e,responseType:"blob",timeOut:6e4})}function w(e){return Object(a["a"])({url:"/system/diagnosis-type/crumb",method:"get",params:e})}function k(e){return Object(a["a"])({url:"/project/appointment-project/crumb",method:"get",params:e})}function x(){return Object(a["a"])({url:"/system/dict/data/type/erm_citizenship",method:"get"})}function $(){return Object(a["a"])({url:"/system/dict/data/type/erm_occupation",method:"get"})}function j(){return Object(a["a"])({url:"/system/dict/data/type/erm_nationality",method:"get"})}function O(){return Object(a["a"])({url:"/system/dict/data/type/erm_marriage",method:"get"})}function P(){return Object(a["a"])({url:"/system/dict/data/type/erm_patient_source",method:"get"})}function _(){return Object(a["a"])({url:"/system/dict/data/type/erm_family_history",method:"get"})}function I(){return Object(a["a"])({url:"/system/dict/data/type/erm_past_history",method:"get"})}function F(){return Object(a["a"])({url:"/system/dict/data/type/erm_patient_tags",method:"get"})}function N(){return Object(a["a"])({url:"/system/dict/data/type/erm_personal_relationship",method:"get"})}function L(){return Object(a["a"])({url:"/system/dict/data/type/erm_reservation_status",method:"get"})}function R(){return Object(a["a"])({url:"/system/dict/data/type/erm_patient_blood",method:"get"})}function C(e){return Object(a["a"])({url:"/patient/patient",method:"post",data:e})}function S(){return Object(a["a"])({url:"/patient/patient/list",method:"get"})}function U(e){return Object(a["a"])({url:"/patient/patient/detail",method:"get",params:e})}function T(e){return Object(a["a"])({url:"/patientAppointment/patientAppointment-appointment/list",method:"get",params:e})}function q(e){return Object(a["a"])({url:"/patient/medical-record/list",method:"get",params:e})}function D(e){return Object(a["a"])({url:"/patient/medical-record",method:"post",data:e})}function z(){return Object(a["a"])({url:"/system/user/allList",method:"get"})}function V(){return Object(a["a"])({url:"/system/user/deptTree",method:"get"})}function A(e){return Object(a["a"])({url:"/system/user/deptTreeByName?deptName=".concat(e),method:"get"})}function Q(e){return Object(a["a"])({url:"/patient/medical-record/detail?id=".concat(e),method:"get"})}function B(){return Object(a["a"])({url:"/project/appointment-project/list",method:"get"})}function E(e){return Object(a["a"])({url:"/patientAppointment/patientAppointment-appointment",method:"post",data:e})}function M(){return Object(a["a"])({url:"/doctor/list",method:"get"})}function J(e){return Object(a["a"])({url:"/patientAppointment/patientAppointment-appointment/modifyState",method:"post",data:e})}function K(e){return Object(a["a"])({url:"/patient/medical-record/teethListByPatientId",method:"get",params:e})}function H(e){return Object(a["a"])({url:"/system/business-dict-data/list?dictType=".concat(e),method:"get"})}function G(e){return Object(a["a"])({url:"/patient/medical-record/findMedicalInfo?medicalRecordId=".concat(e),method:"get"})}function W(e){return Object(a["a"])({url:"/patient/medical-record/html2Pdf",method:"post",responseType:"blob",data:e,timeout:3e5})}function X(e){return Object(a["a"])({url:"/system/business-dict-data",method:"put",data:e})}function Y(e){return Object(a["a"])({url:"/system/business-dict-data",method:"post",data:e})}},c0c7:function(e,t,r){"use strict";r.d(t,"h",(function(){return n})),r.d(t,"f",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"k",(function(){return o})),r.d(t,"c",(function(){return u})),r.d(t,"i",(function(){return c})),r.d(t,"b",(function(){return d})),r.d(t,"g",(function(){return m})),r.d(t,"l",(function(){return p})),r.d(t,"m",(function(){return f})),r.d(t,"o",(function(){return h})),r.d(t,"n",(function(){return g})),r.d(t,"e",(function(){return b})),r.d(t,"j",(function(){return y})),r.d(t,"d",(function(){return v}));var a=r("b775"),i=r("c38a");function n(e){return Object(a["a"])({url:"/system/user/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/system/user/"+Object(i["e"])(e),method:"get"})}function l(e){return Object(a["a"])({url:"/system/user",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/system/user",method:"put",data:e})}function u(e){return Object(a["a"])({url:"/system/user/"+e,method:"delete"})}function c(e,t){var r={userId:e,password:t};return Object(a["a"])({url:"/system/user/resetPwd",method:"put",data:r})}function d(e,t){var r={userId:e,status:t};return Object(a["a"])({url:"/system/user/changeStatus",method:"put",data:r})}function m(){return Object(a["a"])({url:"/system/user/profile",method:"get"})}function p(e){return Object(a["a"])({url:"/system/user/profile",method:"put",data:e})}function f(e,t){var r={oldPassword:e,newPassword:t};return Object(a["a"])({url:"/system/user/profile/updatePwd",method:"put",params:r})}function h(e){return Object(a["a"])({url:"/system/user/profile/avatar",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/common/upload",method:"post",data:e})}function b(e){return Object(a["a"])({url:"/system/user/authRole/"+e,method:"get"})}function y(e){return Object(a["a"])({url:"/system/user/authRole",method:"put",params:e})}function v(){return Object(a["a"])({url:"/system/user/deptTree",method:"get"})}},d20d:function(e,t,r){}}]);