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