1
0
Fork 0
medical-record-server/public/client/static/js/pages-patient-detail.be8913...

1 line
2.8 KiB
JavaScript

(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{1405:function(t,a,e){var n=e(1656);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var i=e(5472).Z;i("bf81a3b8",n,!0,{sourceMap:!1,shadowMode:!1})},7816:function(t,a,e){"use strict";e.r(a),e.d(a,{default:function(){return f}});var n,i={uCellGroup:e(156).Z,uCell:e(7981).Z,"u-Text":e(1153).Z,uAlbum:e(3093).Z,uButton:e(7344).Z},r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("u-cell-group",{attrs:{border:!1}},[e("u-cell",{attrs:{title:"类别",value:t.info.type?t.info.type.name:""}}),e("u-cell",{attrs:{title:"初次"+t.type,value:t._f("date")(t.info.treat_at,"yyyy-MM-dd")}}),e("u-cell",{attrs:{title:"病情描述或理疗项目"}},[e("v-uni-view",{attrs:{slot:"label"},slot:"label"},[e("u--text",{attrs:{text:t.info.illness,type:"info",wordWrap:"anywhere"}})],1)],1),e("u-cell",{attrs:{title:"图片资料"}},[e("v-uni-view",{attrs:{slot:"value"},slot:"value"},[e("u-album",{attrs:{urls:t.info.images}})],1)],1),e("u-cell",{attrs:{title:"服务或诊疗次数",value:t.total_record}})],1),e("v-uni-view",{staticClass:"btn"},[e("u-button",{attrs:{text:"病历记录",type:"success"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.record.apply(void 0,arguments)}}})],1)],1)},u=[],o=e(3762),l=e(3062),s={data:function(){return{id:"",info:{images:[],doctor_id:"",doctor:{}},total_record:"0",type:""}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;return(0,l.Z)((0,o.Z)().mark((function a(){var e,n;return(0,o.Z)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.id){a.next=2;break}return a.abrupt("return");case 2:return uni.showLoading(),a.next=5,t.$ajax.get("/api/client/patient/".concat(t.id));case 5:return e=a.sent,uni.stopPullDownRefresh(),0==e.status&&(t.info=e.data,t.info.images=null!==(n=e.data.images)&&void 0!==n?n:[],t.type=t.info.type?t.info.type.name:"",uni.setNavigationBarTitle({title:t.info.name})),a.next=10,t.$ajax.get("/api/client/record",{params:{patient_id:t.id}});case 10:e=a.sent,0==e.status&&(t.total_record=e.data.total+"");case 12:case"end":return a.stop()}}),a)})))()},record:function(){uni.navigateTo({url:"/pages/record/index?patient=".concat(this.id)})}}},c=s,d=(e(1405),e(1503)),p=(0,d.Z)(c,r,u,!1,null,"1a60784c",null,!1,i,n),f=p.exports},1656:function(t,a,e){"use strict";e.r(a);var n=e(2916),i=e.n(n),r=e(3282),u=e.n(r),o=u()(i());o.push([t.id,".page[data-v-1a60784c]{padding:20px;background:#fff}.u-cell-group[data-v-1a60784c]{background:#fff}.btn[data-v-1a60784c]{padding:0 10px}.btn .u-button[data-v-1a60784c]{margin-top:20px}.page[data-v-1a60784c] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-1a60784c]{color:gray}",""]),a["default"]=o}}]);