1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{38:function(t,a,e){var n=e(2631);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var i=e(5472).Z;i("45d80b48",n,!0,{sourceMap:!1,shadowMode:!1})},8178: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,uAlbum:e(3093).Z,uButton:e(7344).Z},u=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:"初诊时间",value:t._f("date")(t.info.treat_at,"yyyy-MM-dd")}}),e("u-cell",{attrs:{title:"初诊医生",value:t.info.doctor?t.info.doctor.name:""}}),e("u-cell",{attrs:{title:"病情描述"}},[e("v-uni-view",{attrs:{slot:"value"},slot:"value"},[e("v-uni-text",[t._v(t._s(t.info.illness))])],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)},o=[],l=(e(9299),{data:function(){return{id:"",info:{images:[],doctor_id:"",doctor:{}}}},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,a.data.images&&t.$refs["images"].setList(a.data.images.map((function(t){return{url:t}}))),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(38),e(1503)),d=(0,r.Z)(s,u,o,!1,null,"360de132",null,!1,i,n),c=d.exports},2631:function(t,a,e){"use strict";e.r(a);var n=e(2916),i=e.n(n),u=e(3282),o=e.n(u),l=o()(i());l.push([t.id,".page[data-v-360de132]{padding:20px;background:#fff}.u-cell-group[data-v-360de132]{background:#fff}.btn[data-v-360de132]{padding:0 10px}.btn .u-button[data-v-360de132]{margin-top:20px}.page[data-v-360de132] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-360de132]{color:gray}",""]),a["default"]=l}}]); |