"use strict";var e=require("../common/vendor.js"),t=require("../api/drugReport.js");require("../common/request.js");const r={data:()=>({report:null,form:{reportId:null,pingStar:0,pingContent:""}}),onLoad(e){this.form.reportId=e.reportId,this.getDrugReportById()},methods:{getDrugReportById(){var e={reportId:this.form.reportId};t.getDrugReportById(e).then((e=>{200==e.code&&(this.report=e.data)}),(e=>{}))},submit(){e.index.showLoading({title:"处理中..."}),t.pingReport(this.form).then((t=>{e.index.hideLoading(),200==t.code?(e.index.showToast({icon:"success",title:"评价成功"}),e.index.$emit("refreshDrugReportList"),setTimeout((function(){e.index.navigateBack({delta:1})}),2e3)):e.index.showToast({icon:"none",title:t.msg})}),(e=>{}))}}};if(!Array){e.resolveComponent("u-rate")()}Math;var o=e._export_sfc(r,[["render",function(t,r,o,n,i,a){return e.e({a:null!=i.report},null!=i.report?{b:i.report.avatar,c:e.t(i.report.doctorName)}:{},{d:e.o((e=>i.form.pingStar=e)),e:e.p({size:"24","active-color":"#fcab36",modelValue:i.form.pingStar}),f:i.form.pingContent,g:e.o((e=>i.form.pingContent=e.detail.value)),h:e.t(i.form.pingContent.length),i:e.o((e=>a.submit()))})}],["__scopeId","data-v-9a277d0c"]]);wx.createPage(o);
