index-bfa709f4.js 6.3 KB

1
  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 J,R as ma,a as l,a3 as K,f as e,aD as fa,k as I,v as ga,D as s,E as m,dz 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 za}from"./index-f6fb8e95.js";import{_ as Sa,__tla as Ta}from"./ContentWrap-96bb70ec.js";import{_ as Ra,__tla as Ya}from"./index-58a94653.js";import{f as Ma,__tla as Ua}from"./formatTime-ddd96ac8.js";import{d as Q}from"./download-20922b56.js";import Va,{__tla as Fa}from"./DailyBillForm-b1ab9091.js";import{g as Oa,__tla as ja}from"./index-74af911b.js";import{u as Aa,__tla as Ha}from"./useMessage-3b767a67.js";let h,P,q,Ja=Promise.all([(()=>{try{return za}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ha}catch{}})()]).then(async()=>{let N,z,S;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"},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(r){const T=r,w=n(!1),E=()=>{w.value=!w.value},D=()=>{w.value=!1};let R=n([]);const Y=Aa();ca();const b=n(!0),M=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);M.value=p.list,U.value=p.total}finally{b.value=!1}},F=()=>{i.pageNo=1,g(),D()},W=()=>{V.value.resetFields(),i.shopId=void 0,F(),D()},O=n(),X=async()=>{try{await Y.exportConfirm(),f.value=!0;const p=await h.exportDailyBill(i);Q.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 Oa();R.value=p})()}),(p,d)=>{const Z=va,G=ha,y=wa,j=ba,L=xa,$=Ia,aa=Da,ea=Ba,o=Ca,la=ka,ta=Ra,ra=Sa,A=_a("hasPermi"),ia=Pa;return c(),H(J,null,[B("div",N,[B("div",z,[r.merchantId?K("",!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(J,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",S,[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:X,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:W},{default:t(()=>[e(j,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1}),e(y,{onClick:F,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(ra,{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 O.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?K("",!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 Y.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";Q.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"])),[[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:O,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,Ja as __tla,P as d,q as i};