1 |
- import{aq as R,d as Q,r as n,h as $,e as B,L as J,k as K,Q as V,o as p,c as z,f as e,w as s,x as L,v as y,a,m as g,t as w,a$ as P,dG as W,P as X,F as Z,G as tt,C as at,H as et,I as ot,_ as rt,__tla as lt}from"./index-430b3151.js";import{_ as nt,__tla as st}from"./ContentWrap-60842994.js";import{_ as it,__tla as ct}from"./index-c425c88f.js";import{E as mt,__tla as pt}from"./el-image-c98b70f9.js";import{__tla as _t}from"./el-image-viewer-467ebe35.js";import{d as dt,f as ut,__tla as ht}from"./formatTime-00eecbb7.js";import{d as ft}from"./download-20922b56.js";import yt,{__tla as gt}from"./ShopSettlementForm-b9185123.js";import{h as wt,__tla as vt}from"./index-a205ae1b.js";import{u as bt,__tla as xt}from"./useMessage-d226ba89.js";import{__tla as Ct}from"./el-card-dee5b36b.js";import{__tla as It}from"./index-555139e7.js";import{__tla as kt}from"./Dialog-cd42c639.js";import{__tla as At}from"./index-72a4fbcc.js";let U,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 Ct}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return At}catch{}})()]).then(async()=>{let C,I,k;C=async o=>await R.get({url:"/distri/shop-settlement/page",params:o}),I=async o=>await R.download({url:"/trade/order/export-excel/shopSettlement",params:o}),k={key:1},U=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 Y=n([]);n(!1);const D=bt();$();const h=n(!0),A=n([]),S=n(0),r=B({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 C(r);A.value=_.list,S.value=_.total}finally{h.value=!1}},N=n();return J(()=>r.shopId,()=>{f()}),K(()=>{r.ptSettlementId=T.id,r.merchantId=T.merchantId,f(),(async()=>{h.value=!0;const _=await wt();Y.value=_})()}),(_,c)=>{const l=tt,E=mt,j=at,F=et,G=it,M=nt,O=V("hasPermi"),q=ot;return p(),z(Z,null,[e(M,{class:"mt-15px"},{default:s(()=>[L((p(),y(F,{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(P)(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(P)(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(),H=window.URL.createObjectURL(x),u=document.createElement("a");u.href=H,u.download=i.split("/").pop(),document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(H)}catch(d){console.error("Error downloading the image:",d)}}(m,t.row.attachment)},null,8,["src","onClick"])):(p(),z("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=>[L((p(),y(j,{type:"success",plain:"",size:"small",onClick:m=>(async(b,i)=>{b.stopPropagation(),console.log(i);try{await D.exportConfirm(),v.value=!0;const d=await I({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"])),[[O,["trade:order:export"]]])]),_:1})]),_:1},8,["data"])),[[q,a(h)]]),e(G,{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,U as default};
|