1 |
- import{aA as u,d as na,r as n,P as ca,x as pa,w as ua,b as ya,a4 as _a,o as c,c as H,B,C as _,A as t,F as K,R as ma,a as l,a3 as Q,f as e,aD as fa,k as I,v as ga,D as s,E as m,dA as C,O as k,S as va,U as ha,J as wa,Q as ba,V as xa,H as Ia,K as Da,W as Ba,X as Ca,Y as ka,Z as Pa,_ as Na,__tla as Sa}from"./index-286756b9.js";import{_ as za,__tla as Ta}from"./ContentWrap-83998678.js";import{_ as Ra,__tla as Ma}from"./index-ed6c67a8.js";import{f as Ya,__tla as Ua}from"./formatTime-83e416ef.js";import{d as X}from"./download-20922b56.js";import Va,{__tla as Aa}from"./DailyBillForm-de5b69b5.js";import{h as Fa,__tla as Oa}from"./index-75b1e1db.js";import{u as ja,__tla as Ha}from"./useMessage-084b1e70.js";let h,P,q,Ka=Promise.all([(()=>{try{return Sa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ha}catch{}})()]).then(async()=>{let N,S,z;h={getDailyBillPage:async r=>await u.get({url:"/distri/daily-bill/page",params:r}),getDailyBill:async r=>await u.get({url:"/distri/daily-bill/get?id="+r}),createDailyBill:async r=>await u.post({url:"/distri/daily-bill/create",data:r}),updateDailyBill:async r=>await u.put({url:"/distri/daily-bill/update",data:r}),deleteDailyBill:async r=>await u.delete({url:"/distri/daily-bill/delete?id="+r}),exportDailyBill:async r=>await u.download({url:"/distri/daily-bill/export-excel",params:r}),exportDailyBillByRow:async r=>await u.download({url:"/trade/order/export-excel/dailyBill",params:r})},N={class:"search-one"},S={style:{"text-align":"right"},class:"search-input"},z={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(r){const T=r,w=n(!1),E=()=>{w.value=!w.value},D=()=>{w.value=!1};let R=n([]);const M=ja();ca();const b=n(!0),Y=n([]),U=n(0),i=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}),V=n(),f=n(!1),g=async()=>{b.value=!0;try{const p=await h.getDailyBillPage(i);Y.value=p.list,U.value=p.total}finally{b.value=!1}},A=()=>{i.pageNo=1,g(),D()},J=()=>{V.value.resetFields(),i.shopId=void 0,A(),D()},F=n(),W=async()=>{try{await M.exportConfirm(),f.value=!0;const p=await h.exportDailyBill(i);X.excel(p,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{f.value=!1}};return ua(()=>i.shopId,()=>{g()}),ya(async()=>{i.merchantId=T.merchantId,i.ptDailyBillId=T.ptDailyBillId,g(),await(async()=>{b.value=!0;const p=await Fa();R.value=p})()}),(p,d)=>{const Z=va,G=ha,y=wa,O=ba,L=xa,$=Ia,aa=Da,ea=Ba,o=Ca,la=ka,ta=Ra,ra=za,j=_a("hasPermi"),ia=Pa;return c(),H(K,null,[B("div",N,[B("div",S,[r.merchantId?Q("",!0):(c(),_(G,{key:0,modelValue:l(i).shopId,"onUpdate:modelValue":d[0]||(d[0]=a=>l(i).shopId=a),placeholder:"\u5E97\u94FA\u540D\u79F0",filterable:"",clearable:""},{default:t(()=>[(c(!0),H(K,null,ma(l(R),a=>(c(),_(Z,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])),e(y,{icon:l(fa),onClick:E,style:{"margin-left":"0"}},null,8,["icon"])])]),I(B("div",z,[e(ea,{model:l(i),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"120px"},{default:t(()=>[e(aa,null,{default:t(()=>[e($,null,{default:t(()=>[e(L,null,{default:t(()=>[I((c(),_(y,{type:"success",plain:"",onClick:W,loading:l(f)},{default:t(()=>[s(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[j,["distri:daily-bill:export"]]]),e(y,{onClick:D},{default:t(()=>[s(" \u6536\u8D77 ")]),_:1}),e(y,{onClick:J},{default:t(()=>[e(O,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1}),e(y,{onClick:A,plain:"",type:"primary"},{default:t(()=>[e(O,{class:"mr-5px",icon:"ep:search"}),s(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],512),[[ga,l(w)]]),e(ra,{class:"mt-15px"},{default:t(()=>[I((c(),_(la,{data:l(Y),stripe:!0,"show-overflow-tooltip":!0,onRowClick:d[1]||(d[1]=a=>{return x=a,void F.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"}),r.merchantId?Q("",!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 M.exportConfirm(),f.value=!0;const sa=await h.exportDailyBillByRow({shopId:v.shopId,orderCalcTime:v.orderCalcTime,merchantId:v.merchantId,payStatus:1}),da=v.shopName+Ya(v.createTime,"YYYY-MM-DD")+"\u8D26\u5355.xls";X.excel(sa,da)}catch{}finally{f.value=!1}})(x,a.row)},{default:t(()=>[s(" \u5BFC\u51FA ")]),_:2},1032,["onClick"])),[[j,["distri:daily-bill:export"]]])]),_:1})]),_:1},8,["data"])),[[ia,l(b)]]),e(ta,{total:l(U),page:l(i).pageNo,"onUpdate:page":d[2]||(d[2]=a=>l(i).pageNo=a),limit:l(i).pageSize,"onUpdate:limit":d[3]||(d[3]=a=>l(i).pageSize=a),onPagination:g},null,8,["total","page","limit"])]),_:1}),e(Va,{ref_key:"formRef",ref:F,onSuccess:g},null,512)],64)}}}),[["__scopeId","data-v-3d0fc71c"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/dailybill/index.vue"]]),q=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}))});export{h as D,Ka as __tla,P as d,q as i};
|