2024-09-19 11:09:33 +08:00
|
|
|
import{Q as $,J as P,o as R,w as V,F as q,G as N}from"./element-plus.6b125791.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang.236700ef.js";import{l as M,b as Q}from"./index.8eb121a3.js";import{u as S}from"./vue-router.9ddb0e92.js";import{g as z,u as G,a as H}from"./consumer.1b88751a.js";import{_ as I}from"./account-adjust.vue_vue_type_script_setup_true_lang.dc83a8e1.js";import{d as D,$ as w,s as J,ap as O,o as p,c as T,W as e,Q as t,u as a,a as d,U as l,V as i,R as f,P as F}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.6b964ca4.js";import"./axios.ebd1d4d0.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.ab1d8f92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.7acb2098.js";const W={class:"bg-page flex py-5 mb-10 items-center"},K={class:"basis-40 flex flex-col justify-center items-center"},L=d("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),X={class:"basis-40 flex flex-col justify-center items-center"},Y=d("div",{class:"text-tx-regular"},"\u8D26\u6237\u4F59\u989D",-1),Z={class:"mt-2 flex items-center"},ee=D({name:"consumerDetail"}),Qe=D({...ee,setup(te){const x=S(),s=w({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",user_money:""}),m=w({show:!1,value:""}),h=J(),E=async()=>{const n=await z({id:x.query.id});Object.keys(s).forEach(o=>{s[o]=n[o]})},y=async(n,o)=>{M(n)||(await G({id:x.query.id,field:o,value:n}),E())},k=n=>{m.show=!0,m.value=n},A=async n=>{await H({user_id:x.query.id,...n}),m.show=!1,E()};return E(),(n,o)=>{const g=$,C=P,B=R,c=V,u=q,v=Q,b=U,j=N,_=O("perms");return p(),T("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:t(()=>[e(g,{content:"\u7528\u6237\u8BE6\u60C5",onBack:o[0]||(o[0]=r=>n.$router.back())})]),_:1}),e(C,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:t(()=>[e(j,{ref_key:"formRef",ref:h,class:"ls-form",model:a(s),"label-width":"120px"},{default:t(()=>[d("div",W,[d("div",K,[L,e(B,{src:a(s).avatar,size:58},null,8,["src"])]),d("div",X,[Y,d("div",Z,[l(" \xA5"+i(a(s).user_money)+" ",1),f((p(),F(c,{type:"primary",link:"",onClick:o[1]||(o[1]=r=>k(a(s).user_money))},{default:t(()=>[l(" \u8C03\u6574 ")]),_:1})),[[_,["user.user/adjustMoney"]]])])])]),e(u,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:t(()=>[l(i(a(s).nickname),1)]),_:1}),e(u,{label:"\u8D26\u53F7\uFF1A"},{default:t(()=>[l(i(a(s).account)+" ",1),f((p(),F(b,{class:"ml-[10px]",onConfirm:o[2]||(o[2]=r=>y(r,"account")),limit:32},{default:t(()=>[e(c,{type:"primary",link:""},{default:t(()=>[e(v,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[_,["user.user/edit"]]])]),_:1}),e(u,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:t(()=>[l(i(a(s).real_name||"-")+" ",1),f((p(),F(b,{class:"ml-[10px]",onConfirm:o[3]||(o[3]=r=>y(r,"real_name")),limit:32},{default:t(()=>[e(c,{type:"primary",link:""},{default:t(()=>[e(v,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[_,["user.user/edit"]]])]),_:1}),e(u,{label:"\u6027\u522B\uFF1A"},{default:t(()=>[l(i(a(s).sex)+" ",1),f((p(),F(b,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:o[4]||(o[4]=r=>y(r,"sex"))},{default:t(()=>[e(c,{type:"primary",link:""},{default:t(()=>[e(v,{name:"el-icon-EditPen"})]),_:1})]),_:1
|