1 |
- import{aA as Y,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,dA as E,dI 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 Aa,Z as Ya,_ as Ta,__tla as Da}from"./index-286756b9.js";import{_ as Ia,__tla as Ha}from"./ContentWrap-83998678.js";import{_ as Sa,__tla as za}from"./index-ed6c67a8.js";import{b as Pa,f as K,__tla as Ma}from"./formatTime-83e416ef.js";import{d as W}from"./download-20922b56.js";import Na,{__tla as Ra}from"./PtSettlementForm-b643e516.js";import Ua,{__tla as Va}from"./ImportPayMent-0a1be1dc.js";import{u as Fa,__tla as Ja}from"./useMessage-084b1e70.js";import{__tla as Qa}from"./el-card-d3d5a654.js";import{__tla as qa}from"./index-fb47c94c.js";import{__tla as Ba}from"./Dialog-4c2de357.js";import{__tla as Ea}from"./index-f277072c.js";import{__tla as Ka}from"./el-image-73c105b7.js";import{__tla as Wa}from"./el-image-viewer-e0e5d3be.js";import{__tla as Xa}from"./ShopSettlementForm-ebc04296.js";import{__tla as Za}from"./index-75b1e1db.js";import{__tla as ja}from"./index-c6443726.js";let X,Ga=Promise.all([(()=>{try{return Da}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return ja}catch{}})()]).then(async()=>{let I,H,S,z,P,M;I=async p=>await Y.get({url:"/distri/pt-settlement/page",params:p}),H=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"},P={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()},J=c(),Q=c();return ca(()=>{r.merchantId=x.merchantId,d()}),(w,s)=>{const o=ya,O=ga,q=wa,B=va,$=xa,aa=Ca,ta=ka,m=ba,ea=Aa,la=Sa,ra=Ia,k=pa("hasPermi"),oa=Ya;return h(),ma(ha,null,[T("div",z,[T("div",P,[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(q,{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(q,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 J.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:Z,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(),Q.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 H({ptSettlementId:_.id}),A=K(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u5355.xls";W.excel(b,A)}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}),A=K(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u4ED8\u6B3E\u5355.xls";W.excel(b,A)}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:J,onSuccess:d},null,512),a(Ua,{ref_key:"importRef",ref:Q,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};
|