WXL (wul)
8 小时以前 1feb410410781eb56159c8fdd856e68d2c23e0a4
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-733c6a23"],{4416:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"Questionnairemanagement"},[r("div",{staticClass:"leftvlue"},[r("div",{staticClass:"leftvlue-bg"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:24,xs:24}},[r("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":"98px"}},[r("el-form-item",{attrs:{"label-width":"138px",label:"主治医生",prop:"userName"}},[r("el-input",{attrs:{placeholder:"请输入医生姓名",maxlength:"30"},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.drname,callback:function(t){e.$set(e.queryParams,"drname",t)},expression:"queryParams.drname"}})],1),r("el-form-item",{attrs:{label:"患者档案号",prop:"visitno"}},[r("el-input",{attrs:{placeholder:"请输入编号",maxlength:"30"},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.visitno,callback:function(t){e.$set(e.queryParams,"visitno",t)},expression:"queryParams.visitno"}})],1),r("el-form-item",{attrs:{label:"患者姓名",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入姓名",maxlength:"30"},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.name,callback:function(t){e.$set(e.queryParams,"name",t)},expression:"queryParams.name"}})],1),r("el-form-item",{attrs:{label:"联系电话",prop:"telcode"}},[r("el-input",{attrs:{placeholder:"请输入联系电话",maxlength:"30"},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.telcode,callback:function(t){e.$set(e.queryParams,"telcode",t)},expression:"queryParams.telcode"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:e.handleQuery}},[e._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("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:"medium",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-s-promotion",size:"medium"},on:{click:e.distribute}},[e._v("向任务派发患者")])],1),r("el-col",{attrs:{span:6}},[r("div",{staticClass:"documentf"},[r("div",{staticClass:"document"},[r("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:"medium"},on:{click:e.handleImport}},[e._v("导入")])],1),r("div",{staticClass:"document"},[r("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:"medium"},on:{click:e.handleExport}},[e._v("导出")])],1)])])],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList,height:"808"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),r("el-table-column",{key:"name",attrs:{label:"姓名",width:"100",align:"center",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.gettoken360(t.row.idcardno,t.row.drcode,t.row.drname)}}},[r("span",{staticClass:"button-textsc"},[e._v(e._s(t.row.name))])])]}}])}),r("el-table-column",{key:"sex",attrs:{label:"性别",width:"100",align:"center",prop:"sex"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(1==t.row.sex?"男":"女"))])]}}])}),r("el-table-column",{key:"age",attrs:{label:"年龄",align:"center",prop:"age",width:"100"}}),r("el-table-column",{key:"birthdate",attrs:{label:"出生年月",align:"center",prop:"birthdate",width:"120"}}),r("el-table-column",{key:"placeOfResidence",attrs:{label:"居住地",align:"center",prop:"placeOfResidence",width:"150","show-overflow-tooltip":!0}}),r("el-table-column",{key:"tagList",attrs:{label:"患者标签",align:"center",prop:"tagList",width:"180","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.tagList,(function(t){return r("span",[e._v(e._s(t.tagname)+" ")])}))}}])}),r("el-table-column",{key:"idcardno",attrs:{label:"证件号码",align:"center",prop:"idcardno",width:"190"}}),r("el-table-column",{key:"telcode",attrs:{label:"联系方式",align:"center",prop:"telcode"}}),r("el-table-column",{key:"createTime",attrs:{label:"建档日期",align:"center",prop:"createTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.formatTime(t.row.createTime)))])]}}])}),r("el-table-column",{attrs:{label:"更新日期",align:"center",prop:"archivetime"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.formatTime(t.row.archivetime)))])]}}])}),r("el-table-column",{attrs:{fixed:"right",label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.$router.push({path:"/patient/patient/profile/",query:{id:t.row.id}})}}},[r("span",{staticClass:"button-textsc"},[r("i",{staticClass:"el-icon-zoom-in"}),e._v("详情编辑")])]),r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.handleUpdate(t.row)}}},[r("span",{staticClass:"button-textxga"},[r("i",{staticClass:"el-icon-edit"}),e._v("患者过滤")])])]}}])})],1),r("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)],1)]),r("el-dialog",{attrs:{title:"选择任务",visible:e.distributeVisible,width:"70%"},on:{"update:visible":function(t){e.distributeVisible=t}}},[r("div",{staticClass:"preview-left"},[r("el-form",{ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"98px"}},[r("el-select",{attrs:{placeholder:"请选择任务类型"},on:{change:e.distribute},model:{value:e.tasktopic,callback:function(t){e.tasktopic=t},expression:"tasktopic"}},e._l(e.taskoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.taskuserList}},[r("el-table-column",{key:"taskName",attrs:{label:"任务名称",fixed:"",align:"center",prop:"taskName",width:"140","show-overflow-tooltip":!0}}),r("el-table-column",{key:"taskDesc",attrs:{label:"任务描述",align:"center",prop:"taskDesc",width:"180","show-overflow-tooltip":!0}}),r("el-table-column",{key:"templatename",attrs:{label:"服务项目",align:"center",prop:"templatename"}}),r("el-table-column",{key:"nickName",attrs:{label:"总任务/已随访",align:"center",width:"120",prop:"nickName"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.wfs?t.row.wfs+t.row.yfs:"")+"/"+e._s(t.row.yfs))])]}}])}),r("el-table-column",{key:"createBy",attrs:{label:"创建人",align:"center",prop:"createBy",width:"120","show-overflow-tooltip":!0}}),r("el-table-column",{attrs:{label:"创建时间",sortable:"",align:"center",prop:"createTime",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.formatTime(t.row.createTime)))])]}}])}),r("el-table-column",{key:"sendState",attrs:{label:"状态",fixed:"right",align:"center",prop:"sendState",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("dict-tag",{attrs:{options:e.dict.type.task_status,value:t.row.sendState}})]}}])}),r("el-table-column",{attrs:{label:"任务详情",fixed:"right",align:"center",width:"200","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.handleUpdate(t.row)}}},[r("span",{staticClass:"button-xq"},[r("i",{staticClass:"el-icon-s-data"}),e._v("选择派发")])])]}}])})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tasktotal>0,expression:"tasktotal > 0"}],attrs:{total:e.tasktotal,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.distribute}})],1)]),r("el-dialog",{attrs:{title:e.amendtag?"修改患者信息":"新增患者",visible:e.Labelchange,width:"900px"},on:{"update:visible":function(t){e.Labelchange=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"姓名",width:"100",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入姓名",maxlength:"30"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"性别",width:"100",prop:"sex"}},[r("el-select",{attrs:{placeholder:"请选择性别"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.sextype,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"年龄",prop:"age"}},[r("el-input",{attrs:{placeholder:"请输入年龄",maxlength:"30"},model:{value:e.form.age,callback:function(t){e.$set(e.form,"age",t)},expression:"form.age"}})],1)],1)],1),e.amendtag?r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"过滤医生",width:"100",prop:"filterDrname"}},[r("el-input",{attrs:{placeholder:"请输入医生姓名",maxlength:"30"},model:{value:e.form.filterDrname,callback:function(t){e.$set(e.form,"filterDrname",t)},expression:"form.filterDrname"}})],1)],1)],1):e._e(),e.amendtag?e._e():r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"民族",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入民族",maxlength:"30"},model:{value:e.form.nation,callback:function(t){e.$set(e.form,"nation",t)},expression:"form.nation"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"籍贯",prop:"age"}},[r("el-input",{attrs:{placeholder:"请输入籍贯",maxlength:"30"},model:{value:e.form.nativePlace,callback:function(t){e.$set(e.form,"nativePlace",t)},expression:"form.nativePlace"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"联系方式",prop:"telcode"}},[r("el-input",{attrs:{placeholder:"请输入联系方式",maxlength:"30"},model:{value:e.form.telcode,callback:function(t){e.$set(e.form,"telcode",t)},expression:"form.telcode"}})],1)],1)],1),e.amendtag?e._e():r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"出生地",prop:"birthplace"}},[r("el-input",{attrs:{placeholder:"国、省、地市、区县、街道等详细信息",maxlength:"50"},model:{value:e.form.birthplace,callback:function(t){e.$set(e.form,"birthplace",t)},expression:"form.birthplace"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"居住地",prop:"placeOfResidence"}},[r("el-input",{attrs:{placeholder:"国、省、地市、区县、街道等详细信息",maxlength:"50"},model:{value:e.form.placeOfResidence,callback:function(t){e.$set(e.form,"placeOfResidence",t)},expression:"form.placeOfResidence"}})],1)],1)],1),r("el-row",[e.amendtag?e._e():r("el-col",{attrs:{span:e.amendtag?12:24}},[r("el-form-item",{attrs:{label:"患者类型"}},[r("el-select",{attrs:{placeholder:"请选择类型"},model:{value:e.form.pattype,callback:function(t){e.$set(e.form,"pattype",t)},expression:"form.pattype"}},e._l(e.Patienttype,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),r("el-row",[e.amendtag?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"过滤原因"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入过滤原因"},model:{value:e.form.notrequiredreason,callback:function(t){e.$set(e.form,"notrequiredreason",t)},expression:"form.notrequiredreason"}})],1)],1):e._e()],1),r("el-row",[e.amendtag?e._e():r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"备注"}},[r("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),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),r("el-dialog",{attrs:{title:e.upload.title,visible:e.upload.open,width:"70%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.upload,"open",t)}}},[r("el-steps",{attrs:{active:e.dractive,simple:""}},[r("el-step",{attrs:{title:"上传导入文件",icon:"el-icon-upload"}}),r("el-step",{attrs:{title:"导入检查",icon:"el-icon-picture"}}),r("el-step",{attrs:{title:"导入结果",icon:"el-icon-picture"}})],1),1==e.dractive?r("div",{staticClass:"download"},[r("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{limit:1,accept:".xlsx, .xls",headers:e.upload.headers,action:e.upload.url,disabled:e.upload.isUploading,"on-progress":e.handleFileUploadProgress,"on-success":e.handleFileSuccess,drag:""}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),r("em",[e._v("点击上传")])]),r("div",{staticClass:"el-upload__tip text-center",attrs:{slot:"tip"},slot:"tip"},[r("span",[e._v("仅允许导入xls、xlsx格式文件。")]),r("el-link",{staticStyle:{"font-size":"24px","vertical-align":"baseline"},attrs:{type:"primary",underline:!1},on:{click:e.importTemplate}},[e._v("下载模板 ")])],1)])],1):2==e.dractive?r("div",{staticClass:"uploading"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.uploadingData}},[r("el-table-column",{attrs:{prop:"serial",label:"序号"}}),r("el-table-column",{attrs:{prop:"name",label:"姓名",width:"100"}}),r("el-table-column",{attrs:{prop:"sex",label:"性别",width:"100"}}),r("el-table-column",{attrs:{prop:"certificatenum",label:"证件号码"}}),r("el-table-column",{attrs:{prop:"goday",label:"出生日期"}}),r("el-table-column",{attrs:{prop:"menum",label:"本人联系方式"}}),r("el-table-column",{attrs:{prop:"younum",label:"亲属联系方式"}}),r("el-table-column",{attrs:{prop:"tag",label:"患者标签"}}),r("el-table-column",{attrs:{prop:"erry",label:"错误原因"}}),r("el-table-column",{attrs:{prop:"opinion",label:"处理意见"}})],1),r("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.geterryList}})],1):3==e.dractive?r("div",{staticClass:"drexamine"},[r("img",{attrs:{src:a("84dd")}}),r("p",[e._v("导入患者成功!")]),r("p",[e._v(" 本次 "),r("span",{staticStyle:{color:"#158bb8","font-size":"20px"}},[e._v(e._s(e.ImportQuantity))]),e._v(" 条数据成功导入"),r("span",{staticStyle:{color:"#72d3a9","font-size":"20px"}},[e._v(e._s(e.ImportQuantity))]),e._v("位患者 ")])]):e._e(),3==e.dractive?r("div",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.uploadingData}},[r("el-table-column",{attrs:{prop:"serial",label:"序号"}}),r("el-table-column",{attrs:{prop:"name",label:"姓名",width:"100"}}),r("el-table-column",{attrs:{prop:"sex",label:"性别",width:"100"}}),r("el-table-column",{attrs:{prop:"certificatenum",label:"证件号码"}}),r("el-table-column",{attrs:{prop:"goday",label:"出生日期"}}),r("el-table-column",{attrs:{prop:"menum",label:"本人联系方式"}}),r("el-table-column",{attrs:{prop:"younum",label:"亲属联系方式"}}),r("el-table-column",{attrs:{prop:"tag",label:"患者标签"}}),r("el-table-column",{attrs:{prop:"erry",label:"错误原因"}}),r("el-table-column",{attrs:{prop:"opinion",label:"处理意见"}})],1),r("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.geterryList}})],1):e._e(),3==e.dractive?r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.submitclose}},[e._v("完成")]),r("el-button",{attrs:{type:"warning"},on:{click:e.submitclose}},[e._v("导出失败数据")])],1):r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitFileForm}},[e._v("下一步")]),r("el-button",{on:{click:e.submitclose}},[e._v("取 消")])],1)],1),r("el-dialog",{attrs:{title:"选择服务类型",visible:e.serviceVisible},on:{"update:visible":function(t){e.serviceVisible=t}}},[r("el-card",{staticClass:"box-card"},[r("el-radio-group",{model:{value:e.serviceradio,callback:function(t){e.serviceradio=t},expression:"serviceradio"}},[r("el-radio",{attrs:{label:1}},[e._v("宣教随访")]),r("el-radio",{attrs:{label:2}},[e._v("门诊服务")]),r("el-radio",{attrs:{label:3}},[e._v("出院服务")]),r("el-radio",{attrs:{label:4}},[e._v("复诊服务")]),r("el-radio",{attrs:{label:5}},[e._v("体检通知")]),r("el-radio",{attrs:{label:6}},[e._v("问卷服务")])],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.serviceVisible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.CreateService}},[e._v("创建服务")])],1)],1),r("el-dialog",{attrs:{title:"选择风险类型",visible:e.RiskVisible},on:{"update:visible":function(t){e.RiskVisible=t}}},[r("el-card",{staticClass:"box-card"},[r("el-form",[r("el-form-item",{attrs:{label:"风险类型"}},[r("el-radio-group",{model:{value:e.Riskradio,callback:function(t){e.Riskradio=t},expression:"Riskradio"}},[r("el-radio",{attrs:{label:1}},[e._v("正常")]),r("el-radio",{attrs:{label:2}},[e._v("轻微")]),r("el-radio",{attrs:{label:3}},[e._v("高危")])],1)],1),r("el-form-item",{attrs:{label:"活动性质"}},[r("el-checkbox-group",{model:{value:e.Risklist,callback:function(t){e.Risklist=t},expression:"Risklist"}},[r("el-checkbox",{attrs:{label:"情况1",name:"type"}}),r("el-checkbox",{attrs:{label:"情况2",name:"type"}}),r("el-checkbox",{attrs:{label:"情况3",name:"type"}}),r("el-checkbox",{attrs:{label:"情况4",name:"type"}})],1)],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.RiskVisible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.RiskService}},[e._v("确认修改")])],1)],1)],1)},l=[],i=a("025b"),o=a("b3d7"),s=(a("9364"),a("9c42"),a("fb51"),a("2f82"),a("6678"),a("7a82"),a("6e70"),a("f24b"),a("9493"),a("21b9"),a("cfee"),a("c0c7"),a("958b")),n=a("40d6"),u=a("63ce"),c=a("5f87"),d=a("b84a"),p=a.n(d),m=a("4360"),f=(a("2c60"),{name:"Patient",dicts:["sys_normal_disable","task_status","sys_user_sex","futter_patient"],components:{Treeselect:p.a},data:function(){return Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,tasktotal:0,Risklist:[],userList:null,taskuserList:null,title:"",deptOptions:void 0,options:[],open:!1,deptName:void 0,initPassword:void 0,amendtag:!1,serviceVisible:!1,serviceradio:1,distributeVisible:!1,RiskVisible:!1,tasktopic:"5",Riskradio:1,RiskObj:{},topqueryParams:{pageNum:1,pageSize:10,userName:void 0,tagid:void 0,topic:void 0},dateRange:[],taskoptions:[],paperstypes:[{papersname:"身份证"},{papersname:"护照"},{papersname:"中国港澳居民身份证"},{papersname:"中国台湾居民身份证"}],Patienttype:[{value:"1",label:"在院患者"},{value:"3",label:"体检患者"},{value:"4",label:"出院患者"}],sextype:[{value:1,label:"男"},{value:2,label:"女"}],cardlist:[{name:"患者总数",value:123},{name:"在院患者",value:23,router:"/patient/inpatient"},{name:"出院患者",value:41,router:"/patient/hospital"},{name:"离世患者",value:0}],source:[{value:0,label:"所属患者"},{value:1,label:"科室患者"},{value:2,label:"病区患者"}],form:{name:"",age:"",sex:"",tagList:[],idcardno:"",telcode:"",idcardtype:"",relativetelcode:""},postData:{XiaoXiTou:{FaSongFCSJC:"ZJHES",FaSongJGID:localStorage.getItem("orgid"),FaSongJGMC:localStorage.getItem("orgname"),FaSongSJ:"2025-01-09 17:29:36",FaSongXTJC:"SUIFANGXT",FaSongXTMC:"随访系统",XiaoXiID:"5FA92AFB-9833-4608-87C7-F56A654AC171",XiaoXiLX:"SC_LC_360STCX",XiaoXiMC:"360 视图查询",ZuHuID:localStorage.getItem("ZuHuID"),ZuHuMC:localStorage.getItem("orgname")},YeWuXX:{BingRenXX:{ZhengJianHM:"",ZhengJianLXDM:"01",ZhengJianLXMC:"居民身份证",ZuZhiJGID:localStorage.getItem("orgid"),ZuZhiJGMC:localStorage.getItem("orgname")},YongHuXX:{XiTongID:"SUIFANGXT",XiTongMC:"随访系统",YongHuID:localStorage.getItem("YongHuID"),YongHuXM:localStorage.getItem("YongHuXM"),ZuZhiJGID:localStorage.getItem("orgid"),ZuZhiJGMC:localStorage.getItem("orgname"),idp:"lyra"}}},activeName:"first",dractive:1,uploadingData:{}},"total",0),"ImportQuantity",999),"Labelchange",!1),"propss",{multiple:!0}),"optionstag",[]),"defaultProps",{children:"children",label:"label"}),"upload",{open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Object(c["a"])()},url:"/prod-api/smartor/import/importPatInfo"}),"queryParams",{pageNum:1,allhosp:"0",pageSize:10,notrequiredFlag:0,searchscope:2,scopetype:[],leaveldeptcodes:[],leavehospitaldistrictcodes:[]}),"sourcetype",[{value:1,label:"科室",children:[]},{value:2,label:"病区",children:[]},{value:3,label:"全部"}]),"rules",{name:[{required:!0,message:"用户名称不能为空",trigger:"blur"},{min:2,max:20,message:"用户名称长度必须介于 2 和 20 之间",trigger:"blur"}],sex:[{required:!0,message:"性别不能为空",trigger:"blur"}],nation:[{required:!0,message:"民族不能为空",trigger:"blur"}],telcode:[{required:!0,message:"联系方式不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}],idcardno:[{required:!0,message:"证件号可能为空",trigger:"blur"},{pattern:/^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/,message:"请输入正确的身份证号码",trigger:"blur"}],placeOfResidence:[{required:!0,message:"居住地不能为空",trigger:"blur"}],birthplace:[{required:!0,message:"出生地不能为空",trigger:"blur"}]})},watch:{deptName:function(e){this.$refs.tree.filter(e)}},created:function(){this.getList(),this.gettabList(),this.sourcetype[0].children=m["a"].getters.belongDepts.map((function(e){return{label:e.deptName,value:e.deptCode}})),this.sourcetype[1].children=m["a"].getters.belongWards.map((function(e){return{label:e.districtName,value:e.districtCode}})),this.taskoptions=m["a"].getters.Serviceauthority},methods:{getList:function(){var e=this;3==this.queryParams.searchscope&&(this.queryParams.leaveldeptcodes=m["a"].getters.belongDepts.map((function(e){return e.deptCode})),this.queryParams.leavehospitaldistrictcodes=m["a"].getters.belongWards.map((function(e){return e.districtCode}))),this.loading=!0,Object(s["l"])(this.queryParams).then((function(t){e.userList=t.rows,e.total=t.total,e.loading=!1}))},handleClick:function(){this.getList()},findLabelByValue:function(e,t){var a=e.find((function(e){return e.value===t}));return a?a.label:null},gettabList:function(){var e=this,t={pageNum:1,pageSize:1e3,tagname:void 0,tagdescription:void 0,tagcategoryid:"0"};Object(u["f"])(t).then((function(t){console.log(t),e.optionstag=t.rows}))},gettoken360:function(e,t,a){var r=this;this.postData.YeWuXX.BingRenXX.ZhengJianHM=e,Object(n["mc"])(this.postData).then((function(e){e.data.url?window.open(e.data.url,"_blank"):r.$modal.msgWarning("360查询无结果")}))},geterryList:function(){var e=this;this.loading=!0,listJob(this.queryParams).then((function(t){e.jobList=1,e.total=1,e.loading=!1}))},Distributionservice:function(e){this.serviceVisible=!0},RiskMarker:function(e){this.RiskVisible=!0,this.RiskObj=e},cancel:function(){this.Labelchange=!1,this.reset()},reset:function(){this.form={name:"",age:"",sex:"",tagList:[],idcardno:"",telcode:"",idcardtype:"",relativetelcode:""}},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParams={pageNum:1,allhosp:"0",pageSize:10,notrequiredFlag:0,searchscope:2,scopetype:[],leaveldeptcodes:[],leavehospitaldistrictcodes:[]},this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.Labelchange=!0,this.amendtag=!1},handleUpdate:function(e){var t=this,a=e.id||this.ids;Object(s["m"])(a).then((function(e){t.form=e.data,t.form.filterDrname=m["a"].getters.nickName})),this.amendtag=!0,this.Labelchange=!0},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(e.amendtag?(e.form.isoperation=2,e.form.notrequiredFlag=1,Object(s["e"])(e.form).then((function(e){console.log(e)})).then((function(){e.getList(),e.$modal.msgSuccess("患者过滤成功")}))):(e.form.isoperation=1,Object(s["e"])(e.form).then((function(e){console.log(e)})).then((function(){e.getList(),e.$modal.msgSuccess("添加成功")}))),e.reset(),e.Labelchange=!1)}))},handleChange:function(e){var t=e[0],a=e.slice(-1)[0];this.queryParams.leavehospitaldistrictcodes=[],this.queryParams.leaveldeptcodes=[],1==t?(this.queryParams.leaveldeptcodes.push(a),this.queryParams.leavehospitaldistrictcodes=[],this.queryParams.searchscope=1):2==t?(this.queryParams.leavehospitaldistrictcodes.push(a),this.queryParams.leaveldeptcodes=[],this.queryParams.searchscope=2):this.queryParams.searchscope=3},handleDelete:function(e){var t=this,a=e.userId||this.ids;this.$modal.confirm('是否确认删除用户编号为"'+a+'"的数据项?').then((function(){return Object(s["g"])(a)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},CreateService:function(){this.$router.push({path:"/followvisit/particty",query:{type:this.serviceradio}})},RiskService:function(){var e=this;this.RiskObj.visitFlag=this.Risklist.join(", "),this.RiskObj.visitType=this.Riskradio,Object(s["e"])(this.RiskObj).then((function(t){200==t.code&&(e.getList(),e.Risklist=[],e.Riskradio=1,e.$modal.msgSuccess("异常记录成功"))}))},distribute:function(){var e=this;this.distributeVisible=!0,1==this.tasktopic?this.topqueryParams.type=3:2==this.tasktopic||3==this.tasktopic||4==this.tasktopic||5==this.tasktopic?this.topqueryParams.type=1:6==this.tasktopic&&(this.topqueryParams.type=2),this.topqueryParams.typename=this.findLabelByValue(this.taskoptions,this.tasktopic),Object(n["Hb"])(this.topqueryParams).then((function(t){e.taskuserList=t.rows,e.tasktotal=t.total,e.$forceUpdate()}))},handleExport:function(){this.download("smartor/patarchive/export",Object(i["a"])({},this.queryParams),"user_".concat((new Date).getTime(),".xlsx"))},handleImport:function(){this.upload.title="用户导入",this.upload.open=!0},importTemplate:function(){this.download("smartor/import/getImportPatTemplate",{},"user_template_".concat((new Date).getTime(),".xlsx"))},handleFileUploadProgress:function(e,t,a){this.upload.isUploading=!0},handleFileSuccess:function(e,t,a){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(){1==this.dractive?(this.$refs.upload.submit(),this.dractive++):this.dractive++},submitclose:function(){this.upload.open=!1,this.dractive=1}}}),b=f,h=(a("ee94"),a("1805")),g=Object(h["a"])(b,r,l,!1,null,"4510c372",null);t["default"]=g.exports},"63ce":function(e,t,a){"use strict";a.d(t,"h",(function(){return l})),a.d(t,"c",(function(){return i})),a.d(t,"i",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"d",(function(){return u})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return d})),a.d(t,"g",(function(){return p}));var r=a("b775");a("c38a");function l(e){return Object(r["a"])({url:"/base/tag/edit",method:"post",data:e})}function i(e,t){var a={tagid:e,isupload:t};return Object(r["a"])({url:"/base/tag/edit",method:"post",data:a})}function o(e){return Object(r["a"])({url:"/system/tagcategory/edit",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/base/tag/add",method:"post",data:e})}function n(e){return Object(r["a"])({url:"/system/tagcategory",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/base/tag/remove/"+e,method:"get"})}function c(e){return Object(r["a"])({url:"/system/tagcategory/remove/"+e,method:"get"})}function d(e){return Object(r["a"])({url:"/base/tag/list",method:"post",data:e})}function p(e){return Object(r["a"])({url:"/system/tagcategory/baseTagCategoryByName",method:"post",params:e})}},"958b":function(e,t,a){"use strict";a.d(t,"l",(function(){return l})),a.d(t,"n",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"m",(function(){return n})),a.d(t,"g",(function(){return u})),a.d(t,"c",(function(){return c})),a.d(t,"j",(function(){return d})),a.d(t,"i",(function(){return p})),a.d(t,"a",(function(){return m})),a.d(t,"h",(function(){return f})),a.d(t,"k",(function(){return b})),a.d(t,"f",(function(){return h})),a.d(t,"b",(function(){return g}));var r=a("b775");a("c38a");function l(e){return Object(r["a"])({url:"/smartor/patarchive/patInfoByContion",method:"post",data:e})}function i(e){return Object(r["a"])({url:"/smartor/patarchive/list",method:"post",data:e})}function o(e){return Object(r["a"])({url:"/smartor/patarchive/saveOrUpdatePatInfo",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/smartor/patarchive/add",method:"post",data:e})}function n(e){return Object(r["a"])({url:"/smartor/patarchive/getInfo/"+e,method:"get"})}function u(e){return Object(r["a"])({url:"/smartor/patarchive/remove/"+e,method:"get"})}function c(e){return Object(r["a"])({url:"/medicalhistory/add",method:"post",data:e})}function d(e){return Object(r["a"])({url:"/medicalhistory/selectMedicalHistoryList",method:"post",data:e})}function p(e){return Object(r["a"])({url:"/medicalhistory/edit",method:"post",data:e})}function m(e){return Object(r["a"])({url:"/archivecontact/add",method:"post",data:e})}function f(e){return Object(r["a"])({url:"/archivecontact/edit",method:"post",data:e})}function b(e){return Object(r["a"])({url:"/archivecontact/selectPatArchivecontactList",method:"post",data:e})}function h(e){return Object(r["a"])({url:"/archivecontact/remove/"+e,method:"get"})}function g(e){return Object(r["a"])({url:"/smartor/filterlist/add",method:"post",data:e})}},c0c7:function(e,t,a){"use strict";a.d(t,"k",(function(){return i})),a.d(t,"i",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"p",(function(){return n})),a.d(t,"d",(function(){return u})),a.d(t,"m",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"j",(function(){return p})),a.d(t,"q",(function(){return m})),a.d(t,"g",(function(){return f})),a.d(t,"h",(function(){return b})),a.d(t,"n",(function(){return h})),a.d(t,"r",(function(){return g})),a.d(t,"s",(function(){return v})),a.d(t,"f",(function(){return y})),a.d(t,"o",(function(){return k})),a.d(t,"l",(function(){return w})),a.d(t,"e",(function(){return x})),a.d(t,"b",(function(){return _}));var r=a("b775"),l=a("c38a");function i(e){return Object(r["a"])({url:"/system/user/list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"/system/user/getInfo/"+Object(l["g"])(e),method:"get"})}function s(e){return Object(r["a"])({url:"/system/user/add",method:"post",data:e})}function n(e){return Object(r["a"])({url:"/system/user/edit",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/system/user/remove/"+e,method:"get"})}function c(e,t){var a={userId:e,password:t};return Object(r["a"])({url:"/system/user/resetPwd",method:"post",data:a})}function d(e,t){var a={userId:e,status:t};return Object(r["a"])({url:"/system/user/changeStatus/edit",method:"post",data:a})}function p(){return Object(r["a"])({url:"/system/user/profile",method:"get"})}function m(e){return Object(r["a"])({url:"/system/user/profile/edit",method:"post",data:e})}function f(e){return Object(r["a"])({url:"/smartor/serviceSubtask/getSfStatistics",method:"post",data:e})}function b(e){return Object(r["a"])({url:"/smartor/serviceSubtask/getSfStatisticsJoy",method:"post",data:e})}function h(e){return Object(r["a"])({url:"/smartor/servicetask/selectTimelyRate",method:"post",data:e})}function g(e,t){var a={oldPassword:e,newPassword:t};return Object(r["a"])({url:"/system/user/profile/updatePwd",method:"post",params:a})}function v(e){return Object(r["a"])({url:"/system/user/profile/avatar",method:"post",data:e})}function y(e){return Object(r["a"])({url:"/system/user/authRole/"+e,method:"get"})}function k(e){return Object(r["a"])({url:"/system/user/authRole/insertAuthRole",method:"post",data:e})}function w(e,t){return Object(r["a"])({url:"/smartor/userdept/removeByCode/"+e+"/"+t,method:"get"})}function x(e){var t={deptType:e,orgid:localStorage.getItem("orgid")};return Object(r["a"])({url:"/system/user/deptTree",method:"get",params:t})}function _(e){return Object(r["a"])({url:"/smartor/userdept/add",method:"post",data:e})}},ee94:function(e,t,a){"use strict";a("f133")},f133:function(e,t,a){}}]);