1 |
- import{as as F,d as ra,r as i,B as sa,g as na,O as ia,z as ca,T as pa,o as f,c as O,j as k,i as a,a as t,dz as ma,D as T,a7 as _a,w as l,l as c,k as A,t as Y,aZ as q,dA as da,F as ua,s as fa,q as ha,I as ga,n as ya,E as wa,p as va,J as ba,K as xa,L as Ca,M as ka,_ as Ta,__tla as Aa}from"./index-2f799233.js";import{_ as Ya,__tla as za}from"./ContentWrap-9da801df.js";import{_ as Da,__tla as Sa}from"./index-e6cd813f.js";import{E as Ha,__tla as Ra}from"./el-image-4d26fa76.js";import{__tla as Ua}from"./el-image-viewer-8e9e3571.js";import{b as Ia,f as Ma,__tla as Na}from"./formatTime-2157894c.js";import{d as Pa}from"./download-20922b56.js";import La,{__tla as Ea}from"./ShopSettlementForm-9edc5563.js";import{u as Va,__tla as ja}from"./useMessage-e567ad40.js";import{__tla as Fa}from"./el-card-c64c83d1.js";import{__tla as Oa}from"./index-1c180a16.js";import{__tla as qa}from"./Dialog-6fd39e06.js";import{__tla as Ka}from"./index-36dfbc52.js";let K,Ba=Promise.all([(()=>{try{return Aa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ka}catch{}})()]).then(async()=>{let z,D,S,H,R,U;z=async h=>await F.get({url:"/distri/shop-settlement/page",params:h}),D=async h=>await F.download({url:"/trade/order/export-excel/shopSettlement",params:h}),S={class:"search-one"},H={style:{"text-align":"right"},class:"search-input"},R={class:"searchMore",style:{width:"calc(100% - 60px)"}},U={key:1},K=Ta(ra({name:"ShopSettlement",__name:"index",setup(h){const g=i(!1),B=()=>{g.value=!g.value},y=()=>{g.value=!1},J=Va();sa();const w=i(!0),I=i([]),M=i(0),o=na({pageNo:1,pageSize:10,platformCollectionAmount:void 0,shopAmount:void 0,platformTransferConfirmTime:[],shopTransferConfirmTime:[],attachment:void 0,createTime:[],shopId:void 0,shopHighAmount:void 0,shopTotalHighAmount:void 0,merchantId:void 0}),N=i(),v=i(!1),m=async()=>{w.value=!0;try{const b=await z(o);I.value=b.list,M.value=b.total}finally{w.value=!1}},P=()=>{o.pageNo=1,m(),y()},Z=()=>{N.value.resetFields(),P(),y()},L=i();return ia(()=>o.shopId,()=>{m()}),ca(()=>{m()}),(b,r)=>{const _=fa,G=ha,E=ga,V=ya,Q=wa,W=va,X=ba,s=xa,$=Ha,aa=Ca,ea=Da,ta=Ya,la=pa("hasPermi"),oa=ka;return f(),O(ua,null,[k("div",S,[k("div",H,[a(_,{icon:t(ma),onClick:B,style:{"margin-left":"0"}},null,8,["icon"])])]),T(k("div",R,[a(X,{class:"-mb-15px",model:t(o),ref_key:"queryFormRef",ref:N,inline:!0,"label-width":"120px"},{default:l(()=>[a(E,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(G,{modelValue:t(o).createTime,"onUpdate:modelValue":r[0]||(r[0]=e=>t(o).createTime=e),"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(W,null,{default:l(()=>[a(Q,null,{default:l(()=>[a(E,null,{default:l(()=>[a(_,{onClick:y},{default:l(()=>[c(" \u6536\u8D77 ")]),_:1}),a(_,{onClick:Z},{default:l(()=>[a(V,{class:"mr-5px",icon:"ep:refresh"}),c(" \u91CD\u7F6E ")]),_:1}),a(_,{onClick:P,plain:"",type:"primary"},{default:l(()=>[a(V,{class:"mr-5px",icon:"ep:search"}),c(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[_a,t(g)]]),a(ta,{class:"mt-15px"},{default:l(()=>[T((f(),A(aa,{data:t(I),stripe:!0,"show-overflow-tooltip":!0,onRowClick:r[1]||(r[1]=e=>{return p=e,void L.value.open(p);var p}),"row-class-name":"row"},{default:l(()=>[a(s,{label:"\u5E8F\u53F7",align:"center",prop:"id"}),a(s,{label:"\u5E97\u94FA\u540D\u79F0",align:"center",prop:"shopName"}),a(s,{label:"\u9500\u552E\u989D",align:"center",prop:"platformCollectionAmount"},{default:l(e=>[c(" \uFFE5"+Y(t(q)(e.row.platformCollectionAmount)),1)]),_:1}),a(s,{label:"\u62B5\u6263\u79EF\u5206",align:"center",prop:"shopHighAmount"},{default:l(e=>[c(Y(t(da)(e.row.shopAmount)),1)]),_:1}),a(s,{label:"\u5E94\u7ED3(\u6210\u672C)",align:"center",prop:"shopTotalHighAmount"},{default:l(e=>[c(" \uFFE5"+Y(t(q)(e.row.shopTotalHighAmount)),1)]),_:1}),a(s,{label:"\u8F6C\u8D26\u51ED\u8BC1\u9644\u4EF6",align:"center",prop:"attachment"},{default:l(e=>[e.row.attachment?(f(),A($,{key:0,src:e.row.attachment,onClick:p=>async function(x,n){x.stopPropagation();try{const d=await fetch(n),C=await d.blob(),j=window.URL.createObjectURL(C),u=document.createElement("a");u.href=j,u.download=n.split("/").pop(),document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(j)}catch(d){console.error("Error downloading the image:",d)}}(p,e.row.attachment)},null,8,["src","onClick"])):(f(),O("span",U,"\u672A\u7ED3\u8D26"))]),_:1}),a(s,{label:"\u65E5\u671F",align:"center",prop:"createTime",formatter:t(Ia),width:"180px"},null,8,["formatter"]),a(s,{label:"\u64CD\u4F5C",align:"center"},{default:l(e=>[T((f(),A(_,{type:"success",plain:"",size:"small",onClick:p=>(async(x,n)=>{x.stopPropagation(),console.log(n);try{await J.exportConfirm(),v.value=!0;const d=await D({shopSettlementId:n.id}),C=n.shopName+Ma(n.createTime,"YYYY-MM-DD")+"-\u7ED3\u7B97\u5355.xls";Pa.excel(d,C)}catch{}finally{v.value=!1}})(p,e.row),loading:t(v)},{default:l(()=>[c(" \u5BFC\u51FA ")]),_:2},1032,["onClick","loading"])),[[la,["trade:order:export"]]])]),_:1})]),_:1},8,["data"])),[[oa,t(w)]]),a(ea,{total:t(M),page:t(o).pageNo,"onUpdate:page":r[2]||(r[2]=e=>t(o).pageNo=e),limit:t(o).pageSize,"onUpdate:limit":r[3]||(r[3]=e=>t(o).pageSize=e),onPagination:m},null,8,["total","page","limit"])]),_:1}),a(La,{ref_key:"formRef",ref:L,onSuccess:m},null,512)],64)}}}),[["__scopeId","data-v-b3661f66"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/distri/shopsettlement/index.vue"]])});export{Ba as __tla,K as default};
|