1 |
- import{aA as A,d as sa,r as c,P as na,x as ia,b as ca,a4 as pa,o as h,c as ma,B as T,f as a,a as e,aD as _a,k as y,v as ua,A as l,D as n,C as v,E as D,dz as K,dJ as da,a3 as fa,F as ha,J as ya,I as ga,V as wa,Q as va,H as xa,K as Ca,W as ka,X as ba,Y as Ya,Z as Aa,_ as Ta,__tla as Da}from"./index-f6fb8e95.js";import{_ as Ia,__tla as za}from"./ContentWrap-96bb70ec.js";import{_ as Pa,__tla as Sa}from"./index-58a94653.js";import{b as Ha,f as Q,__tla as Ma}from"./formatTime-ddd96ac8.js";import{d as W}from"./download-20922b56.js";import Na,{__tla as Ra}from"./PtSettlementForm-a839d828.js";import Ua,{__tla as Va}from"./ImportPayMent-1e55220e.js";import{u as Fa,__tla as qa}from"./useMessage-3b767a67.js";import{__tla as Ea}from"./el-card-8db16709.js";import{__tla as Ja}from"./index-07a2f7ed.js";import{__tla as Ba}from"./Dialog-ac2b0e4e.js";import{__tla as Ka}from"./index-3acb4467.js";import{__tla as Qa}from"./el-image-fefb4b54.js";import{__tla as Wa}from"./el-image-viewer-cfdb08a7.js";import{__tla as Xa}from"./ShopSettlementForm-752caf43.js";import{__tla as Za}from"./index-74af911b.js";import{__tla as ja}from"./index-fb236505.js";let X,Ga=Promise.all([(()=>{try{return Da}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return ja}catch{}})()]).then(async()=>{let I,z,P,S,H,M;I=async p=>await A.get({url:"/distri/pt-settlement/page",params:p}),z=async p=>await A.download({url:"/distri/shop-settlement/export-excel",params:p}),P=async p=>await A.download({url:"/distri/pt-settlement/export-transfer-template",params:p}),S={class:"search-one"},H={style:{"text-align":"right"},class:"search-input"},M={class:"searchMore",style:{width:"calc(100% - 60px)"}},X=Ta(sa({name:"PtSettlement",__name:"index",props:{merchantId:{type:Number,default:void 0}},setup(p){const x=p,Z=(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),j=()=>{g.value=!g.value},G=()=>{g.value=!1},N=Fa();na();const C=c(!0),R=c([]),U=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}),V=c(),u=c(!1),d=async()=>{C.value=!0;try{const w=await I(r);R.value=w.list,U.value=w.total}finally{C.value=!1}},F=()=>{r.pageNo=1,d()},L=()=>{V.value.resetFields(),F()},q=c(),E=c();return ca(()=>{r.merchantId=x.merchantId,d()}),(w,s)=>{const o=ya,O=ga,J=wa,B=va,$=xa,aa=Ca,ta=ka,m=ba,ea=Ya,la=Pa,ra=Ia,k=pa("hasPermi"),oa=Aa;return h(),ma(ha,null,[T("div",S,[T("div",H,[a(o,{icon:e(_a),onClick:j,style:{"margin-left":"0"}},null,8,["icon"])])]),y(T("div",M,[a(ta,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"120px"},{default:l(()=>[a(J,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(O,{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($,null,{default:l(()=>[a(J,null,{default:l(()=>[a(o,{onClick:G},{default:l(()=>[n(" \u6536\u8D77 ")]),_:1}),a(o,{onClick:L},{default:l(()=>[a(B,{class:"mr-5px",icon:"ep:refresh"}),n(" \u91CD\u7F6E ")]),_:1}),a(o,{onClick:F,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 q.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(K)(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(K)(t.row.shopTotalHighAmount)),1)]),_:1}),a(m,{label:"\u662F\u5426\u7ED3\u8D26",align:"center",prop:"status",formatter:Z,width:"180px"}),a(m,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"createTime",formatter:e(Ha),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(),E.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 z({ptSettlementId:_.id}),Y=Q(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u5355.xls";W.excel(b,Y)}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 P({ptSettlementId:_.id}),Y=Q(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u4ED8\u6B3E\u5355.xls";W.excel(b,Y)}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(U),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:q,onSuccess:d},null,512),a(Ua,{ref_key:"importRef",ref:E,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-1191f947"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/ptsettlement/index.vue"]])});export{Ga as __tla,X as default};
|