index-0dfaebba.js 4.3 KB

1
  1. import{aA as T,d as M,P as Z,r as i,x as X,e as Y,b as q,a4 as B,o as d,c as G,f as t,A as e,k as y,C as g,a as l,D as _,E as m,dz as A,O as H,a3 as R,F as K,X as L,J as Q,Y as V,Z as $,_ as aa,__tla as ta}from"./index-54aa57d8.js";import{_ as ra,__tla as la}from"./ContentWrap-260746ab.js";import{_ as ea,__tla as oa}from"./index-e6a7fd1e.js";import{d as ia}from"./download-20922b56.js";import na,{__tla as sa}from"./ApplicationForWithdrawalChannelForm-6f486178.js";import pa,{__tla as _a}from"./ImportPayMent-5609eb7a.js";import{u as ca,__tla as ua}from"./useMessage-f56cafbb.js";import{__tla as da}from"./el-card-e7d6628c.js";import{__tla as ma}from"./index-254a9b5e.js";import{__tla as wa}from"./Dialog-7bb778a5.js";import{__tla as fa}from"./index-32a3e013.js";import{__tla as ha}from"./formatTime-e6197688.js";import{__tla as ya}from"./ApplicationForWithdrawalForm-ee7f54dd.js";let W,ga=Promise.all([(()=>{try{return ta}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ya}catch{}})()]).then(async()=>{let v,x;v=async c=>await T.get({url:"/distri/application-for-withdrawal-channel/page",params:c}),x=async c=>await T.download({url:"/distri/application-for-withdrawal-channel/export-excel",params:c}),W=aa(M({name:"ApplicationForWithdrawalChannel",__name:"index",props:{row:{type:Object,default:()=>({})}},setup(c){const F=ca();Z();const w=i(!0),k=i([]),b=i(0),n=X({pageNo:1,pageSize:10,withdrawalType:void 0,withdrawalName:void 0,amount:void 0,count:void 0,status:void 0,ptDailyWithdrawalId:void 0,id:void 0}),C=c,I=Y(()=>new Date().getTime()>new Date(C.row.endTime).getTime());i();const z=i(!1),u=async()=>{w.value=!0;try{const f=await v(n);k.value=f.list,b.value=f.total}finally{w.value=!1}},P=i(),S=i();return q(()=>{n.ptDailyWithdrawalId=C.row.id,u()}),(f,s)=>{const o=L,D=Q,O=V,U=ea,j=ra,N=B("hasPermi"),E=$;return d(),G(K,null,[t(j,null,{default:e(()=>[y((d(),g(O,{data:l(k),stripe:!0,"show-overflow-tooltip":!0,onRowClick:s[0]||(s[0]=a=>{return r=a,void P.value.open(r,p);var r,p}),"row-class-name":"row"},{default:e(()=>[t(o,{label:"\u5E8F\u53F7",align:"center",prop:"id"}),t(o,{label:"\u6E20\u9053",align:"center",prop:"withdrawalName"}),t(o,{label:"\u63D0\u73B0\u603B\u91D1\u989D",align:"center",prop:"amountTotal"},{default:e(a=>[_(m(l(A)(a.row.amountTotal)),1)]),_:1}),t(o,{label:"\u5230\u8D26\u91D1\u989D",align:"center",prop:"amount"},{default:e(a=>[_(m(l(A)(a.row.amount)),1)]),_:1}),t(o,{label:"\u6D88\u8D39\u5206",align:"center",prop:"withdrawConsumption"},{default:e(a=>[_(m(l(H)(a.row.withdrawConsumption)),1)]),_:1}),t(o,{label:"\u7B14\u6570",align:"center",prop:"count"}),t(o,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:e(a=>{return[_(m((r=a.row.status,r?r===1?"\u8F6C\u8D26\u6210\u529F":r===2?"\u90E8\u5206\u8F6C\u8D26\u6210\u529F":"\u8F6C\u8D26\u5931\u8D25":"\u5F85\u8F6C\u8D26")),1)];var r}),_:1}),t(o,{label:"\u64CD\u4F5C",align:"center",width:"180px"},{default:e(a=>[a.row.excelStatus&&a.row.status!==1?y((d(),g(D,{key:0,size:"small",type:"primary",onClick:r=>(async(p,h)=>{p.stopPropagation(),S.value.open(p,h)})(r,a.row),plain:""},{default:e(()=>[_(" \u5BFC\u5165\u51ED\u8BC1 ")]),_:2},1032,["onClick"])),[[N,["distri:application-for-withdrawal-channel:import"]]]):R("",!0),l(I)?y((d(),g(D,{key:1,size:"small",type:"success",plain:"",onClick:r=>(async(p,h)=>{p.stopPropagation();try{await F.exportConfirm(),z.value=!0;const J=await x({id:h});ia.excel(J,"\u63D0\u73B0\u6E20\u9053\u8BB0\u5F55.xls")}catch{}finally{z.value=!1,await u()}})(r,a.row.id)},{default:e(()=>[_(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[N,["distri:application-for-withdrawal-channel:export"]]]):R("",!0)]),_:1})]),_:1},8,["data"])),[[E,l(w)]]),t(U,{total:l(b),page:l(n).pageNo,"onUpdate:page":s[1]||(s[1]=a=>l(n).pageNo=a),limit:l(n).pageSize,"onUpdate:limit":s[2]||(s[2]=a=>l(n).pageSize=a),onPagination:u},null,8,["total","page","limit"])]),_:1}),t(na,{ref_key:"formRef",ref:P,onSuccess:u},null,512),t(pa,{ref_key:"importRef",ref:S,onSuccess:u},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/withdrawalchannel/index.vue"]])});export{ga as __tla,W as default};