import{P as j,I as N,o as P,w as T,D as $,F as L}from"./element-plus.fa1aa32c.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.2ded5aed.js";import{n as V,f as q,b as I}from"./index.0abf9e5c.js";import{u as M}from"./vue-router.5046cc50.js";import{g as S,u as U}from"./consumer.446a7ecc.js";import{_ as O}from"./account-adjust.vue_vue_type_script_setup_true_lang.20c4e30f.js";import{d as w,a0 as C,s as z,ag as H,o as m,c as G,V as e,M as t,a as d,T as r,U as u,O as _,L as f}from"./@vue.cab01781.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.bbe6f09f.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";import"./index.082aefea.js";const J={class:"bg-page flex py-5 mb-10 items-center"},K={class:"basis-40 flex flex-col justify-center items-center"},Q=d("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),W={class:"basis-40 flex flex-col justify-center items-center"},X=d("div",{class:"text-tx-regular"},"\u8D26\u6237\u4F59\u989D",-1),Y={class:"mt-2 flex items-center"},Z=r(" \u8C03\u6574 "),ee=w({name:"consumerDetail"}),Re=w({...ee,setup(te){const y=M(),a=C({avatar:"",channel:"",createTime:"",lastLoginIp:"",lastLoginTime:"",mobile:"",nickname:"",realName:0,sex:0,sn:"",username:""}),D=z(),i=C({show:!1,value:""}),x=async()=>{const l=await S({id:y.query.id});Object.keys(a).forEach(o=>{a[o]=l[o]})},F=async(l,o)=>{V(l)||(await U({id:y.query.id,field:o,value:l}),q.msgSuccess("\u7F16\u8F91\u6210\u529F"),x())},h=l=>{i.show=!0,i.value=l},g=async l=>{await adjustMoney({user_id:y.query.id,...l}),i.show=!1,x()};return x(),(l,o)=>{const k=j,E=N,A=P,p=T,n=$,b=I,v=R,B=L,c=H("perms");return m(),G("div",null,[e(E,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=s=>l.$router.back())})]),_:1}),e(E,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(B,{ref_key:"formRef",ref:D,class:"ls-form",model:a,"label-width":"120px"},{default:t(()=>[d("div",J,[d("div",K,[Q,e(A,{src:a.avatar,size:58},null,8,["src"])]),d("div",W,[X,d("div",Y,[r(" \xA5"+u(a.user_money)+" ",1),_((m(),f(p,{type:"primary",link:"",onClick:o[1]||(o[1]=s=>h(a.user_money))},{default:t(()=>[Z]),_:1})),[[c,["user.user/adjustMoney"]]])])])]),e(n,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:t(()=>[r(u(a.sn),1)]),_:1}),e(n,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[r(u(a.nickname),1)]),_:1}),e(n,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[r(u(a.username)+" ",1),e(v,{class:"ml-[10px]",limit:32,onConfirm:o[2]||(o[2]=s=>F(s,"username"))},{default:t(()=>[_((m(),f(p,{type:"primary",link:""},{default:t(()=>[e(b,{name:"el-icon-EditPen"})]),_:1})),[[c,["user:edit"]]])]),_:1})]),_:1}),e(n,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[r(u(a.realName||"-")+" ",1),e(v,{class:"ml-[10px]",limit:32,onConfirm:o[3]||(o[3]=s=>F(s,"realName"))},{default:t(()=>[_((m(),f(p,{type:"primary",link:""},{default:t(()=>[e(b,{name:"el-icon-EditPen"})]),_:1})),[[c,["user:edit"]]])]),_:1})]),_:1}),e(n,{label:"\u6027\u522B\uFF1A"},{default:t(()=>[r(u(a.sex)+" ",1),e(v,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:o[4]||(o[4]=s=>F(s,"sex"))},{default:t(()=>[_((m(),f(p,{type:"primary",link:""},{default:t(()=>[e(b,{name:"el-icon-EditPen"})]),_:1})),[[c,["user:edit"]]])]),_:1})]),_:1}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:t(()=>[r(u(a.mobile||"-")+" ",1),e(v,{class:"ml-[10px]",type:"number",onConfirm:o[5]||(o[5]=s=>F(s,"mobile"))},{default:t(()=>[_((m(),f(p,{type:"primary",link:""},{default:t(()=>[e(b,{name:"el-icon-EditPen"})]),_:1})),[[c,["user:edit"]]])]),_:1})]),_:1}),e(n,{label:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:t(()=>[r(u(a.channel),1)]),_:1}),e(n,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:t(()=>[r(u(a.createTime),1)]),_:1}),e(n,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:t(()=>[r(u(a.lastLoginTime),1)]),_:1})]),_:1},8,["model"])]),_:1}),e(O,{show:i.show,"onUpdate:show":o[6]||(o[6]=s=>i.show=s),value:i.value,onConfirm:g},null,8,["show","value"])])}}});export{Re as default};
