(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d7011f0"],{"129d":function(e,t,a){"use strict";a("8d50")},5274:function(e,t,a){},7327:function(e,t,a){"use strict";a("5274")},"8d50":function(e,t,a){},9973:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},n=[],r={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},o=r,i=(a("129d"),a("2877")),s=Object(i["a"])(o,l,n,!1,null,null,null);t["a"]=s.exports},bac7:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"content"},[a("h4",[e._v("病例列表")]),a("el-divider"),a("el-form",{staticClass:"filter-form",attrs:{"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"名称"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入名称",size:"mini"},on:{clear:function(t){return e.getData()}},model:{value:e.queryParams.name,callback:function(t){e.$set(e.queryParams,"name",t)},expression:"queryParams.name"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入手机号",size:"mini"},on:{clear:function(t){return e.getData()}},model:{value:e.queryParams.phone,callback:function(t){e.$set(e.queryParams,"phone",t)},expression:"queryParams.phone"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"录入医生",prop:"doctor_id"}},[a("el-select",{attrs:{placeholder:"请输入医生姓名",clearable:"",filterable:"",remote:"","remote-method":e.remoteMethod,size:"mini"},on:{change:e.getData,clear:e.getData},model:{value:e.queryParams.doctor_id,callback:function(t){e.$set(e.queryParams,"doctor_id",t)},expression:"queryParams.doctor_id"}},e._l(e.doctorList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"10"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.getData}},[e._v("筛选")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,height:"50vh"}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"名称"}}),a("el-table-column",{attrs:{align:"center",prop:"code",label:"编码"}}),a("el-table-column",{attrs:{align:"center",prop:"sex",label:"性别"}}),a("el-table-column",{attrs:{align:"center",prop:"age",label:"年龄"}}),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),a("el-table-column",{attrs:{align:"center",prop:"doctor_name",label:"录入医生"}}),a("el-table-column",{attrs:{align:"center",prop:"mpro",label:"注射产品"}}),a("el-table-column",{attrs:{align:"center",prop:"mfreq",label:"注射频次"}}),a("el-table-column",{attrs:{align:"center",prop:"bltz",label:"病例体重"}}),a("el-table-column",{attrs:{align:"center",prop:"zsjl",label:"注射剂量"}}),a("el-table-column",{attrs:{align:"center",prop:"zssjt0",label:"注射时间t0"}}),a("el-table-column",{attrs:{align:"center",prop:"jchx",label:"基础活性"}}),a("el-table-column",{attrs:{align:"center",prop:"zs30hx",label:"注射半小时后活性"}}),a("el-table-column",{attrs:{align:"center",prop:"cxsjt1",label:"采血时间t1"}}),a("el-table-column",{attrs:{align:"center",prop:"t1hx",label:"t1点活性"}}),a("el-table-column",{attrs:{align:"center",prop:"cxsjt2",label:"采血时间t2"}}),a("el-table-column",{attrs:{align:"center",prop:"t2hx",label:"t2点活性"}}),a("el-table-column",{attrs:{align:"center",prop:"cxsjt3",label:"采血时间t3"}}),a("el-table-column",{attrs:{align:"center",prop:"t3hx",label:"t3点活性"}}),a("el-table-column",{attrs:{align:"center",prop:"yfghx",label:"预防谷活性"}}),a("el-table-column",{attrs:{align:"center",prop:"zspc",label:"注射频次"}}),a("el-table-column",{attrs:{align:"center",prop:"yqfzhx",label:"预期峰值活性"}}),a("el-table-column",{attrs:{align:"center",prop:"bsq",label:"半衰期"}}),a("el-table-column",{attrs:{align:"center",prop:"mczsjl",label:"每次注射剂量"}}),a("el-table-column",{attrs:{align:"center",prop:"ctime",label:"录入时间"}}),a("el-table-column",{attrs:{align:"center",prop:"date",label:"操作",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.del(t.row.id)}}},[e._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入手机号"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"医生类型",prop:"role"}},[a("el-select",{attrs:{placeholder:"请选择医生类型",filterable:""},model:{value:e.form.role,callback:function(t){e.$set(e.form,"role",t)},expression:"form.role"}},e._l(e.$const.doctorRoleList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"医院",prop:"hospital_name"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入医院"},model:{value:e.form.hospital_name,callback:function(t){e.$set(e.form,"hospital_name",t)},expression:"form.hospital_name"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:function(t){e.open=!1}}},[e._v("取 消")])],1)],1)],1)},n=[],r=a("9973"),o={components:{Page:r["a"]},data:function(){return{loading:!1,queryParams:{page:1},form:{},form1:{},form2:{},list:[{},{}],total:0,title:"新增用户",open:!1,doctorList:[],rules:{}}},methods:{del:function(e){var t=this;this.$confirm("确认删除?","提示",{type:"warning"}).then((function(){t.$api.delPatientCaseInfo({id:e}).then((function(e){e.data.code?t.$msgError(e.data.message):(t.$msgSuccess("删除成功"),t.getData())}))}))},gopage:function(e){e&&(this.queryParams.page_size=e),this.queryParams.page=this.$refs.pageButton.page,this.getData()},getData:function(){var e=this;this.loading=!0,this.$api.getPatientCaseList(this.queryParams).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1}))},handleAdd:function(){this.open=!0,this.title="新增医生",this.form={}},edit:function(e){var t=this;this.title="编辑医生",this.$api.getPatientCaseInfo({id:e}).then((function(e){t.form=e.data.data,t.open=!0}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?e.$api.editPatientCaseInfo(e.form).then((function(t){0==t.data.code?(e.msgSuccess("成功!"),e.open=!1,e.getData()):e.msgError(t.data.message)})):e.$api.addPatientCaseInfo(e.form).then((function(t){0==t.data.code?(e.msgSuccess("成功!"),e.open=!1,e.getData()):e.msgError(t.data.message)})))}))},remoteMethod:function(e){var t=this;""!==e?this.$api.getDoctorsSearchList({name:e}).then((function(e){t.doctorList=e.data.data,t.$set(t.doctorList,e.data.data)})):this.doctorList=[]}},created:function(){this.getData()}},i=o,s=(a("7327"),a("2877")),c=Object(s["a"])(i,l,n,!1,null,null,null);t["default"]=c.exports}}]); //# sourceMappingURL=chunk-2d7011f0.2e3928d0.js.map