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