2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{C as O,D as J,J as Q,K as Z,w as z,F as G,L as H,M as W,N as X,O as Y}from"./element-plus.7b9d0c0d.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.8b9de773.js";import{u as oe}from"./vue-router.101084e3.js";import{d as K,r as b,s as te,Z as ae,ap as le,o as i,c as V,U as e,L as l,u as o,aa as v,T as ue,a9 as ne,K as c,R as _,M as y,a as x,S as re,j as se,Q as ie,n as pe}from"./@vue.18505fe0.js";import{u as me}from"./usePaging.6a6670f9.js";import{u as de}from"./useDictOptions.996b92e9.js";import{j as ce}from"./index.13a276ec.js";import{a as _e}from"./user_ship.ae018c56.js";import"./lodash.9dc701ad.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_userEdit_lang.841bd7c5.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.283d328b.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"./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"./index.77baabca.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./user_label.08574537.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./purchase.vue_vue_type_script_setup_true_name_purchase_lang.7b59c881.js";import"./balance.vue_vue_type_script_setup_true_name_balance_lang.6f6d8409.js";import"./merchandise.vue_vue_type_script_setup_true_name_merchandise_lang.c7387773.js";import"./freeze.vue_vue_type_script_setup_true_name_freeze_lang.49605a4f.js";import"./returnMoney.vue_vue_type_script_setup_true_name_returnMoney_lang.4ee42fe5.js";import"./receiveGifts.vue_vue_type_script_setup_true_name_receiveGifts_lang.51def3a6.js";const De={class:"mt-4"},Fe={class:"flex mt-4 justify-end"},Ce=K({name:"userList"}),fo=K({...Ce,setup(he){var B;const L=oe(),D=b(null),w=b([]),F=te(),C=b(!1),n=ae({nickname:"",account:"",mobile:"",store_id:(B=L.query.store_id)!=null?B:"",user_ship:""});_e([]).then(s=>{w.value=s.lists});const R=b([]),S=s=>{R.value=s.map(({id:t})=>t)},{dictData:k}=de("sex,system_disable"),{pager:p,getLists:h,resetParams:U,resetPage:m}=me({fetchFun:ce,params:n}),N=async s=>{var t,r;C.value=!0,await pe(),(t=F.value)==null||t.open("edit"),(r=F.value)==null||r.setFormData(s)},$=async s=>{var t,r;(t=D.value)==null||t.open(),(r=D.value)==null||r.setFormData(s)};return h(),(s,t)=>{const r=O,d=J,T=Q,P=Z,f=z,j=G,g=H,u=W,A=X,I=ee,E=le("perms"),q=Y;return i(),V("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(j,{class:"mb-[-16px]",model:o(n),inline:""},{default:l(()=>[e(d,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(n).nickname,"onUpdate:modelValue":t[0]||(t[0]=a=>o(n).nickname=a),onKeydown:v(o(m),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{label:"\u7528\u6237\u8D26\u53F7",prop:"account"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(n).account,"onUpdate:modelValue":t[1]||(t[1]=a=>o(n).account=a),onKeydown:v(o(m),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u8D26\u53F7"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile"},{default:l(()=>[e(r,{class:"w-[280px]",modelValue:o(n).mobile,"onUpdate:modelValue":t[2]||(t[2]=a=>o(n).mobile=a),onKeydown:v(o(m),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7535\u8BDD"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{label:"\u7528\u6237\u7C7B\u578B",prop:"user_ship"},{default:l(()=>[e(P,{class:"w-[280px]",modelValue:o(n).user_ship,"onUpdate:modelValue":t[3]||(t[3]=a=>o(n).user_ship=a),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",onChange:o(m)},{default:l(()=>[(i(!0),V(ue,null,ne(o(w),a=>(i(),c(T,{label:a.title,value:a.id,key:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),e(d,null,{default:l(()=>[e(f,{type:"primary",onClick:o(m)},{default:l(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:o(U)},{default:l(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((i(),c(g,{class:"!border-none",shadow:"never"},{default:l(()=>[x("div",De,[e(A,{data:o(p).lists,onSelectionChange:S},{default:l(()=>[e(u,{label:"ID",prop:"id","min-width":"55"}),e(u,{label:"\u771F\u5B9E\u59D3\u540D",prop:"real_name"}),e(u,{label:"\u7528\u6237\u6635\u79F0",prop:"nickname","min-width":"100"}),e(u,{label:"\u7528\u6237\u8D26\u53F7",prop:"account","min-width":"100"}),e(u,{label:"\u7528\u6237\u7535\u8BDD",prop:"mobile","min-width":"100"}),e(u,{label:"\u7528\u6237\u7C7B\u578B",prop:"vip_name"}),e(u,{label:"\u4F1A\u5458\u5F00\u901A\u65F6\u95F4",prop:"vip_time"}),e(u,{label:"\u793C\u54C1\u5238",prop:"integral"}),e(u,{label:"\u8FD4\u8FD8\u91D1",prop:"return_money"},{default:l(({row:a})=>[_(re(Number(a.return_money).toFixed(2)),1)]),_:1}),e(u,{label:"\u91C7\u8D2D\u6B3E",prop:"purchase_funds"}),e(u,{label:"\u7528\u6237\u4F59\u989D",prop:"now_money"}),e(u,{label:"\u7D2F\u8BA1\u6D88\u8D39",prop:"total_recharge_amount"}),e(u,{label:"\u5730\u5740",prop:"format_address",width:"150"}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[y((i(),c(f,{type:"primary",link:"",onClick:M=>N(a)},{default:l(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[E,["user.user/edit"]]]),y((i(),c(f,{type:"primary",link:"",onClick:M=>$(a)},{default:l(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[E,["user.user/detail"]]])]),_:1})]),_:1},8,["data"])]),x("div",Fe,[e(I,{modelValue:o(p),"onUpdate:modelValue":t[4]||(t[4]=a=>se(p)?p.value=a:null),onChange:o(h)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(p).loading]]),e(be,{ref_key:"detailsRef",ref:D,"dict-data":o(k)},null,8,["dict-data"]),o(C)?(i(),c(fe,{key:0,ref_key:"editRef",ref:F,"dict-data":o(k),onSuccess:o(h),onClose:t[5]||(t[5]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):ie("",!0)])}}});export{fo as default};
|