"use strict";var e=require("../common/vendor.js"),c=require("../uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js"),u=require("../api/drugReport.js");require("../common/request.js");const d={mixins:[c.MescrollMixin],data(){return{tabs:[{id:0,name:"\u5168\u90E8"},{id:1,name:"\u5F85\u8BC4\u4EF7"},{id:2,name:"\u5DF2\u8BC4\u4EF7"}],status:0,mescroll:null,downOption:{use:!0,auto:!1},upOption:{onScroll:!1,use:!0,page:{pae:0,size:10},noMoreSize:10,textNoMore:"\u5DF2\u7ECF\u5230\u5E95\u4E86",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"\u6682\u65E0\u6570\u636E"}},dataList:[]}},onLoad(){var s=this;e.index.$on("refreshDrugReportList",()=>{s.mescroll.resetUpScroll()})},onShow(){},methods:{doPing(s){e.index.navigateTo({url:"./drugReportPing?reportId="+s.reportId})},showDetails(s){e.index.navigateTo({url:"./drugReportDetails?reportId="+s.reportId})},statusChange(s){this.status=s.id,console.log(s),this.mescroll.resetUpScroll()},navTo(s){e.index.navigateTo({url:s})},mescrollInit(s){this.mescroll=s},downCallback(){this.mescroll.resetUpScroll()},upCallback(s){var t=this,n={pageNum:s.num,pageSize:s.size};this.status!=0&&(n.status=this.status),u.getDrugReportList(n).then(a=>{a.code==200?(s.num==1?t.dataList=a.data.list:t.dataList=t.dataList.concat(a.data.list),t.mescroll.endBySize(a.data.list.length,a.data.total)):(e.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"}),t.dataList=null,t.mescroll.endErr())})}}};if(!Array){const s=e.resolveComponent("u-tabs"),t=e.resolveComponent("mescroll-body");(s+t)()}const m=()=>"../uni_modules/uview-plus/components/u-tabs/u-tabs.js",p=()=>"../uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.js";Math||(m+p)();function _(s,t,n,a,l,r){return{a:e.o(r.statusChange),b:e.p({scrollable:!1,list:l.tabs,lineColor:"#C39A58"}),c:e.f(l.dataList,(o,b,g)=>e.e({a:o.avatar,b:e.t(o.doctorName),c:o.status==1},o.status==1?{}:{},{d:o.status==2},o.status==2?{}:{},{e:e.t(o.reportSummary),f:e.t(o.createTime),g:o.status==1},o.status==1?{h:e.o(i=>r.doPing(o))}:{},{i:e.o(i=>r.showDetails(o)),j:e.o(i=>r.navTo("./inquiryOrderDetails?orderId="+o.orderId))})),d:e.sr("mescrollRef","a352cb46-1"),e:e.o(r.mescrollInit),f:e.o(r.downCallback),g:e.o(r.upCallback),h:e.p({top:"88rpx",bottom:"0",down:l.downOption,up:l.upOption})}}var h=e._export_sfc(d,[["render",_],["__scopeId","data-v-a352cb46"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/drugReportList.vue"]]);wx.createPage(h);
