1 |
- import{aA as N,d as E,P as M,r as e,x as O,e as Y,b as Z,a4 as q,o as u,c as B,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 G,X as H,J as K,Y as L,Z as Q,_ as V,__tla as $}from"./index-f6fb8e95.js";import{_ as aa,__tla as ta}from"./ContentWrap-96bb70ec.js";import{_ as ra,__tla as la}from"./index-58a94653.js";import{d as ea}from"./download-20922b56.js";import oa,{__tla as ia}from"./ApplicationForWithdrawalChannelForm-57fac65f.js";import na,{__tla as sa}from"./ImportPayMent-c0816174.js";import{u as _a,__tla as ca}from"./useMessage-3b767a67.js";import{__tla as pa}from"./el-card-8db16709.js";import{__tla as ua}from"./index-07a2f7ed.js";import{__tla as ma}from"./Dialog-ac2b0e4e.js";import{__tla as da}from"./index-27ddf0da.js";import{__tla as wa}from"./formatTime-ddd96ac8.js";import{__tla as fa}from"./ApplicationForWithdrawalForm-eb7ae443.js";let F,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}),F=V(E({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=Y(()=>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 Z(()=>{i.ptDailyWithdrawalId=b.row.id,p()}),(w,n)=>{const s=H,D=K,W=L,U=ra,j=aa,S=q("hasPermi"),J=Q;return u(),B(G,null,[r(j,null,{default:o(()=>[h((u(),y(W,{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 X=await v({id:f});ea.excel(X,"\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"])),[[J,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,F as default};
|