index-96d18ed8.js 6.7 KB

1
  1. import{aq as Y,d as sa,r as c,h as na,e as ia,l as ca,Q as pa,o as h,c as ma,g as A,f as a,a as e,dF as _a,x as y,a4 as ua,w as l,n,v,t as D,at as G,dD as da,P as fa,F as ha,C as ya,B as ga,A as wa,j as va,E as xa,i as Ca,D as ka,G as ba,H as Ta,I as Ya,_ as Aa,__tla as Da}from"./index-297c97b3.js";import{_ as Ia,__tla as Pa}from"./ContentWrap-2a772ce5.js";import{_ as Sa,__tla as za}from"./index-eead3ef4.js";import{b as Ha,f as K,__tla as Ma}from"./formatTime-43b819e0.js";import{d as O}from"./download-20922b56.js";import Na,{__tla as Fa}from"./PtSettlementForm-34be0aae.js";import Ra,{__tla as qa}from"./ImportPayMent-4bc1c0d1.js";import{u as Ua,__tla as Va}from"./useMessage-8a849e40.js";import{__tla as ja}from"./el-card-22a26825.js";import{__tla as Ba}from"./index-97931d72.js";import{__tla as Ea}from"./Dialog-6d866407.js";import{__tla as Ga}from"./index-13b7c382.js";import{__tla as Ka}from"./el-image-82bf40c6.js";import{__tla as Oa}from"./el-image-viewer-3c943bf5.js";import{__tla as Qa}from"./ShopSettlementForm-98ce60cb.js";import{__tla as Ja}from"./index-31557480.js";import{__tla as La}from"./index-40f9ff9c.js";let Q,Wa=Promise.all([(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return La}catch{}})()]).then(async()=>{let I,P,S,z,H,M;I=async p=>await Y.get({url:"/distri/pt-settlement/page",params:p}),P=async p=>await Y.download({url:"/distri/shop-settlement/export-excel",params:p}),S=async p=>await Y.download({url:"/distri/pt-settlement/export-transfer-template",params:p}),z={class:"search-one"},H={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,J=(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),L=()=>{g.value=!g.value},W=()=>{g.value=!1},N=Ua();na();const C=c(!0),F=c([]),R=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}),q=c(),u=c(!1),d=async()=>{C.value=!0;try{const w=await I(r);F.value=w.list,R.value=w.total}finally{C.value=!1}},U=()=>{r.pageNo=1,d()},X=()=>{q.value.resetFields(),U()},V=c(),j=c();return ca(()=>{r.merchantId=x.merchantId,d()}),(w,s)=>{const o=ya,Z=ga,B=wa,E=va,$=xa,aa=Ca,ta=ka,m=ba,ea=Ta,la=Sa,ra=Ia,k=pa("hasPermi"),oa=Ya;return h(),ma(ha,null,[A("div",z,[A("div",H,[a(o,{icon:e(_a),onClick:L,style:{"margin-left":"0"}},null,8,["icon"])])]),y(A("div",M,[a(ta,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:q,inline:!0,"label-width":"120px"},{default:l(()=>[a(B,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(Z,{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(B,null,{default:l(()=>[a(o,{onClick:W},{default:l(()=>[n(" \u6536\u8D77 ")]),_:1}),a(o,{onClick:X},{default:l(()=>[a(E,{class:"mr-5px",icon:"ep:refresh"}),n(" \u91CD\u7F6E ")]),_:1}),a(o,{onClick:U,plain:"",type:"primary"},{default:l(()=>[a(E,{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(F),stripe:!0,"show-overflow-tooltip":!0,onRowClick:s[1]||(s[1]=t=>{return i=t,void V.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(G)(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(G)(t.row.shopTotalHighAmount)),1)]),_:1}),a(m,{label:"\u662F\u5426\u7ED3\u8D26",align:"center",prop:"status",formatter:J,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(),j.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 P({ptSettlementId:_.id}),T=K(_.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 S({ptSettlementId:_.id}),T=K(_.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(R),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:V,onSuccess:d},null,512),a(Ra,{ref_key:"importRef",ref:j,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-1191f947"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/ptsettlement/index.vue"]])});export{Wa as __tla,Q as default};