index-41dee9eb.js 9.3 KB

1
  1. import{d as ye,aW as ge,aX as ve,e as I,u as he,y as be,r as u,x as we,b as Ce,a4 as xe,o as m,c as K,B as Q,f as e,A as l,a,C as d,a3 as _,a2 as ke,dy as Ne,aD as Te,a5 as Pe,k as v,D as C,v as Ue,dL as f,dM as Ve,E as De,F as Re,P as ze,aa as Le,ab as Ee,aG as Me,J as Se,a9 as Ye,Q as Ae,I as He,V as Oe,H as Fe,K as Ie,W as Ke,X as Qe,Y as We,Z as Xe,_ as je,__tla as qe}from"./index-54aa57d8.js";import{E as Be,__tla as Ge}from"./el-image-viewer-ec0edec4.js";import{_ as Je,__tla as Ze}from"./ContentWrap-260746ab.js";import{_ as $e,__tla as ea}from"./index-e6a7fd1e.js";import{E as aa,__tla as ta}from"./el-image-94dad5a7.js";import{d as x,__tla as la}from"./formatTime-e6197688.js";import{d as ra,D as oa,__tla as na}from"./dict-573b3b04.js";import{C as V,__tla as sa}from"./index-9553d8c1.js";import ia,{__tla as pa}from"./ConsumptionTopUpLogForm-a0cf88f0.js";import ua,{__tla as ca}from"./ConsumptionTopNotice-19bfa002.js";import{u as ma,__tla as _a}from"./useMessage-f56cafbb.js";import{__tla as fa}from"./el-card-e7d6628c.js";import{__tla as da}from"./index-254a9b5e.js";import{__tla as ya}from"./Dialog-7bb778a5.js";import{__tla as ga}from"./el-avatar-39c72bad.js";import{__tla as va}from"./UploadImg-46306ddf.js";import{__tla as ha}from"./index-1a846221.js";import{__tla as ba}from"./index-23663577.js";import{__tla as wa}from"./profile-8a7790cd.js";let W,Ca=Promise.all([(()=>{try{return qe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{let z,L,E;z={class:"search",style:{padding:"0"}},L={key:0,style:{"text-align":"right"},class:"search-input"},E={class:"searchMore"},W=je(ye({name:"ConsumptionTopUpLog",__name:"index",setup(xa){const{wsCache:X}=ge(),j=X.get(ve.USER),q=I(()=>j.user.id===1),{currentRoute:ka,push:B}=he(),G=be(),J=I(()=>G.getMobile);ma(),ze();const p=u(!0),c=u([]),y=u(0),o=we({pageNo:1,pageSize:10,createTime:[],userName:void 0}),M=u();u(!1);const k=u(!1),Z=()=>{k.value=!k.value},$=()=>{k.value=!1},i=u(0),ee=n=>{i.value=n.paneName,o.pageNo=1,o.userName=void 0,c.value=[],y.value=0,S()},h=async()=>{p.value=!0;try{const n=await V.getConsumptionTopUpLogPage(o);c.value=n.list,y.value=n.total}finally{p.value=!1}},S=()=>{i.value==0?h():i.value==1?(async()=>{p.value=!0;try{const n=await V.getConsumptionUserTopUpLogPage(o);c.value=n.list,y.value=n.total}finally{p.value=!1}})():i.value==2?(async()=>{p.value=!0;try{const n=await V.getConsumptionTransfersLog(o);c.value=n.list,y.value=n.total}finally{p.value=!1}})():(async()=>{p.value=!0;try{const n=await V.getConsumptionNotice(o);c.value=n.list,y.value=n.total}finally{p.value=!1}})()},D=u(!1),R=u([]),Y=u(0),ae=()=>{D.value=!1},N=()=>{o.pageNo=1,h()},te=()=>{M.value.resetFields(),N()},A=u(),H=u();return Ce(()=>{h()}),(n,s)=>{const T=Le,le=Ee,re=Me,b=Se,oe=Ye,O=Ae,ne=He,F=Oe,se=Fe,ie=Ie,pe=Ke,t=Qe,ue=aa,P=We,ce=$e,me=Je,_e=Be,fe=xe("hasPermi"),U=Xe;return m(),K(Re,null,[Q("div",z,[e(le,{modelValue:a(i),"onUpdate:modelValue":s[0]||(s[0]=r=>ke(i)?i.value=r:null),onTabClick:ee,class:"parent-tabs"},{default:l(()=>[e(T,{label:"\u5E73\u53F0\u5145\u503C",name:0}),e(T,{label:"\u7528\u6237\u81EA\u5145\u503C",name:1}),e(T,{label:"\u8F6C\u8D26",name:2}),a(q)?(m(),d(T,{key:0,label:"\u5F02\u52A8",name:3})):_("",!0)]),_:1},8,["modelValue"]),a(i)===0?(m(),K("div",L,[e(oe,{modelValue:a(o).userName,"onUpdate:modelValue":s[1]||(s[1]=r=>a(o).userName=r),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",clearable:"",onKeyup:Pe(N,["enter"]),class:"!w-240px"},{suffix:l(()=>[e(re,{class:"el-input__icon",onClick:N,style:{cursor:"pointer"}},{default:l(()=>[e(a(Ne))]),_:1})]),append:l(()=>[e(b,{icon:a(Te),onClick:Z},null,8,["icon"])]),_:1},8,["modelValue"]),a(i)===0?v((m(),d(b,{key:0,type:"primary",plain:"",class:"ml-5px",onClick:s[2]||(s[2]=r=>{return g="ConsumptionCreate",void(J.value?B({name:"ConsumptionAdd"}):A.value.open(g,w));var g,w})},{default:l(()=>[e(O,{icon:"ep:plus",class:"mr-5px"}),C(" \u65B0\u589E ")]),_:1})),[[fe,["distri:consumption-top-up-log:create"]]]):_("",!0)])):_("",!0)]),v(Q("div",E,[e(pe,{class:"-mb-15px",model:a(o),ref_key:"queryFormRef",ref:M,inline:!0,"label-width":"68px"},{default:l(()=>[e(F,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[e(ne,{modelValue:a(o).createTime,"onUpdate:modelValue":s[3]||(s[3]=r=>a(o).createTime=r),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[e(F,null,{default:l(()=>[e(b,{onClick:$},{default:l(()=>[C(" \u6536\u8D77 ")]),_:1}),e(b,{onClick:te},{default:l(()=>[C(" \u91CD\u7F6E ")]),_:1}),e(b,{onClick:N},{default:l(()=>[e(O,{icon:"ep:search",class:"mr-5px"}),C(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Ue,a(k)]]),e(me,{class:"m-t-10px p-10px"},{default:l(()=>[a(i)===0?v((m(),d(P,{key:0,data:a(c),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[e(t,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(t,{label:"\u7528\u6237\u540D",align:"center",prop:"userName"}),e(t,{label:"\u5145\u503C\u91D1\u989D",align:"center",prop:"consumptionPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u6D88\u8D39\u5206",align:"center",prop:"practicalConsumptionPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u8F6C\u8D26\u51ED\u8BC1\u9644\u4EF6",align:"center",prop:"attachment"},{default:l(r=>[e(ue,{style:{width:"100px",height:"100px"},src:r.row.attachment,onClick:g=>{return w=r.row.attachment,console.log(w),R.value=c.value.map(de=>de.attachment),Y.value=R.value.indexOf(w),void(D.value=!0);var w}},null,8,["src","onClick"])]),_:1}),e(t,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(x),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[U,a(p)]]):_("",!0),a(i)===1?v((m(),d(P,{key:1,data:a(c),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[e(t,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(t,{label:"\u7528\u6237\u540D",align:"center",prop:"userName"}),e(t,{label:"\u5145\u503C\u91D1\u989D",align:"center",prop:"payPrice",formatter:a(Ve)},null,8,["formatter"]),e(t,{label:"\u6D88\u8D39\u5206",align:"center",prop:"practicalConsumptionPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u652F\u4ED8\u6E20\u9053",align:"center",prop:"createTime",width:"180px"},{default:l(r=>[C(De(a(ra)(a(oa).PAY_CHANNEL_CODE,r.row.payChannelCode)),1)]),_:1}),e(t,{label:"\u652F\u4ED8\u65F6\u95F4",align:"center",prop:"payTime",formatter:a(x),width:"180px"},null,8,["formatter"]),e(t,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(x),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[U,a(p)]]):_("",!0),a(i)===2?v((m(),d(P,{key:2,data:a(c),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[e(t,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(t,{label:"\u8F6C\u8D26\u4EBA",align:"center",prop:"transferUserName"}),e(t,{label:"\u8F6C\u8D26\u91D1\u989D",align:"center",prop:"consumptionPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u8F6C\u8D26\u540E\u4F59\u989D",align:"center",prop:"afterTransferConsumptionPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u63A5\u6536\u4EBA",align:"center",prop:"recipientUserName"}),e(t,{label:"\u63A5\u6536\u4EBA\u91D1\u989D",align:"center",prop:"recipientPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u63A5\u6536\u540E\u4F59\u989D",align:"center",prop:"afterRecipientConsumptionPoints",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(x),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[U,a(p)]]):_("",!0),a(i)===3?v((m(),d(P,{key:3,data:a(c),stripe:!0,"show-overflow-tooltip":!0,onRowClick:s[4]||(s[4]=r=>{return g=r,void H.value.open(g.id);var g}),"row-class-name":"row"},{default:l(()=>[e(t,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(t,{label:"\u5F02\u5E38\u7528\u6237\u6570",align:"center",prop:"errorUsersCount"}),e(t,{label:"\u5F02\u5E38\u91D1\u989D",align:"center",prop:"errorConsumptionPointsTotal",formatter:a(f)},null,8,["formatter"]),e(t,{label:"\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(x)},null,8,["formatter"])]),_:1},8,["data"])),[[U,a(p)]]):_("",!0),e(ce,{total:a(y),page:a(o).pageNo,"onUpdate:page":s[5]||(s[5]=r=>a(o).pageNo=r),limit:a(o).pageSize,"onUpdate:limit":s[6]||(s[6]=r=>a(o).pageSize=r),onPagination:S},null,8,["total","page","limit"])]),_:1}),a(D)?(m(),d(_e,{key:0,"url-list":a(R),"z-index":9999,"initial-index":a(Y),onClose:ae},null,8,["url-list","initial-index"])):_("",!0),e(ia,{ref_key:"formRef",ref:A,onSuccess:h},null,512),e(ua,{ref_key:"NoticeRef",ref:H,onSuccess:h},null,512)],64)}}}),[["__scopeId","data-v-31aa3cae"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/consumption/index.vue"]])});export{Ca as __tla,W as default};