index-a7e11958.js 4.0 KB

1
  1. import{aq as N,d as H,h as K,r as e,e as M,K as O,k as Q,Q as B,o as u,c as E,f as r,w as o,x as h,v as y,a as l,m,t as T,P as F,F as J,G as L,C as V,H as X,I as Y,_ as Z,__tla as $}from"./index-430b3151.js";import{_ as aa,__tla as ta}from"./ContentWrap-60842994.js";import{_ as ra,__tla as la}from"./index-c425c88f.js";import{d as ea}from"./download-20922b56.js";import oa,{__tla as ia}from"./ApplicationForWithdrawalChannelForm-1723b9f7.js";import na,{__tla as sa}from"./ImportPayMent-603cc564.js";import{u as _a,__tla as ca}from"./useMessage-d226ba89.js";import{__tla as pa}from"./el-card-dee5b36b.js";import{__tla as ua}from"./index-555139e7.js";import{__tla as ma}from"./Dialog-cd42c639.js";import{__tla as da}from"./index-7003ea30.js";import{__tla as wa}from"./formatTime-00eecbb7.js";import{__tla as fa}from"./ApplicationForWithdrawalForm-903db8f6.js";let I,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}),I=Z(H({name:"ApplicationForWithdrawalChannel",__name:"index",props:{row:{type:Object,default:()=>({})}},setup(c){const R=_a();K();const d=e(!0),x=e([]),k=e(0),i=M({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=O(()=>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(),D=e();return Q(()=>{i.ptDailyWithdrawalId=C.row.id,p()}),(w,n)=>{const s=L,P=V,A=X,U=ra,j=aa,S=B("hasPermi"),q=Y;return u(),E(J,null,[r(j,null,{default:o(()=>[h((u(),y(A,{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(P,{key:0,size:"small",type:"primary",onClick:t=>(async(_,f)=>{_.stopPropagation(),D.value.open(_,f)})(t,a.row),plain:""},{default:o(()=>[m(" \u5BFC\u5165\u51ED\u8BC1 ")]),_:2},1032,["onClick"])),[[S,["distri:application-for-withdrawal-channel:import"]]]):F("",!0),l(W)?h((u(),y(P,{key:1,size:"small",type:"success",plain:"",onClick:t=>(async(_,f)=>{_.stopPropagation();try{await R.exportConfirm(),b.value=!0;const G=await v({id:f});ea.excel(G,"\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"])),[[S,["distri:application-for-withdrawal-channel:export"]]]):F("",!0)]),_:1})]),_:1},8,["data"])),[[q,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:D,onSuccess:p},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/withdrawalchannel/index.vue"]])});export{ha as __tla,I as default};