1 |
- import{az as T,d as na,r as p,P as ia,x as ca,b as pa,a3 as ma,o as h,c as _a,B as H,f as a,a as e,aC as ua,k as y,v as da,A as l,D as s,C as v,E as x,dx as G,dH as K,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 Aa,__tla as Ta}from"./index-6e0fa573.js";import{_ as Ha,__tla as Ia}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{_ as Da,__tla as Pa}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{b as Sa,f as W,__tla as za}from"./formatTime-4408999b.js";import{d as X}from"./download-20922b56.js";import{_ as Ma,__tla as Na}from"./PtSettlementForm.vue_vue_type_script_setup_true_lang-55afab38.js";import{_ as Va,__tla as Ra}from"./ImportPayMent.vue_vue_type_script_setup_true_lang-4c857d08.js";import{u as Ua,__tla as Fa}from"./useMessage-7f978edc.js";import{_ as Ba}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ja}from"./el-card-f999e23d.js";import{__tla as qa}from"./index-99c4720b.js";import{__tla as Ea}from"./Dialog-a16029e3.js";import{__tla as Ga}from"./index-7b6eed2d.js";import{__tla as Ka}from"./el-image-f27c893c.js";import{__tla as Wa}from"./el-image-viewer-bd37a3c0.js";import{__tla as Xa}from"./ShopSettlementForm-ec4d2152.js";import{__tla as ja}from"./index-41b6ecec.js";import{__tla as La}from"./index-01fa4814.js";let j,Oa=Promise.all([(()=>{try{return Ta}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return La}catch{}})()]).then(async()=>{let I,D,P,S,z,M;I=async m=>await T.get({url:"/distri/pt-settlement/page",params:m}),D=async m=>await T.download({url:"/distri/shop-settlement/export-excel",params:m}),P=async m=>await T.download({url:"/distri/pt-settlement/export-transfer-template",params:m}),S={class:"search-one"},z={style:{"text-align":"right"},class:"search-input"},M={class:"searchMore",style:{width:"calc(100% - 60px)"}},j=Ba(na({name:"PtSettlement",__name:"index",props:{merchantId:{type:Number,default:void 0}},setup(m){const C=m,L=(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),O=()=>{g.value=!g.value},Q=()=>{g.value=!1},N=Ua();ia();const k=p(!0),V=p([]),R=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}),U=p(),u=p(!1),d=async()=>{k.value=!0;try{const w=await I(r);V.value=w.list,R.value=w.total}finally{k.value=!1}},F=()=>{r.pageNo=1,d()},Z=()=>{U.value.resetFields(),F()},B=p(),J=p();return pa(()=>{r.merchantId=C.merchantId,d()}),(w,n)=>{const o=ya,$=ga,q=wa,E=va,aa=xa,ta=Ca,ea=ka,i=ba,la=Ya,ra=Da,oa=Ha,b=ma("hasPermi"),sa=Aa;return h(),_a(ha,null,[H("div",S,[H("div",z,[a(o,{icon:e(ua),onClick:O,style:{"margin-left":"0"}},null,8,["icon"])])]),y(H("div",M,[a(ea,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:U,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:Q},{default:l(()=>[s(" \u6536\u8D77 ")]),_:1}),a(o,{onClick:Z},{default:l(()=>[a(E,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1}),a(o,{onClick:F,plain:"",type:"primary"},{default:l(()=>[a(E,{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(V),stripe:!0,"show-overflow-tooltip":!0,onRowClick:n[1]||(n[1]=t=>{return c=t,void B.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(G)(t.row.platformCollectionAmount)),1)]),_:1}),a(i,{label:"\u62B5\u6263\u4F63\u91D1",align:"center",prop:"shopHighAmount"},{default:l(t=>[s(x(e(K)(t.row.shopAmount)),1)]),_:1}),a(i,{label:"\u62B5\u6263\u6D88\u8D39\u5206",align:"center",prop:"shopHighAmount"},{default:l(t=>[s(x(e(K)(t.row.consumptionPoints)),1)]),_:1}),a(i,{label:"\u5E94\u7ED3(\u6210\u672C)",align:"center",prop:"shopTotalHighAmount"},{default:l(t=>[s(" \uFFE5"+x(e(G)(t.row.shopTotalHighAmount)),1)]),_:1}),a(i,{label:"\u662F\u5426\u7ED3\u8D26",align:"center",prop:"status",formatter:L,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(),J.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 Y=await D({ptSettlementId:_.id}),A=W(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u5355.xls";X.excel(Y,A)}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 Y=await P({ptSettlementId:_.id}),A=W(_.createTime,"YYYY-MM-DD")+"-\u5E73\u53F0\u7ED3\u7B97\u4ED8\u6B3E\u5355.xls";X.excel(Y,A)}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(R),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(Ma,{ref_key:"formRef",ref:B,onSuccess:d},null,512),a(Va,{ref_key:"importRef",ref:J,onSuccess:d},null,512)],64)}}}),[["__scopeId","data-v-b095cca4"]])});export{Oa as __tla,j as default};
|