import{u as b}from"./useInstance.233fbdde.js";import{az as y,aa as E,d as B,a6 as M,r as O,b as R,p as P,c as g,e as l,k as V,i as u,g as e,h as v,t as d,u as i,f as c,j as q,A as k,F as C,q as w,E as z,R as I,S,_ as j}from"./index.0308b213.js";const Ae=a=>y.request({url:"addon/mealPacket.web.MealRedpacketOrder/list",params:a}),L=a=>y.request({url:"addon/mealPacket.web.MealRedpacketOrder/detail",params:{id:a}}),be=a=>E.request({url:"agent/plugin.mealRedPacket.MealRedpacketOrder/list",params:a}),N=a=>E.request({url:"agent/plugin.mealRedPacket.MealRedpacketOrder/detail",params:{id:a}}),n=a=>(I("data-v-5e1218f1"),a=a(),S(),a),U={class:"container"},T={class:"left"},G={class:"order-info"},H=n(()=>e("div",{class:"header"},[e("div",{class:"tn-title--vertical-line"},"\u8BA2\u5355\u4FE1\u606F")],-1)),J={class:"body"},K={class:"data-item"},Q=n(()=>e("div",{class:"data-item__title"},"\u8BA2\u5355\u53F7",-1)),W={class:"data-item__value"},X={class:"data-item"},Y=n(()=>e("div",{class:"data-item__title"},"\u8D2D\u4E70\u4EBAUID",-1)),Z={class:"data-item__value"},$={class:"data-item"},ee=n(()=>e("div",{class:"data-item__title"},"\u8D2D\u4E70\u4EBA\u6635\u79F0",-1)),te={class:"data-item__value"},ae={class:"data-item"},se=n(()=>e("div",{class:"data-item__title"},"\u8D2D\u4E70\u65F6\u95F4",-1)),oe={class:"data-item__value"},de={class:"data-item"},ie=n(()=>e("div",{class:"data-item__title"},"\u4ED8\u6B3E\u65B9\u5F0F",-1)),le={class:"data-item__value"},ne={key:0,class:"tag tn-tag tn-tag--green"},ce={key:1,class:"tag tn-tag tn-tag--red"},_e={class:"repacket-log"},ue=n(()=>e("div",{class:"header"},[e("div",{class:"tn-title--vertical-line"},"\u7EA2\u5305\u4FE1\u606F")],-1)),re={class:"body"},pe={class:"redpackets"},me=["src"],he={style:{position:"absolute",top:"30px",left:"20px","font-size":"28px",color:"red"}},fe={style:{position:"absolute",top:"30px",right:"20px","font-size":"28px",color:"red"}},ge={key:0,style:{position:"absolute",bottom:"20px",right:"20px","font-size":"15px",color:"red"}},ve={key:1,style:{position:"absolute",bottom:"20px",right:"20px","font-size":"14px"}},ke={style:{position:"absolute",bottom:"20px",left:"20px","font-size":"14px"}},ye=B({props:{modelValue:{type:Boolean,default:!1},id:{default:0}},emits:["update:modelValue","onClose"],setup(a,{emit:p}){const r=a,{OpPlatform:x}=M();b();let _=O(!1);const t=R({order_sn:"",uid:"",nickname:"",addtime_cn:"",fineal_fee:0,pay_type_cn:"",is_pay:0,redpacket_img:"https://qny.wdsp666.com/uploads/images/202307201151315d7ad2060.png",redpackets:[]}),D=()=>x.value==="agent"?N(r.id):L(r.id),F=()=>{D().then(s=>{t.order_sn=s.order_sn,t.uid=s.uid,t.nickname=s.nickname,t.addtime_cn=s.addtime_cn,t.fineal_fee=s.fineal_fee,t.pay_type_cn=s.pay_type_cn,t.is_pay=s.is_pay,t.redpackets=s.data.meal.redpackets})};P(()=>r.modelValue,s=>{_.value=s,s&&(r.id?F():(z.error("id\u4E0D\u80FD\u4E3A\u7A7A"),m()))});const m=()=>{p("update:modelValue",!1),p("onClose")};return(s,h)=>{const f=g("el-card"),A=g("el-dialog");return l(),V(A,{modelValue:i(_),"onUpdate:modelValue":h[0]||(h[0]=o=>w(_)?_.value=o:_=o),title:"\u8BA2\u5355\u8BE6\u60C5",top:"0px",width:"60%",onClose:m},{default:u(()=>[e("div",U,[e("div",T,[e("div",G,[v(f,null,{header:u(()=>[H]),default:u(()=>[e("div",J,[e("div",K,[Q,e("div",W,d(i(t).order_sn),1)]),e("div",X,[Y,e("div",Z,d(i(t).uid),1)]),e("div",$,[ee,e("div",te,d(i(t).nickname),1)]),e("div",ae,[se,e("div",oe,d(i(t).addtime_cn),1)]),e("div",de,[ie,e("div",le,[i(t).is_pay?(l(),c("span",ne,d(i(t).pay_type_cn),1)):(l(),c("span",ce,"\u672A\u652F\u4ED8"))])])])]),_:1})]),e("div",_e,[v(f,null,{header:u(()=>[ue]),default:u(()=>[e("div",re,[(l(!0),c(C,null,q(i(t).redpackets,(o,xe)=>(l(),c("div",pe,[e("img",{src:i(t).redpacket_img,style:{width:"100%",height:"100%"}},null,8,me),e("span",he,d(o.name),1),e("span",fe,"\uFFE5"+d(o.discount),1),o.condition>0?(l(),c("span",ge,"\u6EE1"+d(o.condition)+"\u5143\u53EF\u7528",1)):k("",!0),o.condition==0?(l(),c("span",ve,"\u65E0\u95E8\u69DB")):k("",!0),e("span",ke,"\u9886\u53D6\u540E"+d(o.grant_days_effect)+"\u5929\u751F\u6548,\u6709\u6548\u671F"+d(o.use_days_limit)+"\u5929",1)]))),256))])]),_:1})])])])]),_:1},8,["modelValue"])}}});const Ee=j(ye,[["__scopeId","data-v-5e1218f1"]]),Be=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"}));export{Ee as M,Ae as a,be as g,Be as o};
