1 |
- import{aA as T,d as na,r as p,P as ia,x as ca,b as pa,a4 as ma,o as h,c as _a,B as D,f as a,a as e,aD as ua,k as y,v as da,A as l,D as s,C as v,E as x,dz as E,dJ as O,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-54aa57d8.js";import{_ as Ia,__tla as Pa}from"./ContentWrap-260746ab.js";import{_ as za,__tla as Ha}from"./index-e6a7fd1e.js";import{b as Sa,f as Q,__tla as Ma}from"./formatTime-e6197688.js";import{d as W}from"./download-20922b56.js";import Na,{__tla as Ra}from"./PtSettlementForm-fd9773f3.js";import Va,{__tla as Fa}from"./ImportPayMent-83a3d9a8.js";import{u as Ja,__tla as Ua}from"./useMessage-f56cafbb.js";import{__tla as Ka}from"./el-card-e7d6628c.js";import{__tla as qa}from"./index-254a9b5e.js";import{__tla as Ba}from"./Dialog-7bb778a5.js";import{__tla as Ea}from"./index-c9bc46ed.js";import{__tla as Oa}from"./el-image-94dad5a7.js";import{__tla as Qa}from"./el-image-viewer-ec0edec4.js";import{__tla as Wa}from"./ShopSettlementForm-a89fe009.js";import{__tla as Xa}from"./index-692b7677.js";import{__tla as Za}from"./index-e7a32376.js";let X,ja=Promise.all([(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})()]).then(async()=>{let I,P,z,H,S,M;I=async m=>await T.get({url:"/distri/pt-settlement/page",params:m}),P=async m=>await T.download({url:"/distri/shop-settlement/export-excel",params:m}),z=async m=>await T.download({url:"/distri/pt-settlement/export-transfer-template",params:m}),H={class:"search-one"},S={style:{"text-align":"right"},class:"search-input"},M={class:"searchMore",style:{width:"calc(100% - 60px)"}},X=Ta(na({name:"PtSettlement",__name:"index",props:{merchantId:{type:Number,default:void 0}},setup(m){const C=m,Z=(w,n,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=p(!1),j=()=>{g.value=!g.value},G=()=>{g.value=!1},N=Ja();ia();const k=p(!0),R=p([]),V=p(0),r=ca({pageNo:1,pageSize:10,platformCollectionAmount:void 0,shopAmount:void 0,platformTransferConfirmTime:[],shopHighAmount:void 0,shopTotalHighAmount:void 0,createTime:[],merchantId:void 0}),F=p(),u=p(!1),d=async()=>{k.value=!0;try{const w=await I(r);R.value=w.list,V.value=w.total}finally{k.value=!1}},J=()=>{r.pageNo=1,d()},L=()=>{F.value.resetFields(),J()},U=p(),K=p();return pa(()=>{r.merchantId=C.merchantId,d()}),(w,n)=>{const o=ya,$=ga,q=wa,B=va,aa=xa,ta=Ca,ea=ka,i=ba,la=Aa,ra=za,oa=Ia,b=ma("hasPermi"),sa=Ya;return h(),_a(ha,null,[D("div",H,[D("div",S,[a(o,{icon:e(ua),onClick:j,style:{"margin-left":"0"}},null,8,["icon"])])]),y(D("div",M,[a(ea,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:F,inline:!0,"label-width":"120px"},{default:l(()=>[a(q,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a($,{modelValue:e(r).createTime,"onUpdate:modelValue":n[0]||(n[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(ta,null,{default:l(()=>[a(aa,null,{default:l(()=>[a(q,null,{default:l(()=>[a(o,{onClick:G},{default:l(()=>[s(" \u6536\u8D77 ")]),_:1}),a(o,{onClick:L},{default:l(()=>[a(B,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1}),a(o,{onClick:J,plain:"",type:"primary"},{default:l(()=>[a(B,{class:"mr-5px",icon:"ep:search"}),s(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[da,e(g)]]),a(oa,{class:"mt-15px"},{default:l(()=>[y((h(),v(la,{data:e(R),stripe:!0,"show-overflow-tooltip":!0,onRowClick:n[1]||(n[1]=t=>{return c=t,void U.value.open(c,C.merchantId);var c}),"row-class-name":"row"},{default:l(()=>[a(i,{label:"\u5E8F\u53F7",align:"center",prop:"id"}),a(i,{label:"\u9500\u552E\u989D",align:"center",prop:"platformCollectionAmount"},{default:l(t=>[s(" \uFFE5"+x(e(E)(t.row.platformCollectionAmount)),1)]),_:1}),a(i,{label:"\u62B5\u6263\u4F63\u91D1",align:"center",prop:"shopHighAmount"},{default:l(t=>[s(x(e(O)(t.row.shopAmount)),1)]),_:1}),a(i,{label:"\u62B5\u6263\u6D88\u8D39\u5206",align:"center",prop:"shopHighAmount"},{default:l(t=>[s(x(e(O)(t.row.consumptionPoints)),1)]),_:1}),a(i,{label:"\u5E94\u7ED3(\u6210\u672C)",align:"center",prop:"shopTotalHighAmount"},{default:l(t=>[s(" \uFFE5"+x(e(E)(t.row.shopTotalHighAmount)),1)]),_:1}),a(i,{label:"\u662F\u5426\u7ED3\u8D26",align:"center",prop:"status",formatter:Z,width:"180px"}),a(i,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"createTime",formatter:e(Sa),width:"180px"},null,8,["formatter"]),a(i,{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:c=>(async(f,_)=>{f.stopPropagation(),K.value.open(f,C.merchantId,_)})(c,t.row),loading:e(u)},{default:l(()=>[s(" \u5BFC\u5165\u51ED\u8BC1 ")]),_:2},1032,["onClick","loading"])),[[b,["trade:shop-settlement:export"]]]):fa("",!0),y((h(),v(o,{type:"success",size:"small",plain:"",onClick:c=>(async(f,_)=>{f.stopPropagation();try{await N.exportConfirm(),u.value=!0;const A=await P({ptSettlementId:_.id}),Y=Q(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u5355.xls";W.excel(A,Y)}catch{}finally{u.value=!1}})(c,t.row),loading:e(u)},{default:l(()=>[s(" \u5BFC\u51FA ")]),_:2},1032,["onClick","loading"])),[[b,["trade:shop-settlement:export"]]]),y((h(),v(o,{size:"small",plain:"",type:"success",onClick:c=>(async(f,_)=>{f.stopPropagation();try{await N.exportConfirm(),u.value=!0;const A=await z({ptSettlementId:_.id}),Y=Q(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u4ED8\u6B3E\u5355.xls";W.excel(A,Y)}catch{}finally{u.value=!1,d()}})(c,t.row)},{default:l(()=>[s(" \u5BFC\u51FA\u4ED8\u6B3E\u5355(\u7F51\u5546\u94F6\u884C) ")]),_:2},1032,["onClick"])),[[b,["trade:shop-settlement:export"]]])]),_:1})]),_:1},8,["data"])),[[sa,e(k)]]),a(ra,{total:e(V),page:e(r).pageNo,"onUpdate:page":n[2]||(n[2]=t=>e(r).pageNo=t),limit:e(r).pageSize,"onUpdate:limit":n[3]||(n[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(Va,{ref_key:"importRef",ref:K,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-1191f947"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/ptsettlement/index.vue"]])});export{ja as __tla,X as default};
|