"use strict";var t=require("../common/vendor.js"),e=require("../uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js"),o=require("../api/drugReport.js");require("../common/request.js");const s={mixins:[e.MescrollMixin],data:()=>({tabs:[{id:0,name:"全部"},{id:1,name:"待评价"},{id:2,name:"已评价"}],status:0,mescroll:null,downOption:{use:!0,auto:!1},upOption:{onScroll:!1,use:!0,page:{pae:0,size:10},noMoreSize:10,textNoMore:"已经到底了",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"暂无数据"}},dataList:[]}),onLoad(){var e=this;t.index.$on("refreshDrugReportList",(()=>{e.mescroll.resetUpScroll()}))},onShow(){},methods:{doPing(e){t.index.navigateTo({url:"./drugReportPing?reportId="+e.reportId})},showDetails(e){t.index.navigateTo({url:"./drugReportDetails?reportId="+e.reportId})},statusChange(t){this.status=t.id,console.log(t),this.mescroll.resetUpScroll()},navTo(e){t.index.navigateTo({url:e})},mescrollInit(t){this.mescroll=t},downCallback(){this.mescroll.resetUpScroll()},upCallback(e){var s=this,a={pageNum:e.num,pageSize:e.size};0!=this.status&&(a.status=this.status),o.getDrugReportList(a).then((o=>{200==o.code?(1==e.num?s.dataList=o.data.list:s.dataList=s.dataList.concat(o.data.list),s.mescroll.endBySize(o.data.list.length,o.data.total)):(t.index.showToast({icon:"none",title:"请求失败"}),s.dataList=null,s.mescroll.endErr())}))}}};if(!Array){(t.resolveComponent("u-tabs")+t.resolveComponent("mescroll-body"))()}Math||((()=>"../uni_modules/uview-plus/components/u-tabs/u-tabs.js")+(()=>"../uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.js"))();var a=t._export_sfc(s,[["render",function(e,o,s,a,r,l){return{a:t.o(l.statusChange),b:t.p({scrollable:!1,list:r.tabs,lineColor:"#C39A58"}),c:t.f(r.dataList,((e,o,s)=>t.e({a:e.avatar,b:t.t(e.doctorName),c:1==e.status},(e.status,{}),{d:2==e.status},(e.status,{}),{e:t.t(e.reportSummary),f:t.t(e.createTime),g:1==e.status},1==e.status?{h:t.o((t=>l.doPing(e)))}:{},{i:t.o((t=>l.showDetails(e))),j:t.o((t=>l.navTo("./inquiryOrderDetails?orderId="+e.orderId)))}))),d:t.sr("mescrollRef","e52a1258-1"),e:t.o(l.mescrollInit),f:t.o(l.downCallback),g:t.o(l.upCallback),h:t.p({top:"88rpx",bottom:"0",down:r.downOption,up:r.upOption})}}],["__scopeId","data-v-e52a1258"]]);wx.createPage(a);
