1 |
- import{d as R,i as G,r as c,f as J,m as X,S as j,o as m,c as E,g as e,w as o,a,T as _,q as f,y as h,x as b,F as L,X as O,B as Q,C as W,k as Z,D as $,G as ee,H as ae,I as le,J as te,_ as re,__tla as oe}from"./index-12a7743c.js";import{_ as ne,__tla as de}from"./index-ed9bc77e.js";import{_ as ie,__tla as pe}from"./ContentWrap-a222efbc.js";import{d as se,__tla as ue}from"./formatTime-adaaebb7.js";import{d as ce}from"./download-20922b56.js";import{D as me,a as V,__tla as _e}from"./DailyBillForm-248b4ee8.js";import{u as fe,__tla as ye}from"./useMessage-9e9b1c85.js";import{__tla as he}from"./index-088af6ea.js";import{__tla as be}from"./ContentWrap.vue_vue_type_script_setup_true_lang-4150ac91.js";import{__tla as ge}from"./el-card-73514116.js";import{__tla as we}from"./Dialog-639a3ed8.js";let S,xe=Promise.all([(()=>{try{return oe}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})()]).then(async()=>{S=re(R({name:"DailyBill",__name:"index",setup(Ie){const x=fe(),{t:T}=G(),I=c(!0),D=c([]),C=c(0),l=J({pageNo:1,pageSize:10,amount:void 0,receivedAmount:void 0,orderCount:void 0,shopId:void 0,merchantId:void 0,orderIds:void 0,createTime:[]}),k=c(),v=c(!1),y=async()=>{I.value=!0;try{const p=await V.getDailyBillPage(l);D.value=p.list,C.value=p.total}finally{I.value=!1}},d=()=>{l.pageNo=1,y()},z=()=>{k.value.resetFields(),d()},U=c(),K=(p,t)=>{U.value.open(p,t)},A=async()=>{try{await x.exportConfirm(),v.value=!0;const p=await V.exportDailyBill(l);ce.excel(p,"\u6BCF\u65E5\u8D26\u5355.xls")}catch{}finally{v.value=!1}};return X(()=>{y()}),(p,t)=>{const s=O,i=Q,N=W,g=Z,u=$,P=ee,B=ie,n=ae,Y=le,F=ne,w=j("hasPermi"),H=te;return m(),E(L,null,[e(B,null,{default:o(()=>[e(P,{class:"-mb-15px",model:a(l),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:o(()=>[e(i,{label:"\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",prop:"amount"},{default:o(()=>[e(s,{modelValue:a(l).amount,"onUpdate:modelValue":t[0]||(t[0]=r=>a(l).amount=r),placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",clearable:"",onKeyup:_(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u786E\u6536\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",prop:"receivedAmount"},{default:o(()=>[e(s,{modelValue:a(l).receivedAmount,"onUpdate:modelValue":t[1]||(t[1]=r=>a(l).receivedAmount=r),placeholder:"\u8BF7\u8F93\u5165\u786E\u6536\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",clearable:"",onKeyup:_(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BA2\u5355\u6570\uFF0C\u9ED8\u8BA4\u4E3A0",prop:"orderCount"},{default:o(()=>[e(s,{modelValue:a(l).orderCount,"onUpdate:modelValue":t[2]||(t[2]=r=>a(l).orderCount=r),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u6570\uFF0C\u9ED8\u8BA4\u4E3A0",clearable:"",onKeyup:_(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5E97\u94FAID",prop:"shopId"},{default:o(()=>[e(s,{modelValue:a(l).shopId,"onUpdate:modelValue":t[3]||(t[3]=r=>a(l).shopId=r),placeholder:"\u8BF7\u8F93\u5165\u5E97\u94FAID",clearable:"",onKeyup:_(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5546\u6237ID",prop:"merchantId"},{default:o(()=>[e(s,{modelValue:a(l).merchantId,"onUpdate:modelValue":t[4]||(t[4]=r=>a(l).merchantId=r),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237ID",clearable:"",onKeyup:_(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BA2\u5355ID\u5217\u8868\uFF0C\u6587\u672C\u7C7B\u578B",prop:"orderIds"},{default:o(()=>[e(s,{modelValue:a(l).orderIds,"onUpdate:modelValue":t[5]||(t[5]=r=>a(l).orderIds=r),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355ID\u5217\u8868\uFF0C\u6587\u672C\u7C7B\u578B",clearable:"",onKeyup:_(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[e(N,{modelValue:a(l).createTime,"onUpdate:modelValue":t[6]||(t[6]=r=>a(l).createTime=r),"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}),e(i,null,{default:o(()=>[e(u,{onClick:d},{default:o(()=>[e(g,{icon:"ep:search",class:"mr-5px"}),f(" \u641C\u7D22")]),_:1}),e(u,{onClick:z},{default:o(()=>[e(g,{icon:"ep:refresh",class:"mr-5px"}),f(" \u91CD\u7F6E")]),_:1}),h((m(),b(u,{type:"primary",plain:"",onClick:t[7]||(t[7]=r=>K("create"))},{default:o(()=>[e(g,{icon:"ep:plus",class:"mr-5px"}),f(" \u65B0\u589E ")]),_:1})),[[w,["trade:daily-bill:create"]]]),h((m(),b(u,{type:"success",plain:"",onClick:A,loading:a(v)},{default:o(()=>[e(g,{icon:"ep:download",class:"mr-5px"}),f(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[w,["trade:daily-bill:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(B,null,{default:o(()=>[h((m(),b(Y,{data:a(D),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[e(n,{label:"\u8D26\u5355\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",align:"center",prop:"amount"}),e(n,{label:"\u786E\u6536\u91D1\u989D\uFF0C\u5355\u4F4D\uFF1A\u5206",align:"center",prop:"receivedAmount"}),e(n,{label:"\u8BA2\u5355\u6570\uFF0C\u9ED8\u8BA4\u4E3A0",align:"center",prop:"orderCount"}),e(n,{label:"\u5E97\u94FAID",align:"center",prop:"shopId"}),e(n,{label:"\u5546\u6237ID",align:"center",prop:"merchantId"}),e(n,{label:"\u8BA2\u5355ID\u5217\u8868\uFF0C\u6587\u672C\u7C7B\u578B",align:"center",prop:"orderIds"}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(se),width:"180px"},null,8,["formatter"]),e(n,{label:"\u64CD\u4F5C",align:"center"},{default:o(r=>[h((m(),b(u,{link:"",type:"primary",onClick:q=>K("update",r.row.id)},{default:o(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["trade:daily-bill:update"]]]),h((m(),b(u,{link:"",type:"danger",onClick:q=>(async M=>{try{await x.delConfirm(),await V.deleteDailyBill(M),x.success(T("common.delSuccess")),await y()}catch{}})(r.row.id)},{default:o(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["trade:daily-bill:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,a(I)]]),e(F,{total:a(C),page:a(l).pageNo,"onUpdate:page":t[8]||(t[8]=r=>a(l).pageNo=r),limit:a(l).pageSize,"onUpdate:limit":t[9]||(t[9]=r=>a(l).pageSize=r),onPagination:y},null,8,["total","page","limit"])]),_:1}),e(me,{ref_key:"formRef",ref:U,onSuccess:y},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/bill/dailybill/index.vue"]])});export{xe as __tla,S as default};
|