import{az as d,d as k,r as h,b as v,p as q,c as g,e as F,k as B,i as o,h as l,g as s,u as n,t as i,a2 as E,m as A,E as S,_ as T}from"./index.0308b213.js";const H=e=>d.request({url:"addon/agent.web.index/getcash",params:e}),J=e=>d.request({url:"addon/agent.web.index/query",params:{id2:e}}),K=e=>d.request({url:"addon/agent.web.index/transfers",params:{id2:e}}),Q=(e,c)=>d.request({url:"addon/agent.web.index/statuss",params:{id2:e,status:c}}),I=e=>d.request({url:"addon/agent.web.index/detailcancel",params:{id2:e}}),N=e=>d.request({url:"addon/agent.web.index/cancel",method:"POST",data:e}),O={class:"agent-info"},j={class:"info-image"},z=["src"],M={class:"data"},P=A("\u63D0\u4EA4"),R=A("\u53D6\u6D88"),U=k({props:{modelValue:{type:Boolean,default:!1},id:{default:0}},emits:["update:modelValue","onClose"],setup(e,{emit:c}){const _=e,f=h(!1),x=h(),t=v({log:{trade_no:"",addtime:"",get_fee:"",account:{avatar:""}},agent:{title:"",mobile:""}}),r=v({id2:"",remark:""}),y=()=>{I(_.id).then(a=>{t.log.trade_no=a.log.trade_no,t.log.addtime=a.log.addtime,t.log.get_fee=a.log.get_fee,t.log.account.avatar=a.log.account.avatar,t.agent.title=a.agent.title,t.agent.mobile=a.agent.mobile})};q(()=>_.modelValue,a=>{f.value=a,a&&_.id&&(r.id2=_.id,y())});const V=()=>{N(r).then(a=>{S({message:a.msg,type:"success"}),p()})},p=()=>{c("update:modelValue",!1),c("onClose")};return(a,m)=>{const u=g("el-form-item"),w=g("el-input"),b=g("el-button"),D=g("el-dialog");return F(),B(D,{modelValue:f.value,"onUpdate:modelValue":m[1]||(m[1]=C=>f.value=C),title:"\u7533\u8BF7\u63D0\u73B0\u64A4\u9500",width:"50%",onClose:p},{default:o(()=>[l(n(E),{ref_key:"formRef",ref:x,model:n(r),"label-width":"140px"},{default:o(()=>[l(u,{class:"tn-el-form-item",label:"\u4EE3\u7406\u4FE1\u606F"},{default:o(()=>[s("div",O,[s("div",j,[s("img",{src:n(t).log.account.avatar},null,8,z)]),s("div",M,i(n(t).agent.title)+"/"+i(n(t).agent.mobile),1)])]),_:1}),l(u,{label:"\u7533\u8BF7\u65F6\u95F4"},{default:o(()=>[s("div",null,i(n(t).log.addtime),1)]),_:1}),l(u,{label:"\u8BA2\u5355\u53F7"},{default:o(()=>[s("div",null,i(n(t).log.trade_no),1)]),_:1}),l(u,{label:"\u64A4\u9500\u91D1\u989D"},{default:o(()=>[s("div",null,i(n(t).log.get_fee),1)]),_:1}),l(u,{label:"\u5907\u6CE8",prop:"remark"},{default:o(()=>[l(w,{modelValue:n(r).remark,"onUpdate:modelValue":m[0]||(m[0]=C=>n(r).remark=C),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea",row:3},null,8,["modelValue"])]),_:1}),l(u,null,{default:o(()=>[l(b,{type:"primary",onClick:V},{default:o(()=>[P]),_:1}),l(b,{onClick:p},{default:o(()=>[R]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});const L=T(U,[["__scopeId","data-v-9ffd1ec0"]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"}));export{L as C,W as a,K as c,H as g,J as q,Q as u};
