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