1 |
- import{aq as N,d as q,h as G,r as e,e as H,K as M,l as O,Q as B,o as u,c as E,f as r,w as o,x as h,v as y,a as l,n as m,t as T,P as R,F as J,G as L,C as V,H as X,I as Y,_ as Z,__tla as $}from"./index-297c97b3.js";import{_ as aa,__tla as ta}from"./ContentWrap-2a772ce5.js";import{_ as ra,__tla as la}from"./index-eead3ef4.js";import{d as ea}from"./download-20922b56.js";import oa,{__tla as ia}from"./ApplicationForWithdrawalChannelForm-f58eb5a0.js";import na,{__tla as sa}from"./ImportPayMent-9646dcc2.js";import{u as _a,__tla as ca}from"./useMessage-8a849e40.js";import{__tla as pa}from"./el-card-22a26825.js";import{__tla as ua}from"./index-97931d72.js";import{__tla as ma}from"./Dialog-6d866407.js";import{__tla as da}from"./index-c068d60f.js";import{__tla as wa}from"./formatTime-43b819e0.js";import{__tla as fa}from"./ApplicationForWithdrawalForm-03d44c6e.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=Z(q({name:"ApplicationForWithdrawalChannel",__name:"index",props:{row:{type:Object,default:()=>({})}},setup(c){const I=_a();G();const d=e(!0),x=e([]),k=e(0),i=H({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,W=M(()=>new Date().getTime()>new Date(C.row.endTime).getTime());e();const b=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 O(()=>{i.ptDailyWithdrawalId=C.row.id,p()}),(w,n)=>{const s=L,S=V,U=X,j=ra,A=aa,D=B("hasPermi"),K=Y;return u(),E(J,null,[r(A,null,{default:o(()=>[h((u(),y(U,{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"+T(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(T((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(S,{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"])),[[D,["distri:application-for-withdrawal-channel:import"]]]):R("",!0),l(W)?h((u(),y(S,{key:1,size:"small",type:"success",plain:"",onClick:t=>(async(_,f)=>{_.stopPropagation();try{await I.exportConfirm(),b.value=!0;const Q=await v({id:f});ea.excel(Q,"\u63D0\u73B0\u6E20\u9053\u8BB0\u5F55.xls")}catch{}finally{b.value=!1,await p()}})(t,a.row.id)},{default:o(()=>[m(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[D,["distri:application-for-withdrawal-channel:export"]]]):R("",!0)]),_:1})]),_:1},8,["data"])),[[K,l(d)]]),r(j,{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};
|