import{U as f}from"./index.DLhCD1Qz.js";import{_ as u}from"./yb_admin_plugin.DNFUAscl.js";import{aZ as n,aL as c,u as b,I as e,bJ as o,v as p,H as l,bb as i}from"./@vue.Da0bZ210.js";import"./vue.Bj6dTZYa.js";import"./@element-plus.pQhr8KT1.js";import"./echarts.Dms41JYJ.js";import"./tslib.BDyQ-Jie.js";import"./zrender.BueMfJu3.js";import"./axios.BjtuyMK1.js";import"./pinia.Tngw-S_5.js";import"./vue-router.DaVMGKLh.js";import"./element-plus.DC208N5p.js";import"./lodash-es.DVGGNlzX.js";import"./@vueuse.BhH-hw9p.js";import"./async-validator.9PlIezaS.js";import"./@popperjs.C5az9QE8.js";import"./@ctrl.C4Rzlq_k.js";import"./dayjs.BLMYetss.js";import"./memoize-one.BdPwpGay.js";import"./normalize-wheel-es.BQoi3Ox2.js";import"./@floating-ui.DCXYYTka.js";import"./vue-i18n.C7BagGww.js";import"./@intlify.TnaUIxGf.js";import"./moment.C5S46NFB.js";const I={name:"OrderDetail",props:{edit:{type:Object,default:()=>({id:0})}},data(){return{orderInfo:{},payTypeMap:{0:"微信支付",1:"百度支付",2:"支付宝",3:"字节跳动",4:"QQ支付",7:"货到付款",8:"银行卡支付",11:"储值余额",12:"激励视频",13:"兑换码",15:"现金支付",16:"积分兑换"},payStatusMap:{0:"未付款",1:"已付款"},orderStatusMap:{0:"待支付",1:"待发货",2:"已发货",3:"已完成",4:"退款中",5:"已退款",6:"已取消",7:"已关闭"}}},created(){this.getOrderDetail()},methods:{getOrderDetail(){const a=this.edit.id||this.edit.id;if(!a){this.$message.error("订单ID不能为空");return}f({id:a}).then(d=>{this.orderInfo=d.data}).catch(()=>{this.$message.error("获取订单详情失败")})},goBack(){this.$router.go(-1)}}},y={class:"order-detail-container"};function h(a,d,g,v,r,M){const t=n("el-descriptions-item"),s=n("el-descriptions"),_=n("el-divider"),m=n("el-card");return c(),b("div",y,[e(m,{shadow:"never"},{default:o(()=>[d[0]||(d[0]=p("div",{slot:"header"},[p("span",null,"订单详情")],-1)),e(s,{column:2,border:""},{default:o(()=>[e(t,{label:"订单编号"},{default:o(()=>[l(i(r.orderInfo.order_no),1)]),_:1}),e(t,{label:"商户交易号"},{default:o(()=>[l(i(r.orderInfo.out_trade_no),1)]),_:1}),e(t,{label:"买家名称"},{default:o(()=>[l(i(r.orderInfo.buyer_name),1)]),_:1}),e(t,{label:"买家手机号"},{default:o(()=>[l(i(r.orderInfo.buyer_phone),1)]),_:1}),e(t,{label:"支付类型"},{default:o(()=>[l(i(r.payTypeMap[r.orderInfo.pay_type]),1)]),_:1}),e(t,{label:"支付状态"},{default:o(()=>[l(i(r.payStatusMap[r.orderInfo.pay_status]),1)]),_:1}),e(t,{label:"订单状态"},{default:o(()=>[l(i(r.orderStatusMap[r.orderInfo.order_status]),1)]),_:1}),e(t,{label:"创建时间"},{default:o(()=>[l(i(r.orderInfo.create_time),1)]),_:1}),e(t,{label:"账单金额"},{default:o(()=>[l(i(r.orderInfo.order_money)+"元",1)]),_:1}),e(t,{label:"实付金额"},{default:o(()=>[l(i(r.orderInfo.pay_money)+"元",1)]),_:1}),e(t,{label:"支付时间"},{default:o(()=>[l(i(r.orderInfo.pay_time||"未支付"),1)]),_:1}),e(t,{label:"更新时间"},{default:o(()=>[l(i(r.orderInfo.update_time||"未更新"),1)]),_:1})]),_:1}),e(_),d[1]||(d[1]=p("h4",null,"套餐信息",-1)),e(s,{column:2,border:""},{default:o(()=>[e(t,{label:"套餐名称"},{default:o(()=>[l(i(r.orderInfo.meal_name),1)]),_:1}),e(t,{label:"套餐价格"},{default:o(()=>[l(i(r.orderInfo.meal_price)+"元",1)]),_:1}),e(t,{label:"套餐点数"},{default:o(()=>[l(i(r.orderInfo.meal_price_num),1)]),_:1}),e(t,{label:"赠送点数"},{default:o(()=>[l(i(r.orderInfo.gift_price_num),1)]),_:1}),e(t,{label:"到期时间"},{default:o(()=>[l(i(r.orderInfo.end_time),1)]),_:1})]),_:1}),e(_)]),_:1})])}const K=u(I,[["render",h],["__scopeId","data-v-99b271c9"]]);export{K as default};
