"use strict";var e=require("../common/vendor.js"),r=require("../api/storeAfterSales.js");require("../common/request.js");const t={data:()=>({order:null,items:[]}),onLoad(e){this.orderId=e.orderId,this.getStoreOrderItems()},methods:{checkChange(e){e.checked=!e.checked},submit(r){e.index.redirectTo({url:"./storeOrderRefundSubmit?orderId="+this.orderId+"&type="+r})},getStoreOrderItems(){var t={orderId:this.orderId};r.getStoreOrderItems(t).then((r=>{200==r.code?(this.order=r.order,this.items=r.items):e.index.showToast({icon:"none",title:"请求失败"})}))}}};var s=e._export_sfc(t,[["render",function(r,t,s,o,d,n){return e.e({a:null!=d.order},null!=d.order?e.e({b:null!=d.order},null!=d.order?{c:e.f(d.items,((r,t,s)=>({a:""==JSON.parse(r.jsonInfo).image?"/static/images/drug.svg":JSON.parse(r.jsonInfo).image,b:e.t(JSON.parse(r.jsonInfo).productName),c:e.t(JSON.parse(r.jsonInfo).sku),d:e.t(JSON.parse(r.jsonInfo).price.toFixed(2)),e:e.t(JSON.parse(r.jsonInfo).num),f:t})))}:{},{d:2==d.order.status||3==d.order.status},2==d.order.status||3==d.order.status?{e:e.o((e=>n.submit(0)))}:{},{f:3==d.order.status||4==d.order.status},3==d.order.status||4==d.order.status?{g:e.o((e=>n.submit(1)))}:{}):{})}]]);wx.createPage(s);
