1 |
- import{ar as H,d as Q,r as n,i as $,f as q,M as B,l as K,R as V,o as p,c as R,g as e,w as s,y as P,x as y,a,n as g,t as w,a$ as U,dG as W,Q as X,F as Z,H as tt,D as at,I as et,J as ot,_ as rt,__tla as lt}from"./index-3fb48822.js";import{_ as nt,__tla as st}from"./ContentWrap-afa47a64.js";import{_ as it,__tla as ct}from"./index-5771c6d6.js";import{E as mt,__tla as pt}from"./el-image-27385f7d.js";import{__tla as _t}from"./el-image-viewer-ff953702.js";import{d as dt,f as ut,__tla as ht}from"./formatTime-1803573a.js";import{d as ft}from"./download-20922b56.js";import yt,{__tla as gt}from"./ShopSettlementForm-a98d2a33.js";import{h as wt,__tla as vt}from"./index-72ebef64.js";import{u as bt,__tla as xt}from"./useMessage-b6c78c26.js";import{__tla as It}from"./el-card-8960fd94.js";import{__tla as Ct}from"./index-cf9cdfb4.js";import{__tla as kt}from"./Dialog-7d4425a0.js";import{__tla as At}from"./index-01bff116.js";let D,St=Promise.all([(()=>{try{return lt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return At}catch{}})()]).then(async()=>{let I,C,k;I=async o=>await H.get({url:"/distri/shop-settlement/page",params:o}),C=async o=>await H.download({url:"/trade/order/export-excel/shopSettlement",params:o}),k={key:1},D=rt(Q({name:"ShopSettlement",__name:"index",props:{id:{type:Number,default:void 0},status:{type:Number,default:void 0},merchantId:{type:Number,default:void 0}},setup(o){let L=n([]);n(!1);const Y=bt();$();const h=n(!0),A=n([]),S=n(0),r=q({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,ptSettlementId:0,merchantId:void 0}),T=o;n();const v=n(!1),f=async()=>{h.value=!0;try{const _=await I(r);A.value=_.list,S.value=_.total}finally{h.value=!1}},N=n();return B(()=>r.shopId,()=>{f()}),K(()=>{r.ptSettlementId=T.id,r.merchantId=T.merchantId,f(),(async()=>{h.value=!0;const _=await wt();L.value=_})()}),(_,c)=>{const l=tt,E=mt,M=at,j=et,F=it,O=nt,G=V("hasPermi"),J=ot;return p(),R(Z,null,[e(O,{class:"mt-15px"},{default:s(()=>[P((p(),y(j,{data:a(A),stripe:!0,"show-overflow-tooltip":!0,onRowClick:c[0]||(c[0]=t=>{return m=t,void N.value.open(m);var m}),"row-class-name":"row"},{default:s(()=>[e(l,{label:"\u5E8F\u53F7",align:"center",prop:"id"}),e(l,{label:"\u5E97\u94FA\u540D\u79F0",align:"center",prop:"shopName"}),e(l,{label:"\u9500\u552E\u989D",align:"center",prop:"platformCollectionAmount"},{default:s(t=>[g(" \uFFE5"+w(a(U)(t.row.platformCollectionAmount)),1)]),_:1}),e(l,{label:"\u62B5\u6263\u79EF\u5206",align:"center",prop:"shopHighAmount"},{default:s(t=>[g(w(a(W)(t.row.shopAmount)),1)]),_:1}),e(l,{label:"\u5E94\u7ED3(\u6210\u672C)",align:"center",prop:"shopTotalHighAmount"},{default:s(t=>[g(" \uFFE5"+w(a(U)(t.row.shopTotalHighAmount)),1)]),_:1}),e(l,{label:"\u8F6C\u8D26\u51ED\u8BC1\u9644\u4EF6",align:"center",prop:"attachment"},{default:s(t=>[t.row.attachment?(p(),y(E,{key:0,src:t.row.attachment,onClick:m=>async function(b,i){b.stopPropagation();try{const d=await fetch(i),x=await d.blob(),z=window.URL.createObjectURL(x),u=document.createElement("a");u.href=z,u.download=i.split("/").pop(),document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(z)}catch(d){console.error("Error downloading the image:",d)}}(m,t.row.attachment)},null,8,["src","onClick"])):(p(),R("span",k,w(o.status===0?"\u672A\u5BFC\u5165":o.merchantId?"\u672A\u7ED3\u8D26":"\u5BFC\u5165\u5931\u8D25"),1))]),_:1}),o.merchantId?(p(),y(l,{key:0,label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(dt),width:"180px"},null,8,["formatter"])):X("",!0),e(l,{label:"\u64CD\u4F5C",align:"center"},{default:s(t=>[P((p(),y(M,{type:"success",plain:"",size:"small",onClick:m=>(async(b,i)=>{b.stopPropagation(),console.log(i);try{await Y.exportConfirm(),v.value=!0;const d=await C({shopSettlementId:i.id}),x=i.shopName+ut(i.createTime,"YYYY-MM-DD")+"-\u7ED3\u7B97\u5355.xls";ft.excel(d,x)}catch{}finally{v.value=!1}})(m,t.row),loading:a(v)},{default:s(()=>[g(" \u5BFC\u51FA ")]),_:2},1032,["onClick","loading"])),[[G,["trade:order:export"]]])]),_:1})]),_:1},8,["data"])),[[J,a(h)]]),e(F,{total:a(S),page:a(r).pageNo,"onUpdate:page":c[1]||(c[1]=t=>a(r).pageNo=t),limit:a(r).pageSize,"onUpdate:limit":c[2]||(c[2]=t=>a(r).pageSize=t),onPagination:f},null,8,["total","page","limit"])]),_:1}),e(yt,{ref_key:"formRef",ref:N,onSuccess:f},null,512)],64)}}}),[["__scopeId","data-v-b3661f66"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/shopsettlement/index.vue"]])});export{St as __tla,D as default};
|