moreShopAdmin/build/admin/assets/indexList.6738fd68.js

2 lines
9.4 KiB
JavaScript

import{U as _e,C as fe,D as De,J as ve,K as Fe,w as ye,F as be,L as we,M as Ce,p as ke,q as Ee,r as ge,N as Be,O as he}from"./element-plus.91c68cc0.js";import{_ as Ve}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as xe}from"./index.vue_vue_type_script_setup_true_lang.96f62f54.js";import{u as Se}from"./vue-router.10bd5b90.js";import{d as Z,r as p,s as S,Z as Re,i as $e,ap as Ue,o as i,c as R,U as o,L as l,u as t,aa as $,T as q,a9 as A,K as m,j,R as d,M as y,a as O,S as Le,Q as U,n as L}from"./@vue.76ce7aa3.js";import{u as Me}from"./usePaging.f8c888e4.js";import{u as Ke}from"./useDictOptions.1cd81cc1.js";import{h as J}from"./index.0e5577f4.js";import{a as Te}from"./user_ship.46988b70.js";import{a as Ye}from"./system_store.2fa4ef1a.js";import"./lodash.4e6d2a38.js";import{_ as Ne}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.1585a65e.js";import{_ as Pe}from"./purchase_funds.vue_vue_type_script_setup_true_name_balance_lang.622a497a.js";import{_ as ze}from"./now_money.vue_vue_type_script_setup_true_name_balance_lang.a48fd499.js";import{_ as Ie}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.bc587f8b.js";import{h as Q}from"./moment.40bc58bf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.395bb96e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./user_label.44243293.js";import"./index.vue_vue_type_script_setup_true_lang.20e90b1a.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.b0d8f6e0.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.b17e3fd3.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.3046fd12.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.42446e67.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.2feee1aa.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.804f6f9b.js";const qe={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},je=Z({name:"userList"}),Zo=Z({...je,setup(Oe){var Y;const G=Se(),C=p(null),M=p([]),k=S(),E=S(),g=S(),B=p(!1),h=p(!1),V=p(!1),u=Re({nickname:"",account:"",mobile:"",store_id:(Y=G.query.store_id)!=null?Y:"",user_ship:"",start_time:"",end_time:""});Te([]).then(s=>{M.value=s.lists});const H=p([]),W=s=>{H.value=s.map(({id:e})=>e)},{dictData:K}=Ke("sex,system_disable"),{pager:f,getLists:D,resetParams:X,resetPage:v}=Me({fetchFun:J,params:u}),ee=async s=>{var e,n;h.value=!0,await L(),(e=E.value)==null||e.open("edit"),(n=E.value)==null||n.setFormData(s)},oe=async s=>{var e,n;V.value=!0,await L(),(e=g.value)==null||e.open("edit"),(n=g.value)==null||n.setFormData(s)},te=async s=>{var e,n;B.value=!0,await L(),(e=k.value)==null||e.open("edit"),(n=k.value)==null||n.setFormData(s)},ae=async s=>{var e,n;(e=C.value)==null||e.open(),(n=C.value)==null||n.setFormData(s)},b=p(!1),T=p([]),le=(s="")=>{b.value=!0,Ye({name:s,page_size:50}).then(e=>{T.value=e.lists,setTimeout(()=>{b.value=!1},300)}).catch(e=>{setTimeout(()=>{b.value=!1},300)})},c=p([new Date,new Date]),ue=()=>{c.value[0]&&c.value[1]?(u.start_time=Q(c.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=Q(c.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),D()};return $e(()=>{D()}),(s,e)=>{const n=fe,_=De,N=ve,P=Fe,ne=_e,F=ye,se=xe,re=be,z=we,r=Ce,I=ke,ie=Ee,me=ge,pe=Be,de=Ve,w=Ue("perms"),ce=he;return i(),R("div",null,[o(z,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(re,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[o(_,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(u).nickname,"onUpdate:modelValue":e[0]||(e[0]=a=>t(u).nickname=a),onKeydown:$(t(v),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(_,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(u).account,"onUpdate:modelValue":e[1]||(e[1]=a=>t(u).account=a),onKeydown:$(t(v),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),o(_,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(u).mobile,"onUpdate:modelValue":e[2]||(e[2]=a=>t(u).mobile=a),onKeydown:$(t(v),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),o(_,{label:"\u7528\u6237\u7C7B\u578B",prop:"user_ship"},{default:l(()=>[o(P,{class:"w-[280px]",modelValue:t(u).user_ship,"onUpdate:modelValue":e[3]||(e[3]=a=>t(u).user_ship=a),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",onChange:t(v)},{default:l(()=>[(i(!0),R(q,null,A(t(M),a=>(i(),m(N,{label:a.title,value:a.id,key:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),o(_,{label:"\u6240\u5C5E\u95E8\u5E97",prop:"store_id"},{default:l(()=>[o(P,{modelValue:t(u).store_id,"onUpdate:modelValue":e[4]||(e[4]=a=>t(u).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":le,loading:t(b),style:{width:"240px"}},{default:l(()=>[(i(!0),R(q,null,A(t(T),a=>(i(),m(N,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),o(_,{label:"",prop:"create_time"},{default:l(()=>[o(ne,{modelValue:t(c),"onUpdate:modelValue":e[5]||(e[5]=a=>j(c)?c.value=a:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:ue},null,8,["modelValue"])]),_:1}),o(_,null,{default:l(()=>[o(F,{type:"primary",onClick:t(v)},{default:l(()=>e[10]||(e[10]=[d("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(F,{onClick:t(X)},{default:l(()=>e[11]||(e[11]=[d("\u91CD\u7F6E")])),_:1},8,["onClick"]),o(se,{class:"ml-2.5","fetch-fun":t(J),params:t(u),"page-size":t(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),y((i(),m(z,{class:"!border-none",shadow:"never"},{default:l(()=>[O("div",qe,[o(pe,{data:t(f).lists,onSelectionChange:W},{default:l(()=>[o(r,{label:"ID",prop:"id","min-width":"55"}),o(r,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),o(r,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),o(r,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),o(r,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),o(r,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),o(r,{label:"\u5F00\u901A\u65F6\u95F4",prop:"vip_time"}),o(r,{label:"\u793C\u54C1\u5238",prop:"integral"}),o(r,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"},{default:l(({row:a})=>[d(Le(Number(a.return_money).toFixed(2)),1)]),_:1}),o(r,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),o(r,{label:"\u7528\u6237\u4F59\u989D",prop:"now_money"}),o(r,{label:"\u7D2F\u8BA1\u6D88\u8D39",prop:"total_recharge_amount"}),o(r,{label:"\u5730\u5740",prop:"format_address",width:"150"}),o(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[y((i(),m(F,{type:"primary",link:"",onClick:x=>te(a)},{default:l(()=>e[12]||(e[12]=[d(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[w,["user.user/edit"]]]),y((i(),m(F,{type:"primary",link:"",onClick:x=>ae(a)},{default:l(()=>e[13]||(e[13]=[d(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])),[[w,["user.user/detail"]]]),o(me,{trigger:"click"},{dropdown:l(()=>[o(ie,null,{default:l(()=>[y((i(),m(I,{onClick:x=>ee(a)},{default:l(()=>e[15]||(e[15]=[d("\u8BBE\u7F6E\u91C7\u8D2D\u91D1")])),_:2},1032,["onClick"])),[[w,["user.user/purchase_funds"]]]),y((i(),m(I,{onClick:x=>oe(a)},{default:l(()=>e[16]||(e[16]=[d("\u8BBE\u7F6E\u4F59\u989D")])),_:2},1032,["onClick"])),[[w,["user.user/now_money"]]])]),_:2},1024)]),default:l(()=>[o(F,{type:"primary",link:""},{default:l(()=>e[14]||(e[14]=[d("\u66F4\u591A")])),_:1})]),_:2},1024)]),_:1})]),_:1},8,["data"])]),O("div",Ae,[o(de,{modelValue:t(f),"onUpdate:modelValue":e[6]||(e[6]=a=>j(f)?f.value=a:null),onChange:t(D)},null,8,["modelValue","onChange"])])]),_:1})),[[ce,t(f).loading]]),o(Ie,{ref_key:"detailsRef",ref:C,"dict-data":t(K)},null,8,["dict-data"]),t(B)?(i(),m(Ne,{key:0,ref_key:"editRef",ref:k,"dict-data":t(K),onSuccess:t(D),onClose:e[7]||(e[7]=a=>B.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),t(h)?(i(),m(Pe,{key:1,ref_key:"purchaseFundsRef",ref:E,onSuccess:t(D),onClose:e[8]||(e[8]=a=>h.value=!1)},null,8,["onSuccess"])):U("",!0),t(V)?(i(),m(ze,{key:2,ref_key:"nowmoneyRef",ref:g,onSuccess:t(D),onClose:e[9]||(e[9]=a=>V.value=!1)},null,8,["onSuccess"])):U("",!0)])}}});export{Zo as default};