2 lines
9.2 KiB
JavaScript
2 lines
9.2 KiB
JavaScript
import{U as _e,C as fe,D as De,J as ve,K as Fe,w as be,F as ye,L as Ce,M as he,p as we,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.d280c061.js";import{u as Se}from"./vue-router.101084e3.js";import{d as G,r as m,s as V,Z as Re,i as $e,ap as Ue,o as i,c as x,U as e,L as l,u as o,aa as S,T as A,a9 as j,K as p,j as O,R as d,M as R,a as J,S as Le,Q as $,n as U}from"./@vue.18505fe0.js";import{u as Me}from"./usePaging.6a6670f9.js";import{u as Ke}from"./useDictOptions.4dcdad37.js";import{h as Q}from"./index.2b92c592.js";import{a as Te}from"./user_ship.c4cfdc86.js";import{a as Ye}from"./system_store.3dfab7ce.js";import"./lodash.9dc701ad.js";import{_ as Ne}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.ab6c9f55.js";import{_ as Pe}from"./purchase_funds.vue_vue_type_script_setup_true_name_balance_lang.c5111504.js";import{_ as ze}from"./now_money.vue_vue_type_script_setup_true_name_balance_lang.2649cffb.js";import{_ as Ie}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.c5ae013f.js";import{h as Z}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.11a897a4.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.7d4e171f.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.14c52ba9.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.5c8bd5ab.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.45fa815c.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.c19a40a1.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.3d0204d9.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.62ee9fcf.js";const qe={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},je=G({name:"userList"}),jt=G({...je,setup(Oe){var T;const H=Se(),y=m(null),L=m([]),C=V(),h=V(),w=V(),k=m(!1),E=m(!1),g=m(!1),u=Re({nickname:"",account:"",mobile:"",store_id:(T=H.query.store_id)!=null?T:"",user_ship:"",start_time:"",end_time:""});Te([]).then(s=>{L.value=s.lists});const W=m([]),X=s=>{W.value=s.map(({id:t})=>t)},{dictData:M}=Ke("sex,system_disable"),{pager:f,getLists:D,resetParams:ee,resetPage:v}=Me({fetchFun:Q,params:u}),te=async s=>{var t,n;E.value=!0,await U(),(t=h.value)==null||t.open("edit"),(n=h.value)==null||n.setFormData(s)},oe=async s=>{var t,n;g.value=!0,await U(),(t=w.value)==null||t.open("edit"),(n=w.value)==null||n.setFormData(s)},ae=async s=>{var t,n;k.value=!0,await U(),(t=C.value)==null||t.open("edit"),(n=C.value)==null||n.setFormData(s)},le=async s=>{var t,n;(t=y.value)==null||t.open(),(n=y.value)==null||n.setFormData(s)},b=m(!1),K=m([]),ue=(s="")=>{b.value=!0,Ye({name:s,page_size:50}).then(t=>{K.value=t.lists,setTimeout(()=>{b.value=!1},300)}).catch(t=>{setTimeout(()=>{b.value=!1},300)})},c=m([new Date,new Date]),ne=()=>{c.value[0]&&c.value[1]?(u.start_time=Z(c.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=Z(c.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),D()};return $e(()=>{D()}),(s,t)=>{const n=fe,_=De,Y=ve,N=Fe,se=_e,F=be,re=xe,ie=ye,P=Ce,r=he,z=we,I=ke,me=Ee,pe=ge,de=Ve,q=Ue("perms"),ce=Be;return i(),x("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(ie,{class:"mb-[-16px]",model:o(u),inline:""},{default:l(()=>[e(_,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[e(n,{class:"w-[280px]",modelValue:o(u).nickname,"onUpdate:modelValue":t[0]||(t[0]=a=>o(u).nickname=a),onKeydown:S(o(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:o(u).account,"onUpdate:modelValue":t[1]||(t[1]=a=>o(u).account=a),onKeydown:S(o(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:o(u).mobile,"onUpdate:modelValue":t[2]||(t[2]=a=>o(u).mobile=a),onKeydown:S(o(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(N,{class:"w-[280px]",modelValue:o(u).user_ship,"onUpdate:modelValue":t[3]||(t[3]=a=>o(u).user_ship=a),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",onChange:o(v)},{default:l(()=>[(i(!0),x(A,null,j(o(L),a=>(i(),p(Y,{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(N,{modelValue:o(u).store_id,"onUpdate:modelValue":t[4]||(t[4]=a=>o(u).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ue,loading:o(b),style:{width:"240px"}},{default:l(()=>[(i(!0),x(A,null,j(o(K),a=>(i(),p(Y,{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(se,{modelValue:o(c),"onUpdate:modelValue":t[5]||(t[5]=a=>O(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:ne},null,8,["modelValue"])]),_:1}),e(_,null,{default:l(()=>[e(F,{type:"primary",onClick:o(v)},{default:l(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(F,{onClick:o(ee)},{default:l(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(re,{class:"ml-2.5","fetch-fun":o(Q),params:o(u),"page-size":o(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),R((i(),p(P,{class:"!border-none",shadow:"never"},{default:l(()=>[J("div",qe,[e(pe,{data:o(f).lists,onSelectionChange:X},{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})=>[R((i(),p(F,{type:"primary",link:"",onClick:B=>ae(a)},{default:l(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[q,["user.user/edit"]]]),R((i(),p(F,{type:"primary",link:"",onClick:B=>le(a)},{default:l(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[q,["user.user/detail"]]]),e(me,{trigger:"click"},{default:l(()=>[e(F,{type:"primary",link:""},{default:l(()=>[d("\u66F4\u591A")]),_:1}),e(I,null,{default:l(()=>[e(z,{onClick:B=>te(a)},{default:l(()=>[d("\u8BBE\u7F6E\u91C7\u8D2D\u91D1")]),_:2},1032,["onClick"])]),_:2},1024),e(I,null,{default:l(()=>[e(z,{onClick:B=>oe(a)},{default:l(()=>[d("\u8BBE\u7F6E\u4F59\u989D")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:1})]),_:1},8,["data"])]),J("div",Ae,[e(de,{modelValue:o(f),"onUpdate:modelValue":t[6]||(t[6]=a=>O(f)?f.value=a:null),onChange:o(D)},null,8,["modelValue","onChange"])])]),_:1})),[[ce,o(f).loading]]),e(Ie,{ref_key:"detailsRef",ref:y,"dict-data":o(M)},null,8,["dict-data"]),o(k)?(i(),p(Ne,{key:0,ref_key:"editRef",ref:C,"dict-data":o(M),onSuccess:o(D),onClose:t[7]||(t[7]=a=>k.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),o(E)?(i(),p(Pe,{key:1,ref_key:"purchaseFundsRef",ref:h,onSuccess:o(D),onClose:t[8]||(t[8]=a=>E.value=!1)},null,8,["onSuccess"])):$("",!0),o(g)?(i(),p(ze,{key:2,ref_key:"nowmoneyRef",ref:w,onSuccess:o(D),onClose:t[9]||(t[9]=a=>g.value=!1)},null,8,["onSuccess"])):$("",!0)])}}});export{jt as default};
|