1 |
- import{aq as u,d as na,r as n,h as ca,e as pa,L as ua,k as ya,Q as _a,o as c,c as E,g as B,v as _,w as t,F as O,q as ma,a as l,P as $,f as e,au as fa,x as I,a4 as ga,m as s,t as m,a$ as C,e8 as k,y as va,z as ha,C as wa,n as ba,A as xa,E as Ia,i as Da,D as Ba,G as Ca,H as ka,I as Pa,_ as Na,__tla as za}from"./index-430b3151.js";import{_ as Sa,__tla as Ta}from"./ContentWrap-60842994.js";import{_ as Ra,__tla as Fa}from"./index-c425c88f.js";import{f as Ma,__tla as Ya}from"./formatTime-00eecbb7.js";import{d as G}from"./download-20922b56.js";import qa,{__tla as Ua}from"./DailyBillForm-4afb86d2.js";import{h as Va,__tla as ja}from"./index-a205ae1b.js";import{u as Aa,__tla as Ea}from"./useMessage-d226ba89.js";let h,P,H,Oa=Promise.all([(()=>{try{return za}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ea}catch{}})()]).then(async()=>{let N,z,S;h={getDailyBillPage:async i=>await u.get({url:"/distri/daily-bill/page",params:i}),getDailyBill:async i=>await u.get({url:"/distri/daily-bill/get?id="+i}),createDailyBill:async i=>await u.post({url:"/distri/daily-bill/create",data:i}),updateDailyBill:async i=>await u.put({url:"/distri/daily-bill/update",data:i}),deleteDailyBill:async i=>await u.delete({url:"/distri/daily-bill/delete?id="+i}),exportDailyBill:async i=>await u.download({url:"/distri/daily-bill/export-excel",params:i}),exportDailyBillByRow:async i=>await u.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)"}},P=Na(na({name:"DailyBill",__name:"index",props:{merchantId:{type:Number,default:void 0},ptDailyBillId:{type:Number,default:void 0}},setup(i){const T=i,w=n(!1),L=()=>{w.value=!w.value},D=()=>{w.value=!1};let R=n([]);const F=Aa();ca();const b=n(!0),M=n([]),Y=n(0),r=pa({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}),q=n(),f=n(!1),g=async()=>{b.value=!0;try{const p=await h.getDailyBillPage(r);M.value=p.list,Y.value=p.total}finally{b.value=!1}},U=()=>{r.pageNo=1,g(),D()},Q=()=>{q.value.resetFields(),r.shopId=void 0,U(),D()},V=n(),W=async()=>{try{await F.exportConfirm(),f.value=!0;const p=await h.exportDailyBill(r);G.excel(p,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{f.value=!1}};return ua(()=>r.shopId,()=>{g()}),ya(async()=>{r.merchantId=T.merchantId,r.ptDailyBillId=T.ptDailyBillId,g(),await(async()=>{b.value=!0;const p=await Va();R.value=p})()}),(p,d)=>{const J=va,K=ha,y=wa,j=ba,X=xa,Z=Ia,aa=Da,ea=Ba,o=Ca,la=ka,ta=Ra,ia=Sa,A=_a("hasPermi"),ra=Pa;return c(),E(O,null,[B("div",N,[B("div",z,[i.merchantId?$("",!0):(c(),_(K,{key:0,modelValue:l(r).shopId,"onUpdate:modelValue":d[0]||(d[0]=a=>l(r).shopId=a),placeholder:"\u5E97\u94FA\u540D\u79F0",filterable:"",clearable:""},{default:t(()=>[(c(!0),E(O,null,ma(l(R),a=>(c(),_(J,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])),e(y,{icon:l(fa),onClick:L,style:{"margin-left":"0"}},null,8,["icon"])])]),I(B("div",S,[e(ea,{model:l(r),ref_key:"queryFormRef",ref:q,inline:!0,"label-width":"120px"},{default:t(()=>[e(aa,null,{default:t(()=>[e(Z,null,{default:t(()=>[e(X,null,{default:t(()=>[I((c(),_(y,{type:"success",plain:"",onClick:W,loading:l(f)},{default:t(()=>[s(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[A,["distri:daily-bill:export"]]]),e(y,{onClick:D},{default:t(()=>[s(" \u6536\u8D77 ")]),_:1}),e(y,{onClick:Q},{default:t(()=>[e(j,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1}),e(y,{onClick:U,plain:"",type:"primary"},{default:t(()=>[e(j,{class:"mr-5px",icon:"ep:search"}),s(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[ga,l(w)]]),e(ia,{class:"mt-15px"},{default:t(()=>[I((c(),_(la,{data:l(M),stripe:!0,"show-overflow-tooltip":!0,onRowClick:d[1]||(d[1]=a=>{return x=a,void V.value.open(x);var x}),"row-class-name":"row"},{default:t(()=>[e(o,{label:"\u8D26\u5355\u7F16\u53F7",align:"center",prop:"id"}),e(o,{label:"\u91D1\u989D",align:"center",prop:"price"},{default:t(a=>[s(" \uFFE5"+m(l(C)(a.row.price)),1)]),_:1}),e(o,{label:"\u786E\u6536\u91D1\u989D",align:"center",prop:"receivedPrice"},{default:t(a=>[s(" \uFFE5"+m(l(C)(a.row.receivedPrice)),1)]),_:1}),e(o,{label:"\u9000\u6B3E\u91D1\u989D",align:"center",prop:"refundPrice"},{default:t(a=>[s(" \uFFE5"+m(l(C)(a.row.refundPrice)),1)]),_:1}),e(o,{label:"\u79EF\u5206",align:"center",prop:"integral"},{default:t(a=>[s(m(l(k)(a.row.integral)),1)]),_:1}),e(o,{label:"\u786E\u6536\u79EF\u5206",align:"center",prop:"receivedIntegral"},{default:t(a=>[s(m(l(k)(a.row.receivedIntegral)),1)]),_:1}),e(o,{label:"\u9000\u6B3E\u79EF\u5206",align:"center",prop:"refundIntegral"},{default:t(a=>[s(m(l(k)(a.row.refundIntegral)),1)]),_:1}),e(o,{label:"\u8BA2\u5355\u6570",align:"center",prop:"orderCount"}),i.merchantId?$("",!0):(c(),_(o,{key:0,label:"\u5546\u6237\u540D",align:"center",prop:"merchantName"})),e(o,{label:"\u5E97\u94FA\u540D",align:"center",prop:"shopName"}),e(o,{label:"\u8D26\u5355\u65E5\u671F",align:"center",prop:"orderCalcTime"}),e(o,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[I((c(),_(y,{type:"success",plain:"",size:"small",onClick:x=>(async(oa,v)=>{oa.stopPropagation();try{await F.exportConfirm(),f.value=!0;const sa=await h.exportDailyBillByRow({shopId:v.shopId,orderCalcTime:v.orderCalcTime,merchantId:v.merchantId,payStatus:1}),da=v.shopName+Ma(v.createTime,"YYYY-MM-DD")+"\u8D26\u5355.xls";G.excel(sa,da)}catch{}finally{f.value=!1}})(x,a.row)},{default:t(()=>[s(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[A,["distri:daily-bill:export"]]])]),_:1})]),_:1},8,["data"])),[[ra,l(b)]]),e(ta,{total:l(Y),page:l(r).pageNo,"onUpdate:page":d[2]||(d[2]=a=>l(r).pageNo=a),limit:l(r).pageSize,"onUpdate:limit":d[3]||(d[3]=a=>l(r).pageSize=a),onPagination:g},null,8,["total","page","limit"])]),_:1}),e(qa,{ref_key:"formRef",ref:V,onSuccess:g},null,512)],64)}}}),[["__scopeId","data-v-3d0fc71c"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/dailybill/index.vue"]]),H=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}))});export{h as D,Oa as __tla,P as d,H as i};
|