(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a6c3a7f2","chunk-505fd524","chunk-3095eff2"],{"0d44":function(t,e,a){},"373e":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"就诊时间:"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.appointmentTime,callback:function(e){t.appointmentTime=e},expression:"appointmentTime"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:"患者姓名:"}},[a("el-input",{staticStyle:{width:"100px"},model:{value:t.queryParams.patientName,callback:function(e){t.$set(t.queryParams,"patientName",e)},expression:"queryParams.patientName"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:"回访人:"}},[a("el-input",{staticStyle:{width:"100px"},model:{value:t.queryParams.followUpUser,callback:function(e){t.$set(t.queryParams,"followUpUser",e)},expression:"queryParams.followUpUser"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:"回访状态:"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:t.queryParams.followUpStatus,callback:function(e){t.$set(t.queryParams,"followUpStatus",e)},expression:"queryParams.followUpStatus"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"已回访",value:1}}),a("el-option",{attrs:{label:"待回访",value:2}})],1)],1),a("el-form-item",{staticClass:"m_l",attrs:{label:""}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.initList}},[t._v("搜索")]),a("el-button",{on:{click:t.reset}},[t._v("重置")])],1)],1),a("el-table",{attrs:{data:t.tableData,border:""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"回访状态","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(1==a.followUpStatus?"已回访":2==a.followUpStatus?"待回访":"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"患者姓名","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.patientName||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"用户编号","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.medicalRecordNum||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"性别","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.sex?1==a.sex?"男":"女":"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"电话","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.patientPhone||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"回访时间","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.followUpTime||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"回访人","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.followUpUser||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"回访类型","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.followUpType?t.initType(a.followUpType):"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"就诊时间","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.appointmentStartTime||"-")+" ")]}}])}),a("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.edit(e.row,2)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.add(e.row,2)}}},[t._v("新增")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.initList}}),t.dialogVisible?a("addVisitDialog",{attrs:{dialogVisible:t.dialogVisible,patientId:t.patientId,appointmentId:t.appointmentId,type:t.type,title:t.title,editObj:t.editObj,appointmentStartTime:t.appointmentStartTime},on:{closeDialog:t.closeDialog}}):t._e()],1)},n=[],l=a("c7eb"),o=a("1da1"),r=(a("7db0"),a("d3b7"),a("d73d")),s=a("943d"),c={name:"EitcErmPcVisitList",components:{addVisitDialog:r["default"]},data:function(){return{dialogVisible:!1,tableData:[],appointmentTime:[],visitTypeOptions:[],queryParams:{patientName:"",followUpUser:"",followUpStatus:"",pageNum:1,pageSize:10},title:"",appointmentStartTime:"",patientId:"",appointmentId:"",editObj:{},type:2,total:0,multipleSelection:[]}},mounted:function(){this.initDropdownList(),this.initList()},methods:{initDropdownList:function(){var t=this;return Object(o["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["bb"])("erm_follow_up_type");case 2:a=e.sent,t.visitTypeOptions=a.data;case 4:case"end":return e.stop()}}),e)})))()},initType:function(t){return this.visitTypeOptions.find((function(e){return+e.dictValue==t})).dictName},initList:function(){var t=this;return Object(o["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.appointmentTime.length&&(t.queryParams.followUpStartTime=t.appointmentTime[0],t.queryParams.followUpEndTime=t.appointmentTime[1]),e.next=3,Object(s["Jb"])(t.queryParams);case 3:a=e.sent,t.tableData=a.rows,t.total=a.total;case 6:case"end":return e.stop()}}),e)})))()},closeDialog:function(){this.dialogVisible=!1,this.initList()},reset:function(){this.appointmentTime=[],this.queryParams={patientName:"",followUpUser:"",followUpStartTime:"",followUpEndTime:"",followUpStatus:"",pageNum:1,pageSize:10},this.initList()},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){console.log(this.multipleSelection)},add:function(t,e){this.dialogVisible=!0,this.patientId=t.patientId,this.appointmentId=t.patientAppointmentId,this.type=e,this.appointmentStartTime=t.appointmentStartTime,this.title="新增"},edit:function(t,e){this.dialogVisible=!0,this.patientId=t.patientId,this.appointmentId=t.patientAppointmentId,this.type=e,this.appointmentStartTime=t.appointmentStartTime,this.title="编辑"},look:function(t,e){this.dialogVisible=!0,this.patientId=t.patientId,this.appointmentId=t.patientAppointmentId,this.type=e,this.appointmentStartTime=t.appointmentStartTime,this.title="查看"}}},p=c,u=(a("9d8e"),a("2877")),m=Object(u["a"])(p,i,n,!1,null,"571a240a",null);e["default"]=m.exports},"48a0":function(t,e,a){"use strict";a("ebb7")},"80c5":function(t,e,a){"use strict";a("0d44")},"9ac1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{staticClass:"m_l",attrs:{label:"患者姓名:"}},[a("el-input",{model:{value:t.queryParams.patientName,callback:function(e){t.$set(t.queryParams,"patientName",e)},expression:"queryParams.patientName"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:"用户编号:"}},[a("el-input",{model:{value:t.queryParams.medicalRecordNum,callback:function(e){t.$set(t.queryParams,"medicalRecordNum",e)},expression:"queryParams.medicalRecordNum"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:"预约项目:"}},[a("el-input",{model:{value:t.queryParams.appointmentProject,callback:function(e){t.$set(t.queryParams,"appointmentProject",e)},expression:"queryParams.appointmentProject"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:"医生:"}},[a("el-input",{model:{value:t.queryParams.attendingDoctor,callback:function(e){t.$set(t.queryParams,"attendingDoctor",e)},expression:"queryParams.attendingDoctor"}})],1),a("el-form-item",{staticClass:"m_l",attrs:{label:""}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.initList}},[t._v("搜索")]),a("el-button",{on:{click:t.reset}},[t._v("重置")])],1)],1),a("el-table",{attrs:{data:t.tableData,border:""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"患者姓名","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.patientName||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"用户编号","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.medicalRecordNum||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"性别","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.sex?1==a.sex?"男":"女":"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"电话","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.linkPhone||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"就诊项目","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.appointmentProject||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"医生","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.attendingDoctor||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"预约类型","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.appointmentType?1==a.appointmentType?"就诊预约":"复诊预约":"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"预约时段","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.appointmentStartTime?a("span",[t._v(" "+t._s(i.appointmentStartTime)+" ~ "+t._s(i.appointmentEndTime.split(" ")[1])+" ")]):a("span",[t._v(" - ")])]}}])}),a("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.add(e.row,1)}}},[t._v("新增")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.initList}}),t.dialogVisible?a("addVisitDialog",{attrs:{dialogVisible:t.dialogVisible,patientId:t.patientId,appointmentId:t.appointmentId,type:t.type,title:t.title,appointmentStartTime:t.appointmentStartTime},on:{closeDialog:t.closeDialog}}):t._e()],1)},n=[],l=a("c7eb"),o=a("1da1"),r=a("d73d"),s=a("943d"),c={name:"EitcErmPcVisitList",components:{addVisitDialog:r["default"]},data:function(){return{dialogVisible:!1,tableData:[],queryParams:{patientName:"",medicalRecordNum:"",appointmentProject:"",attendingDoctor:"",pageNum:1,pageSize:10},title:"",type:1,total:0,patientId:"",appointmentId:"",appointmentStartTime:"",multipleSelection:[]}},mounted:function(){this.initList()},methods:{initList:function(){var t=this;return Object(o["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["Fb"])(t.queryParams);case 2:a=e.sent,t.tableData=a.rows,t.total=a.total;case 5:case"end":return e.stop()}}),e)})))()},reset:function(){this.queryParams={patientName:"",medicalRecordNum:"",appointmentProject:"",attendingDoctor:"",pageNum:1,pageSize:10},this.initList()},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){console.log(this.multipleSelection)},add:function(t,e){this.dialogVisible=!0,this.patientId=t.patientId,this.appointmentId=t.appointmentId,this.type=e,this.appointmentStartTime=t.appointmentStartTime,this.title="新增"},closeDialog:function(){this.dialogVisible=!1,this.initList()}}},p=c,u=(a("48a0"),a("2877")),m=Object(u["a"])(p,i,n,!1,null,"35d84119",null);e["default"]=m.exports},"9d8e":function(t,e,a){"use strict";a("f483")},b5e6:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{staticStyle:{"padding-bottom":"5px",height:"100%"},attrs:{label:"就诊列表",name:"first"}},[a("visitList",{ref:"visitListRef"})],1),a("el-tab-pane",{staticStyle:{"padding-bottom":"5px"},attrs:{label:"回访列表",name:"second"}},[a("followUp",{ref:"followUpRef"})],1)],1)],1)},n=[],l=a("9ac1"),o=a("373e"),r={name:"EitcErmPcIndex",components:{visitList:l["default"],followUp:o["default"]},data:function(){return{activeName:"first"}},mounted:function(){},methods:{handleClick:function(){"first"===this.activeName?this.$refs.visitListRef.initList():this.$refs.followUpRef.initList()}}},s=r,c=(a("80c5"),a("2877")),p=Object(c["a"])(s,i,n,!1,null,"0f856e0c",null);e["default"]=p.exports},ebb7:function(t,e,a){},f483:function(t,e,a){}}]);