index-a39748fd.js 6.8 KB

1
  1. import{aA as m,d as de,r as c,P as ce,x as pe,w as ue,b as me,a4 as _e,o as p,c as Q,B as P,C as y,A as t,F as W,R as ye,a as l,a3 as X,f as a,aD as fe,k as C,v as ge,D as n,E as s,dz as B,O as f,S as ve,U as he,J as we,Q as be,V as xe,H as Ie,K as Ce,W as De,X as Pe,Y as Be,Z as ke,_ as Ne,__tla as ze}from"./index-54aa57d8.js";import{_ as Se,__tla as Te}from"./ContentWrap-260746ab.js";import{_ as Re,__tla as Ye}from"./index-e6a7fd1e.js";import{f as Me,__tla as Ue}from"./formatTime-e6197688.js";import{d as q}from"./download-20922b56.js";import Ve,{__tla as Ae}from"./DailyBillForm-bcfe6566.js";import{g as Fe,__tla as Oe}from"./index-692b7677.js";import{u as je,__tla as Qe}from"./useMessage-f56cafbb.js";let w,k,E,We=Promise.all([(()=>{try{return ze}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Qe}catch{}})()]).then(async()=>{let N,z,S;w={getDailyBillPage:async i=>await m.get({url:"/distri/daily-bill/page",params:i}),getDailyBill:async i=>await m.get({url:"/distri/daily-bill/get?id="+i}),createDailyBill:async i=>await m.post({url:"/distri/daily-bill/create",data:i}),updateDailyBill:async i=>await m.put({url:"/distri/daily-bill/update",data:i}),deleteDailyBill:async i=>await m.delete({url:"/distri/daily-bill/delete?id="+i}),exportDailyBill:async i=>await m.download({url:"/distri/daily-bill/export-excel",params:i}),exportDailyBillByRow:async i=>await m.download({url:"/trade/order/export-excel/dailyBill",params:i})},N={class:"search-one"},z={style:{"text-align":"right"},class:"search-input"},S={class:"searchMore",style:{width:"calc(100% - 60px)"}},k=Ne(de({name:"DailyBill",__name:"index",props:{merchantId:{type:Number,default:void 0},ptDailyBillId:{type:Number,default:void 0}},setup(i){const T=i,b=c(!1),H=()=>{b.value=!b.value},D=()=>{b.value=!1};let R=c([]);const Y=je();ce();const x=c(!0),M=c([]),U=c(0),o=pe({pageNo:1,pageSize:10,price:void 0,receivedPrice:void 0,orderCount:void 0,shopId:void 0,merchantId:void 0,orderIds:void 0,createTime:[],refundPrice:void 0,integral:void 0,receivedIntegral:void 0,refundIntegral:void 0,orderCalcTime:[],ptDailyBillId:void 0}),V=c(),g=c(!1),v=async()=>{x.value=!0;try{const u=await w.getDailyBillPage(o);M.value=u.list,U.value=u.total}finally{x.value=!1}},A=()=>{o.pageNo=1,v(),D()},J=()=>{V.value.resetFields(),o.shopId=void 0,A(),D()},F=c(),K=async()=>{try{await Y.exportConfirm(),g.value=!0;const u=await w.exportDailyBill(o);q.excel(u,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{g.value=!1}};return ue(()=>o.shopId,()=>{v()}),me(async()=>{o.merchantId=T.merchantId,o.ptDailyBillId=T.ptDailyBillId,v(),await(async()=>{x.value=!0;const u=await Fe();R.value=u})()}),(u,d)=>{const Z=ve,G=he,_=we,O=be,L=xe,$=Ie,ee=Ce,ae=De,r=Pe,le=Be,te=Re,ie=Se,j=_e("hasPermi"),re=ke;return p(),Q(W,null,[P("div",N,[P("div",z,[i.merchantId?X("",!0):(p(),y(G,{key:0,modelValue:l(o).shopId,"onUpdate:modelValue":d[0]||(d[0]=e=>l(o).shopId=e),placeholder:"\u5E97\u94FA\u540D\u79F0",filterable:"",clearable:""},{default:t(()=>[(p(!0),Q(W,null,ye(l(R),e=>(p(),y(Z,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])),a(_,{icon:l(fe),onClick:H,style:{"margin-left":"0"}},null,8,["icon"])])]),C(P("div",S,[a(ae,{model:l(o),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"120px"},{default:t(()=>[a(ee,null,{default:t(()=>[a($,null,{default:t(()=>[a(L,null,{default:t(()=>[C((p(),y(_,{type:"success",plain:"",onClick:K,loading:l(g)},{default:t(()=>[n(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[j,["distri:daily-bill:export"]]]),a(_,{onClick:D},{default:t(()=>[n(" \u6536\u8D77 ")]),_:1}),a(_,{onClick:J},{default:t(()=>[a(O,{class:"mr-5px",icon:"ep:refresh"}),n(" \u91CD\u7F6E ")]),_:1}),a(_,{onClick:A,plain:"",type:"primary"},{default:t(()=>[a(O,{class:"mr-5px",icon:"ep:search"}),n(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[ge,l(b)]]),a(ie,{class:"mt-15px"},{default:t(()=>[C((p(),y(le,{data:l(M),stripe:!0,"show-overflow-tooltip":!0,onRowClick:d[1]||(d[1]=e=>{return I=e,void F.value.open(I);var I}),"row-class-name":"row"},{default:t(()=>[a(r,{label:"\u8D26\u5355\u7F16\u53F7",align:"center",prop:"id"}),a(r,{label:"\u91D1\u989D",align:"center",prop:"price"},{default:t(e=>[n(" \uFFE5"+s(l(B)(e.row.price)),1)]),_:1}),a(r,{label:"\u786E\u6536\u91D1\u989D",align:"center",prop:"receivedPrice"},{default:t(e=>[n(" \uFFE5"+s(l(B)(e.row.receivedPrice)),1)]),_:1}),a(r,{label:"\u9000\u6B3E\u91D1\u989D",align:"center",prop:"refundPrice"},{default:t(e=>[n(" \uFFE5"+s(l(B)(e.row.refundPrice)),1)]),_:1}),a(r,{label:"\u4F63\u91D1",align:"center",prop:"integral"},{default:t(e=>[n(s(l(f)(e.row.integral)),1)]),_:1}),a(r,{label:"\u786E\u6536\u4F63\u91D1",align:"center",prop:"receivedIntegral"},{default:t(e=>[n(s(l(f)(e.row.receivedIntegral)),1)]),_:1}),a(r,{label:"\u9000\u6B3E\u4F63\u91D1",align:"center",prop:"refundIntegral"},{default:t(e=>[n(s(l(f)(e.row.refundIntegral)),1)]),_:1}),a(r,{label:"\u6D88\u8D39\u5206",align:"center",prop:"consumptionPoints"},{default:t(e=>[n(s(l(f)(e.row.consumptionPoints)),1)]),_:1}),a(r,{label:"\u786E\u6536\u6D88\u8D39\u5206",align:"center",prop:"receivedConsumptionPoints"},{default:t(e=>[n(s(l(f)(e.row.receivedConsumptionPoints)),1)]),_:1}),a(r,{label:"\u9000\u6B3E\u6D88\u8D39\u5206",align:"center",prop:"refundConsumptionPoints"},{default:t(e=>[n(s(l(f)(e.row.refundConsumptionPoints)),1)]),_:1}),a(r,{label:"\u8BA2\u5355\u6570",align:"center",prop:"orderCount"}),i.merchantId?X("",!0):(p(),y(r,{key:0,label:"\u5546\u6237\u540D",align:"center",prop:"merchantName"})),a(r,{label:"\u5E97\u94FA\u540D",align:"center",prop:"shopName"}),a(r,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"orderCalcTime"}),a(r,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[C((p(),y(_,{type:"success",plain:"",size:"small",onClick:I=>(async(oe,h)=>{oe.stopPropagation();try{await Y.exportConfirm(),g.value=!0;const ne=await w.exportDailyBillByRow({shopId:h.shopId,orderCalcTime:h.orderCalcTime,merchantId:h.merchantId,payStatus:1}),se=h.shopName+Me(h.createTime,"YYYY-MM-DD")+"\u8D26\u5355.xls";q.excel(ne,se)}catch{}finally{g.value=!1}})(I,e.row)},{default:t(()=>[n(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[j,["distri:daily-bill:export"]]])]),_:1})]),_:1},8,["data"])),[[re,l(x)]]),a(te,{total:l(U),page:l(o).pageNo,"onUpdate:page":d[2]||(d[2]=e=>l(o).pageNo=e),limit:l(o).pageSize,"onUpdate:limit":d[3]||(d[3]=e=>l(o).pageSize=e),onPagination:v},null,8,["total","page","limit"])]),_:1}),a(Ve,{ref_key:"formRef",ref:F,onSuccess:v},null,512)],64)}}}),[["__scopeId","data-v-3d0fc71c"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/dailybill/index.vue"]]),E=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}))});export{w as D,We as __tla,k as d,E as i};