index-6d974668.js 6.8 KB

1
  1. import{az as T,d as sa,r as c,P as na,x as ia,b as ca,a3 as pa,o as h,c as ma,B as A,f as a,a as e,aC as _a,k as y,v as ua,A as l,D as n,C as v,E as I,dx as K,dH as da,a2 as fa,F as ha,J as ya,I as ga,U as wa,_ as va,H as xa,K as Ca,V as ka,W as ba,X as Ya,Y as Ta,__tla as Aa}from"./index-a9d538d5.js";import{_ as Ia,__tla as Da}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{_ as Ha,__tla as Sa}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{b as Pa,f as Q,__tla as za}from"./formatTime-8985a9d0.js";import{d as W}from"./download-20922b56.js";import{_ as Ma,__tla as Na}from"./PtSettlementForm.vue_vue_type_script_setup_true_lang-66d65bf6.js";import{_ as Va,__tla as Ra}from"./ImportPayMent.vue_vue_type_script_setup_true_lang-7e98248c.js";import{u as Ua,__tla as Fa}from"./useMessage-d5cbbfad.js";import{_ as qa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ja}from"./el-card-0ea446a3.js";import{__tla as Ba}from"./index-95ad39b3.js";import{__tla as Ea}from"./Dialog-f354f369.js";import{__tla as Ka}from"./index-73ce56a6.js";import{__tla as Qa}from"./el-image-2dadd73e.js";import{__tla as Wa}from"./el-image-viewer-2e77a3e7.js";import{__tla as Xa}from"./ShopSettlementForm-92a605b5.js";import{__tla as ja}from"./index-95f2e02a.js";import{__tla as Ga}from"./index-6451d5a2.js";let X,La=Promise.all([(()=>{try{return Aa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ga}catch{}})()]).then(async()=>{let D,H,S,P,z,M;D=async p=>await T.get({url:"/distri/pt-settlement/page",params:p}),H=async p=>await T.download({url:"/distri/shop-settlement/export-excel",params:p}),S=async p=>await T.download({url:"/distri/pt-settlement/export-transfer-template",params:p}),P={class:"search-one"},z={style:{"text-align":"right"},class:"search-input"},M={class:"searchMore",style:{width:"calc(100% - 60px)"}},X=qa(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),G=()=>{g.value=!g.value},L=()=>{g.value=!1},N=Ua();na();const C=c(!0),V=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}),U=c(),u=c(!1),d=async()=>{C.value=!0;try{const w=await D(r);V.value=w.list,R.value=w.total}finally{C.value=!1}},F=()=>{r.pageNo=1,d()},O=()=>{U.value.resetFields(),F()},q=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=Ya,la=Ha,ra=Ia,k=pa("hasPermi"),oa=Ta;return h(),ma(ha,null,[A("div",P,[A("div",z,[a(o,{icon:e(_a),onClick:G,style:{"margin-left":"0"}},null,8,["icon"])])]),y(A("div",M,[a(ta,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:U,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:L},{default:l(()=>[n(" \u6536\u8D77 ")]),_:1}),a(o,{onClick:O},{default:l(()=>[a(E,{class:"mr-5px",icon:"ep:refresh"}),n(" \u91CD\u7F6E ")]),_:1}),a(o,{onClick:F,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(V),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"+I(e(K)(t.row.platformCollectionAmount)),1)]),_:1}),a(m,{label:"\u62B5\u6263\u4F63\u91D1",align:"center",prop:"shopHighAmount"},{default:l(t=>[n(I(e(da)(t.row.shopAmount)),1)]),_:1}),a(m,{label:"\u5E94\u7ED3(\u6210\u672C)",align:"center",prop:"shopTotalHighAmount"},{default:l(t=>[n(" \uFFE5"+I(e(K)(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(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(),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 H({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 S({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(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(Ma,{ref_key:"formRef",ref:q,onSuccess:d},null,512),a(Va,{ref_key:"importRef",ref:J,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-90858087"]])});export{La as __tla,X as default};