index-ef4c8b1b.js 8.2 KB

1
  1. import{d as ce,aS as fe,aT as de,e as Y,u as ge,y as ve,r as u,x as be,b as ye,a1 as _e,o as f,c as M,C as z,f as a,B as r,a as e,a0 as Ce,dC as we,aA as he,a2 as xe,l as v,A as b,G as y,E as d,v as Te,dP as c,dQ as Ne,D as H,F as ke,H as Pe,a7 as Ue,a8 as Ve,aD as Re,L as De,a6 as Se,_ as Ee,K as Ae,S as Le,J as Ye,M as Me,U as ze,V as He,W as Fe,X as Ie}from"./index-24b5bd0d.js";import{E as Ge}from"./el-image-viewer-d766f6eb.js";import{_ as Ke}from"./ContentWrap.vue_vue_type_script_setup_true_lang-1e5dab5a.js";import{_ as We}from"./index.vue_vue_type_script_setup_true_lang-d8bf5c47.js";import{d as h}from"./formatTime-f52baefd.js";import{d as F,D as I}from"./dict-65668e05.js";import{C as P}from"./index-d3602ae6.js";import je from"./ConsumptionTopUpLogForm-8a9e48ea.js";import qe from"./ConsumptionTopNotice-d9aa3b79.js";import{u as Be}from"./useMessage-6f610bbd.js";import{_ as Je}from"./_plugin-vue_export-helper-1b428a4d.js";import"./el-card-0b237923.js";import"./index-15201e14.js";import"./Dialog-23d56afa.js";import"./el-avatar-8c08edd3.js";import"./UploadImg-66af34d1.js";import"./index-bcdfd5b5.js";import"./index-ebcecda0.js";import"./profile-b5053912.js";const Oe={class:"search",style:{padding:"0"}},Qe={key:0,style:{"text-align":"right"},class:"search-input"},Xe={class:"searchMore"},$e=Je(ce({name:"ConsumptionTopUpLog",__name:"index",setup(Ze){const{wsCache:G}=fe(),K=G.get(de.USER);Y(()=>K.user.id===1);const{currentRoute:ea,push:W}=ge(),j=ve(),q=Y(()=>j.getMobile);Be(),Pe();const p=u(!0),m=u([]),g=u(0),o=be({pageNo:1,pageSize:10,createTime:[],userName:void 0}),U=u();u(!1);const x=u(!1),B=()=>{x.value=!x.value},J=()=>{x.value=!1},s=u(0),O=i=>{s.value=i.paneName,o.pageNo=1,o.userName=void 0,m.value=[],g.value=0,V()},_=async()=>{p.value=!0;try{const i=await P.getConsumptionTopUpLogPage(o);m.value=i.list,g.value=i.total}finally{p.value=!1}},V=()=>{s.value==0?_():s.value==1?(async()=>{p.value=!0;try{const i=await P.getConsumptionUserTopUpLogPage(o);m.value=i.list,g.value=i.total}finally{p.value=!1}})():s.value==2?(async()=>{p.value=!0;try{const i=await P.getConsumptionTransfersLog(o);m.value=i.list,g.value=i.total}finally{p.value=!1}})():(async()=>{p.value=!0;try{const i=await P.getConsumptionNotice(o);m.value=i.list,g.value=i.total}finally{p.value=!1}})()},R=u(!1),Q=u([]),X=u(0),$=()=>{R.value=!1},T=()=>{o.pageNo=1,_()},Z=()=>{U.value.resetFields(),T()},D=u(),S=u();return ye(()=>{_()}),(i,t)=>{const E=Ue,ee=Ve,ae=Re,C=De,le=Se,A=Ee,te=Ae,L=Le,re=Ye,oe=Me,ne=ze,l=He,N=Fe,ie=We,se=Ke,pe=Ge,ue=_e("hasPermi"),k=Ie;return f(),M(ke,null,[z("div",Oe,[a(ee,{modelValue:e(s),"onUpdate:modelValue":t[0]||(t[0]=n=>Ce(s)?s.value=n:null),onTabClick:O,class:"parent-tabs"},{default:r(()=>[a(E,{label:"\u5E73\u53F0\u5145\u503C",name:0}),a(E,{label:"\u8F6C\u8D26",name:2})]),_:1},8,["modelValue"]),e(s)===0?(f(),M("div",Qe,[a(le,{modelValue:e(o).userName,"onUpdate:modelValue":t[1]||(t[1]=n=>e(o).userName=n),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",clearable:"",onKeyup:xe(T,["enter"]),class:"!w-240px"},{suffix:r(()=>[a(ae,{class:"el-input__icon",onClick:T,style:{cursor:"pointer"}},{default:r(()=>[a(e(we))]),_:1})]),append:r(()=>[a(C,{icon:e(he),onClick:B},null,8,["icon"])]),_:1},8,["modelValue"]),e(s)===0?v((f(),b(C,{key:0,type:"primary",plain:"",class:"ml-5px",onClick:t[2]||(t[2]=n=>{return w="ConsumptionCreate",void(q.value?W({name:"ConsumptionAdd"}):D.value.open(w,me));var w,me})},{default:r(()=>[a(A,{icon:"ep:plus",class:"mr-5px"}),t[7]||(t[7]=y(" \u65B0\u589E "))]),_:1})),[[ue,["distri:consumption-top-up-log:create"]]]):d("",!0)])):d("",!0)]),v(z("div",Xe,[a(ne,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:r(()=>[a(L,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[a(te,{modelValue:e(o).createTime,"onUpdate:modelValue":t[3]||(t[3]=n=>e(o).createTime=n),"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}),a(oe,null,{default:r(()=>[a(re,null,{default:r(()=>[a(L,null,{default:r(()=>[a(C,{onClick:J},{default:r(()=>t[8]||(t[8]=[y(" \u6536\u8D77 ")])),_:1}),a(C,{onClick:Z},{default:r(()=>t[9]||(t[9]=[y(" \u91CD\u7F6E ")])),_:1}),a(C,{onClick:T},{default:r(()=>[a(A,{icon:"ep:search",class:"mr-5px"}),t[10]||(t[10]=y(" \u641C\u7D22 "))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[Te,e(x)]]),a(se,{class:"m-t-10px p-10px"},{default:r(()=>[e(s)===0?v((f(),b(N,{key:0,data:e(m),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[a(l,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(l,{label:"\u7528\u6237\u540D",align:"center",prop:"userName"}),a(l,{label:"\u5145\u503C\u79EF\u5206",align:"center",prop:"integralPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u5B9E\u9645\u79EF\u5206",align:"center",prop:"practicalIntegralPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(h),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[k,e(p)]]):d("",!0),e(s)===1?v((f(),b(N,{key:1,data:e(m),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[a(l,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(l,{label:"\u7528\u6237\u540D",align:"center",prop:"userName"}),a(l,{label:"\u5145\u503C\u91D1\u989D",align:"center",prop:"payPrice",formatter:e(Ne)},null,8,["formatter"]),a(l,{label:"\u6D88\u8D39\u5206",align:"center",prop:"practicalConsumptionPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u652F\u4ED8\u6E20\u9053",align:"center",prop:"createTime",width:"180px"},{default:r(n=>[y(H(e(F)(e(I).PAY_CHANNEL_CODE,n.row.payChannelCode)),1)]),_:1}),a(l,{label:"\u652F\u4ED8\u65F6\u95F4",align:"center",prop:"payTime",formatter:e(h),width:"180px"},null,8,["formatter"]),a(l,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(h),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[k,e(p)]]):d("",!0),e(s)===2?v((f(),b(N,{key:2,data:e(m),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[a(l,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(l,{label:"\u8F6C\u8D26\u4EBA",align:"center",prop:"transferUserName"}),a(l,{label:"\u8F6C\u8D26\u91D1\u989D",align:"center",prop:"consumptionPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u8F6C\u8D26\u540E\u4F59\u989D",align:"center",prop:"afterTransferConsumptionPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u63A5\u6536\u4EBA",align:"center",prop:"recipientUserName"}),a(l,{label:"\u63A5\u6536\u4EBA\u91D1\u989D",align:"center",prop:"recipientPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u63A5\u6536\u540E\u4F59\u989D",align:"center",prop:"afterRecipientConsumptionPoints",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u79EF\u5206\u7C7B\u578B",align:"center",prop:"afterRecipientConsumptionPoints",formatter:e(c)},{default:r(n=>[y(H(e(F)(e(I).INTEGRAL_TYPE,n.row.integralType)),1)]),_:1},8,["formatter"]),a(l,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(h),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[k,e(p)]]):d("",!0),e(s)===3?v((f(),b(N,{key:3,data:e(m),stripe:!0,"show-overflow-tooltip":!0,onRowClick:t[4]||(t[4]=n=>{return w=n,void S.value.open(w.id);var w}),"row-class-name":"row"},{default:r(()=>[a(l,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(l,{label:"\u5F02\u5E38\u7528\u6237\u6570",align:"center",prop:"errorUsersCount"}),a(l,{label:"\u5F02\u5E38\u91D1\u989D",align:"center",prop:"errorConsumptionPointsTotal",formatter:e(c)},null,8,["formatter"]),a(l,{label:"\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(h)},null,8,["formatter"])]),_:1},8,["data"])),[[k,e(p)]]):d("",!0),a(ie,{total:e(g),page:e(o).pageNo,"onUpdate:page":t[5]||(t[5]=n=>e(o).pageNo=n),limit:e(o).pageSize,"onUpdate:limit":t[6]||(t[6]=n=>e(o).pageSize=n),onPagination:V},null,8,["total","page","limit"])]),_:1}),e(R)?(f(),b(pe,{key:0,"url-list":e(Q),"z-index":9999,"initial-index":e(X),onClose:$},null,8,["url-list","initial-index"])):d("",!0),a(je,{ref_key:"formRef",ref:D,onSuccess:_},null,512),a(qe,{ref_key:"NoticeRef",ref:S,onSuccess:_},null,512)],64)}}}),[["__scopeId","data-v-8a585b3c"]]);export{$e as default};