moreShopAdmin/build/admin/assets/indexList.ddebcd8b.js

2 lines
9.2 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 he,q as ke,r as Ee,N as ge,O as Be}from"./element-plus.4a7d92a3.js";import{_ as Ve}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as xe}from"./index.vue_vue_type_script_setup_true_lang.d8ffaff6.js";import{u as Se}from"./vue-router.101084e3.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 e,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.18505fe0.js";import{u as Me}from"./usePaging.6a6670f9.js";import{u as Ke}from"./useDictOptions.a0f95660.js";import{h as J}from"./index.c7609165.js";import{a as Te}from"./user_ship.6e7e5434.js";import{a as Ye}from"./system_store.388b00e0.js";import"./lodash.9dc701ad.js";import{_ as Ne}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.332dc1e4.js";import{_ as Pe}from"./purchase_funds.vue_vue_type_script_setup_true_name_balance_lang.e6f36c59.js";import{_ as ze}from"./now_money.vue_vue_type_script_setup_true_name_balance_lang.ef1b4ba6.js";import{_ as Ie}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.ae328232.js";import{h as Q}from"./moment.40bc58bf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.e5c5a370.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./user_label.8f8258b6.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.81dd8172.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.72662b97.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.45b44df2.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.58a080ca.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.4ac6f063.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.02dd0b0a.js";const qe={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},je=Z({name:"userList"}),Oo=Z({...je,setup(Oe){var Y;const G=Se(),C=p(null),M=p([]),h=S(),k=S(),E=S(),g=p(!1),B=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:o})=>o)},{dictData:K}=Ke("sex,system_disable"),{pager:f,getLists:D,resetParams:X,resetPage:v}=Me({fetchFun:J,params:u}),ee=async s=>{var o,n;B.value=!0,await L(),(o=k.value)==null||o.open("edit"),(n=k.value)==null||n.setFormData(s)},oe=async s=>{var o,n;V.value=!0,await L(),(o=E.value)==null||o.open("edit"),(n=E.value)==null||n.setFormData(s)},te=async s=>{var o,n;g.value=!0,await L(),(o=h.value)==null||o.open("edit"),(n=h.value)==null||n.setFormData(s)},ae=async s=>{var o,n;(o=C.value)==null||o.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(o=>{T.value=o.lists,setTimeout(()=>{b.value=!1},300)}).catch(o=>{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,o)=>{const n=fe,_=De,N=ve,P=Fe,ne=_e,F=ye,se=xe,re=be,z=we,r=Ce,I=he,ie=ke,me=Ee,pe=ge,de=Ve,w=Ue("perms"),ce=Be;return i(),R("div",null,[e(z,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(re,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[e(_,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:t(u).nickname,"onUpdate:modelValue":o[0]||(o[0]=a=>t(u).nickname=a),onKeydown:$(t(v),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(_,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:t(u).account,"onUpdate:modelValue":o[1]||(o[1]=a=>t(u).account=a),onKeydown:$(t(v),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),e(_,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:t(u).mobile,"onUpdate:modelValue":o[2]||(o[2]=a=>t(u).mobile=a),onKeydown:$(t(v),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(_,{label:"\u7528\u6237\u7C7B\u578B",prop:"user_ship"},{default:l(()=>[e(P,{class:"w-[280px]",modelValue:t(u).user_ship,"onUpdate:modelValue":o[3]||(o[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}),e(_,{label:"\u6240\u5C5E\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(P,{modelValue:t(u).store_id,"onUpdate:modelValue":o[4]||(o[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}),e(_,{label:"",prop:"create_time"},{default:l(()=>[e(ne,{modelValue:t(c),"onUpdate:modelValue":o[5]||(o[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}),e(_,null,{default:l(()=>[e(F,{type:"primary",onClick:t(v)},{default:l(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(F,{onClick:t(X)},{default:l(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(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,[e(pe,{data:t(f).lists,onSelectionChange:W},{default:l(()=>[e(r,{label:"ID",prop:"id","min-width":"55"}),e(r,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),e(r,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),e(r,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),e(r,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),e(r,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),e(r,{label:"\u5F00\u901A\u65F6\u95F4",prop:"vip_time"}),e(r,{label:"\u793C\u54C1\u5238",prop:"integral"}),e(r,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"},{default:l(({row:a})=>[d(Le(Number(a.return_money).toFixed(2)),1)]),_:1}),e(r,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(r,{label:"\u7528\u6237\u4F59\u989D",prop:"now_money"}),e(r,{label:"\u7D2F\u8BA1\u6D88\u8D39",prop:"total_recharge_amount"}),e(r,{label:"\u5730\u5740",prop:"format_address",width:"150"}),e(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(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["user.user/edit"]]]),y((i(),m(F,{type:"primary",link:"",onClick:x=>ae(a)},{default:l(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[w,["user.user/detail"]]]),e(me,{trigger:"click"},{dropdown:l(()=>[e(ie,null,{default:l(()=>[y((i(),m(I,{onClick:x=>ee(a)},{default:l(()=>[d("\u8BBE\u7F6E\u91C7\u8D2D\u91D1")]),_:2},1032,["onClick"])),[[w,["user.user/purchase_funds"]]]),y((i(),m(I,{onClick:x=>oe(a)},{default:l(()=>[d("\u8BBE\u7F6E\u4F59\u989D")]),_:2},1032,["onClick"])),[[w,["user.user/now_money"]]])]),_:2},1024)]),default:l(()=>[e(F,{type:"primary",link:""},{default:l(()=>[d("\u66F4\u591A")]),_:1})]),_:2},1024)]),_:1})]),_:1},8,["data"])]),O("div",Ae,[e(de,{modelValue:t(f),"onUpdate:modelValue":o[6]||(o[6]=a=>j(f)?f.value=a:null),onChange:t(D)},null,8,["modelValue","onChange"])])]),_:1})),[[ce,t(f).loading]]),e(Ie,{ref_key:"detailsRef",ref:C,"dict-data":t(K)},null,8,["dict-data"]),t(g)?(i(),m(Ne,{key:0,ref_key:"editRef",ref:h,"dict-data":t(K),onSuccess:t(D),onClose:o[7]||(o[7]=a=>g.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),t(B)?(i(),m(Pe,{key:1,ref_key:"purchaseFundsRef",ref:k,onSuccess:t(D),onClose:o[8]||(o[8]=a=>B.value=!1)},null,8,["onSuccess"])):U("",!0),t(V)?(i(),m(ze,{key:2,ref_key:"nowmoneyRef",ref:E,onSuccess:t(D),onClose:o[9]||(o[9]=a=>V.value=!1)},null,8,["onSuccess"])):U("",!0)])}}});export{Oo as default};