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

1 line
2.3 KiB
JavaScript

(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{5637:function(t,a,e){var n=e(8515);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var i=e(5472).Z;i("5c9351de",n,!0,{sourceMap:!1,shadowMode:!1})},6704:function(t,a,e){"use strict";e.r(a),e.d(a,{default:function(){return c}});var n,i={uCellGroup:e(156).Z,uCell:e(7981).Z,"u-Text":e(1153).Z,uAlbum:e(3093).Z,uButton:e(7344).Z},o=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)],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=[],l={data:function(){return{id:"",info:{images:[],doctor_id:"",doctor:{}},type:""}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;this.id&&(uni.showLoading(),this.$ajax.get("/api/client/patient/".concat(this.id)).then((function(a){uni.stopPullDownRefresh(),0==a.status&&(t.info=a.data,t.type=t.info.type?t.info.type.name:"",uni.setNavigationBarTitle({title:t.info.name}))})).catch((function(t){uni.stopPullDownRefresh()})))},record:function(){uni.navigateTo({url:"/pages/record/index?patient=".concat(this.id)})}}},s=l,r=(e(5637),e(1503)),d=(0,r.Z)(s,o,u,!1,null,"67d156ca",null,!1,i,n),c=d.exports},8515:function(t,a,e){"use strict";e.r(a);var n=e(2916),i=e.n(n),o=e(3282),u=e.n(o),l=u()(i());l.push([t.id,".page[data-v-67d156ca]{padding:20px;background:#fff}.u-cell-group[data-v-67d156ca]{background:#fff}.btn[data-v-67d156ca]{padding:0 10px}.btn .u-button[data-v-67d156ca]{margin-top:20px}.page[data-v-67d156ca] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-67d156ca]{color:gray}",""]),a["default"]=l}}]);