chunk-4675b1d8.1dd6655e.js 5.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4675b1d8"],{6273:function(t,e,a){},"9ac1":function(t,e,a){"use strict";a.r(e);var n=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 a=e.row;return[t._v(" "+t._s(a.appointmentStartTime)+" ~ "+t._s(a.appointmentEndTime.split(" ")[1])+" ")]}}])}),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)},i=[],o=a("c7eb"),l=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(l["a"])(Object(o["a"])().mark((function e(){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["R"])(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()}}},u=c,p=(a("bcc5"),a("2877")),m=Object(p["a"])(u,n,i,!1,null,"334b923a",null);e["default"]=m.exports},bcc5:function(t,e,a){"use strict";a("6273")}}]);