"use strict";var r=require("../common/vendor.js"),i=require("../api/packageOrder.js");require("../common/request.js");const d={data(){return{orderId:null,order:{},package:null,items:[]}},onLoad(o){this.orderId=o.orderId,this.getPackageOrderById()},onShow(){},methods:{getPackageOrderById(){var o={orderId:this.orderId};i.getCompanyUserPackageOrderById(o).then(n=>{n.code==200?(this.order=n.order,this.package=JSON.parse(this.order.packageJson)):r.index.showToast({icon:"none",title:"\u8BF7\u6C42\u5931\u8D25"})})},pay(){r.index.navigateTo({url:"/pages_order/packageOrderPay?orderId="+this.order.orderId})},back(){let o=getCurrentPages();console.log(o.length),o.length>1?r.index.navigateBack():r.index.reLaunch({url:"/pages/common/launch"})},copyOrderSn(o){r.index.setClipboardData({data:o,success:()=>{r.index.showToast({title:"\u5185\u5BB9\u5DF2\u6210\u529F\u590D\u5236\u5230\u526A\u5207\u677F",icon:"none"})}})}}};function p(o,n,t,l,e,s){return r.e({a:e.order.status==1},e.order.status==1?{}:{},{b:e.order.status==2},e.order.status==2?{}:{},{c:e.order.status==3},e.order.status==3?{}:{},{d:e.order.status==-1},e.order.status==-1?{}:{},{e:e.order.status==-2},e.order.status==-2?{}:{},{f:e.package.imgUrl,g:r.t(e.package.packageName),h:r.t(e.package.cycle),i:r.t(e.package.duration),j:r.t(e.order.orderSn),k:r.o(y=>s.copyOrderSn(e.order.orderSn)),l:r.t(e.order.createTime),m:e.order.payType==1},e.order.payType==1?{}:{},{n:e.order.payType==2},e.order.payType==2?{}:{},{o:e.order.payType==3},e.order.payType==3?{}:{},{p:e.order.payPrice!=null},e.order.payPrice!=null?{q:r.t(e.order.payPrice.toFixed(2))}:{},{r:e.order.payMoney!=null},e.order.payMoney!=null?{s:r.t(e.order.payMoney.toFixed(2))}:{},{t:e.order.discountMoney!=null},e.order.discountMoney!=null?{v:r.t(e.order.discountMoney.toFixed(2))}:{},{w:e.order.payRemain!=null},e.order.payRemain!=null?{x:r.t(e.order.payRemain.toFixed(2))}:{},{y:e.order.payDelivery!=null},e.order.payDelivery!=null?{z:r.t(e.order.payDelivery.toFixed(2))}:{},{A:r.t(e.order.payTime)})}var c=r._export_sfc(d,[["render",p],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_company/packageOrderDetails.vue"]]);wx.createPage(c);
