1 |
- import{ar as Y,d as sa,r as c,i as na,f as ia,l as ca,R as pa,o as h,c as ma,h as A,g as a,a as e,av as _a,y,a6 as ua,w as l,n,x as v,t as D,a$ as E,dG as da,Q as fa,F as ha,D as ya,C as ga,B as wa,q as va,E as xa,j as Ca,G as ka,H as ba,I as Ta,J as Ya,_ as Aa,__tla as Da}from"./index-3fb48822.js";import{_ as Ia,__tla as Sa}from"./ContentWrap-afa47a64.js";import{_ as za,__tla as Ha}from"./index-5771c6d6.js";import{b as Pa,f as J,__tla as Ma}from"./formatTime-1803573a.js";import{d as O}from"./download-20922b56.js";import Na,{__tla as Ra}from"./PtSettlementForm-cdb3abe3.js";import qa,{__tla as Fa}from"./ImportPayMent-cf12226c.js";import{u as Ga,__tla as Ua}from"./useMessage-b6c78c26.js";import{__tla as Va}from"./el-card-8960fd94.js";import{__tla as ja}from"./index-cf9cdfb4.js";import{__tla as Ba}from"./Dialog-7d4425a0.js";import{__tla as Ea}from"./index-1dda7d2a.js";import{__tla as Ja}from"./el-image-27385f7d.js";import{__tla as Oa}from"./el-image-viewer-ff953702.js";import{__tla as Qa}from"./ShopSettlementForm-a98d2a33.js";import{__tla as $a}from"./index-72ebef64.js";import{__tla as Ka}from"./index-01bff116.js";let Q,La=Promise.all([(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return Ka}catch{}})()]).then(async()=>{let I,S,z,H,P,M;I=async p=>await Y.get({url:"/distri/pt-settlement/page",params:p}),S=async p=>await Y.download({url:"/distri/shop-settlement/export-excel",params:p}),z=async p=>await Y.download({url:"/distri/pt-settlement/export-transfer-template",params:p}),H={class:"search-one"},P={style:{"text-align":"right"},class:"search-input"},M={class:"searchMore",style:{width:"calc(100% - 60px)"}},Q=Aa(sa({name:"PtSettlement",__name:"index",props:{merchantId:{type:Number,default:void 0}},setup(p){const x=p,$=(w,s,o)=>{if(o===null)return"\u672A\u5B8C\u6210";switch(o){case 0:return"\u672A\u5B8C\u6210";case 1:return"\u5DF2\u5B8C\u6210";case 2:return"\u90E8\u5206\u5B8C\u6210";case 3:return"\u5931\u8D25";default:return""}},g=c(!1),K=()=>{g.value=!g.value},L=()=>{g.value=!1},N=Ga();na();const C=c(!0),R=c([]),q=c(0),r=ia({pageNo:1,pageSize:10,platformCollectionAmount:void 0,shopAmount:void 0,platformTransferConfirmTime:[],shopHighAmount:void 0,shopTotalHighAmount:void 0,createTime:[],merchantId:void 0}),F=c(),u=c(!1),d=async()=>{C.value=!0;try{const w=await I(r);R.value=w.list,q.value=w.total}finally{C.value=!1}},G=()=>{r.pageNo=1,d()},W=()=>{F.value.resetFields(),G()},U=c(),V=c();return ca(()=>{r.merchantId=x.merchantId,d()}),(w,s)=>{const o=ya,X=ga,j=wa,B=va,Z=xa,aa=Ca,ta=ka,m=ba,ea=Ta,la=za,ra=Ia,k=pa("hasPermi"),oa=Ya;return h(),ma(ha,null,[A("div",H,[A("div",P,[a(o,{icon:e(_a),onClick:K,style:{"margin-left":"0"}},null,8,["icon"])])]),y(A("div",M,[a(ta,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:F,inline:!0,"label-width":"120px"},{default:l(()=>[a(j,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(X,{modelValue:e(r).createTime,"onUpdate:modelValue":s[0]||(s[0]=t=>e(r).createTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(aa,null,{default:l(()=>[a(Z,null,{default:l(()=>[a(j,null,{default:l(()=>[a(o,{onClick:L},{default:l(()=>[n(" \u6536\u8D77 ")]),_:1}),a(o,{onClick:W},{default:l(()=>[a(B,{class:"mr-5px",icon:"ep:refresh"}),n(" \u91CD\u7F6E ")]),_:1}),a(o,{onClick:G,plain:"",type:"primary"},{default:l(()=>[a(B,{class:"mr-5px",icon:"ep:search"}),n(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[ua,e(g)]]),a(ra,{class:"mt-15px"},{default:l(()=>[y((h(),v(ea,{data:e(R),stripe:!0,"show-overflow-tooltip":!0,onRowClick:s[1]||(s[1]=t=>{return i=t,void U.value.open(i,x.merchantId);var i}),"row-class-name":"row"},{default:l(()=>[a(m,{label:"\u5E8F\u53F7",align:"center",prop:"id"}),a(m,{label:"\u9500\u552E\u989D",align:"center",prop:"platformCollectionAmount"},{default:l(t=>[n(" \uFFE5"+D(e(E)(t.row.platformCollectionAmount)),1)]),_:1}),a(m,{label:"\u62B5\u6263\u79EF\u5206",align:"center",prop:"shopHighAmount"},{default:l(t=>[n(D(e(da)(t.row.shopAmount)),1)]),_:1}),a(m,{label:"\u5E94\u7ED3(\u6210\u672C)",align:"center",prop:"shopTotalHighAmount"},{default:l(t=>[n(" \uFFE5"+D(e(E)(t.row.shopTotalHighAmount)),1)]),_:1}),a(m,{label:"\u662F\u5426\u7ED3\u8D26",align:"center",prop:"status",formatter:$,width:"180px"}),a(m,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"createTime",formatter:e(Pa),width:"180px"},null,8,["formatter"]),a(m,{label:"\u64CD\u4F5C",align:"center",width:"350px"},{default:l(t=>[t.row.status!==1&&t.row.exportStatus?y((h(),v(o,{key:0,type:"primary",size:"small",plain:"",onClick:i=>(async(f,_)=>{f.stopPropagation(),V.value.open(f,x.merchantId,_)})(i,t.row),loading:e(u)},{default:l(()=>[n(" \u5BFC\u5165\u51ED\u8BC1 ")]),_:2},1032,["onClick","loading"])),[[k,["trade:shop-settlement:export"]]]):fa("",!0),y((h(),v(o,{type:"success",size:"small",plain:"",onClick:i=>(async(f,_)=>{f.stopPropagation();try{await N.exportConfirm(),u.value=!0;const b=await S({ptSettlementId:_.id}),T=J(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u5355.xls";O.excel(b,T)}catch{}finally{u.value=!1}})(i,t.row),loading:e(u)},{default:l(()=>[n(" \u5BFC\u51FA ")]),_:2},1032,["onClick","loading"])),[[k,["trade:shop-settlement:export"]]]),y((h(),v(o,{size:"small",plain:"",type:"success",onClick:i=>(async(f,_)=>{f.stopPropagation();try{await N.exportConfirm(),u.value=!0;const b=await z({ptSettlementId:_.id}),T=J(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u4ED8\u6B3E\u5355.xls";O.excel(b,T)}catch{}finally{u.value=!1,d()}})(i,t.row)},{default:l(()=>[n(" \u5BFC\u51FA\u4ED8\u6B3E\u5355(\u7F51\u5546\u94F6\u884C) ")]),_:2},1032,["onClick"])),[[k,["trade:shop-settlement:export"]]])]),_:1})]),_:1},8,["data"])),[[oa,e(C)]]),a(la,{total:e(q),page:e(r).pageNo,"onUpdate:page":s[2]||(s[2]=t=>e(r).pageNo=t),limit:e(r).pageSize,"onUpdate:limit":s[3]||(s[3]=t=>e(r).pageSize=t),onPagination:d},null,8,["total","page","limit"])]),_:1}),a(Na,{ref_key:"formRef",ref:U,onSuccess:d},null,512),a(qa,{ref_key:"importRef",ref:V,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-1191f947"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/ptsettlement/index.vue"]])});export{La as __tla,Q as default};
|