1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[487],{3449:function(t,e,n){var a=n(2041);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);var i=n(5472).Z;i("5fe8d039",a,!0,{sourceMap:!1,shadowMode:!1})},2990:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var a,i={uCellGroup:n(156).Z,uCell:n(7981).Z,"u-Text":n(1153).Z,uAlbum:n(3093).Z},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("u-cell-group",{attrs:{border:!1}},[n("u-cell",{attrs:{title:"姓名",value:this.info.patient?this.info.patient.name:""}}),n("u-cell",{attrs:{title:"类别",value:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"病种或项目",value:t.info.illness_type?t.info.illness_type.name:""}}),n("u-cell",{attrs:{title:t.type.text+"时间",value:t._f("date")(t.info.treat_at)}}),n("u-cell",{attrs:{title:t.type.text+"情况"}},[n("v-uni-view",{attrs:{slot:"label"},slot:"label"},[n("u--text",{attrs:{text:t.info.content,type:"info",wordWrap:"anywhere"}})],1)],1),n("u-cell",{attrs:{title:"服用方法"}},[n("v-uni-view",{attrs:{slot:"label"},slot:"label"},[n("u--text",{attrs:{text:t.info.description,type:"info",wordWrap:"anywhere"}})],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("u-album",{attrs:{urls:t.info.images}})],1)],1),n("u-cell",{attrs:{title:"下次就诊时间",value:t._f("date")(t.info.next_treat_at)}})],1)],1)},s=[],o=n(3762),l=n(3062),u={data:function(){return{id:"",info:{patient_id:"",type_id:"",origin_price:"",sell_price:"",notify_remarks:"",is_notified:0},type:{text:""}}},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 e(){var n,a;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.id){e.next=2;break}return e.abrupt("return");case 2:return uni.showLoading(),e.next=5,t.$ajax.get("/api/client/record/".concat(t.id));case 5:n=e.sent,uni.stopPullDownRefresh(),0==n.status&&(t.info=n.data,t.info.images=null!==(a=n.data.images)&&void 0!==a?a:[],t.type.text=t.info.type?t.info.type.name:"");case 8:case"end":return e.stop()}}),e)})))()}}},p=u,c=(n(3449),n(1503)),d=(0,c.Z)(p,r,s,!1,null,"002ce672",null,!1,i,a),f=d.exports},2041:function(t,e,n){"use strict";n.r(e);var a=n(2916),i=n.n(a),r=n(3282),s=n.n(r),o=s()(i());o.push([t.id,".page[data-v-002ce672]{padding:20px;background:#fff}.btn[data-v-002ce672]{padding:0 10px}.btn .u-button[data-v-002ce672]{margin-top:20px}.text-gray[data-v-002ce672]{color:gray}",""]),e["default"]=o},6725:function(t,e){"use strict";e.Z={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}}},8987:function(t,e){"use strict";e.Z={props:{openType:String},methods:{onGetUserInfo(t){this.$emit("getuserinfo",t.detail)},onContact(t){this.$emit("contact",t.detail)},onGetPhoneNumber(t){this.$emit("getphonenumber",t.detail)},onError(t){this.$emit("error",t.detail)},onLaunchApp(t){this.$emit("launchapp",t.detail)},onOpenSetting(t){this.$emit("opensetting",t.detail)}}}}}]); |