chunk-505fd524.4f8b6c9f.js 7.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-505fd524"],{"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"),s=(a("7db0"),a("d3b7"),a("d73d")),r=a("943d"),p={name:"EitcErmPcVisitList",components:{addVisitDialog:s["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(r["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(r["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="查看"}}},u=p,c=(a("9d8e"),a("2877")),m=Object(c["a"])(u,i,n,!1,null,"571a240a",null);e["default"]=m.exports},"9d8e":function(t,e,a){"use strict";a("f483")},f483:function(t,e,a){}}]);